/* ============================================
   AMOUNT SECTION - Unified Gradient Background
   ============================================ */

.amount-gradient-bg {
    /* Solid fallback - separate property, never overwritten by invalid gradient */
    background-color: var(--primary-color) !important;
    /* Gradient overlay - if color-mix() unsupported, this is ignored and background-color shows */
    background-image: linear-gradient(180deg, 
        var(--primary-color) 0%, 
        color-mix(in srgb, var(--primary-color), black 20%) 100%) !important;
    border-radius: 5px 5px 0 0;
    padding-top: 20px;
    /* Soft diffused shadow - extends downward to dissolve the hard edge */
    box-shadow: 0 8px 32px -8px rgba(0,0,0,.12), 0 4px 16px -4px rgba(0,0,0,.08);
}

/* Mobile: Remove top border radius for edge-to-edge look */
@media (max-width: 767px) {
    .amount-gradient-bg {
        border-radius: 0;
    }
}

.amount-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px 20px;
}

.amount-page-title {
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    padding: 0;
    text-align: left;
}

.amount-login-link {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.amount-login-link a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.amount-login-link a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .amount-login-link {
        display: none;
    }
}

/* Amount input and subtitle text shadows */
.amount-gradient-bg .money-input {
    text-shadow: 0 2px 4px rgba(0,0,0,.15), 0 4px 12px rgba(0,0,0,.1);
}

.amount-gradient-bg .amount-title {
    text-shadow: 0 2px 4px rgba(0,0,0,.15), 0 4px 12px rgba(0,0,0,.1);
}

/* One Time / Recurring toggle polish */
.g24-toggle-container {
    box-shadow: 0 2px 8px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
}

/* ============================================
   OR DIVIDER - Guest Wallet Section
   ============================================ */

.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px auto;
    max-width: 300px;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0,0,0,.12);
}

.or-divider span {
    padding: 0 16px;
    color: #86868b;
    font-size: 13px;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: .02em;
}

/* Social Pay with Saved Payment Method (uses guest-wallet-accordion styles) */
.social-pay-saved-section {
    max-width: 500px;
    margin: 20px auto 0;
}

.social-pay-saved-section .guest-wallet-accordion {
    width: calc(100% - 20px);
    margin: 0 auto;
}

/* Guest wallet accordion container */
.guest-wallet-accordion-container {
    max-width: 500px;
    margin: 0 auto;
}

.guest-wallet-accordion {
    width: calc(100% - 20px);
    margin: 0 auto;
}

/* Fund selector - dashed border style (no heavy bg) */
#fund-container.g24-primary-color-bg,
#multi-line-funds-desktop.g24-primary-color-bg {
    background: transparent !important;
    border: 2px dashed rgba(var(--primary-color-rgb), .35);
    overflow: hidden;
}

/* Fund buttons - adjust for light background */
#fund-container .bg-white\/10,
#multi-line-funds-desktop .bg-white\/10 {
    background: rgba(var(--primary-color-rgb), .08) !important;
}

#fund-container .bg-white\/10:hover,
#multi-line-funds-desktop .bg-white\/10:hover {
    background: rgba(var(--primary-color-rgb), .12) !important;
}

/* Multi-fund X button - no background */
#multi-line-funds-desktop button.bg-white\/10.rounded-l-none {
    background: transparent !important;
}

#multi-line-funds-desktop button.bg-white\/10.rounded-l-none:hover {
    background: rgba(var(--primary-color-rgb), .08) !important;
}

/* Vertical line - match border color for light theme visibility */
#fund-container .bg-white\/20 {
    background: rgba(var(--primary-color-rgb), .35) !important;
}

/* Mobile Add Fund Button - matches premium-add-payment-btn style (mobile only) */
@media (max-width: 639px) {
    .mobile-add-fund-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 22px;
        background: transparent;
        border: none;
        border-radius: 14px;
        color: var(--primary-color);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        position: relative;
        transition: all .3s ease;
        width: 100%;
    }

    .mobile-add-fund-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        border: 2px dashed rgba(var(--primary-color-rgb), .25);
        border-radius: 14px;
        transition: all .3s ease;
    }

    .mobile-add-fund-btn::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(var(--primary-color-rgb), .04);
        border-radius: 14px;
        opacity: 0;
        transition: opacity .3s ease;
    }

    .mobile-add-fund-btn:hover {
        color: var(--primary-color);
        transform: translateY(-1px);
    }

    .mobile-add-fund-btn:hover::before {
        border-color: var(--primary-color);
        border-style: solid;
    }

    .mobile-add-fund-btn:hover::after {
        opacity: 1;
    }

    .mobile-add-fund-btn:active {
        transform: translateY(0) scale(.99);
    }

    .mobile-add-fund-btn .btn-icon {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: rgba(var(--primary-color-rgb), .1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all .3s ease;
        position: relative;
        z-index: 1;
    }

    .mobile-add-fund-btn:hover .btn-icon {
        background: var(--primary-color);
        color: #fff;
        transform: rotate(90deg);
    }

    .mobile-add-fund-btn:hover .btn-icon svg {
        stroke: #fff !important;
    }

    .mobile-add-fund-btn .btn-icon svg {
        width: 12px;
        height: 12px;
    }
}

/* Fund button text color for light bg */
#fund-container .text-white,
#multi-line-funds-desktop .text-white {
    color: var(--primary-color) !important;
}

/* X button text color */
#multi-line-funds-desktop .text-white\/60 {
    color: rgba(var(--primary-color-rgb), .5) !important;
}

#multi-line-funds-desktop .text-white\/60:hover {
    color: var(--primary-color) !important;
}

/* Fund button icons */
#fund-container svg,
#multi-line-funds-desktop svg {
    color: var(--primary-color);
    stroke: var(--primary-color);
}

/* Premium add button hover - icon turns white */
#fund-container .premium-add-payment-btn:hover .btn-icon svg,
#multi-line-funds-desktop .premium-add-payment-btn:hover .btn-icon svg {
    stroke: #fff;
}

/* ==========================================================================
   Fund Action FAB & Popover Menu
   ========================================================================== */

/* FAB Button - Bottom-right, white with dashed border */
.fund-action-fab {
    position: absolute;
    bottom: -17px;
    right: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 2px dashed rgba(var(--primary-color-rgb), 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Hide FAB when any modal/dialog is open */
body.mdc-dialog-scroll-lock .fund-action-fab,
.mdc-dialog--open ~ * .fund-action-fab {
    visibility: hidden;
    pointer-events: none;
}

.fund-action-fab:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    border-style: solid;
}

.fund-action-fab:hover svg {
    stroke: #fff !important;
    transform: rotate(90deg);
}

.fund-action-fab:active {
    transform: scale(0.95);
}

.fund-action-fab svg {
    width: 14px;
    height: 14px;
    stroke: var(--primary-color);
    stroke-width: 2.5;
    transition: all 0.2s ease;
}

.fund-action-fab.is-open {
    background: var(--primary-color);
    border-color: var(--primary-color);
    border-style: solid;
}

.fund-action-fab.is-open svg {
    stroke: #fff !important;
    transform: rotate(45deg);
}

/* Popover Menu - Apple-style */
.fund-action-popover {
    position: fixed;
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
    padding: 4px;
    z-index: 500; /* Below modals (typically 1000+) but above form elements */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96) translateY(6px);
    transform-origin: bottom right;
    transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1), visibility 0.15s ease;
    pointer-events: none;
}

/* Hide popover when any modal/dialog is open */
body.mdc-dialog-scroll-lock .fund-action-popover {
    display: none !important;
}

.fund-action-popover.is-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* Menu items - theme colors with hover */
.fund-action-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.12s ease, color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.fund-action-menu-item:hover {
    background: rgba(var(--primary-color-rgb), 0.08);
}

.fund-action-menu-item:active {
    background: rgba(var(--primary-color-rgb), 0.12);
}

.fund-action-menu-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color);
    stroke-width: 1.75;
    flex-shrink: 0;
}

