/*************popup starts***************/

/* ── Modal backdrop & positioning ── */
#paymentpopup {
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.35);
}

#paymentpopup .modal-dialog-main {
    position: relative;
    left: 0;
    margin: auto;
    right: 0;
    height: auto;
    padding: 20px 0;
    display: flex;
    align-items: center;
    min-height: 100%;
}

/* ── Main dialog container ── */
#paymentpopup .modal-dialog.modal-xl {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    height: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 1000px;
    pointer-events: all;
    overflow: hidden;
    border: none;
}

#paymentpopup .modal-content {
    border: none;
    border-radius: 0 0 20px 20px;
}

/* ── Header — exact ToonBee gold gradient ── */
#paymentpopup .modal-header {
    background-image: -webkit-linear-gradient(180deg, rgb(255,172,37) 0%, rgb(255,191,33) 51%, rgb(255,210,29) 100%);
    background-image: linear-gradient(180deg, rgb(255,172,37) 0%, rgb(255,191,33) 51%, rgb(255,210,29) 100%);
    width: 100%;
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: none;
    border-radius: 0;
}

#paymentpopup .modal-header > div {
    display: flex;
    align-items: center;
    width: 100%;
}

#paymentpopup .cart-container {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    margin-left: 0;
    margin-right: 12px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

#paymentpopup .cart-container svg {
    width: 20px;
    height: 20px;
}

#paymentpopup h5.modal-title {
    float: none;
    width: auto;
    font-size: 22px;
    color: #000;
    padding: 0;
    font-weight: 700;
    letter-spacing: -0.3px;
    flex-shrink: 0;
    font-family: "Zalando Sans SemiExpanded", "Outfit", sans-serif;
}

/* ── Step indicators ── */
#paymentpopup .modal-header ul {
    float: none;
    width: auto;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 0;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

#paymentpopup .modal-header ul::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 2px;
    background: rgba(0,0,0,0.15);
    border: none;
}

#paymentpopup .modal-header ul::after {
    display: none;
}

#paymentpopup .modal-header li {
    float: none;
    text-align: center;
    width: auto;
    position: relative;
    z-index: 1;
    padding: 0 28px;
}

#paymentpopup .modal-header li span {
    text-align: center;
    color: rgba(0,0,0,0.6);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

#paymentpopup .modal-header li span h3 {
    border: 2px solid rgba(0,0,0,0.15);
    border-radius: 50%;
    color: rgba(0,0,0,0.5);
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0 !important;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: rgba(255,255,255,0.7);
    line-height: 1;
    transition: all 0.2s ease;
    font-family: "Outfit", sans-serif;
}

#paymentpopup .modal-header li span h4 {
    font-weight: 600;
    font-size: 12px;
    margin-top: 2px;
    color: rgba(0,0,0,0.55);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: "Outfit", sans-serif;
}

#paymentpopup .modal-header .active-full h3 {
    background: #ffffff !important;
    color: #000 !important;
    border-color: rgba(0,0,0,0.25) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

#paymentpopup .modal-header .active-full h4 {
    color: #000;
    font-weight: 700;
}

#paymentpopup .modal-header .active-lite h3 {
    color: rgba(0,0,0,0.4);
    border-color: rgba(0,0,0,0.15) !important;
}

/* ── Close button ── */
#paymentpopup .btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.06);
    width: 32px;
    height: 32px;
    border: none;
    cursor: pointer;
    outline: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: bold;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-sizing: content-box;
    padding: 0;
    color: #000;
    opacity: 1;
}

#paymentpopup .btn-close::before {
    content: "\00d7";
    font-size: 1.5rem;
    color: rgba(0,0,0,0.6);
}

#paymentpopup .btn-close:hover {
    background: rgba(0, 0, 0, 0.12);
    text-decoration: none;
    opacity: 1;
}

#paymentpopup .btn-close:hover::before {
    color: #000;
}

#paymentpopup .btn-close:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 191, 33, 0.35);
    opacity: 1;
}

