/* Окошко уведомлений и установки магазина.
   Оформление намеренно скромное: это не реклама, а короткий вопрос, и он не
   должен закрывать товар. На телефоне карточка растягивается на ширину экрана,
   на компьютере остаётся узкой. */

.web-push {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    width: min(420px, calc(100vw - 24px));
    display: none;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.web-push.is-shown { display: flex; }

.web-push--bottom { bottom: 16px; }
.web-push--top { top: 16px; }

.web-push__card {
    background: #fff;
    color: #1f2430;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 20, 35, 0.18);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.web-push__title { display: block; font-size: 15px; font-weight: 600; }
.web-push__text { margin: 6px 0 0; color: #55607a; }
.web-push__hint { margin: 8px 0 0; color: #55607a; font-size: 13px; }

.web-push__actions { display: flex; gap: 8px; justify-content: flex-end; }

.web-push__btn {
    appearance: none;
    border: 0;
    border-radius: 10px;
    padding: 9px 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    background: #4f46e5;
    color: #fff;
}

.web-push__btn:hover { filter: brightness(1.06); }

.web-push__btn--ghost { background: transparent; color: #55607a; font-weight: 500; }
.web-push__btn--ghost:hover { background: rgba(15, 20, 35, 0.06); }

/* Тёмное оформление витрины */
@media (prefers-color-scheme: dark) {
    .web-push__card { background: #1b2030; color: #e8ecf6; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }
    .web-push__text,
    .web-push__hint { color: #a8b2c8; }
    .web-push__btn--ghost { color: #a8b2c8; }
    .web-push__btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
}

html.dark .web-push__card { background: #1b2030; color: #e8ecf6; }
html.dark .web-push__text,
html.dark .web-push__hint { color: #a8b2c8; }
html.dark .web-push__btn--ghost { color: #a8b2c8; }

@media (max-width: 480px) {
    .web-push { width: calc(100vw - 16px); }
    .web-push--bottom { bottom: 10px; }
    .web-push__actions { justify-content: stretch; }
    .web-push__btn { flex: 1 1 auto; }
}