/* Backdrop for click-outside */
.fund-action-backdrop {
    position: fixed;
    inset: 0;
    z-index: 499; /* Must be below popover (500) */
}

/* Container needs relative positioning and visible overflow */
#fund-container,
#multi-line-funds-desktop,
.fund-btn-group,
.fund-inline-trigger,
.fund-row,
.fund-action-container {
    position: relative;
    overflow: visible !important;
}

/* Mobile FAB needs space - add margin to container */
@media (max-width: 639px) {
    #fund-container {
        margin-bottom: 20px;
    }
}


/* Hide inline trigger when any modal/dialog is open */
body.mdc-dialog-scroll-lock .fund-inline-trigger {
    visibility: hidden;
    pointer-events: none;
}

/* Inline trigger button (desktop single-line "+") - add popover trigger styles */
.fund-inline-trigger {
    position: relative;
}

/* ============================================ */

.crypto-list{
    max-height: 300px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 5px;
    background: white;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.05); */
}

.crypto-list-container{
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 8px;
    background: white;
}

.crypto-list-container::-webkit-scrollbar {
    width: 8px;
}
.crypto-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.crypto-list-container::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}
.crypto-list-container::-webkit-scrollbar-thumb:hover {
    background: #888;
}
.crypto-list-row {
    border-bottom: 1px solid #f0f0f0;
}
.crypto-list-row:last-child {
    border-bottom: none;
}

.crypto-list-row {
    overflow: auto;
    width: 100%;
    line-height: 50px;
    min-height: 50px;
    padding-left: 5px;
    padding-right: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.crypto-list-row:hover, .crypto-list-row:active {
    background-color: rgba(0, 0, 0, 0.05);
}

.crypto-list-row.active{
    /* background-color: rgba(0, 0, 0, 0.05); */
    background-color: #f0f7ff;
}

.secure-card-logo{
    color:var(--primary-color);
}

.progress-border.progress-border-99 .secure-card-logo{
    color:#FFFFFF;
}

.placeholder-white::placeholder{
    color: #FFFFFF;
}

.s-pay-container{
    min-height: 70px;
    margin:auto;
    max-width: 420px;
    padding-left:20px;
    padding-right:20px;
}

.s-pay-container .applePayButton{
    margin-bottom: 8px;
}

apple-pay-button {
    --apple-pay-button-height: 40px!important;
}


.s-pay-container .CollectJSGooglePayIFrame{
    height: 70px;
}

body.giving-widget .giving-widget-amounts{
    overflow: auto;
    margin:0 10px;
    padding:10px 0;
}

body.giving-widget .giving-widget-amounts .active{
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color:white;
    border-radius: 12px!important;
}

.alt-btn {
    border-radius: 12px!important;
}

.alt-btn:hover,
.alt-btn:focus,
.alt-btn:active {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1)!important;
}

body.giving-widget .other-amount{
    margin:0 10px;
}

body.giving-widget .fund-container{
    padding-top:0!important;
    /*margin-bottom: 20px;*/
}

body.giving-widget .giving-amount-label{
    font-weight: bold;
    line-height: 30px;
    padding-left:5px;
}

body.giving-widget .g-page-progress-bar{
    margin-left:15px;
    margin-right:15px;
}

body.giving-widget .giving-widget-header{
    margin-top:-40px;
    padding:0 10px;
    text-align: center;
}

body.giving-widget .giving-widget-footer{
    padding:0 10px 20px 10px;
}

body.giving-widget .giving-widget-header h1,
body.giving-widget .giving-widget-header h2, 
body.giving-widget .giving-widget-header h3,
body.giving-widget .giving-widget-header h4,
body.giving-widget .giving-widget-header h5,
body.giving-widget .giving-widget-footer h1,
body.giving-widget .giving-widget-footer h2,
body.giving-widget .giving-widget-footer h3, 
body.giving-widget .giving-widget-footer h4,
body.giving-widget .giving-widget-footer h5,
.giving-page-header h1,
.giving-page-header h2,
.giving-page-header h3,
.giving-page-header h4,
.giving-page-header h5,
.giving-page-footer h1,
.giving-page-footer h2,
.giving-page-footer h3,
.giving-page-footer h4,
.giving-page-footer h5 {
    font-size: revert;
    font-weight: revert;
    margin: revert;
    padding: revert;
    line-height: revert;
    margin:10px 0 10px 0;
}

body.giving-widget .giving-widget-header ul,
body.giving-widget .giving-widget-header ol,
body.giving-widget .giving-widget-header li,
body.giving-widget .giving-widget-footer ul,
body.giving-widget .giving-widget-footer ol,
body.giving-widget .giving-widget-footer li,
.giving-page-header ul,
.giving-page-header ol,
.giving-page-header li,
.giving-page-footer ul,
.giving-page-footer ol,
.giving-page-footer li {
    list-style: revert;
    margin: revert;
    padding: revert;
}

body.custom-form .custom-html ul,
body.custom-form .custom-html ol {
    list-style: revert-layer;
    margin: 0 0 1rem 1.25rem;
    padding-left: 1.25rem;
}

body.custom-form .custom-html li {
    list-style: inherit;
    margin: 0.25rem 0;
    white-space: normal;
}

body.custom-form .custom-html li * {
    white-space: normal;
}

body.custom-form .custom-html p {
    white-space: normal;
    margin: 0 0 0.75rem 0;
}

body.custom-form .custom-html p:last-child {
    margin-bottom: 0;
}

body.custom-form .custom-html p span:empty::before {
    content: '\00a0';
}

.giving-page-footer, .giving-widget-header, body.giving-widget .giving-widget-header, body.giving-widget .giving-widget-footer{
    color:#5e5e5e!important;
}

/* Giving Widget Styles */

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.g24-primary-color {
    color: var(--primary-color);
}

.g24-primary-color-bg {
    background-color: var(--primary-color);
}

.g24-bg-split-primary-white {
    background: linear-gradient(to bottom, var(--primary-color) 50%, white 50%);
}

.g24-text-white{
    color: white;
}


/* ==========================================================================
   Donation Type Selector Component
   ========================================================================== */

.frequency-btn-group{
    /*margin-top:-30px;*/
}


.g24-donation-type-selector {
    margin: 0 auto;
    position: relative;
}

.g21-donation-type-selector-wide{
    width:80%!important;
}

/* add media min-width less than 640px */
@media (max-width: 640px) {
    .g21-donation-type-selector-wide {
        width: 90% !important;
    }
}

/* Toggle Container */
.g24-toggle-container {
    display: flex;
    background: #f3f4f6;
    padding: 6px;
    border-radius: 9999px;
    position: relative;
    gap: 4px;
    box-shadow: inset 0 3px 3px -1px rgba(0, 0, 0, 0.2),
    inset 0 2px 8px rgba(0, 0, 0, 0.12);
    width: 100%;
}

/* Sliding background for toggle */
.g24-toggle-container::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: var(--primary-color);
    border-radius: 9999px;
    transition: transform 0.3s ease;
    z-index: 1;
    box-shadow: 0 0 0 2px white,
    0 0 0 4px rgba(var(--primary-color-rgb), 0.5);
}

.g24-toggle-container.recurring::before {
    transform: translateX(calc(100% + 2px));
}

/* Toggle Options */
.g24-toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
    background: transparent;
    height: 48px;
}

.g24-toggle-option svg {
    transition: all 0.2s ease;
}

.g24-toggle-option.active {
    color: white;
}

.g24-toggle-option:not(.active):hover {
    color: #1f2937;
    /*background-color: rgba(0, 0, 0, 0.1);*/
    background-color: rgba(var(--primary-color-rgb),0.1);
}

/* ==========================================================================
   Modal Component
   ========================================================================== */
/* .g24-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.g24-modal.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(4px);
}

.g24-modal > div {
    margin-top: -20vh;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.g24-modal.active > div {
    transform: translateY(0);
} */

/* Frequency Options within Modal */
.g24-frequency-option {
    @apply w-full text-left px-4 py-3 rounded-lg transition-colors
    hover:bg-blue-50 text-gray-700 hover:text-blue-600
    focus:outline-none focus:ring-2 focus:ring-blue-500;
}