#paymentpopup .btn-close:disabled,
#paymentpopup .btn-close.disabled {
    pointer-events: none;
    user-select: none;
    opacity: 0.25;
}

/* ── Modal body ── */
#paymentpopup .modal-body {
    padding: 28px 28px 24px;
    background: #f9f9f8;
}

#paymentpopup .modal-body .row {
    --bs-gutter-x: 24px;
}

/* ── Left column ── */
#paymentpopup .col-lg-7 {
    display: flex;
    flex-direction: column;
}

/* ── Order Summary title ── */
#paymentpopup h6.card-title {
    font-size: 13px;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    font-family: "Outfit", sans-serif;
}

/* ── Cards ── */
#paymentpopup .card {
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #eeeeee;
    background: #ffffff;
}

#paymentpopup .card-body {
    overflow: hidden;
}

#paymentpopup .card.ordersummary {
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

#paymentpopup .card.ordersummary .card-body {
    padding: 16px 20px 10px !important;
}

#paymentpopup .ordersummary .d-flex {
    flex-wrap: wrap;
}

/* ── Selected plan list (order items) ── */
#paymentpopup .selected_plan_list {
    width: 100%;
}

#paymentpopup .selected_plan_list h3 {
    color: #555;
    display: inline-block;
    vertical-align: top;
    width: 100%;
    font-size: 14px;
    margin-bottom: 6px;
    font-family: "Outfit", sans-serif;
}

#paymentpopup .selected_plan_list h3 span {
    float: left;
    font-weight: 500;
    color: #333;
}

#paymentpopup .selected_plan_list h3 strong {
    float: right;
    font-weight: 700;
    color: #1a1a1a;
}

#paymentpopup .selected_plan_list .add_to_order {
    color: #1a1a1a;
    display: inline-block;
    vertical-align: top;
    width: 100%;
    font-weight: 800;
    font-size: 15px;
    border-top: 1px solid #f0f0f0;
    margin: 8px 0;
    padding: 10px 0 0;
}

#paymentpopup .selected_plan_list h4 {
    color: #1a1a1a;
    display: inline-block;
    vertical-align: top;
    width: 100%;
    font-weight: 700;
    font-size: 15px;
    border-top: 1px solid #f0f0f0;
    margin: 6px 0;
    padding: 10px 0 0;
    font-family: "Outfit", sans-serif;
}

#paymentpopup .selected_plan_list h4 span {
    float: left;
    font-weight: 600;
}

#paymentpopup .selected_plan_list h4 strong {
    float: right;
    font-weight: 800;
    color: #000;
    font-size: 16px;
}

/* ── Strikethrough price ── */
#paymentpopup .strike-diagonal-price {
    position: relative;
}

#paymentpopup .strike-diagonal-price:before {
    position: absolute;
    content: "";
    left: 0;
    top: 45%;
    right: 0;
    border-top: 2px solid #e53935;
    transform: rotate(-155deg);
}

#paymentpopup .strike {
    text-decoration: line-through;
    font-size: 13px;
    color: #999;
}

/* ── Coupon Applied Badge ── */
#coupon-applied-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #e6f9ee;
    color: #1a7a3a;
    border: 1px solid #b2e5c7;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    font-family: "Outfit", sans-serif;
}
#coupon-applied-badge svg {
    flex-shrink: 0;
}

/* ── Coupon ── */
#paymentpopup .coupon-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

#paymentpopup .coupon-container label {
    color: #555;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

#paymentpopup .coupon-container input {
    color: #333;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 14px;
    transition: border-color 0.2s;
    font-family: "Outfit", sans-serif;
}

#paymentpopup .coupon-container input:focus {
    border-color: rgb(255,191,33);
    box-shadow: 0 0 0 3px rgba(255, 191, 33, 0.15);
    outline: none;
}

#paymentpopup .coupon-button {
    background-image: -webkit-linear-gradient(180deg, rgb(255,172,37) 0%, rgb(255,191,33) 51%, rgb(255,210,29) 100%);
    background-image: linear-gradient(180deg, rgb(255,172,37) 0%, rgb(255,191,33) 51%, rgb(255,210,29) 100%);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: "Outfit", sans-serif;
}

