/* CoreBlocks Cart — glass liquid design system */

.cart-widget {
    position: relative;
    z-index: 10000;
}

.cart-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--btn-gradient);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--btn-glow);
    transition: var(--transition);
    position: relative;
}

.cart-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: var(--radius-md);
    background: var(--btn-gradient);
    filter: blur(10px);
    opacity: 0.55;
    z-index: -1;
    pointer-events: none;
}

.cart-icon:hover {
    transform: scale(1.08) translateY(-3px);
    filter: brightness(1.12);
    box-shadow: 0 10px 32px rgba(115, 80, 234, 0.5), 0 0 28px rgba(255, 123, 0, 0.3);
}

.cart-icon:hover::before {
    opacity: 0.85;
    filter: blur(14px);
}

.cart-icon svg {
    width: 26px;
    height: 26px;
    position: relative;
    z-index: 1;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--orange), #cc6200);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 4px 14px rgba(255, 123, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cart-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    max-width: calc(100vw - 24px);
    max-height: 85vh;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow), var(--shadow-glow);
    color: var(--text);
    overflow: hidden;
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    z-index: 10001;
    display: flex;
    flex-direction: column;
}

.cart-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--btn-gradient);
    opacity: 0.85;
}

.cart-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 10000;
    display: none;
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.cart-modal-header h3 {
    margin: 0;
    font-size: 1.15em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-close:hover {
    color: #fff;
    background: var(--surface);
}

.cart-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.cart-modal-body::-webkit-scrollbar {
    width: 6px;
}

.cart-modal-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.cart-empty {
    text-align: center;
    color: var(--muted);
    margin: 44px 0;
    font-size: 0.98em;
}

.cart-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.cart-item:hover {
    border-color: var(--border-strong);
    background: var(--elevated);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.95em;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.cart-item-meta {
    font-size: 0.82em;
    color: var(--muted);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-qty-btn,
.cart-remove {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: var(--transition);
    padding: 0;
    font-family: inherit;
}

.cart-qty-btn:hover,
.cart-remove:hover {
    background: var(--elevated);
    border-color: var(--border-strong);
    color: #fff;
}

.cart-qty-btn:active,
.cart-remove:active {
    transform: scale(0.93);
}

.cart-remove {
    color: var(--red);
    margin-left: 4px;
}

.cart-remove:hover {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.35);
}

.cart-qty {
    min-width: 24px;
    text-align: center;
    font-size: 0.9em;
    font-weight: 700;
}

.cart-modal-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.1em;
    font-weight: 600;
}

.cart-total strong {
    color: var(--orange);
    font-size: 1.25em;
    font-weight: 800;
}

.cart-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 10px;
    font-size: 0.98em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.cart-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cart-btn-primary {
    background: var(--btn-gradient);
    color: #fff;
    box-shadow: var(--btn-glow);
}

.cart-btn-primary:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(115, 80, 234, 0.5);
}

.cart-btn-secondary {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    margin-bottom: 0;
}

.cart-btn-secondary:hover {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}

.add-cart-button {
    flex: 1;
    padding: 13px 18px;
    border: 1px solid rgba(255, 123, 0, 0.45);
    border-radius: var(--radius-sm);
    background: rgba(255, 123, 0, 0.08);
    color: var(--orange);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    font-family: inherit;
    font-size: 0.95em;
    min-width: 0;
    backdrop-filter: var(--glass-soft);
    -webkit-backdrop-filter: var(--glass-soft);
}

.product-card .add-cart-button {
    width: 46px;
    min-width: 46px;
    height: 46px;
    flex: 0 0 46px;
    padding: 0;
    color: rgb(var(--product-accent, 255, 123, 0));
    font-size: 1.05em;
    background: rgba(var(--product-accent, 255, 123, 0), 0.075);
    border-color: rgba(var(--product-accent, 255, 123, 0), 0.38);
    border-radius: 11px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.product-card .add-cart-button:hover {
    color: #fff;
    background: rgba(var(--product-accent, 255, 123, 0), 0.75);
    border-color: rgba(var(--product-accent, 255, 123, 0), 0.9);
    box-shadow: 0 9px 24px rgba(var(--product-accent, 255, 123, 0), 0.28);
    transform: translateY(-3px) scale(1.04);
}

.product-card .add-cart-button.added {
    background: rgba(16, 185, 129, 0.9);
    border-color: var(--green);
    box-shadow: 0 9px 24px rgba(16, 185, 129, 0.25);
}

.add-cart-button:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    box-shadow: 0 6px 20px rgba(255, 123, 0, 0.35);
    transform: translateY(-2px);
}

