.sopdet-subscribe-popup-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    box-sizing: border-box;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.7);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 2147483647 !important;
}

.sopdet-subscribe-popup-overlay.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.sopdet-subscribe-inline {
    width: 100%;
}

.sopdet-subscribe-inline .sopdet-subscribe-popup-content {
    max-height: none;
    margin: 0 auto;
    overflow: visible;
    box-shadow: none;
}

.sopdet-subscribe-inline .sopdet-subscribe-popup-title {
    padding-right: 0;
}

body.app-experience > .sopdet-subscribe-popup-overlay {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.sopdet-subscribe-popup-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #FEFCFF;
    border-radius: 30px;
    padding: 1.5rem 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.sopdet-subscribe-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #BC903C;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
}

.sopdet-subscribe-popup-close:hover,
.sopdet-subscribe-popup-close:focus-visible {
    color: #452C5B;
}

.sopdet-subscribe-popup-overlay:not(.active) .sopdet-subscribe-popup-close {
    visibility: hidden;
}

.sopdet-subscribe-popup-overlay[data-sopdet-journey-offer-active="1"] .sopdet-subscribe-popup-close {
    display: none;
}

.sopdet-subscribe-popup-overlay[data-sopdet-journey-offer-active="1"] .sopdet-subscribe-popup-title {
    padding-right: 0;
}

.sopdet-subscribe-popup-title {
    margin: 0.5em 0 1.5rem;
    padding-right: 2rem;
    color: #452C5B;
    font-family: 'PT Serif', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

.sopdet-subscribe-popup-toggle-wrapper {
    display: flex;
    width: 100%;
    max-width: 290px;
    margin: 1.5em auto;
    padding: 4px;
    box-sizing: border-box;
    border-radius: 50px;
    background: #BC903C;
}

.sopdet-subscribe-popup-toggle-btn {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.sopdet-subscribe-popup-toggle-btn.active {
    background: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

.sopdet-subscribe-popup-price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.sopdet-subscribe-popup-price-amount {
    color: #452C5B;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
}

.sopdet-subscribe-popup-price-period {
    color: #957AAB;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

.sopdet-subscribe-popup-checkout-btn {
    display: block;
    width: 100%;
    max-width: 290px;
    box-sizing: border-box;
    margin: 1em auto;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    background: #BC903C;
    color: #FEFCFF;
    font-family: 'PT Serif', serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
}

.sopdet-subscribe-popup-checkout-btn:hover,
.sopdet-subscribe-popup-checkout-btn:focus-visible {
    background: #BC903C;
}

.sopdet-subscribe-popup-free-btn {
    display: block;
    width: 100%;
    max-width: 290px;
    box-sizing: border-box;
    margin: 0 auto 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #BC903C;
    border-radius: 50px;
    background: transparent;
    color: #BC903C;
    font-family: 'PT Serif', serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
}

.sopdet-subscribe-popup-free-btn[hidden] {
    display: none !important;
}

.sopdet-subscribe-popup-free-btn:hover,
.sopdet-subscribe-popup-free-btn:focus-visible {
    background: #BC903C;
    color: #FEFCFF;
}

.sopdet-subscribe-popup-perks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.sopdet-subscribe-popup-perks-title,
.sopdet-subscribe-popup-perks-list p,
.sopdet-subscribe-popup-perks-list li {
    color: #000000;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
}

.sopdet-subscribe-popup-perks-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1em;
}

.sopdet-subscribe-popup-perks-list p,
.sopdet-subscribe-popup-perks-list li {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.sopdet-subscribe-popup-perks-list ul,
.sopdet-subscribe-popup-perks-list ol {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sopdet-subscribe-popup-perks-list a {
    color: #BC903C;
    text-decoration: underline;
}

#sopdet-checkout-modal.sopdet-checkout-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2147483647 !important;
}

#sopdet-checkout-modal .sopdet-checkout-modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: min(90vh, 850px);
    height: min(90dvh, 850px);
    overflow: hidden;
    background: #FEFCFF;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#sopdet-checkout-modal .sopdet-checkout-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(254, 252, 255, 0.9);
    color: #957AAB;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
}

#sopdet-checkout-modal .sopdet-checkout-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 30px;
}

#sopdet-checkout-modal .sopdet-checkout-loading-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(254, 252, 255, 0.95);
    border-radius: 30px;
    z-index: 20;
}

#sopdet-checkout-modal .sopdet-checkout-loading-overlay.active {
    display: flex !important;
}