#paymentpopup .coupon-button:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.13);
}

/* ── HR divider ── */
#paymentpopup hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 16px 0;
}

/* ── Add-on card ── */
#paymentpopup .addon-card {
    position: relative;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 16px;
    transition: all 0.25s ease;
    cursor: pointer;
    background: #fff;
    overflow: hidden;
}

#paymentpopup .addon-card:hover {
    border-color: rgb(255,191,33);
    box-shadow: 0 4px 20px rgba(255, 191, 33, 0.15);
}

#paymentpopup .addon-card.checked {
    border-color: rgb(255,172,37);
    background-color: #fffcf3;
    box-shadow: 0 4px 20px rgba(255, 172, 37, 0.15);
}

#paymentpopup .addon-header {
    display: flex;
    align-items: center;
    margin: 0;
    gap: 10px;
    background: linear-gradient(135deg, #fffcf0 0%, #fff8e0 100%);
    padding: 12px 16px;
    border-radius: 0;
    border-bottom: 1px solid #f5edd5;
}

#paymentpopup .checkbox {
    margin-right: 4px;
    margin-top: 0;
    position: relative;
    display: flex;
    align-items: center;
}

#paymentpopup .checkbox input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    border: 2px solid #d0d0d0;
    outline: none;
    transition: all 0.2s ease;
}

#paymentpopup .checkbox input[type="checkbox"]:checked {
    background: rgb(255,172,37);
    border-color: rgb(255,172,37);
}

#paymentpopup .checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#paymentpopup .addon-title {
    color: #b87d00;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    flex-grow: 1;
    line-height: 1.3;
    font-family: "Outfit", sans-serif;
}

#paymentpopup .price-label,
#paymentpopup .price-label2 {
    margin-left: auto;
    background: #fff;
    color: #666;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
    white-space: nowrap;
    font-family: "Outfit", sans-serif;
}

#paymentpopup .price-label {
    color: #1a7a1a;
    border-color: #c8e6c8;
    background: #f2faf2;
}

#paymentpopup .addon-content {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
}

#paymentpopup .addon-image {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
}

#paymentpopup .addon-details {
    flex-grow: 1;
    display: flex;
    min-height: 72px;
}

#paymentpopup .addon-description {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #666;
    font-family: "Outfit", sans-serif;
}

#paymentpopup .addon-description strong {
    font-weight: 700;
    color: #222;
}

/* ── Play button — same page gradient ── */
#paymentpopup .play-button {
    display: inline-flex;
    position: relative;
    align-items: center;
    bottom: auto;
    right: auto;
    background-image: -webkit-linear-gradient(180deg, rgb(255,172,37) 0%, rgb(255,191,33) 51%, rgb(255,210,29) 100%);
    background-image: linear-gradient(180deg, rgb(255,172,37) 0%, rgb(255,191,33) 51%, rgb(255,210,29) 100%);
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    gap: 6px;
    transition: all 0.2s ease;
    margin-top: 6px;
    font-family: "Outfit", sans-serif;
}

#paymentpopup .play-button:hover {
    transform: scale(1.04);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.13);
}

#paymentpopup .play-button:active {
    transform: scale(1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

#paymentpopup .play-button i {
    font-size: 0.85rem;
}

/* ── Timer ── */
#paymentpopup .offer-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    background: #fffef9;
    border-radius: 12px;
    border: 1px solid rgb(255,210,29);
    box-shadow: 0 2px 8px rgba(255, 191, 33, 0.12);
    font-size: 0.95rem;
    color: #555;
    margin: 0 auto;
    width: auto;
    max-width: 280px;
    margin-bottom: 15px;
    margin-top: 0;
    font-weight: 600;
    font-family: "Outfit", sans-serif;
}

#paymentpopup .offer-timer span {
    font-weight: 800;
    background: -webkit-linear-gradient(180deg, rgb(255,172,37) 0%, rgb(255,191,33) 51%, rgb(255,210,29) 100%);
    background: linear-gradient(180deg, rgb(255,172,37) 0%, rgb(255,191,33) 51%, rgb(255,210,29) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* ── Loader — brand gold ── */
#paymentpopup .loader {
    margin: auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite;
}

