.push-subscription {
    position: relative;
    max-width: 760px;
    margin: 0 auto 24px;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(95, 127, 114, 0.10) 0%,
            rgba(255, 255, 255, 0.96) 48%,
            rgba(255, 255, 255, 1) 100%
        );

    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);

    box-shadow:
        0 10px 30px rgba(23, 32, 51, 0.06);

    box-sizing: border-box;
}


/*
 * Небольшой акцент сверху визуально связывает
 * карточку с основной цветовой схемой QuizLand.
 */
.push-subscription::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--accent),
        transparent
    );

    opacity: 0.65;
}


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


.push-subscription__state {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;

    min-height: 106px;
    padding: 20px 22px;
}


/* =========================
   ICON
   ========================= */

.push-subscription__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    flex-shrink: 0;

    color: var(--accent-strong);
    background: var(--accent-soft);

    border: 1px solid var(--accent-border);
    border-radius: 50%;
}


.push-subscription__icon svg {
    display: block;
}


.push-subscription__icon--success {
    color: var(--accent-strong);
    background: rgba(95, 127, 114, 0.15);
}


.push-subscription__icon--muted {
    color: var(--text-muted);
    background: var(--surface-muted);
    border-color: var(--border-soft);
}


/* =========================
   TEXT
   ========================= */

.push-subscription__content {
    min-width: 0;
}


.push-subscription__title {
    margin: 0 0 5px;

    color: var(--text-main);

    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.3;

    letter-spacing: -0.01em;
}


.push-subscription__description {
    max-width: 470px;

    color: var(--text-muted);

    font-size: 0.91rem;
    font-weight: 400;
    line-height: 1.45;
}


/* =========================
   ACTION
   ========================= */

.push-subscription__action {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex-shrink: 0;
}


.push-subscription__button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    min-width: 168px;

    padding: 10px 17px;

    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);

    background: var(--accent);
    color: var(--color-white);

    font: inherit;
    font-size: 0.89rem;
    font-weight: 750;
    line-height: 1.2;

    text-align: center;
    white-space: nowrap;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(72, 105, 95, 0.16);

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease,
        opacity 0.18s ease;
}


.push-subscription__button:hover:not(:disabled) {
    background: var(--accent-strong);
    border-color: var(--accent-strong);

    box-shadow:
        0 9px 22px rgba(72, 105, 95, 0.22);

    transform: translateY(-1px);
}


.push-subscription__button:active:not(:disabled) {
    transform: translateY(0);

    box-shadow:
        0 4px 12px rgba(72, 105, 95, 0.16);
}


.push-subscription__button:focus-visible {
    outline: 3px solid var(--accent-soft);
    outline-offset: 3px;
}


/* =========================
   SECONDARY BUTTON
   ========================= */

.push-subscription__button--secondary {
    min-width: auto;

    background: var(--surface-solid);
    color: var(--accent-strong);

    border-color: var(--accent-border);

    box-shadow: none;
}


.push-subscription__button--secondary:hover:not(:disabled) {
    background: var(--accent-soft);
    color: var(--accent-strong);

    border-color: var(--accent);

    box-shadow: none;
}


/* =========================
   LOADING / DISABLED
   ========================= */

.push-subscription__button:disabled {
    cursor: wait;

    opacity: 0.72;

    transform: none;
    box-shadow: none;
}


.push-subscription__button:disabled::after {
    content: "";

    width: 14px;
    height: 14px;

    flex: 0 0 14px;

    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;

    opacity: 0.8;

    animation: push-subscription-spinner 0.7s linear infinite;
}


@keyframes push-subscription-spinner {
    to {
        transform: rotate(360deg);
    }
}


/* =========================
   DENIED STATE
   ========================= */

.push-subscription__state--denied {
    grid-template-columns: auto minmax(0, 1fr);
}


.push-subscription__state--denied
.push-subscription__description {
    max-width: none;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {
    .push-subscription {
        margin-bottom: 20px;
        border-radius: var(--radius-md);
    }

    .push-subscription::before {
        left: 20px;
        right: 20px;
    }

    .push-subscription__state {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 13px 14px;

        min-height: 0;
        padding: 17px;
    }

    .push-subscription__icon {
        width: 46px;
        height: 46px;

        align-self: start;
    }

    .push-subscription__icon svg {
        width: 23px;
        height: 23px;
    }

    .push-subscription__title {
        margin-top: 1px;

        font-size: 1rem;
    }

    .push-subscription__description {
        font-size: 0.88rem;
    }

    .push-subscription__action {
        grid-column: 1 / -1;

        width: 100%;
        margin-top: 2px;
    }

    .push-subscription__button {
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }

    .push-subscription__state--denied {
        grid-template-columns: auto minmax(0, 1fr);
    }
}


@media (max-width: 420px) {
    .push-subscription__state {
        padding: 15px;
    }

    .push-subscription__icon {
        width: 42px;
        height: 42px;
    }

    .push-subscription__icon svg {
        width: 21px;
        height: 21px;
    }

    .push-subscription__title {
        font-size: 0.96rem;
    }

    .push-subscription__description {
        font-size: 0.85rem;
        line-height: 1.42;
    }
}


/* =========================
   REDUCED MOTION
   ========================= */

@media (prefers-reduced-motion: reduce) {
    .push-subscription__button {
        transition: none;
    }

    .push-subscription__button:hover:not(:disabled) {
        transform: none;
    }

    .push-subscription__button:disabled::after {
        animation-duration: 1.4s;
    }
}