.g24-modal .g24-frequency-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.g24-modal .g24-frequency-option:hover {
    background-color: #f3f4f6;
}

/* ==========================================================================
   Tooltip Component
   ========================================================================== */
.g24-tooltip {
    position: fixed;
    pointer-events: none;
    background-color: #1a1f36;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 280px;
    text-align: center;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.g24-tooltip-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: inherit;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%) rotate(45deg);
}

/* ==========================================================================
   Fund List Component
   ========================================================================== */

.fund-btn-group .fund-rounded-r-none{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.g24-fund-list {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 24px auto;
    background: var(--primary-color);
    border-radius: 22px;
    padding: 16px;
    gap: 1px;
}

/* Fund Input Row */
.g24-fund-input-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--primary-color);
}

.g24-fund-input-row:not(:first-child) {
    margin-top: 10px;
}

/* Fund Row Header */
.g24-fund-row-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Fund Select */
.g24-fund-select {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 16px;
    color: white;
    transition: background-color 0.2s;
    flex: 1;
}

.g24-fund-select .icon {
    opacity: 0.7;
}

/* Fund Inputs */
.g24-fund-row-inputs {
    display: flex;
    gap: 8px;
}

.g24-fund-amount {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 16px;
    color: white;
    width: 160px;
}

.g24-fund-amount input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 100%;
    padding: 0 8px;
    font-size: 16px;
}

.g24-fund-description {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 16px;
    color: white;
}

.g24-fund-description input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 100%;
    font-size: 16px;
}

.g24-fund-description input::placeholder,
.g24-fund-amount input::placeholder {
    color: rgba(var(--primary-color-rgb), 0.4);
}

/* Fund Actions */
.g24-remove-fund {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    transition: color 0.2s;
}

.g24-add-fund {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    padding: 12px;
    border-radius: 16px;
    margin-top: 8px;
    transition: background-color 0.2s;
}

.g24-add-fund:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Add Fund Button States */
.g24-add-fund-btn {
    display: none!important;
}

.g24-fund-row:last-child .g24-add-fund-btn {
    display: flex!important;
}

.bg-white\/10 {
    background-color: rgb(255 255 255 / 0.1);
}

.bg-white\/15 {
    background-color: rgb(255 255 255 / 0.15);
}

.bg-white\/20 {
    background-color: rgb(255 255 255 / 0.2);
}

.hover\:bg-white\/15:hover {
    background-color: rgb(255 255 255 / 0.15);
}

.hover\:bg-white\/10:hover {
    background-color: rgb(255 255 255 / 0.1);
}

.rounded-\[22px\] {
    border-radius: 22px;
}

.rounded-\[18px\] {
    border-radius: 18px;
}

.text-white\/60 {
    color: rgb(255 255 255 / 0.6);
}

.text-white\/50 {
    color: rgb(255 255 255 / 0.5);
}

.bg-white\/5 {
    background-color: rgb(255 255 255 / 0.05);
}

.\[appearance\:textfield\] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.\[\&\::-webkit-outer-spin-button\]\:appearance-none::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
}

.\[\&\::-webkit-inner-spin-button\]\:appearance-none::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
}

.border-white\/30 {
    border-color: rgb(255 255 255 / 0.3);
}

.placeholder-white\/50::placeholder {
    color: rgb(255 255 255 / 0.5);
}



/* ==========================================================================
   Mobile Specific Styles
   ========================================================================== */

@media (min-width:640px) {

    .sm\:rounded-l-\[18px\] {
        border-radius: 18px 0 0 18px;
    }

    .sm\:rounded-r-\[18px\] {
        border-radius: 0 18px 18px 0;
    }
    .sm\:rounded-\[18px\] {
        border-radius: 18px;
    }
    .sm\:w-\[18px\] {
        width: 18px;
    }
    .sm\:h-\[18px\] {
        height: 18px;
    }

    /* Fund button max-width constraint - only on desktop when sub-funds exist */
    .fund-btn-max-width-sm {
        max-width: 250px;
    }
}