#paymentpopup .loader::before,
#paymentpopup .loader::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 4px solid rgb(255,172,37);
    animation: prixClipFix 2s linear infinite;
}

#paymentpopup .loader::after {
    border-color: rgb(255,210,29);
    animation: prixClipFix 2s linear infinite, rotate 0.5s linear infinite reverse;
    inset: 6px;
}

@keyframes rotate {
    0% { transform: rotate(0deg) }
    100% { transform: rotate(360deg) }
}

@keyframes prixClipFix {
    0% { clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0) }
    25% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0) }
    50% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%) }
    75% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%) }
    100% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0) }
}

/* ── FastSpring checkout embed ── */
#paymentpopup #fsc-embedded-checkout-container {
    margin-top: -131px;
    z-index: 9;
}

#paymentpopup .col-lg-5 > .card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
}

#paymentpopup .col-lg-5 > .card > .card-body {
    padding: 0px !important;
}

/* ── Pay/buy button ── */
#paymentpopup .pay-btn {
    border-top: 1px solid #f0f0f0;
    margin: 10px 0;
    padding: 14px 10px;
    width: 100%;
    text-align: center;
    display: inline-block;
    background-image: -webkit-linear-gradient(180deg, rgb(255,172,37) 0%, rgb(255,191,33) 51%, rgb(255,210,29) 100%);
    background-image: linear-gradient(180deg, rgb(255,172,37) 0%, rgb(255,191,33) 51%, rgb(255,210,29) 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    color: #000;
    font-size: 15px;
    cursor: pointer;
    font-weight: 700;
    border: none;
    transition: all 0.2s ease;
    letter-spacing: -0.3px;
    font-family: "Outfit", sans-serif;
}

#paymentpopup .pay-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
}

#paymentpopup .form-check-label {
    cursor: pointer;
}

#paymentpopup .selected_plan_list a {
    width: 100%;
    text-align: center;
    display: inline-block;
    background-image: -webkit-linear-gradient(180deg, rgb(255,172,37) 0%, rgb(255,191,33) 51%, rgb(255,210,29) 100%);
    background-image: linear-gradient(180deg, rgb(255,172,37) 0%, rgb(255,191,33) 51%, rgb(255,210,29) 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    color: #000;
    font-size: 16px;
    padding: 10px 10px;
    font-weight: 700;
    transition: all 0.2s ease;
    font-family: "Outfit", sans-serif;
}

#paymentpopup .selected_plan_list a:hover {
    transform: scale(1.03);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
}

/*************popup ends***************/

/* ── Responsive ── */
@media (max-width: 991px) {
    #paymentpopup .modal-body {
        padding: 20px 16px;
    }
}

@media (max-width: 767px) {
    #paymentpopup .modal-dialog.modal-xl {
        margin: 10px;
        border-radius: 16px;
    }

    #paymentpopup .modal-header {
        padding: 14px 16px;
    }

    #paymentpopup h5.modal-title {
        font-size: 18px;
    }

    #paymentpopup .modal-body {
        padding: 16px 14px;
    }

    #paymentpopup .addon-content {
        padding: 12px;
    }

    #paymentpopup .addon-header {
        flex-wrap: wrap;
    }

    #paymentpopup .addon-header::after {
        content: '';
        width: 100%;
        height: 0;
        order: 1;
    }

    #paymentpopup .addon-header .price-label {
        order: 2;
        margin-left: auto;
    }
}

@media (max-width: 610px) {
    #paymentpopup .modal-header ul {
        display: none !important;
    }
}

@media (max-width: 576px) {
    #paymentpopup .modal-dialog {
        margin: 8px;
    }

    #paymentpopup .modal-dialog-main {
        padding: 8px 0;
    }
}

@media (max-width: 497px) {
    #paymentpopup .addon-image {
        display: none !important;
    }
}
