/**
 * SKS Heart Pawject promo modal — theme-independent, responsive.
 */
.modal-heart-pawject {
    z-index: 99999;
    align-items: center;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(5.5rem, calc(1.25rem + env(safe-area-inset-bottom)));
}

.modal-heart-pawject .modal-backdrop {
    z-index: 0;
}

.modal-heart-pawject .modal-content-heart {
    z-index: 1;
    max-height: min(34rem, calc(100vh - 7rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content-heart {
    max-width: 26rem;
    padding: 0;
    overflow: hidden;
    border: none;
    box-shadow: 0 22px 50px rgba(26, 32, 44, 0.18);
    border-radius: var(--radius-2xl);
}

.modal-content-heart::before {
    display: none !important;
}

.heart-pawject-hero {
    position: relative;
    padding: 1.35rem 1.35rem 1.15rem;
    background: linear-gradient(145deg, #7f1d1d 0%, #b91c1c 42%, #dc2626 100%);
    color: #fff;
}

.heart-pawject-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.heart-pawject-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.heart-pawject-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.heart-pawject-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.16);
    padding: 0.28rem 0.55rem;
    border-radius: var(--radius-full);
    margin: 0 0 0.65rem;
}

.heart-pawject-eyebrow i {
    font-size: 0.75rem;
}

.heart-pawject-title {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 2rem 0.5rem 0;
    color: #fff;
}

.heart-pawject-tagline {
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.92);
}

.heart-pawject-skip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    font: inherit;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.heart-pawject-skip:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.55);
}

.heart-pawject-skip:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.heart-pawject-body {
    padding: 1.15rem 1.35rem max(1.35rem, env(safe-area-inset-bottom));
    background: var(--color-surface, #fff);
}

.heart-pawject-highlights {
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.heart-pawject-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--color-text, #1a202c);
}

.heart-pawject-highlights i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: #dc2626;
    font-size: 0.82rem;
}

.heart-pawject-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: #b91c1c;
}

.heart-pawject-price s {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted, #64748b);
}

.heart-pawject-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.heart-pawject-actions .btn {
    width: 100%;
    justify-content: center;
}

.heart-pawject-learn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: none;
    color: #fff;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.28);
}

.heart-pawject-learn:hover {
    filter: brightness(1.05);
    color: #fff;
}

/* Hide common GTM / third-party chat widgets while promo is open */
body.heart-pawject-modal-open [class*="whatsapp" i],
body.heart-pawject-modal-open [id*="whatsapp" i],
body.heart-pawject-modal-open [class*="chat-widget" i],
body.heart-pawject-modal-open [data-heart-pawject-suppressed="1"] {
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (min-width: 480px) {
    .modal-heart-pawject {
        padding: 1.25rem;
    }
    .modal-heart-pawject .modal-content-heart {
        max-height: min(36rem, calc(100vh - 3rem));
    }
    .modal-content-heart {
        max-width: 27rem;
    }
    .heart-pawject-title {
        font-size: 1.38rem;
    }
}

@media (min-width: 768px) {
    .modal-content-heart {
        max-width: 28rem;
    }
    .heart-pawject-hero {
        padding: 1.5rem 1.5rem 1.25rem;
    }
    .heart-pawject-body {
        padding: 1.25rem 1.5rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal-content-heart {
        animation: none;
    }
}