@media (max-width: 640px) {

    .fund-btn-group .fund-rounded-r-none{
        border-top-right-radius: 18px;
        border-bottom-right-radius: 18px;
    }

    .g24-tooltip {
        display: none;
    }

    .g24-mobile-fund-hierarchy {
        position: relative;
        padding-left: 24px;
        display: flex;
        flex-direction: column;
        gap: 1px;
        margin-top: 1px;
    }

    .g24-mobile-fund-hierarchy::before {
        content: '';
        position: absolute;
        left: 12px;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: rgba(255, 255, 255, 0.2);
    }

    .g24-mobile-fund-item {
        position: relative;
        margin-bottom: 1px;
    }

    .g24-mobile-primary-button {
        height: 56px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .g24-mobile-secondary-button {
        height: 48px;
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

/* ==========================================================================
   Animation Styles
   ========================================================================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.g24-slide-down {
    animation: slideDown 0.3s ease-out;
}

/* ==========================================================================
   Utility Classes & Overrides
   ========================================================================== */
.g24-info-icon,
.g24-info-icons {
    display: none;
}

/* Remove number input spinners */
.g24-mobile-fund-hierarchy input[type="number"] {
    -moz-appearance: textfield;
}

.g24-mobile-fund-hierarchy input[type="number"]::-webkit-outer-spin-button,
.g24-mobile-fund-hierarchy input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ==========================================================================
   Tell Us About Yourself Styles
   ========================================================================== */

/* Variables */
:root {
    --g24-tell-us-background: #fafafa;
    --g24-tell-us-muted: #fafafa;
    --g24-tell-us-input-text: #94a3b8;
    --g24-tell-us-label-text: #94a3b8;
    --g24-tell-us-border-color: #f1f5f9;

}

/* Base Styles */


.g24-tell-us-about-yourself {
    background: #fff !important;
}

/* Form Reset */
.g24-tell-us-form {
    /* Override Tailwind forms plugin defaults */
    all: unset;
    width: 100%;
}

/* Input Container Styles */
.g24-tell-us-input-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Input Group Styles */
.g24-tell-us-input-group {
    position: relative;
    padding: 16px 24px;
}

.g24-tell-us-input-group:first-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.g24-tell-us-label {
    display: block;
    font-size: 16px;
    color: var(--g24-tell-us-label-text);
    margin-bottom: 4px;
    font-weight: 400;
}

.g24-tell-us-input {
    width: 100%;
    border: none !important;
    padding: 0 !important;
    font-size: 16px;
    /* color: var(--g24-tell-us-input-text); */
    background: transparent !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.g24-tell-us-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    ring: none !important;
}

.g24-tell-us-input::placeholder {
    color: var(--g24-tell-us-input-text);
    opacity: 0.7;
}

/* Phone Input Wrapper */
.g24-tell-us-phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Submit Button Styles */
.g24-tell-us-submit-button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    width: 56px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none !important;
    padding: 0 !important;
    overflow: hidden;
}

/* Ensure only one SVG icon is visible */
.g24-tell-us-submit-button svg {
    flex-shrink: 0;
}

.g24-tell-us-submit-button svg:not(:first-child) {
    display: none !important;
}

.g24-tell-us-submit-button:hover {
    background-color: color-mix(in srgb, var(--primary-color) 85%, white);
}

.g24-tell-us-submit-button i {
    width: 18px;
    height: 18px;
}

/* Utility Classes */
.g24-tell-us-text-primary {
    color: var(--primary-color);
}

/* Animations */
.g24-tell-us-sparkles-container {
    position: relative;
    width: 32px;
    height: 32px;
}

/* Add new animate class to trigger animations */
.g24-tell-us-sparkles-container.animate {
    animation: g24TellUsScaleIn 0.3s ease-out;
}

/* Update main sparkle icon */
.g24-tell-us-sparkles-container i {
    display: block;
    position: relative;
    color: var(--primary-color);
}

.g24-tell-us-sparkles-container.animate i {
    animation: g24TellUsFireworkCenter 1.5s ease-in-out 2;
}

/* Update particle animations to only trigger with animate class */
.g24-tell-us-sparkles-container.animate::before {
    content: '★';
    animation: g24TellUsFireworkLeft 1.5s ease-out 2;
}

.g24-tell-us-sparkles-container.animate::after {
    content: '✦';
    animation: g24TellUsFireworkRight 1.5s ease-out 2;
}

.g24-tell-us-sparkles-container.animate i::before {
    content: '✧';
    animation: g24TellUsFireworkTop 1.5s ease-out 2;
}

.g24-tell-us-sparkles-container.animate i::after {
    content: '⋆';
    animation: g24TellUsFireworkBottom 1.5s ease-out 2;
}

.g24-tell-us-sparkles-container.animate span::before {
    content: '✦';
    animation: g24TellUsFireworkTopLeft 1.5s ease-out 2;
}

.g24-tell-us-sparkles-container.animate span::after {
    content: '✧';
    animation: g24TellUsFireworkTopRight 1.5s ease-out 2;
}

/* Base styles for all particles */
.g24-tell-us-sparkles-container::before,
.g24-tell-us-sparkles-container::after,
.g24-tell-us-sparkles-container i::before,
.g24-tell-us-sparkles-container i::after,
.g24-tell-us-sparkles-container span::before,
.g24-tell-us-sparkles-container span::after {
    content: '★';
    position: absolute;
    font-size: 12px;
    color: #6b8cff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

/* Individual particle animations */
.g24-tell-us-sparkles-container::before {
    content: '★';
    animation: g24TellUsFireworkLeft 1.5s ease-out 2;
}

.g24-tell-us-sparkles-container::after {
    content: '✦';
    animation: g24TellUsFireworkRight 1.5s ease-out 2 0.1s;
}

.g24-tell-us-sparkles-container i::before {
    content: '✧';
    animation: g24TellUsFireworkTop 1.5s ease-out 2 0.2s;
}

.g24-tell-us-sparkles-container i::after {
    content: '⋆';
    animation: g24TellUsFireworkBottom 1.5s ease-out 2 0.3s;
}

.g24-tell-us-sparkles-container span::before {
    content: '✦';
    animation: g24TellUsFireworkTopLeft 1.5s ease-out 2 0.15s;
}

.g24-tell-us-sparkles-container span::after {
    content: '✧';
    animation: g24TellUsFireworkTopRight 1.5s ease-out 2 0.25s;
}

/* Keyframes for all directions */
@keyframes g24TellUsFireworkLeft {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    10% { opacity: 1; }
    30% { transform: translate(-200%, -50%) scale(0); opacity: 0; }
    100% { transform: translate(-200%, -50%) scale(0); opacity: 0; }
}

@keyframes g24TellUsFireworkRight {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    10% { opacity: 1; }
    30% { transform: translate(200%, -50%) scale(0); opacity: 0; }
    100% { transform: translate(200%, -50%) scale(0); opacity: 0; }
}

@keyframes g24TellUsFireworkTop {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    10% { opacity: 1; }
    30% { transform: translate(-50%, -200%) scale(0); opacity: 0; }
    100% { transform: translate(-50%, -200%) scale(0); opacity: 0; }
}

@keyframes g24TellUsFireworkBottom {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    10% { opacity: 1; }
    30% { transform: translate(-50%, 200%) scale(0); opacity: 0; }
    100% { transform: translate(-50%, 200%) scale(0); opacity: 0; }
}

@keyframes g24TellUsFireworkTopLeft {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    10% { opacity: 1; }
    30% { transform: translate(-200%, -200%) scale(0); opacity: 0; }
    100% { transform: translate(-200%, -200%) scale(0); opacity: 0; }
}

@keyframes g24TellUsFireworkTopRight {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    10% { opacity: 1; }
    30% { transform: translate(200%, -200%) scale(0); opacity: 0; }
    100% { transform: translate(200%, -200%) scale(0); opacity: 0; }
}

@keyframes g24TellUsFireworkCenter {
    0% { transform: scale(1); opacity: 1; }
    15% { transform: scale(1.2); opacity: 0.9; }
    30% { transform: scale(0.9); opacity: 0.8; }
    45% { transform: scale(1.1); opacity: 0.9; }
    60% { transform: scale(0.9); opacity: 0.8; }
    75% { transform: scale(1.1); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes g24TellUsScaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Remove any duplicate animation assignments */
.g24-tell-us-sparkles-container i::before,
.g24-tell-us-sparkles-container i::after,
.g24-tell-us-sparkles-container span::before,
.g24-tell-us-sparkles-container span::after {
    content: '✧';
    position: absolute;
    font-size: 12px;
    color: #6b8cff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

/* Update glow effect to be lighter */
.g24-tell-us-sparkles-container i::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(107, 140, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: g24TellUsFireworkGlow 1.5s ease-out 2;
}

@keyframes g24TellUsFireworkGlow {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    30% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Verification Code Input Styles */
.g24-verification-code-container {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.g24-code-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
}

input.g24-code-input {
    width: 64px;
    height: 64px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 24px;
    text-align: center;
    background: white;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

input.g24-code-input:focus {
    outline: none;
    border-color: var(--primary-color)!important;
    box-shadow: 0 0 0 1px var(--primary-color)!important;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--primary-color)!important;
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)!important;
    --tw-ring-offset-width: 0px!important;
}

input.g24-code-input.filled {
    border-color: var(--primary-color);
    background-color: #f8fafc;
}

/* Style for the verification code link */
.g24-verification-code-container a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.g24-verification-code-container a:hover {
    color: color-mix(in srgb, var(--primary-color) 85%, white);
}

/* Add these keyframe animations */
@keyframes g24TellUsScaleIn {
    from { 
        transform: scale(0.95);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes g24TellUsFireworkCenter {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    15% { transform: scale(1.3) rotate(15deg); opacity: 0.9; }
    30% { transform: scale(0.8) rotate(-10deg); opacity: 0.8; }
    45% { transform: scale(1.1) rotate(5deg); opacity: 0.9; }
    60% { transform: scale(0.9) rotate(-5deg); opacity: 0.8; }
    75% { transform: scale(1.2) rotate(10deg); opacity: 0.9; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes g24TellUsFirework1 {
    0% {
        transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotate(45deg);
    }
    30% {
        transform: translate(-200%, -200%) scale(0) rotate(90deg);
        opacity: 0;
    }
    100% {
        transform: translate(-200%, -200%) scale(0) rotate(180deg);
        opacity: 0;
    }
}

@keyframes g24TellUsFirework2 {
    0% {
        transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotate(-45deg);
    }
    30% {
        transform: translate(200%, -200%) scale(0) rotate(-90deg);
        opacity: 0;
    }
    100% {
        transform: translate(200%, -200%) scale(0) rotate(-180deg);
        opacity: 0;
    }
}

@keyframes g24TellUsFirework3 {
    0% {
        transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotate(-135deg);
    }
    30% {
        transform: translate(-200%, 200%) scale(0) rotate(-270deg);
        opacity: 0;
    }
    100% {
        transform: translate(-200%, 200%) scale(0) rotate(-360deg);
        opacity: 0;
    }
}

@keyframes g24TellUsFirework4 {
    0% {
        transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotate(135deg);
    }
    30% {
        transform: translate(200%, 200%) scale(0) rotate(270deg);
        opacity: 0;
    }
    100% {
        transform: translate(200%, 200%) scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Add two more particles for side shooting */
.g24-tell-us-sparkles-container i::before,
.g24-tell-us-sparkles-container i::after,
.g24-tell-us-sparkles-container span::before,
.g24-tell-us-sparkles-container span::after {
    content: '✧';
    position: absolute;
    font-size: 12px;
    color: color-mix(in srgb, var(--primary-color) 85%, white);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

/* Update particle animations */
.g24-tell-us-sparkles-container i::before {
    content: '✧';
    animation: g24TellUsFirework3 1.5s ease-out 2 0.2s;
}

.g24-tell-us-sparkles-container i::after {
    content: '⋆';
    animation: g24TellUsFirework4 1.5s ease-out 2 0.3s;
}

/* Add new side-shooting particles */
.g24-tell-us-sparkles-container::after {
    content: '✦';
    animation: g24TellUsFireworkLeft 1.5s ease-out 2 0.15s;
}

.g24-tell-us-sparkles-container::before {
    content: '★';
    animation: g24TellUsFireworkRight 1.5s ease-out 2 0.25s;
}

/* Add new keyframes for horizontal shooting */
@keyframes g24TellUsFireworkLeft {
    0% {
        transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotate(-45deg);
    }
    30% {
        transform: translate(-200%, 0%) scale(0) rotate(-90deg);
        opacity: 0;
    }
    100% {
        transform: translate(-200%, 0%) scale(0) rotate(-180deg);
        opacity: 0;
    }
}

@keyframes g24TellUsFireworkRight {
    0% {
        transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotate(45deg);
    }
    30% {
        transform: translate(200%, 0%) scale(0) rotate(90deg);
        opacity: 0;
    }
    100% {
        transform: translate(200%, 0%) scale(0) rotate(180deg);
        opacity: 0;
    }
}

/* ==========================================================================
   Address Form Styles
   ========================================================================== */

.g24-address-form-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#address-form-container .text-gray-500, #address-form-container input::placeholder {
    color: var(--g24-tell-us-label-text) !important;
}

#address-form-container input[type="checkbox"] {
    color: var(--primary-color);
}
#address-form-container input[type="checkbox"]:focus {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    --tw-ring-color: var(--primary-color);
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

#address-form-container input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    ring: none !important;
}

/* Add styles for the select dropdown */
#address-form-container select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    padding-right: 2rem; /* Increase padding for the dropdown arrow */
    padding-left: 0.5rem; /* Add left padding for text */
    padding-top: 0.25rem; /* Add top padding */
    padding-bottom: 0.25rem; /* Add bottom padding */
    height: auto; /* Allow the height to adjust to content */
    min-height: 2.5rem; /* Set a minimum height */
    line-height: 1.2; /* Adjust line height */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down"><path d="m6 9 6 6 6-6"></path></svg>');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
}

/* Add these styles near the Address Form Styles section */

#org-label br {
    display: none; /* Hide line break by default (desktop) */
}

@media (max-width: 639px) {
    #org-label br {
        display: inline; /* Show line break on mobile */
    }
    #org-label {
        font-size: 14px; /* Slightly smaller font on mobile for better wrapping */
        line-height: 1.4; /* Improve line height for readability */
    }
}

/* Update the flex container for the checkbox and label */
#address-form-container .flex.flex-row.items-center.space-x-3 {
    flex-wrap: wrap; /* Allow items to wrap */
    max-width: 100%; /* Ensure container doesn't overflow */
}

/* Style the label to properly wrap text */
#org-label {
    flex: 1; /* Allow label to take remaining space */
    min-width: 0; /* Allow text to wrap within flex item */
    word-wrap: break-word; /* Enable word wrapping */
    white-space: normal; /* Allow text to wrap */
}

/* Adjust spacing on mobile */
@media (max-width: 639px) {
    #address-form-container .flex.flex-row.items-center.space-x-3 {
        gap: 0.5rem; /* Reduce gap on mobile */
    }
    
    #org-label {
        font-size: 14px; /* Slightly smaller font on mobile */
        line-height: 1.4; /* Improve line height for readability */
    }
}


.g24-regular-placeholder::placeholder {
    color: #5e5e5e;
}

.g24-login-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid #e5e7eb;
}

.g24-login-container .g24-tell-us-submit-button{
    right: -10px;
}

.login-info-container {
    --tw-gradient-from: var(--primary-color);
    --tw-gradient-via: color-mix(in srgb, var(--primary-color) 100%, white);
    --tw-gradient-to: color-mix(in srgb, var(--primary-color) 85%, white);
    background-image:linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to))
}

