.bs-checkout-popup {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    width: min(360px, calc(100vw - 48px));
    visibility: hidden;
    pointer-events: none;
    will-change: transform, opacity;
}

.bs-checkout-popup--position-left {
    right: auto;
    left: 24px;
}

.bs-checkout-popup.is-visible {
    visibility: visible;
    pointer-events: auto;
}

.bs-checkout-popup.is-minimized {
    width: 52px;
}

.bs-checkout-popup__card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    color: inherit;
    font-size: 13px;
    line-height: 1.45;
    will-change: transform, opacity;
}

.bs-checkout-popup.is-minimized .bs-checkout-popup__card {
    position: absolute;
    width: min(360px, calc(100vw - 48px));
    visibility: hidden;
    pointer-events: none;
}

.bs-checkout-popup__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 0;
    margin-bottom: 10px;
}

.bs-checkout-popup__logo {
    display: none;
    margin: 0 0 12px;
}

.bs-checkout-popup__logo.has-logo {
    display: block !important;
    flex: 1 1 auto;
}

.bs-checkout-popup__logo-image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 160px !important;
    max-height: 38px !important;
    object-fit: contain;
}

.bs-checkout-popup .bs-checkout-popup__close {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 32px !important;
    line-height: 1 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    background: #f2f2f2 !important;
    color: #111 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer;
    will-change: transform;
}

.bs-checkout-popup .bs-checkout-popup__launcher {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 52px !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14) !important;
    text-shadow: none !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer;
    will-change: transform, opacity;
}

.bs-checkout-popup .bs-checkout-popup__launcher[hidden] {
    display: none !important;
}

.bs-checkout-popup__content {
    margin-top: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.bs-checkout-popup__content > :first-child {
    margin-top: 0;
}

.bs-checkout-popup__content > :last-child {
    margin-bottom: 0;
}

.bs-checkout-popup a {
    color: var(--fs-color-primary, #1e73be);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 600px) {
    .bs-checkout-popup,
    .bs-checkout-popup--position-left {
        right: 16px;
        bottom: 16px;
        left: 16px;
        width: auto;
    }

    .bs-checkout-popup.is-minimized {
        right: 16px;
        left: auto;
        width: 52px;
        margin-left: 0;
    }

    .bs-checkout-popup--position-left.is-minimized {
        right: auto;
        left: 16px;
    }

    .bs-checkout-popup.is-minimized .bs-checkout-popup__card {
        width: 100%;
    }

    .bs-checkout-popup__card {
        width: 100%;
        max-width: 360px;
        max-height: min(46vh, 360px);
        padding: 16px;
        font-size: 12px;
        line-height: 1.4;
    }

    .bs-checkout-popup__content {
        min-height: 0;
    }
}
