/* Soft opt-in CTA for Web Push — shown under the site logo */
.logo-wrap {
    display: inline-block;
    vertical-align: top;
    max-width: 100%;
}

.push-prompt {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    max-width: 320px;
}

.push-prompt[hidden] {
    display: none !important;
}

.push-enable-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 9px 16px;
    border: 2px solid #111827;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font: 13px/1.3 Oswald, Arial, Helvetica, sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    animation: push-prompt-pulse 2.8s ease-in-out infinite;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.push-enable-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    line-height: 0;
    color: inherit;
}

.push-enable-btn__icon svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.push-enable-btn__icon--bell {
    transform-origin: top center;
    animation: push-bell-ring 1.6s ease-in-out infinite;
}

.push-enable-btn__icon--check {
    display: none;
}

.push-enable-btn__label {
    white-space: nowrap;
    color: inherit;
}

.push-enable-btn:hover,
.push-enable-btn:focus {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
    outline: none;
    transform: translateY(-1px);
    animation: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.push-enable-btn:hover .push-enable-btn__icon--bell,
.push-enable-btn:focus .push-enable-btn__icon--bell {
    animation-duration: 0.7s;
}

.push-enable-btn:active {
    transform: translateY(0);
}

.push-enable-btn:disabled,
.push-enable-btn.is-loading {
    opacity: 0.7;
    cursor: wait;
    animation: none;
    transform: none;
}

.push-enable-btn:disabled .push-enable-btn__icon--bell,
.push-enable-btn.is-loading .push-enable-btn__icon--bell {
    animation: none;
}

/* Success state after subscribe */
.push-enable-btn.is-subscribed {
    cursor: default;
    opacity: 1;
    animation: none;
    background: #ecfdf5;
    border-color: #047857;
    color: #065f46;
    box-shadow: none;
    transform: none;
}

.push-enable-btn.is-subscribed .push-enable-btn__icon--bell {
    display: none;
    animation: none;
}

.push-enable-btn.is-subscribed .push-enable-btn__icon--check {
    display: inline-flex;
    animation: push-check-pop 0.35s ease-out;
}

@keyframes push-prompt-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(17, 24, 39, 0.28);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(17, 24, 39, 0);
    }
}

@keyframes push-bell-ring {
    0%,
    100% {
        transform: rotate(0);
    }
    8% {
        transform: rotate(14deg);
    }
    16% {
        transform: rotate(-12deg);
    }
    24% {
        transform: rotate(10deg);
    }
    32% {
        transform: rotate(-8deg);
    }
    40% {
        transform: rotate(5deg);
    }
    48% {
        transform: rotate(0);
    }
}

@keyframes push-check-pop {
    0% {
        transform: scale(0.4);
        opacity: 0;
    }
    70% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .push-enable-btn,
    .push-enable-btn__icon--bell,
    .push-enable-btn.is-subscribed .push-enable-btn__icon--check {
        animation: none;
    }
}

@media screen and (max-width: 1040px) {
    .logo-wrap {
        display: block;
    }

    .push-prompt {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
}