.fund-picker-list{
    padding:0;
}

.fund-picker-list li{
    border-top:1px solid #efefef;
    padding-top:10px;
    padding-bottom:10px;
}

.g24-code-submit-btn {
    margin: 20px auto;
    background-color: var(--primary-color);
    color: white;
    width: 116px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none !important;
    padding: 0 !important;
}

.g24-code-submit-btn:hover {
    background-color: color-mix(in srgb, var(--primary-color) 85%, white);
}

/* ==========================================================================
   PayPal Wallet Button Styles
   ========================================================================== */
.paypal-wallet-buttons {
    position: relative;
    z-index: 1; /* Keep below modals (z-index > 1000) */
}

/* Ensure PayPal iframe doesn't overlay modals */
.paypal-btn-container iframe {
    z-index: 1 !important;
}

.paypal-acceptance-banner {
    font-size: 13px;
    color: #6b7280;
    padding: 4px 0;
}

.paypal-wallet-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.paypal-btn-container {
    flex: 1;
    min-width: 150px;
    max-width: 250px;
}

/* Mobile: stack buttons */
@media (max-width: 480px) {
    .paypal-wallet-row {
        flex-direction: column;
        align-items: center;
    }
    
    .paypal-btn-container {
        width: 100%;
        max-width: 300px;
    }
}

/* Loading state */
.paypal-loading {
    color: #666;
    font-size: 14px;
}

/* Processing overlay */
.paypal-wallet-buttons.paypal-processing {
    pointer-events: none;
    opacity: 0.7;
}

.paypal-processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.paypal-processing-overlay p {
    color: #333;
    font-size: 14px;
}

/* ============================================
   PREMIUM PAYMENT CARD SYSTEM - Apple-Grade Design
   ============================================ */

/* Wrapper */
.premium-payment-card-wrapper {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

/* Base card container */
.premium-payment-card {
    position: relative;
    width: 306px;
    height: 180px;
    border-radius: 18px;
    overflow: visible;
    cursor: default;
    transform-style: preserve-3d;
    transition: transform .4s cubic-bezier(.23,1,.32,1), box-shadow .4s cubic-bezier(.23,1,.32,1);
}

.premium-payment-card.selectable {
    cursor: pointer;
}

/* Card surface - the main body */
.premium-payment-card .card-surface {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px 24px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    /* Base gradient - inactive state */
    background: linear-gradient(145deg, #e8ecf0 0%, #d1d9e0 50%, #bcc6cf 100%);
    color: #5a6977;
    box-shadow: 
        0 1px 2px rgba(0,0,0,.04),
        0 4px 8px rgba(0,0,0,.04),
        0 8px 16px rgba(0,0,0,.04);
    transition: all .4s cubic-bezier(.23,1,.32,1);
}

/* Active state - premium gradient */
.premium-payment-card.active .card-surface {
    /* Solid fallback - separate property, never overwritten by invalid gradient */
    background-color: var(--primary-color) !important;
    /* Gradient overlay - if color-mix() unsupported, background-color shows */
    background-image: linear-gradient(145deg,
            rgba(255,255,255,.25) 0%, 
            rgba(var(--primary-color-rgb),.92) 35%,
            var(--primary-color) 65%,
            color-mix(in srgb, var(--primary-color-2), black 50%) 100%
        );
    color: #fff;
    box-shadow: 
        0 4px 6px rgba(var(--primary-color-rgb),.15),
        0 10px 20px rgba(var(--primary-color-rgb),.2),
        0 20px 40px rgba(var(--primary-color-rgb),.25),
        0 0 0 1px rgba(255,255,255,.1) inset;
}

/* Hover lift effect */
.premium-payment-card.active:hover {
    transform: translateY(-4px) scale(1.01);
}

.premium-payment-card.active:hover .card-surface {
    box-shadow: 
        0 8px 12px rgba(var(--primary-color-rgb),.18),
        0 16px 32px rgba(var(--primary-color-rgb),.22),
        0 32px 64px rgba(var(--primary-color-rgb),.28),
        0 0 0 1px rgba(255,255,255,.15) inset;
}

/* Glass reflection overlay */
.premium-payment-card .card-glass-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,.35) 0%,
        rgba(255,255,255,.15) 40%,
        rgba(255,255,255,.05) 70%,
        transparent 100%
    );
    border-radius: 20px 20px 100% 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity .4s ease;
}

