#neo-modal-checkout {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 98%);

    display: flex;                  /* <-- REQUIRED */
    justify-content: center;        /* Center horizontally */
    align-items: center;            /* Center vertically */

    z-index: 999999;

    visibility: hidden;             /* Allow animation */
    opacity: 0;                     /* Allow fade effect */
    transition: opacity 0.2s ease;  /* Smooth fade */
    font-weight: normal;
}

#neo-modal-checkout.active {
    visibility: visible;
    opacity: 1;
}

.neo-modal-inner {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 600px;
    max-width: 95%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    position: relative;
    min-height: 250px; /* <-- prevents collapsing */
    padding-top:12px
}

.neo-modal-close {
    float: right;
    cursor: pointer;
    font-size: 22px;
}


#neo-modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;

    display: none; /* hidden by default */
}

.neo-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(54, 54, 54, 0.3);
    border-top-color: #4d4d4d;
    border-radius: 50%;
    animation: neo-spin 0.7s linear infinite;
}

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


.neo-license-tier-list{
    display:flex;
    gap:4px
}

/* ----------------------------------------
   COMPLETELY HIDE THE REAL RADIO BUTTON
---------------------------------------- */
.neo-tier-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ----------------------------------------
   THE CARD STYLE FOR EACH LICENSE TIER
---------------------------------------- */
.neo-tier-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 0;
    flex-wrap: wrap;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    margin-bottom: 12px;
    user-select: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
    align-items: flex-start;
}

/* Hover state */
.neo-tier-option:hover {
    border-color: #bbb;
    background: #f9f9f9;
}


/* Hide native radio */
.neo-tier-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* --- Selected Card --- */
.neo-tier-option input[type="radio"]:checked ~ * {
    border-color:var(--wpg-primary-color);
}

/* Apply red border to the whole label */
.neo-tier-option input[type="radio"]:checked {
    /* no visual here */
}

.neo-tier-option input[type="radio"]:checked ~ .neo-tier-title,
.neo-tier-option input[type="radio"]:checked ~ .neo-tier-price {
    color:var(--wpg-primary-color);
}

/* Optional: hover glow */
.neo-tier-option:hover {
    border-color: #aaa;
}

/* Highlight selected card */
.neo-tier-option:has(input[type="radio"]:checked) {
    border-color:var(--wpg-primary-color);
    background: #fff7f7; /* optional subtle red tint */
}

.neo-tier-title{
    font-size: 15px;
}

.neo-license-tier-list {
    display: flex;
    gap: 5px;
}



/* BIG numbers */
.tier-number,
.price-number {
    font-size: 16px;
    line-height: 1;
    display: block;
}


.price-number {
    font-size: 28px;
    font-weight: 700;
}

/* small adjacent text */
.tier-text,
.price-text {
    font-size: 13px;
    opacity: 0.7;
    display: block;
    line-height: 1;
}

/* keep spacing consistent */
.neo-tier-title,
.neo-tier-price {
    text-align: center;
    margin-bottom: 0;
    line-height: 0.9;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-direction: row;
}

.neo-tier-price{
    margin-top: 8px;
}

.neo-checkout-form h2,
.neo-checkout-form h3{
    padding: 0;
    margin: 0;
}


.neo-checkout-form h2{
    font-size: 24px;
    margin: 5px 0 10px 0;
    border-bottom: solid 1px rgb(52 52 52 / 30%);
    padding-bottom: 5px;
}

.neo-checkout-form h3{
    font-size: 18px;
    margin: 3px 0 6px 0;
    font-weight: normal;
    font-weight:500
}

.neo-checkout-form input{
    margin-bottom: 6px;
}


.neo-extra-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0;
    cursor: pointer;
    font-weight: 500;
}

#neo-extra-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#neo-extra-fields {
    margin-top: 10px;
    margin-bottom: 10px;
}

.neo-pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff3b90;
    color: #fff;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}

.neo-pay-btn:hover {
    background: #ff267f;
}

.neo-pay-icon {
    font-size: 18px;
}

/* Fullscreen modal must allow scrolling */
#neo-modal-checkout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Inner wrapper must not clip the iframe */
#neo-modal-inner, 
#neo-modal-checkout .neo-modal-inner {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

/* This is the KEY container for Stripe – MUST be scrollable */
#neo-modal-checkout-body {
    display: block !important;
    max-height: 90vh;        /* allow scroll */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Make sure the iframe expands naturally */
#neo-modal-checkout-body iframe {
    width: 100% !important;
    height: auto !important;  /* allow Stripe dynamic height */
    min-height: 1200px;       /* safe fallback */
    overflow: visible !important;
    display: block !important;
}

.cancel-anytime{
    display: block !important;
    font-size: 12px;
    margin-left: 24px;
    margin-top: 5px;
}

@media (max-width:479px){
    .neo-tier-title,
    .neo-tier-price {
        flex-direction: column;
        justify-content:center;
        align-items: center;
    }
    .neo-tier-option{
        padding: 10px 4px ;
        align-items: center;
        justify-content: center;
    }
}