#sopdet-checkout-modal .sopdet-checkout-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #DCD5E6;
    border-top-color: #BC903C;
    border-radius: 50%;
    animation: sopdet-subscribe-spin 1s linear infinite;
}

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

#sopdet-checkout-modal .sopdet-checkout-loading-text {
    margin-top: 1rem;
    color: #452C5B;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

#sopdet-checkout-modal .sopdet-checkout-success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 3rem 2rem;
    box-sizing: border-box;
}

#sopdet-checkout-modal .sopdet-checkout-success-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 2rem;
}

#sopdet-checkout-modal .sopdet-checkout-success-title {
    margin: 0 0 1rem;
    color: #452C5B;
    font-family: 'PT Serif', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

#sopdet-checkout-modal .sopdet-checkout-success-text {
    margin: 0 0 2rem;
    color: #1F1E1E;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
}

#sopdet-checkout-modal .sopdet-checkout-success-btn {
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    background: #BC903C;
    color: #FEFCFF;
    font-family: 'PT Serif', serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .sopdet-subscribe-popup-content {
        max-width: 95%;
        padding: 2rem 1.5rem;
    }

    .sopdet-subscribe-popup-title {
        margin-top: 1em;
        padding-right: 1.5rem;
        font-size: 1.2rem;
    }

    .sopdet-subscribe-popup-price-amount {
        font-size: 2rem;
    }

    #sopdet-checkout-modal .sopdet-checkout-modal-container {
        width: 95%;
        height: 85vh;
        height: 85dvh;
    }

    #sopdet-checkout-modal .sopdet-checkout-success-title {
        font-size: 1.5rem;
    }

    #sopdet-checkout-modal .sopdet-checkout-success-text {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .sopdet-subscribe-popup-content {
        padding: 1.5rem 1rem;
    }

    .sopdet-subscribe-popup-title {
        font-size: 1rem;
    }

    .sopdet-subscribe-popup-toggle-btn {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }

    .sopdet-subscribe-popup-price-amount {
        font-size: 1.75rem;
    }

    .sopdet-subscribe-popup-checkout-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    #sopdet-checkout-modal .sopdet-checkout-success-image {
        max-width: 150px;
    }
}

.sopdet-subscribe-trigger-btn:not(.sopdet-unlock-btn) {
    display: inline-block;
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    border: 2px solid #bc903c !important;
    border-radius: 30px !important;
    box-shadow: none !important;
    color: #bc903c !important;
    cursor: pointer;
    font-family: 'PT Serif', serif !important;
    font-size: 1.5em !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    line-height: 1.2;
    padding: 15px 40px !important;
    text-align: center;
    text-transform: uppercase !important;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.sopdet-subscribe-trigger-btn:not(.sopdet-unlock-btn):hover,
.sopdet-subscribe-trigger-btn:not(.sopdet-unlock-btn):focus-visible {
    background: transparent !important;
    border-color: #dfbe81 !important;
    color: #dfbe81 !important;
}

@media (max-width: 768px) {
    .sopdet-subscribe-trigger-btn:not(.sopdet-unlock-btn) {
        font-size: 1.2em !important;
        padding: 12px 30px !important;
    }
}

.sopdet-journey-container {
    background: #ffffff;
    border-radius: 30px;
    padding: 2rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.sopdet-journey-subscribed {
    padding: 0;
}

.sopdet-journey-subscribed iframe {
    display: block;
    border-radius: 30px;
}

.sopdet-journey-confirm-title {
    font-family: 'PT Serif', serif;
    text-transform: uppercase;
    color: #452c5b;
    letter-spacing: 1px;
    font-size: 1.7em;
    padding-top: 0.5em;
    padding-bottom: 0.2em;
    margin: 0;
    text-align: center;
}

.sopdet-journey-toggle-wrapper {
    display: flex;
    background: #BC903C;
    border-radius: 50px;
    padding: 4px;
    width: 100%;
    max-width: 320px;
}

.sopdet-journey-toggle-btn {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.sopdet-journey-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sopdet-journey-toggle-btn.active {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 700;
}

.sopdet-journey-price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sopdet-journey-price-amount {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 2rem;
    color: #452C5B;
    line-height: 1;
    padding-top: 1.5rem;
}

.sopdet-journey-price-period {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #957AAB;
    text-transform: capitalize;
}

.sopdet-journey-perks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.sopdet-journey-perks p {
    font-family: 'Montserrat', sans-serif;
    color: #1f1e1e;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.sopdet-journey-action-btn {
    width: 100%;
    max-width: 320px;
    font-family: 'PT Serif', serif;
    font-weight: 600;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    border: none;
    background-color: #BC903C;
    color: #FEFCFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.sopdet-journey-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.sopdet-journey-action-btn:hover::before {
    background: rgba(255, 255, 255, 0.15);
}

.sopdet-journey-action-btn:hover {
    transform: scale(1.02);
}

.sopdet-subscription-journey-auth .sopdet-modal-close {
    display: block;
    top: 14px;
    right: 18px;
    width: auto;
    height: auto;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #000 !important;
    font-size: 22px;
    font-weight: 400;
}

.sopdet-subscription-journey-auth .sopdet-modal-close:hover,
.sopdet-subscription-journey-auth .sopdet-modal-close:focus {
    background: transparent !important;
    color: #000 !important;
    transform: none;
}

.sopdet-journey-checkout-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 999997 !important;
}

.sopdet-journey-checkout-overlay.active {
    display: block;
}

.sopdet-journey-checkout-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    max-height: 800px;
    background: #fefcff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 999998 !important;
    overflow: hidden;
}

.sopdet-journey-checkout-modal.active {
    display: block;
}

.sopdet-journey-checkout-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: auto;
    height: auto;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #000 !important;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    z-index: 999999;
    display: block;
    padding: 0;
}