.add-cart-button.added {
    background: rgba(16, 185, 129, 0.9);
    border-color: var(--green);
    color: #fff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

@media (max-width: 768px) {
    .cart-icon {
        width: 48px;
        height: 48px;
    }

    .cart-icon svg {
        width: 22px;
        height: 22px;
    }

    .cart-modal {
        width: calc(100vw - 24px);
        max-height: 90vh;
    }

    .cart-modal-header,
    .cart-modal-footer {
        padding: 16px;
    }

    .cart-modal-body {
        padding: 12px;
    }

    .product-controls {
        flex-wrap: wrap;
    }

    .add-cart-button,
    .buy-button {
        flex: 1 1 45%;
    }
}

@media (max-width: 520px) {
    .product-card .add-cart-button {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
    }

    .cart-modal {
        top: 50%;
        bottom: auto;
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
    }
}

/* Cart moved into the brand menu */
#cartIcon {
    display: none;
}

.cart-menu-link .cart-menu-badge {
    margin-left: auto;
    background: linear-gradient(135deg, var(--orange), #cc6200);
    color: #fff;
    font-size: 0.72em;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Premium cart sheet */
.cart-modal-backdrop {
    background:
        radial-gradient(circle at 50% 42%, rgba(124, 92, 255, 0.16), transparent 38%),
        rgba(4, 3, 12, 0.76);
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    animation: cartBackdropIn 0.24s ease both;
}

.cart-modal {
    width: min(520px, calc(100vw - 28px));
    max-height: min(760px, calc(100dvh - 32px));
    background:
        linear-gradient(145deg, rgba(27, 23, 55, 0.96), rgba(10, 8, 25, 0.97)),
        var(--card);
    border: 1px solid rgba(181, 164, 255, 0.2);
    border-radius: 26px;
    box-shadow:
        0 34px 100px rgba(0, 0, 0, 0.68),
        0 0 50px rgba(103, 80, 234, 0.17),
        inset 0 1px rgba(255, 255, 255, 0.07);
    animation: cartModalIn 0.34s cubic-bezier(0.2, 0.78, 0.24, 1) both;
}

.cart-modal::before {
    height: 1px;
    background: linear-gradient(90deg, transparent, #8b7cff 28%, #d8c5ff 50%, #5d8dff 72%, transparent);
    opacity: 1;
}

.cart-modal::after {
    content: '';
    position: absolute;
    top: -130px;
    left: 50%;
    width: 320px;
    height: 210px;
    border-radius: 50%;
    background: rgba(124, 92, 255, 0.16);
    filter: blur(55px);
    transform: translateX(-50%);
    pointer-events: none;
}

.cart-modal-header {
    position: relative;
    z-index: 1;
    padding: 22px 24px 18px;
    border-bottom-color: rgba(255, 255, 255, 0.075);
}

.cart-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-modal-title > span:last-child {
    display: flex;
    flex-direction: column;
}

.cart-modal-title small {
    color: #a9a1c4;
    font-size: 0.68em;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.cart-modal-header h3 {
    margin-top: 3px;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.3em;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.cart-modal-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    font-size: 1.15em;
    background: linear-gradient(145deg, rgba(124, 92, 255, 0.22), rgba(53, 88, 242, 0.1));
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(85, 66, 208, 0.17);
}

.cart-close {
    width: 38px;
    height: 38px;
    color: #b7b0cb;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}

.cart-close:hover {
    color: #fff;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.25);
    transform: rotate(5deg) scale(1.04);
}

.cart-modal-body {
    position: relative;
    z-index: 1;
    padding: 16px 18px;
}

.cart-list {
    gap: 11px;
}

.cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
    border-color: rgba(255, 255, 255, 0.085);
    border-radius: 16px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.cart-item:hover {
    border-color: rgba(149, 126, 255, 0.34);
    background: linear-gradient(120deg, rgba(124, 92, 255, 0.12), rgba(255, 255, 255, 0.035));
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.19), inset 0 1px rgba(255, 255, 255, 0.05);
}

.cart-item-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #c8b8ff;
    font-size: 1.2em;
    background: linear-gradient(145deg, rgba(124, 92, 255, 0.22), rgba(53, 88, 242, 0.08));
    border: 1px solid rgba(167, 139, 250, 0.24);
    border-radius: 13px;
}

.cart-item-name {
    font-size: 0.96em;
    font-weight: 750;
}

.cart-item-meta {
    overflow: hidden;
    color: #9f98b7;
    font-size: 0.74em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-price {
    color: #d8ccff;
    font-size: 0.82em;
    font-weight: 800;
}

.cart-item-controls {
    align-self: center;
    gap: 5px;
    padding: 4px;
    background: rgba(4, 3, 13, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 11px;
}

.cart-qty-btn,
.cart-remove {
    width: 27px;
    height: 27px;
    background: rgba(255, 255, 255, 0.04);
    border-color: transparent;
    border-radius: 8px;
}

.cart-qty-btn:hover {
    color: #fff;
    background: rgba(124, 92, 255, 0.25);
    border-color: rgba(167, 139, 250, 0.24);
}

.cart-remove {
    margin-left: 3px;
}

.cart-qty {
    min-width: 22px;
    color: #fff;
    font-size: 0.84em;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed rgba(167, 139, 250, 0.2);
    border-radius: 18px;
}

.cart-empty > span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    font-size: 1.8em;
    background: rgba(124, 92, 255, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.16);
    border-radius: 20px;
    filter: grayscale(0.15);
}

.cart-empty strong {
    color: #eeeaff;
    font-size: 1em;
}

.cart-empty small {
    margin-top: 4px;
    color: #8f88a6;
}

.cart-modal-footer {
    position: relative;
    z-index: 1;
    padding: 18px 24px 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.045));
    border-top-color: rgba(255, 255, 255, 0.075);
}

.cart-total {
    margin-bottom: 15px;
}

.cart-total > span {
    display: flex;
    flex-direction: column;
    color: #f2efff;
    font-size: 0.9em;
    font-weight: 700;
}

.cart-total small {
    margin-bottom: 2px;
    color: #9790ad;
    font-size: 0.68em;
    font-weight: 600;
}

.cart-total strong {
    color: #fff;
    font-size: 1.42em;
    letter-spacing: -0.035em;
    text-shadow: 0 0 22px rgba(167, 139, 250, 0.34);
}

.cart-btn-primary {
    min-height: 50px;
    padding: 14px 17px;
    justify-content: space-between;
    background: linear-gradient(100deg, #4338ca 0%, #7554e9 52%, #9b73f2 100%);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(92, 67, 213, 0.3), inset 0 1px rgba(255, 255, 255, 0.16);
}

.cart-btn-primary b {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    font-size: 1.1em;
    background: rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    transition: transform 0.22s ease;
}

.cart-btn-primary:hover:not(:disabled) b {
    transform: translateX(3px);
}

.cart-btn-secondary {
    padding: 10px;
    color: #8f88a6;
    font-size: 0.78em;
    border: 0;
}

.cart-btn-secondary:hover:not(:disabled) {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.07);
}

.cart-btn-secondary:disabled {
    opacity: 0.28;
}

body.cart-open {
    overflow: hidden;
}

@keyframes cartBackdropIn {
    from { opacity: 0; }
}

@keyframes cartModalIn {
    from { opacity: 0; transform: translate(-50%, -47%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 520px) {
    .cart-modal {
        border-radius: 22px;
    }

    .cart-modal-header {
        padding: 17px 16px 14px;
    }

    .cart-modal-body {
        padding: 12px;
    }

    .cart-modal-footer {
        padding: 15px 16px 17px;
    }

    .cart-item {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .cart-item-icon {
        width: 38px;
        height: 38px;
    }

    .cart-item-controls {
        grid-column: 2;
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-modal,
    .cart-modal-backdrop {
        animation: none;
    }
}

/* Cart checkout */
.swal2-popup.cb-checkout-popup {
    width: min(580px, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 0 !important;
    background:
        radial-gradient(circle at 50% -10%, rgba(124, 92, 255, 0.24), transparent 38%),
        linear-gradient(145deg, rgba(25, 21, 51, 0.98), rgba(9, 8, 23, 0.99)) !important;
    border: 1px solid rgba(181, 164, 255, 0.2) !important;
    border-radius: 26px !important;
    box-shadow: 0 36px 110px rgba(0, 0, 0, 0.7), 0 0 50px rgba(103, 80, 234, 0.16) !important;
}

.swal2-title.cb-checkout-title {
    padding: 24px 26px 0 !important;
    font-family: 'Montserrat', 'Inter', sans-serif !important;
    font-size: 1.45em !important;
    font-weight: 900 !important;
    letter-spacing: -0.025em;
    text-align: left !important;
}

.swal2-html-container.cb-checkout-content {
    margin: 0 !important;
    padding: 0 26px !important;
    overflow: visible !important;
}

.cb-checkout-head {
    margin: 5px 0 18px;
}

.cb-checkout-head p {
    margin-top: 7px;
    color: #a29bb9;
    font-size: 0.82em;
}

.cb-checkout-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    color: #86efac;
    font-size: 0.63em;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 999px;
}

.cb-checkout-secure::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 9px rgba(34, 197, 94, 0.7);
}

.cb-checkout-order {
    overflow: hidden;
    margin-bottom: 19px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 17px;
}

.cb-checkout-order-title,
.cb-checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
}

.cb-checkout-order-title {
    color: #c8c2dc;
    font-size: 0.73em;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.cb-checkout-order-title small {
    padding: 3px 7px;
    color: #c4b5fd;
    background: rgba(124, 92, 255, 0.12);
    border-radius: 999px;
}

.cb-checkout-items {
    max-height: 164px;
    overflow-y: auto;
    padding: 5px 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 139, 250, 0.3) transparent;
}

.cb-checkout-item {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.cb-checkout-item:last-child {
    border-bottom: 0;
}

.cb-checkout-item-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    color: #c4b5fd;
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.16);
    border-radius: 9px;
}

.cb-checkout-item-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.cb-checkout-item-copy strong {
    overflow: hidden;
    color: #f5f3ff;
    font-size: 0.78em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cb-checkout-item-copy small {
    color: #9189a8;
    font-size: 0.65em;
}

.cb-checkout-item > b {
    color: #d8ccff;
    font-size: 0.76em;
    white-space: nowrap;
}

.cb-checkout-total {
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.08), rgba(53, 88, 242, 0.08));
    border-top: 1px solid rgba(167, 139, 250, 0.13);
}

.cb-checkout-total span {
    color: #aaa3bd;
    font-size: 0.75em;
    font-weight: 700;
}

.cb-checkout-total strong {
    color: #fff;
    font-size: 1.12em;
    letter-spacing: -0.025em;
    text-shadow: 0 0 18px rgba(167, 139, 250, 0.33);
}

.cb-checkout-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cb-checkout-field {
    display: block;
    min-width: 0;
}

.cb-checkout-field > span:first-child {
    display: flex;
    justify-content: space-between;
    min-height: 19px;
    margin: 0 2px 6px;
    color: #e9e5f5;
    font-size: 0.72em;
    font-weight: 750;
}

.cb-checkout-field > span:first-child em {
    color: #f472b6;
    font-style: normal;
}

.cb-checkout-field > span:first-child small {
    color: #817a97;
    font-size: 0.82em;
    font-weight: 500;
}

.cb-checkout-field-wide {
    grid-column: 1 / -1;
}

.cb-checkout-input-wrap {
    position: relative;
    display: block;
}

.cb-checkout-input-wrap i {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 2;
    color: #9f95ba;
    font-size: 0.85em;
    font-style: normal;
    transform: translateY(-50%);
    pointer-events: none;
}

.cb-checkout-popup .cb-checkout-input-wrap .swal2-input {
    width: 100% !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 12px 0 38px !important;
    color: #fff !important;
    font-size: 0.8em !important;
    background: rgba(255, 255, 255, 0.045) !important;
    border: 1px solid rgba(255, 255, 255, 0.085) !important;
    border-radius: 11px !important;
}

.cb-checkout-popup .cb-checkout-input-wrap .swal2-input:focus {
    background: rgba(124, 92, 255, 0.075) !important;
    border-color: rgba(151, 126, 255, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.11) !important;
}

.cb-checkout-note {
    margin: 15px 0 0;
    color: #77708d;
    font-size: 0.66em;
    text-align: center;
}

.swal2-actions.cb-checkout-actions {
    display: grid !important;
    grid-template-columns: 1fr 1.7fr;
    width: 100% !important;
    margin: 19px 0 0 !important;
    padding: 17px 26px 22px;
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.cb-checkout-actions .swal2-styled {
    width: 100%;
    min-height: 46px;
    margin: 0 !important;
    border-radius: 12px !important;
}

.cb-checkout-actions .cb-checkout-confirm {
    grid-column: 2;
    grid-row: 1;
    background: linear-gradient(100deg, #4338ca, #7554e9 54%, #9b73f2) !important;
    box-shadow: 0 9px 26px rgba(92, 67, 213, 0.3) !important;
}

.cb-checkout-actions .cb-checkout-cancel {
    grid-column: 1;
    grid-row: 1;
    margin-right: 9px !important;
}

.cb-checkout-popup .swal2-validation-message {
    margin: 12px 26px 0 !important;
}

@media (max-width: 560px) {
    .swal2-title.cb-checkout-title {
        padding: 20px 18px 0 !important;
        font-size: 1.25em !important;
    }

    .swal2-html-container.cb-checkout-content {
        padding: 0 18px !important;
    }

    .cb-checkout-fields {
        grid-template-columns: 1fr;
    }

    .cb-checkout-field-wide {
        grid-column: auto;
    }

    .swal2-actions.cb-checkout-actions {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 18px 18px;
    }

    .cb-checkout-actions .cb-checkout-confirm,
    .cb-checkout-actions .cb-checkout-cancel {
        grid-column: 1;
        margin: 0 !important;
    }

    .cb-checkout-actions .cb-checkout-confirm {
        grid-row: 1;
    }

    .cb-checkout-actions .cb-checkout-cancel {
        grid-row: 2;
    }
}
