/**
 * push.css — стили мягкой карточки запроса разрешения на веб-пуш.
 * Разметка — local/include/push_prompt.php, логика — push.js. Карточка фиксирована
 * в правом нижнем углу (десктоп) / снизу на всю ширину (мобила). Показывается после
 * согласия на cookie, поэтому с cookie-плашкой (по центру снизу) не пересекается.
 */

.ship-push-prompt {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10050;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 360px;
    max-width: calc(100vw - 32px);
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
    font-family: inherit;
    transform: translateY(0);
    opacity: 1;
    transition: opacity .25s ease, transform .25s ease;
}

.ship-push-prompt--hidden {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    visibility: hidden;
}

.ship-push-prompt__icon {
    font-size: 26px;
    line-height: 1;
    flex: 0 0 auto;
    margin-top: 2px;
}

.ship-push-prompt__body {
    flex: 1 1 auto;
    min-width: 0;
}

.ship-push-prompt__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
}

.ship-push-prompt__text {
    margin: 0 0 12px;
    font-size: 13px;
    color: #6a6a6a;
    line-height: 1.4;
}

.ship-push-prompt__actions {
    display: flex;
    gap: 8px;
}

.ship-push-prompt__btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 10px;
    transition: background .15s ease, color .15s ease;
}

.ship-push-prompt__btn--yes {
    /* Фирменный розовый градиент (как CTA на /status/ и /personal/:
       --pa-accent #e8a2e1 → --pa-accent-hover #d987d1 → #c66fbd). */
    background: linear-gradient(135deg, #e8a2e1 0%, #d987d1 60%, #c66fbd 100%);
    color: #ffffff;
}
.ship-push-prompt__btn--yes:hover {
    background: linear-gradient(135deg, #d987d1 0%, #c66fbd 60%, #b45fab 100%);
}

.ship-push-prompt__btn--no {
    background: #f2f2f2;
    color: #555;
}
.ship-push-prompt__btn--no:hover { background: #e7e7e7; }

.ship-push-prompt__close {
    position: absolute;
    top: 8px;
    right: 10px;
    appearance: none;
    border: 0;
    background: transparent;
    color: #b5b5b5;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}
.ship-push-prompt__close:hover { color: #777; }

@media (max-width: 560px) {
    .ship-push-prompt {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
        border-radius: 14px;
    }
}