.premium-payment-card.active .card-glass-reflection {
    opacity: 1;
}

/* Mouse-tracking shadow effect */
.premium-payment-card .card-holographic-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle 150px at var(--shine-x, 50%) var(--shine-y, 50%),
        rgba(var(--primary-color-rgb), .15) 0%,
        rgba(var(--primary-color-rgb), .08) 45%,
        transparent 75%
    );
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    border-radius: 20px;
    transition: opacity .3s ease;
}

.premium-payment-card.active:hover .card-holographic-shimmer {
    opacity: 1;
}

/* Selection badge */
.premium-payment-card .premium-selected-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: linear-gradient(145deg, #34d399 0%, #10b981 50%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 
        0 4px 12px rgba(16,185,129,.4),
        0 0 0 3px rgba(255,255,255,.9);
    animation: badgePop .3s cubic-bezier(.34,1.56,.64,1);
}

.premium-payment-card .premium-selected-badge svg {
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}

@keyframes badgePop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Card header */
.premium-payment-card .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 5;
}

.premium-payment-card .card-header .premium-change-btn { margin-left: auto; }

/* Bank/Institution mark */
.premium-payment-card .card-institution-mark {
    opacity: .6;
    transition: opacity .3s ease;
}

.premium-payment-card.active .card-institution-mark {
    opacity: .85;
}

.premium-payment-card .card-institution-mark svg {
    width: 24px;
    height: 24px;
}

/* Premium change button */
.premium-payment-card .premium-change-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 18px;
    color: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .3px;
    cursor: pointer;
    transition: all .25s cubic-bezier(.23,1,.32,1);
    position: relative;
    z-index: 10;
}

.premium-payment-card .premium-change-btn:hover {
    background: rgba(255,255,255,.35);
    border-color: rgba(255,255,255,.4);
    transform: translateX(2px);
}

.premium-payment-card .premium-change-btn:active {
    transform: translateX(2px) scale(.98);
}

.premium-payment-card .premium-change-btn svg {
    transition: transform .2s ease;
}

.premium-payment-card .premium-change-btn:hover svg {
    transform: translateX(2px);
}

/* Bank name */
.premium-payment-card .card-bank-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.2px;
    line-height: 1.2;
    position: relative;
    z-index: 5;
    transition: text-shadow .3s ease;
}

.premium-payment-card.active .card-bank-name {
    text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Account number */
.premium-payment-card .card-account-number {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    position: relative;
    z-index: 5;
}

.premium-payment-card .account-dots {
    font-size: 18px;
    letter-spacing: 3px;
    opacity: .5;
}

.premium-payment-card .account-last4 {
    font-size: 23px;
    font-weight: 600;
    letter-spacing: 2px;
}

.premium-payment-card.active .account-last4 {
    text-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* Card footer */
.premium-payment-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 5;
}

/* Account type badge */
.premium-payment-card .account-type-badge {
    display: inline-flex;
    padding: 4px 10px;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    opacity: .8;
}

.premium-payment-card:not(.active) .account-type-badge {
    background: rgba(0,0,0,.06);
}

/* ACH indicator */
.premium-payment-card .ach-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: .6;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .5px;
}

.premium-payment-card .ach-indicator svg {
    opacity: .7;
}

/* ============================================
   PREMIUM CREDIT CARD SPECIFIC STYLES
   ============================================ */

/* EMV Chip styling */
.premium-payment-card .card-chip {
    opacity: .85;
    transition: opacity .3s ease;
}

.premium-payment-card .card-chip svg {
    height: 27px;
    width: auto;
}

.premium-payment-card:not(.active) .card-chip {
    opacity: .4;
}

.premium-payment-card:not(.active) .card-chip svg rect {
    fill: rgba(0,0,0,.08);
    stroke: rgba(0,0,0,.15);
}

.premium-payment-card:not(.active) .card-chip svg line {
    stroke: rgba(0,0,0,.1);
}

/* Card number display */
.premium-payment-card .card-number-display {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    position: relative;
    z-index: 5;
    margin: 6px 0;
}

.premium-payment-card .number-dots {
    font-size: 16px;
    letter-spacing: 2px;
    opacity: .5;
}

.premium-payment-card .number-last4 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 3px;
}

.premium-payment-card.active .number-last4 {
    text-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* Card expiry */
.premium-payment-card .card-expiry {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.premium-payment-card .expiry-label {
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .5;
}

.premium-payment-card .expiry-value {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Contactless indicator */
.premium-payment-card .contactless-indicator {
    opacity: .5;
    margin-left: 8px;
}

.premium-payment-card .contactless-indicator svg {
    width: 14px;
    height: 19px;
}

.premium-payment-card.active .contactless-indicator {
    opacity: .7;
}

/* Card network logo */
.premium-payment-card .card-network-logo {
    font-size: 36px;
    line-height: 1;
    opacity: .9;
}

.premium-payment-card:not(.active) .card-network-logo {
    opacity: .5;
}

.premium-payment-card .card-network-logo .pf {
    display: block;
}

/* ============================================
   PREMIUM ADD PAYMENT METHOD BUTTON
   ============================================ */

.premium-add-payment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    background: transparent;
    border: none;
    border-radius: 14px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all .3s cubic-bezier(.23,1,.32,1);
    text-decoration: none;
}

.premium-add-payment-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(var(--primary-color-rgb),.25);
    border-radius: 14px;
    transition: all .3s ease;
}

.premium-add-payment-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(var(--primary-color-rgb),.04);
    border-radius: 14px;
    opacity: 0;
    transition: opacity .3s ease;
}

.premium-add-payment-btn:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
}

.premium-add-payment-btn:hover::before {
    border-color: var(--primary-color);
    border-style: solid;
}

.premium-add-payment-btn:hover::after {
    opacity: 1;
}

.premium-add-payment-btn:active {
    transform: translateY(0) scale(.99);
}

.premium-add-payment-btn .btn-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb),.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    position: relative;
    z-index: 1;
}

.premium-add-payment-btn:hover .btn-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(90deg);
}

.premium-add-payment-btn .btn-icon svg {
    width: 12px;
    height: 12px;
}

/* Premium Cancel Button - matches add payment button style */
.premium-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all .3s cubic-bezier(.23,1,.32,1);
    text-decoration: none;
}

.premium-cancel-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(var(--primary-color-rgb),.25);
    border-radius: 12px;
    transition: all .3s ease;
}

.premium-cancel-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(var(--primary-color-rgb),.04);
    border-radius: 12px;
    opacity: 0;
    transition: opacity .3s ease;
}

.premium-cancel-btn:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
}

.premium-cancel-btn:hover::before {
    border-color: var(--primary-color);
    border-style: solid;
}

.premium-cancel-btn:hover::after {
    opacity: 1;
}

.premium-cancel-btn:active {
    transform: translateY(0) scale(.99);
}

.premium-cancel-btn .btn-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb),.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    position: relative;
    z-index: 1;
}

.premium-cancel-btn:hover .btn-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(90deg);
}

.premium-cancel-btn .btn-icon svg {
    width: 10px;
    height: 10px;
}

/* Mobile responsive adjustments */
@media (max-width: 400px) {
    .premium-payment-card {
        width: 300px;
        height: 180px;
    }
    
    .premium-payment-card .card-surface {
        padding: 20px 22px;
    }
    
    .premium-payment-card .card-bank-name {
        font-size: 18px;
    }
    
    .premium-payment-card .account-last4,
    .premium-payment-card .number-last4 {
        font-size: 20px;
    }
    
    .premium-payment-card .card-network-logo {
        font-size: 34px;
    }
}

/* End Premium Payment Card System */

/* ============================================
   WALLET CAROUSEL - Apple Wallet Style
   ============================================ */

.existing-payment-method-section { display: none !important; }

.wallet-carousel-container { padding: 10px 0 20px; overflow: visible; }

