/*
 * Pushyar on the storefront: the soft prompt and the bell button.
 * Light purple glass, logical properties only (I18N-R1, PUSH-R5).
 */
.pushyar-prompt,
.pushyar-bell {
    --pushyar-primary: #a878e6;
    --pushyar-primary-soft: #f3ecfd;
    --pushyar-ink: #2c2338;
    --pushyar-ink-muted: #625775;
    position: fixed;
    z-index: 99999;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.7;
    color: var(--pushyar-ink);
}

.pushyar-prompt {
    inset-block-end: 20px;
    inset-inline-end: 20px;
    width: min(360px, calc(100vw - 32px));
    padding: 16px 18px;
    border: 1px solid rgba(168, 120, 230, 0.26);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(243, 236, 253, 0.92));
    box-shadow: 0 14px 34px rgba(168, 120, 230, 0.22);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    animation: pushyar-rise 0.22s ease-out;
}

.pushyar-prompt strong {
    display: block;
    font-size: 15px;
}

.pushyar-prompt p {
    margin-block: 6px 12px;
    color: var(--pushyar-ink-muted);
}

.pushyar-prompt-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.pushyar-prompt button {
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.pushyar-prompt-allow {
    background: var(--pushyar-primary);
    color: var(--pushyar-ink);
}

.pushyar-prompt-later {
    background: transparent;
    border-color: rgba(168, 120, 230, 0.4);
    color: var(--pushyar-ink-muted);
}

.pushyar-bell {
    inset-block-end: 20px;
    inset-inline-start: 20px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(168, 120, 230, 0.3);
    border-radius: 50%;
    background: var(--pushyar-primary-soft) url("../images/icon.svg") center / 26px no-repeat;
    box-shadow: 0 8px 20px rgba(168, 120, 230, 0.26);
    cursor: pointer;
}

@keyframes pushyar-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* The on-site inbox, from the [pushyar_inbox] shortcode (3.9.29). */
.pushyar-inbox {
    --pushyar-primary: #a878e6;
    --pushyar-primary-soft: #f3ecfd;
    --pushyar-ink: #2c2338;
    --pushyar-ink-muted: #625775;
    box-sizing: border-box;
    max-width: 640px;
    padding: 14px 16px;
    border: 1px solid rgba(168, 120, 230, 0.26);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(243, 236, 253, 0.92));
    color: var(--pushyar-ink);
    font-size: 14px;
    line-height: 1.7;
}

.pushyar-inbox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-block-end: 8px;
}

.pushyar-inbox-read-all {
    border: 0;
    background: none;
    color: var(--pushyar-ink-muted);
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

.pushyar-inbox ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pushyar-inbox li {
    display: grid;
    gap: 2px;
    padding-block: 10px;
    padding-inline: 10px;
    border-radius: 10px;
}

.pushyar-inbox li + li {
    margin-block-start: 4px;
}

.pushyar-inbox li.is-unread {
    background: var(--pushyar-primary-soft);
    border-inline-start: 3px solid var(--pushyar-primary);
}

.pushyar-inbox-title a {
    color: var(--pushyar-ink);
    font-weight: 600;
    text-decoration: none;
}

.pushyar-inbox-body,
.pushyar-inbox time,
.pushyar-inbox-empty,
.pushyar-inbox.is-empty {
    color: var(--pushyar-ink-muted);
}

.pushyar-inbox time {
    font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .pushyar-prompt {
        animation: none;
    }
}