.sopdet-journey-checkout-close:hover,
.sopdet-journey-checkout-close:focus {
    background: transparent !important;
    color: #000 !important;
    transform: none;
}

.sopdet-journey-checkout-iframe-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.sopdet-journey-checkout-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.sopdet-journey-checkout-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 1000000;
}

.sopdet-journey-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #BC903C;
    border-radius: 50%;
    animation: sopdet-journey-spin 1s linear infinite;
}

@keyframes sopdet-journey-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sopdet-journey-loading-text {
    font-family: 'Montserrat', sans-serif;
    color: #452C5B;
    font-size: 1.1rem;
    font-weight: 600;
}

.sopdet-journey-checkout-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fefcff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    z-index: 1000001;
}

.sopdet-journey-success-image {
    max-width: 200px;
    height: auto;
}

.sopdet-journey-success-title {
    font-family: 'PT Serif', serif;
    color: #452C5B;
    font-size: 1.9rem;
    margin: 0;
    text-align: center;
}

.sopdet-journey-success-text {
    font-family: 'Montserrat', sans-serif;
    color: #1f1e1e;
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
}

.sopdet-journey-success-btn {
    padding: 0.8rem 2rem;
    background: #BC903C;
    color: #fefcff;
    border: none;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sopdet-journey-success-btn:hover {
    background: #cdac70;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .sopdet-journey-container {
        padding: 1.5rem 1rem;
    }
    
    .sopdet-journey-confirm-title {
        font-size: 1.4em;
    }
    
    .sopdet-journey-toggle-wrapper {
        max-width: 280px;
    }
    
    .sopdet-journey-toggle-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .sopdet-journey-price-amount {
        font-size: 2rem;
    }
    
    .sopdet-journey-action-btn {
        max-width: 280px;
        font-size: 0.9rem;
        padding: 0.9rem 1.5rem;
    }
    
    .sopdet-journey-checkout-modal {
        width: 95%;
        height: 90vh;
        border-radius: 8px;
    }

    .sopdet-journey-checkout-close {
        top: 10px;
        right: 10px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sopdet-journey-toggle-wrapper {
        max-width: 240px;
    }
    
    .sopdet-journey-toggle-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .sopdet-journey-price-amount {
        font-size: 1.75rem;
    }
    
    .sopdet-journey-price-period {
        font-size: 0.8rem;
    }
    
    .sopdet-journey-action-btn {
        max-width: 240px;
        font-size: 0.85rem;
        padding: 0.85rem 1.25rem;
    }
    
    .sopdet-journey-perks p {
        font-size: 0.9rem;
    }
    
}
