/* Initial visibility is owned by the SS Push delay coordinator.
   On the main site, theme/plugin CSS can override the browser's [hidden]
   rule. Even duplicate/old JS cannot reveal the card before our gate opens. */
#ss-push-soft-prompt[hidden],
#ss-push-soft-prompt:not(.is-visible),
#ss-push-soft-prompt:not([data-ss-push-delay-complete="1"]) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.ss-push-soft-prompt {
    position: fixed;
    right: 20px;
    bottom: calc(20px + var(--ss-push-sticky-offset, 0px));
    overflow: visible;
    width: min(440px, calc(100vw - 24px));
    z-index: 999999;
    font-family: inherit;
}

/* Keep shadows outside the card. Only the rounded card itself may scroll. */
.ss-push-soft-prompt__inner {
    position: relative;
    box-sizing: border-box;
    max-height: calc(100dvh - 40px - var(--ss-push-sticky-offset, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    background: #ffffff;
    background-clip: padding-box;
    border: 1.5px solid rgba(17, 24, 39, 0.13);
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(14, 24, 38, 0.12);
    padding: 18px;
}

.ss-push-soft-prompt__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.ss-push-soft-prompt__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

/* One 1.15-second swing followed by exactly 1 second at rest. Audio is
   independent from this CSS loop and is attempted only once in frontend.js. */
.ss-push-soft-prompt__bell {
    display: inline-block;
    transform-origin: 50% 12%;
    will-change: transform;
}

.ss-push-soft-prompt.is-visible .ss-push-soft-prompt__bell {
    animation: ss-push-bell-swing 2.15s ease-in-out infinite;
}

@keyframes ss-push-bell-swing {
    0%, 53.4884%, 100% { transform: rotate(0deg); }
    6.4186% { transform: rotate(-23deg); }
    13.3721% { transform: rotate(20deg); }
    20.8605% { transform: rotate(-15deg); }
    28.3488% { transform: rotate(12deg); }
    35.8372% { transform: rotate(-7deg); }
    43.3256% { transform: rotate(4deg); }
    49.7442% { transform: rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
    .ss-push-soft-prompt.is-visible .ss-push-soft-prompt__bell {
        animation: none;
    }
}

/* The parent owns the non-clickable gap between two precise link hitboxes. */
.ss-push-soft-prompt__brand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.ss-push-soft-prompt__brand-link,
.ss-push-soft-prompt__brand-link:link,
.ss-push-soft-prompt__brand-link:visited,
.ss-push-soft-prompt__brand-link:hover,
.ss-push-soft-prompt__brand-link:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    line-height: 1;
    width: max-content;
}

.ss-push-soft-prompt__brand-link--check {
    width: 20px;
    height: 20px;
}

.ss-push-soft-prompt__brand-link:focus-visible {
    outline: 2px solid #3897f0;
    outline-offset: 2px;
    border-radius: 999px;
}

.ss-push-soft-prompt__blue-check {
    display: inline-flex;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.ss-push-soft-prompt__blue-check svg {
    display: block;
    width: 20px;
    height: 20px;
}

.ss-push-soft-prompt__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.ss-push-soft-prompt__title {
    display: block;
    color: #111827;
    font-size: 29px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.ss-push-soft-prompt__text {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.62;
}

.ss-push-soft-prompt__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 6px;
    margin: 14px 0 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
}

.ss-push-soft-prompt__trust-segment {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.ss-push-soft-prompt__trust-dot {
    display: inline-block;
    padding: 0 1px 8px;
    color: #6b7280;
}

/* One slightly hand-drawn stroke under each text segment; no second line. */
.ss-push-soft-prompt__trust-segment::before {
    content: '';
    position: absolute;
    left: 1px;
    right: 2px;
    bottom: 3px;
    height: 2px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.22);
    transform-origin: left center;
    transform: rotate(-1.8deg);
    opacity: 0.95;
}

.ss-push-soft-prompt__trust-segment--long::before {
    right: -2px; /* reaches the final letter without affecting the first line */
    transform: rotate(-1.2deg);
}

.ss-push-soft-prompt__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 18px;
}

.ss-push-soft-prompt__btn {
    border: 0;
    border-radius: 14px;
    min-height: 48px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: none;
}

/* Hover and focus must not move either action button. */
.ss-push-soft-prompt__btn,
.ss-push-soft-prompt__btn:hover,
.ss-push-soft-prompt__btn:focus,
.ss-push-soft-prompt__btn:active {
    transform: none !important;
}

.ss-push-soft-prompt__btn--primary {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #fff;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.22);
}

.ss-push-soft-prompt__btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ss-push-soft-prompt__btn-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f6c103;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 8px rgba(246,193,3,0.28);
}

.ss-push-soft-prompt__btn-check {
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    transform: translateY(-1px);
}

.ss-push-soft-prompt__btn-label {
    display: inline-block;
}

/* The primary CTA must remain perfectly still and visually identical on mouse hover. */
#ss-push-soft-prompt #ss-push-accept,
#ss-push-soft-prompt #ss-push-accept:hover,
#ss-push-soft-prompt #ss-push-accept:focus,
#ss-push-soft-prompt #ss-push-accept:active {
    transform: none !important;
    translate: none !important;
    scale: none !important;
    transition: none !important;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.22) !important;
    filter: none !important;
    opacity: 1 !important;
    color: #fff !important;
}

#ss-push-soft-prompt #ss-push-accept:focus-visible {
    outline: 2px solid #3897f0;
    outline-offset: 3px;
}

.ss-push-soft-prompt__btn--secondary {
    background: transparent;
    color: #111827;
    padding: 0 8px;
}

.ss-push-soft-prompt__status {
    min-height: 20px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
}

/* No reserved blank area beneath the buttons when no status is shown.
   This keeps the bottom whitespace equal to the top card padding. */
.ss-push-soft-prompt__status:empty {
    display: none;
}

.ss-push-soft-prompt__status.is-error {
    color: #b42318;
}

.ss-push-soft-prompt__status.is-success {
    color: #067647;
}

@media (max-width: 640px) {
    .ss-push-soft-prompt {
        right: 12px;
        left: 12px;
        bottom: calc(12px + var(--ss-push-sticky-offset, 0px));
        width: auto;
    }

    .ss-push-soft-prompt__inner {
        max-height: calc(100dvh - 24px - var(--ss-push-sticky-offset, 0px));
        border-radius: 22px;
        padding: 16px;
    }

    .ss-push-soft-prompt__title {
        font-size: 24px;
    }

    .ss-push-soft-prompt__text {
        font-size: 14px;
    }

    .ss-push-soft-prompt__actions {
        gap: 10px;
    }

    .ss-push-soft-prompt__btn--primary {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* SS Push is the first-visible popup: defer later overlay popups until it closes. */
[data-ss-push-deferred="1"] {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Modal priority is coordinated before another plugin opens a dialog.
   Never hide an already-open modal here: it may have its own scroll lock. */

