html[data-site-theme="blue"] .plan-limit-popup {
    --popup-accent: var(--pb-warning);
    --popup-accent-rgb: var(--pb-warning-rgb);
    --popup-soft: var(--pb-warning-soft);
    position: fixed;
    z-index: 11000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 3vw, 28px);
    background: var(--pb-overlay) !important;
    backdrop-filter: blur(10px) saturate(125%);
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-dialog {
    position: relative;
    width: min(100%, 470px);
    max-width: 470px;
    max-height: min(90vh, 760px);
    padding: 0;
    overflow: auto;
    border: 1px solid var(--pb-border-strong) !important;
    border-radius: 22px;
    outline: none;
    background: var(--pb-surface) !important;
    color: var(--pb-text) !important;
    box-shadow: var(--pb-shadow-lg) !important;
    animation: plan-limit-dialog-enter 180ms ease-out;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-close {
    position: absolute;
    z-index: 4;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--pb-border) !important;
    border-radius: 10px;
    background: var(--pb-surface) !important;
    color: var(--pb-muted) !important;
    box-shadow: var(--pb-shadow-xs);
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-close:hover {
    border-color: var(--pb-primary) !important;
    background: var(--pb-primary-soft) !important;
    color: var(--pb-primary) !important;
    transform: translateY(-1px);
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-header {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 128px;
    padding: 24px 64px 22px 24px;
    overflow: hidden;
    border-bottom: 1px solid var(--pb-divider);
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--popup-accent-rgb), 0.17), transparent 11rem),
        linear-gradient(135deg, var(--pb-surface-raised), var(--popup-soft));
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-header::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--popup-accent);
    content: "";
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(var(--popup-accent-rgb), 0.25);
    border-radius: 16px;
    background: var(--popup-soft);
    color: var(--popup-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-icon i {
    font-size: 28px;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-eyebrow {
    margin: 0 0 5px;
    color: var(--popup-accent) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-title {
    margin: 0;
    color: var(--pb-heading) !important;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-subtitle {
    margin: 6px 0 0;
    color: var(--pb-muted) !important;
    font-size: 13px;
    line-height: 1.45;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-body {
    padding: 24px;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-callout {
    display: grid;
    gap: 5px;
    margin-bottom: 22px;
    padding: 15px 16px;
    border: 1px solid rgba(var(--popup-accent-rgb), 0.28);
    border-left: 4px solid var(--popup-accent);
    border-radius: 12px;
    background: var(--popup-soft);
    color: var(--pb-text);
    font-size: 13px;
    line-height: 1.55;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-callout strong {
    color: var(--pb-heading);
    font-size: 14px;
    text-transform: capitalize;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-label {
    margin: 0 0 11px;
    color: var(--pb-muted) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-benefits {
    margin-bottom: 22px;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-benefits ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pb-text);
    font-size: 13px;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-benefits li i {
    color: var(--pb-positive);
    font-size: 17px;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-actions {
    display: flex;
    gap: 10px;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-button {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, border-color 160ms ease;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-button:hover {
    transform: translateY(-1px);
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-button--primary {
    flex: 1.7;
    background: var(--pb-gradient-brand) !important;
    color: var(--pb-on-primary) !important;
    box-shadow: 0 9px 20px rgba(var(--pb-primary-rgb), 0.2);
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-button--primary:hover {
    filter: brightness(1.06);
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-button--secondary {
    border-color: var(--pb-border-strong) !important;
    background: var(--pb-surface-soft) !important;
    color: var(--pb-heading) !important;
}

html[data-site-theme="blue"] .plan-limit-popup .product-popup-button--secondary:hover {
    border-color: var(--pb-primary) !important;
    background: var(--pb-primary-soft) !important;
    color: var(--pb-primary) !important;
}

@keyframes plan-limit-dialog-enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    html[data-site-theme="blue"] .plan-limit-popup {
        align-items: flex-end;
        padding: 10px;
    }

    html[data-site-theme="blue"] .plan-limit-popup .product-popup-dialog {
        width: 100%;
        max-width: none;
        max-height: 88vh;
        border-radius: 20px;
    }

    html[data-site-theme="blue"] .plan-limit-popup .product-popup-header {
        grid-template-columns: 48px minmax(0, 1fr);
        min-height: 112px;
        padding: 20px 54px 18px 18px;
    }

    html[data-site-theme="blue"] .plan-limit-popup .product-popup-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    html[data-site-theme="blue"] .plan-limit-popup .product-popup-title {
        font-size: 20px;
    }

    html[data-site-theme="blue"] .plan-limit-popup .product-popup-body {
        padding: 18px;
    }

    html[data-site-theme="blue"] .plan-limit-popup .product-popup-actions {
        flex-direction: column-reverse;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-site-theme="blue"] .plan-limit-popup .product-popup-dialog {
        animation: none;
    }
}