.wallet-header { display: flex; justify-content: space-between; align-items: center; padding: 0 24px 8px; }
.wallet-title { font-size: 18px; font-weight: 600; color: #1a2b3c; }
.wallet-hint { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #8899aa; }

.wallet-carousel { position: relative; width: 100%; padding: 10px 0 20px; overflow: visible; }

.wallet-track { display: flex; gap: 16px; padding: 15px 50px 30px; overflow-x: auto; overflow-y: visible; scrollbar-width: none; cursor: grab; }
.wallet-track::-webkit-scrollbar { display: none; }
.wallet-track:active { cursor: grabbing; }

.wallet-card-slot { flex: 0 0 auto; cursor: pointer; overflow: visible; padding: 10px 0; transition: transform .4s ease; }
.wallet-card-slot .premium-payment-card-wrapper { padding: 0; overflow: visible; }
.wallet-card-slot .premium-payment-card { width: 280px; height: 165px; overflow: visible; }
.wallet-card-slot .premium-payment-card .card-surface { padding: 18px 22px; }

/* Wallet cards - hide glass reflection and shimmer to match main card appearance */
.wallet-card-slot .card-glass-reflection,
.wallet-card-slot .card-holographic-shimmer { display: none !important; }

/* Non-selected cards - slightly smaller but FULLY VISIBLE */
.wallet-card-slot:not(.is-selected) { transform: scale(.88); }
.wallet-card-slot:not(.is-selected):hover { transform: scale(.92); }
.wallet-card-slot:not(.is-selected) .premium-selected-badge { display: none !important; }

/* Selected card */
.wallet-card-slot.is-selected { transform: scale(1); z-index: 10; }

/* Bank card adjustments */
.wallet-card-slot .premium-payment-card .card-bank-name { font-size: 18px; }
.wallet-card-slot .premium-payment-card .account-last4 { font-size: 22px; }

/* Credit card adjustments for smaller carousel size */
.wallet-card-slot .premium-payment-card .card-chip svg { width: 32px; height: 24px; }
.wallet-card-slot .premium-payment-card .card-number-display { margin: 4px 0; gap: 4px; }
.wallet-card-slot .premium-payment-card .number-dots { font-size: 14px; letter-spacing: 1px; }
.wallet-card-slot .premium-payment-card .number-last4 { font-size: 20px; letter-spacing: 2px; }
.wallet-card-slot .premium-payment-card .expiry-label { font-size: 8px; }
.wallet-card-slot .premium-payment-card .expiry-value { font-size: 13px; }
.wallet-card-slot .premium-payment-card .contactless-indicator svg { width: 12px; height: 16px; }
.wallet-card-slot .premium-payment-card .card-network-logo { font-size: 32px; }

.wallet-card-slot .premium-payment-card .premium-change-btn { display: none; }
.wallet-card-slot .premium-payment-card .premium-selected-badge { width: 28px; height: 28px; top: -6px; right: -6px; }

.wallet-add-new { display: flex; justify-content: center; margin-top: 10px; }
.wallet-add-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 2px dashed rgba(var(--primary-color-rgb),.25); border-radius: 14px; color: var(--primary-color); font-weight: 600; text-decoration: none; }
.wallet-add-btn:hover { border-color: var(--primary-color); border-style: solid; transform: translateY(-2px); text-decoration: none; }
.wallet-add-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--primary-color); border-radius: 50%; color: white; }

/* Fade edges - gray to match page bg */
.wallet-carousel::before, .wallet-carousel::after { content: ''; position: absolute; top: 10px; bottom: 20px; width: 50px; pointer-events: none; z-index: 5; }
.wallet-carousel::before { left: 0; background: linear-gradient(to right, #f5f5f5 0%, transparent 100%); }
.wallet-carousel::after { right: 0; background: linear-gradient(to left, #f5f5f5 0%, transparent 100%); }

/* ============================================
   DARK GRADIENT CARD - Dark corners with wave
   ============================================ */

.premium-payment-card.active .card-surface {
    /* Solid fallback - separate property, never overwritten by invalid gradient */
    background-color: var(--primary-color) !important;
    /* Gradient overlay - if color-mix() unsupported, background-color shows */
    background-image: linear-gradient(145deg, 
        color-mix(in srgb, var(--primary-color-2), black 50%) 0%, 
        color-mix(in srgb, var(--primary-color-3), black 35%) 25%, 
        var(--primary-color) 50%, 
        color-mix(in srgb, var(--primary-color-3), black 35%) 75%, 
        color-mix(in srgb, var(--primary-color-2), black 50%) 100%) !important;
    box-shadow: 0 4px 6px rgba(var(--primary-color-rgb),.2), 0 10px 20px rgba(var(--primary-color-rgb),.25), 0 20px 40px rgba(var(--primary-color-rgb),.3), 0 0 0 1px rgba(255,255,255,.05) inset !important;
}

.premium-payment-card.active .card-glass-reflection {
    background: linear-gradient(165deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.12) 25%, rgba(255,255,255,.06) 45%, transparent 60%) !important;
    height: 70%;
    border-radius: 20px 20px 80% 80%;
    opacity: 1 !important;
}

.wallet-card-slot.is-selected .premium-payment-card.active .card-surface {
    box-shadow: 0 4px 6px rgba(var(--primary-color-rgb),.18), 0 8px 16px rgba(var(--primary-color-rgb),.2), 0 12px 24px rgba(var(--primary-color-rgb),.15), 0 0 0 3px rgba(16,185,129,.5), 0 0 0 1px rgba(255,255,255,.05) inset !important;
}

/* Shadow clipping fix */
.payment-container, .pay-with-existing-container { overflow: visible !important; }

/* ============================================
   PROGRESS BORDER - TRAILING GLOW EFFECT
   Glow follows the animated border as it draws
   ============================================ */

/* Base glow that follows the gradient borders */
.progress-border-33,
.progress-border-66,
.b-progress-border-33,
.b-progress-border-66 {
    filter: drop-shadow(0 0 6px rgba(var(--primary-color-rgb), 0.5))
            drop-shadow(0 0 12px rgba(var(--primary-color-rgb), 0.25));
}

/* Intensify glow as progress increases */
.progress-border-66,
.b-progress-border-66 {
    filter: drop-shadow(0 0 8px rgba(var(--primary-color-rgb), 0.6))
            drop-shadow(0 0 16px rgba(var(--primary-color-rgb), 0.3))
            drop-shadow(0 0 24px rgba(var(--primary-color-rgb), 0.15));
}

/* Peak glow at completion - glow follows border as it completes the rectangle */
.progress-border-99 {
    filter: drop-shadow(0 0 10px rgba(var(--primary-color-rgb), 0.7))
            drop-shadow(0 0 20px rgba(var(--primary-color-rgb), 0.4))
            drop-shadow(0 0 35px rgba(var(--primary-color-rgb), 0.2));
}

/* ============================================
   CARD ENTRY FORM - PREMIUM GRADIENT OVERRIDE
   Overrides minified header CSS for completed card forms
   ============================================ */

/* Credit card entry - completed state */
.progress-border-99 .card-m {
    /* Solid fallback - separate property, never overwritten by invalid gradient */
    background-color: var(--primary-color) !important;
    /* Gradient overlay - if color-mix() unsupported, background-color shows */
    background-image: linear-gradient(145deg, 
        color-mix(in srgb, var(--primary-color-2), black 50%) 0%, 
        color-mix(in srgb, var(--primary-color-3), black 35%) 25%, 
        var(--primary-color) 50%, 
        color-mix(in srgb, var(--primary-color-3), black 35%) 75%, 
        color-mix(in srgb, var(--primary-color-2), black 50%) 100%) !important;
    border-radius: 18px !important;
    border-color: transparent !important;
}

/* Bank account entry - unfilled state (check paper look) */
.echeck .card-m {
    /* background: linear-gradient(to bottom, #fefdfb 0%, #faf9f6 30%, #f7f6f3 70%, #f3f2ef 100%) !important; */
    border-color: #e0ddd8 !important;
}

/* Bank account entry - completed state */
.echeck .progress-border-99 .card-m {
    /* Solid fallback - separate property, never overwritten by invalid gradient */
    background-color: var(--primary-color) !important;
    /* Gradient overlay - if color-mix() unsupported, background-color shows */
    background-image: linear-gradient(145deg, 
        color-mix(in srgb, var(--primary-color-2), black 50%) 0%, 
        color-mix(in srgb, var(--primary-color-3), black 35%) 25%, 
        var(--primary-color) 50%, 
        color-mix(in srgb, var(--primary-color-3), black 35%) 75%, 
        color-mix(in srgb, var(--primary-color-2), black 50%) 100%) !important;
    border-radius: 18px !important;
    border-color: transparent !important;
}

/* Google Pay / saved card preview */
.existing-card.active .card-m {
    /* Solid fallback - separate property, never overwritten by invalid gradient */
    background-color: var(--primary-color) !important;
    /* Gradient overlay - if color-mix() unsupported, background-color shows */
    background-image: linear-gradient(145deg, 
        color-mix(in srgb, var(--primary-color-2), black 50%) 0%, 
        color-mix(in srgb, var(--primary-color-3), black 35%) 25%, 
        var(--primary-color) 50%, 
        color-mix(in srgb, var(--primary-color-3), black 35%) 75%, 
        color-mix(in srgb, var(--primary-color-2), black 50%) 100%) !important;
    box-shadow: 0 4px 6px rgba(var(--primary-color-rgb),.18), 0 8px 16px rgba(var(--primary-color-rgb),.2), 0 12px 24px rgba(var(--primary-color-rgb),.15), 0 0 0 1px rgba(255,255,255,.05) inset !important;
    border-radius: 18px !important;
}

.existing-card.active .card-m:hover {
    box-shadow: 0 6px 10px rgba(var(--primary-color-rgb),.2), 0 12px 24px rgba(var(--primary-color-rgb),.22), 0 16px 32px rgba(var(--primary-color-rgb),.18), 0 0 0 1px rgba(255,255,255,.08) inset !important;
}

/* Saved bank preview */
.existing-bank.active .card-m {
    /* Solid fallback - separate property, never overwritten by invalid gradient */
    background-color: var(--primary-color) !important;
    /* Gradient overlay - if color-mix() unsupported, background-color shows */
    background-image: linear-gradient(145deg, 
        color-mix(in srgb, var(--primary-color-2), black 50%) 0%, 
        color-mix(in srgb, var(--primary-color-3), black 35%) 25%, 
        var(--primary-color) 50%, 
        color-mix(in srgb, var(--primary-color-3), black 35%) 75%, 
        color-mix(in srgb, var(--primary-color-2), black 50%) 100%) !important;
    box-shadow: 0 4px 6px rgba(var(--primary-color-rgb),.18), 0 8px 16px rgba(var(--primary-color-rgb),.2), 0 12px 24px rgba(var(--primary-color-rgb),.15), 0 0 0 1px rgba(255,255,255,.05) inset !important;
    border-radius: 18px !important;
}

.existing-bank.active .card-m:hover {
    box-shadow: 0 6px 10px rgba(var(--primary-color-rgb),.2), 0 12px 24px rgba(var(--primary-color-rgb),.22), 0 16px 32px rgba(var(--primary-color-rgb),.18), 0 0 0 1px rgba(255,255,255,.08) inset !important;
}

/* Progress border radius to match */
.progress-border {
    border-radius: 18px !important;
}

/* Base card-m border radius */
.card-m {
    border-radius: 14px !important;
}

/* ============================================
   PAYMENT ACCORDION - Apple-inspired Design
   ============================================ */

.payment-accordion {
    background: hsl(0, 0%, 97%) !important;
    border: 1px solid #dedede;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Guest wallet accordion - no container styling */
.payment-accordion.guest-wallet-accordion {
    background: transparent !important;
    border: none;
    padding: 0;
}

.accordion-item {
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    overflow: hidden;
    transition: all .3s cubic-bezier(.23,1,.32,1);
}

.accordion-item:hover:not(.is-expanded) {
    border-color: rgba(var(--primary-color-rgb),.25);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.accordion-item.is-expanded {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb),.12),
                0 0 0 1px rgba(var(--primary-color-rgb),.1);
}

/* Accordion Header Button */
.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background .2s ease;
    font-family: inherit;
}

.accordion-header:hover {
    background: rgba(0,0,0,.015);
}

.is-expanded .accordion-header {
    background: rgba(var(--primary-color-rgb),.03);
}

/* Icon Container */
.accordion-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb),.08), rgba(var(--primary-color-rgb),.04));
    color: var(--primary-color);
    transition: all .3s ease;
    flex-shrink: 0;
}

