/* Vendor pages: registration form, vendor dashboard, participant offers */
.gfv { min-height: 100vh; background: var(--gf-green); color: #0a0a0a; }
.gfv-top { background: var(--gf-green); padding: .8rem 0; }
.gfv-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gfv-back { color: #fff; font-size: .85rem; text-decoration: underline; }
.gfv-main { padding: 1rem 16px 3rem; max-width: 760px; }
.gfv-main > h1 { color: #fff; font-size: 1.35rem; line-height: 1.25; margin: .4rem 0 1rem; }
.gfv-card { background: #fff; border-radius: 18px; padding: 1.4rem 1.2rem 1.6rem; box-shadow: 0 16px 44px rgba(0,0,0,.25); margin-bottom: 1rem; }
.gfv-card h2 { font-size: 1.05rem; margin: 1.6rem 0 .2rem; color: var(--gf-green); }
.gfv-card > h2:first-child { margin-top: 0; }
.gfv-card h3 { font-size: .95rem; margin: 1.4rem 0 .2rem; color: var(--gf-green); }
.gfv-card textarea.gf-input { resize: vertical; min-height: 3rem; font-family: inherit; }
.gfv-lead { font-size: .9rem; margin: .3rem 0 .2rem; }
.gfv-note { background: #fffde0; border: 1px solid #e6df6a; border-radius: 12px; padding: .8rem 1rem; margin-top: 1.2rem; font-size: .9rem; }
.gfv-note p { margin: .3rem 0 0; }
.gfv-deal { border: 1px solid #d7e2db; border-radius: 14px; padding: .4rem 1rem 1rem; margin: 1rem 0 0; min-width: 0; }
.gfv-deal legend { font-weight: 700; font-size: .9rem; color: var(--gf-green); padding: 0 .4rem; }
.gfv-deal legend small { font-weight: 400; color: var(--gf-muted); }
.gfv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.gfv-grid .gf-field { min-width: 0; }
.gfv-grid input[readonly] { background: #f1f5f2; }
.gfv-sign { margin-top: 1.2rem; }
.gfv-card .gf-btn { margin-top: 1.4rem; width: 100%; }
.gfv-closed, .gfv-done { text-align: center; }
.gfv-done svg { margin: 0 auto .4rem; display: block; }
@media (max-width: 420px) { .gfv-grid { grid-template-columns: 1fr; } }

/* ---- vendor dashboard ---- */
.gfv-main-wide { max-width: 860px; }
.gfv-dash .gfv-main { padding-top: 1rem; }
.gfv-logout { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: .3rem .9rem; font: inherit; font-size: .85rem; cursor: pointer; }
.gfv-loading { color: #fff; }
.gfv-head h2 { margin: 0 0 .2rem; }
.gfv-sub { color: var(--gf-muted); font-size: .88rem; margin: .2rem 0 .8rem; }
.gfv-hint { font-size: .75rem; color: var(--gf-muted); margin-top: .2rem; }
.gfv-grid3 { grid-template-columns: repeat(3, 1fr); }
.gfv-quick { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .4rem 0 .2rem; font-size: .85rem; }
.gfv-chip { border: 1px solid var(--gf-green); background: #fff; color: var(--gf-green); border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.gfv-chip:hover { background: var(--gf-lemon); }
.gfv-btn-sm { border: 1px solid #b8c7bf; background: #fff; border-radius: 10px; padding: .35rem .8rem; font: inherit; font-size: .82rem; cursor: pointer; }
.gfv-btn-sm.is-danger { color: #a4221d; border-color: #e3b3b0; }
.gfv-offer { display: flex; align-items: center; gap: .8rem; border: 1px solid #d7e2db; border-radius: 14px; padding: .7rem .8rem; margin-top: .6rem; }
.gfv-offer.is-live { border-color: var(--gf-green); background: #f1fbe9; }
.gfv-offer.is-ended, .gfv-offer.is-cancelled { opacity: .55; }
.gfv-offer-body { flex: 1; min-width: 0; }
.gfv-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.gfv-price { font-weight: 700; color: var(--gf-green); font-size: .95rem; }
.gfv-when { font-size: .82rem; margin-top: .15rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.gfv-live { background: #d4271c; color: #fff; font-weight: 700; font-size: .7rem; letter-spacing: .08em; padding: .1rem .5rem; border-radius: 999px; }
.gfv-count.is-hot { color: #d4271c; font-weight: 700; }
.gfv-state { color: var(--gf-muted); }
.gfv-itemform { border: 1px dashed #b8c7bf; border-radius: 14px; padding: .8rem 1rem 1rem; margin-bottom: 1rem; }
.gfv-itemform .gf-btn { margin-top: .8rem; }
.gfv-preview { width: 100%; height: 150px; border-radius: 12px; background: #f1f5f2; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--gf-muted); font-size: .85rem; margin: .4rem 0; }
.gfv-preview img { width: 100%; height: 100%; object-fit: contain; }
.gfv-photo-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.gfv-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.gfv-item { border: 1px solid #d7e2db; border-radius: 14px; padding: .5rem; display: flex; flex-direction: column; gap: .25rem; }
.gfv-item.is-off { opacity: .5; }
.gfv-item img, .gfv-noimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #f1f5f2; display: flex; align-items: center; justify-content: center; color: var(--gf-muted); font-size: .8rem; }
.gfv-item-actions { display: flex; gap: .4rem; margin-top: .3rem; }
.gfv-deal-row { display: flex; flex-direction: column; padding: .4rem 0; border-bottom: 1px solid #edf1ee; font-size: .88rem; }
.gfv-toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 140%); background: #083d2e; color: #fff; padding: .7rem 1.2rem; border-radius: 12px; z-index: 50; transition: transform .25s; max-width: 92vw; font-size: .9rem; }
.gfv-toast.is-err { background: #a4221d; }
.gfv-toast.is-show { transform: translate(-50%, 0); }
@media (max-width: 460px) { .gfv-grid3 { grid-template-columns: 1fr 1fr; } }

/* ---- participant offers ---- */
.gfv-title { color: #fff; }
.gfv-lead-w { color: #d7e6df; font-size: .92rem; margin: .2rem 0 1rem; }
.gfo-h { color: var(--gf-lemon); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin: 1.2rem 0 .5rem; }
.gfo-card { display: flex; background: #fff; border-radius: 16px; overflow: hidden; margin-bottom: .8rem; box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.gfo-card.is-live { border: 3px solid var(--gf-lemon); }
.gfo-card.is-soon { opacity: .92; }
.gfo-img { width: 112px; object-fit: cover; flex: none; }
.gfo-body { padding: .8rem .9rem; min-width: 0; flex: 1; }
.gfo-body h3 { margin: 0 0 .2rem; font-size: 1.05rem; line-height: 1.25; }
.gfo-price { display: flex; align-items: baseline; gap: .6rem; }
.gfo-price strong { font-size: 1.4rem; color: var(--gf-green); }
.gfo-price s { color: var(--gf-muted); font-size: .9rem; }
.gfo-save { color: #0a7a3d; font-weight: 700; font-size: .85rem; }
.gfo-vendor { font-size: .85rem; color: #3a4a42; margin-top: .2rem; }
.gfo-timer { margin-top: .4rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gf-green); }
.gfo-card.is-live .gfo-timer::before { content: "● "; color: #d4271c; }
.gfo-timer.is-hot { color: #d4271c; animation: gfo-pulse 1s infinite; }
.gfo-qty { font-size: .78rem; color: var(--gf-muted); margin-top: .1rem; }
.gfo-empty { text-align: center; color: #3a4a42; }
@keyframes gfo-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .gfo-timer.is-hot { animation: none; } }

/* specificity fixes: the site theme was overriding link and heading colours on the green background */
.gfv .gfv-top a.gfv-back, .gfv a.gfv-back { color: #fff; text-decoration: none; font-weight: 600; }
.gfv .gfo-h { color: var(--gf-lemon); }
.gfv .gfv-main > h1, .gfv .gfv-title { color: #fff; }
.gfo-price { flex-wrap: wrap; row-gap: 0; }

/* ---- email vault ---- */
.gfvault-list { display: flex; flex-direction: column; gap: .4rem; margin-top: .8rem; max-height: 46vh; overflow: auto; }
.gfvault-row { text-align: left; background: #fff; border: 1px solid #d7e2db; border-radius: 12px; padding: .6rem .8rem; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: .1rem; }
.gfvault-row span { font-size: .78rem; color: var(--gf-muted); }
.gfvault-row.is-sel, .gfvault-row:hover { border-color: var(--gf-green); background: #f1fbe9; }
.gfvault-meta { font-size: .85rem; margin-bottom: .6rem; line-height: 1.5; word-break: break-all; }
.gfvault-frame { width: 100%; height: 70vh; border: 1px solid #d7e2db; border-radius: 12px; background: #fff; }
.gfv-demo-banner { background: #fff200; color: #083d2e; text-align: center; font-size: .85rem; font-weight: 600; padding: .45rem 1rem; }
.gfv-demo-banner a { color: #083d2e; text-decoration: underline; }

/* offer photo: show the whole square instead of a cropped strip */
.gfo-img { width: 104px; height: 104px; align-self: flex-start; margin: .7rem 0 .7rem .7rem; border-radius: 12px; object-fit: cover; }

/* ---- raffle ---- */
.gfv-raffle-wrap { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.gfv-raffle-qr { width: 120px; height: 120px; border: 1px solid #d7e2db; border-radius: 12px; background: #fff; padding: 6px; }
.gfv-raffle-code { font-size: 1.4rem; font-weight: 700; letter-spacing: .06em; color: var(--gf-green); }
.gfv-pending { margin-top: 1rem; border-top: 1px solid #edf1ee; padding-top: .8rem; }
.gfv-pending-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid #edf1ee; }
.gfv-pending-row:last-child { border-bottom: none; }
