/* New-post alerts: Follow, Save search, the bell, "More options" (partials/alert_assets, frontend/js/site/alerts.js). */
.pv-follow, .pv-ssave { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; vertical-align: middle; }
.pv-al-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
    border: 2px solid var(--theme, #0b7a3b); background: var(--theme, #0b7a3b); color: var(--theme-on, #fff); cursor: pointer; line-height: 1; white-space: nowrap; }
.pv-al-btn:hover { background: var(--theme-dark, #075c2c); border-color: var(--theme-dark, #075c2c); color: var(--theme-on, #fff); }
.pv-al-btn:focus-visible, .pv-al-bell:focus-visible, .pv-al-more:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.pv-al-btn:disabled { opacity: .65; cursor: wait; }
.is-following > .pv-al-btn, .is-saved > .pv-al-btn { background: #fff; color: var(--theme-dark, #075c2c); }
.pv-al-btn.pv-al-quiet { background: #fff; color: var(--theme-dark, #075c2c); }
.pv-al-btn.pv-al-quiet:hover { background: #f0fdf4; }
.pv-al-bell, .pv-al-more { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid #d1d5db; background: #fff; color: #4b5563; cursor: pointer; font-size: 16px; padding: 0; }
.pv-al-bell.is-on { color: #b45309; border-color: #f59e0b; background: #fffbeb; }
.pv-al-bell[hidden], .pv-al-more[hidden] { display: none; }
.pv-al-followers { font-size: 13px; color: inherit; opacity: .9; }
/* On the seller's banner (white text on a photo) */
.pv-follow.pv-on-banner .pv-al-btn { border-color: #fff; }
.pv-follow.pv-on-banner.is-following .pv-al-btn { background: rgba(255,255,255,.95); }

/* The message at the bottom of the screen */
.pv-al-toast { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); z-index: 2147483600; /* above the cookie notice and chat buttons */ display: flex; align-items: center; gap: 12px;
    max-width: min(560px, calc(100vw - 32px)); padding: 12px 14px 12px 18px; border-radius: 12px; background: #111827; color: #fff; font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .25s ease; }
.pv-al-toast.is-on { transform: translate(-50%, 0); }
.pv-al-toast button { background: none; border: 0; color: #fcd34d; font-weight: 700; cursor: pointer; padding: 6px 4px; white-space: nowrap; }
.pv-al-toast .pv-al-toast-x { color: #9ca3af; font-size: 20px; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .pv-al-toast { transition: none; } }

/* "More options" */
.pv-al-dialog { margin: auto; /* the site's reset sets margin 0, which pins a dialog to the top left */ width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.pv-al-dialog::backdrop { background: rgba(17,24,39,.55); }
.pv-al-dialog form { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.pv-al-dialog fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pv-al-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pv-al-head h2 { font-size: 18px; margin: 0; font-weight: 800; }
.pv-al-x { background: none; border: 0; font-size: 28px; line-height: 1; color: #6b7280; width: 40px; height: 40px; cursor: pointer; }
.pv-al-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; margin: 0 0 2px; }
.pv-al-radio, .pv-al-check { display: flex; align-items: center; gap: 10px; min-height: 36px; margin: 0; font-weight: 500; cursor: pointer; }
.pv-al-radio input, .pv-al-check input { width: 18px; height: 18px; accent-color: var(--theme, #0b7a3b); }
.pv-al-switch { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; font-weight: 700; margin: 0; cursor: pointer; }
.pv-al-switch input { width: 20px; height: 20px; accent-color: #b45309; }
.pv-al-switch i { color: #b45309; }
.pv-al-narrow { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: #f9fafb; border: 1px solid #e5e7eb; }
.pv-al-narrow[hidden] { display: none; }
.pv-al-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-al-row .form-control { flex: 1 1 140px; }
.pv-al-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pv-al-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #ecfdf5; color: #065f46; font-size: 13px; font-weight: 600; }
.pv-al-link { font-weight: 600; }
.pv-al-help { color: #6b7280; }
.pv-al-err { color: #b91c1c; margin: 0; min-height: 0; }
.pv-al-err:empty { display: none; }
.pv-al-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* My alerts */
.pv-al-tabs { display: flex; gap: 6px; border-bottom: 1px solid #e5e7eb; margin-bottom: 16px; }
.pv-al-tabs a { padding: 10px 14px; font-weight: 700; color: #4b5563; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pv-al-tabs a.is-on { color: var(--theme-dark, #075c2c); border-bottom-color: var(--theme, #0b7a3b); }
.pv-al-tabs .pv-al-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #e5e7eb; color: #374151; font-size: 12px; margin-left: 4px; }
.pv-al-list { display: flex; flex-direction: column; gap: 10px; }
.pv-al-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.pv-al-item.is-off { background: #f9fafb; }
.pv-al-item.is-off .pv-al-main strong { color: #6b7280; }
.pv-al-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 44px; }
.pv-al-main { flex: 1 1 0; min-width: 0; }
.pv-al-main strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-al-main small { color: #6b7280; }
.pv-al-new { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 700; margin-left: 6px; vertical-align: middle; }
.pv-al-acts { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.pv-al-empty { padding: 28px 18px; text-align: center; border: 1px dashed #d1d5db; border-radius: 12px; color: #4b5563; }
.pv-al-empty i { font-size: 28px; color: #9ca3af; display: block; margin-bottom: 8px; }
@media (max-width: 575px) {
    .pv-al-item { flex-wrap: wrap; }
    .pv-al-acts { width: 100%; justify-content: flex-end; }
}