.accordion-icon svg {
    width: 20px;
    height: 20px;
}

.is-expanded .accordion-icon {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb),.3);
}

/* Wallet items use light gray bg with branded SVG icons */
.accordion-wallet-item .accordion-icon {
    background: linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.03));
}

/* REMOVED - was blocking SDK injection. Visibility now handled via on-demand configuration
.accordion-wallet-item.wallet-pending {
    display: none !important;
}
*/

/* Wallet loading state */
.wallet-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    padding: 24px;
    color: var(--primary-color);
}

.wallet-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(var(--primary-color-rgb), 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: wallet-spin 0.8s linear infinite;
}

@keyframes wallet-spin {
    to { transform: rotate(360deg); }
}

/* Wallet error state */
.wallet-error {
    padding: 24px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Google Pay premium card preview */
.gpay-card-preview {
    padding: 8px;
}

.gpay-premium-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    position: relative;
}

.gpay-premium-card .card-header {
    justify-content: flex-start;
}

.gpay-premium-card .gpay-logo {
    display: flex;
    align-items: center;
}

.gpay-premium-card .gpay-logo svg {
    height: 20px;
    width: auto;
}

/* Make "Pay" text white on dark card background */
.gpay-premium-card .gpay-logo svg path[fill="#5f6368"] {
    fill: #ffffff;
}

.gpay-premium-card .gpay-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Label */
.accordion-label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    letter-spacing: -.01em;
}

.is-expanded .accordion-label {
    color: var(--primary-color);
}

/* Sublabel for wallet items */
.accordion-sublabel {
    font-size: 12px;
    font-weight: 400;
    color: #86868b;
    margin-top: 2px;
}

/* Chevron */
.accordion-chevron {
    width: 20px;
    height: 20px;
    color: #86868b;
    transition: transform .3s cubic-bezier(.23,1,.32,1), color .2s ease;
    flex-shrink: 0;
}

.accordion-chevron svg {
    width: 20px;
    height: 20px;
}

.is-expanded .accordion-chevron {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* Content Area */
.accordion-content {
    padding: 16px;
    background: linear-gradient(to bottom, #fafafa, #f5f5f7);
    border-radius: 0 0 12px 12px;
    animation: accordionSlide .3s cubic-bezier(.23,1,.32,1);
}

/* Remove animation for ng-show content (wallets) */
.accordion-content.wallet-content {
    animation: none;
}

@keyframes accordionSlide {
    from { 
        opacity: 0; 
        transform: translateY(-8px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Wallet Button Container */
.wallet-button-container {
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wallet-button-container .googlePayButton,
.wallet-button-container .applePayButton {
    width: 100%;
    max-width: 300px;
}

/* Accordion form content adjustments */
.accordion-content .creditcard,
.accordion-content .echeck {
    margin: 0 auto;
}

/* Override max-width for accordion context - keep card proportions */
.accordion-content .creditcard {
    max-width: 350px !important;
    width: 100%;
}

.accordion-content .echeck {
    max-width: 515px !important;
    width: 100%;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .payment-accordion {
        padding: 20px;
        gap: 6px;
    }
    
    .accordion-header {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .accordion-icon {
        width: 32px;
        height: 32px;
    }
    
    .accordion-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .accordion-label {
        font-size: 14px;
    }
    
    .accordion-content {
        padding: 0 12px 12px;
    }
    
    .wallet-button-container {
        padding: 16px;
    }
}
