/* Epetzo perks: free-delivery bar, cookie consent, rewards / autoship / policy pages. Mobile-first, no fixed widths. */
.fd-bar { margin: 10px 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--sky-soft); color: var(--text); font-size: 13px; min-width: 0; }
.fd-bar-text { margin: 0 0 6px; overflow-wrap: anywhere; }
.fd-bar-track { height: 6px; border-radius: var(--radius-pill); background: rgba(24,119,242,.15); overflow: hidden; }
.fd-bar-fill { height: 100%; border-radius: inherit; background: var(--teal); transition: width .3s ease; max-width: 100%; }
.fd-bar.is-unlocked { background: #e7f6ee; }
.fd-bar.is-unlocked .fd-bar-fill { background: #1f9d55; }

.checkout-perks, .checkout-points, .checkout-autoship { margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); min-width: 0; }
.checkout-points-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.checkout-points-row input { flex: 1 1 120px; min-width: 0; max-width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.checkout-points-earn { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.checkout-autoship-lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.checkout-autoship-lines li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.checkout-autoship-name { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.checkout-autoship select { max-width: 100%; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); }

.cc-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1200; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; box-sizing: border-box; }
.cc-banner-copy { flex: 1 1 260px; min-width: 0; font-size: 14px; }
.cc-banner-copy p { margin: 4px 0 0; color: var(--muted); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-backdrop { position: fixed; inset: 0; z-index: 1250; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; padding: 12px; }
.cc-dialog { width: 100%; max-width: 520px; max-height: calc(100vh - 24px); overflow: auto; background: var(--white); border-radius: var(--radius); padding: 18px; box-sizing: border-box; }
.cc-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cc-close { border: 0; background: none; font-size: 22px; cursor: pointer; line-height: 1; }
.cc-cats { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.cc-cats li { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cc-cats li > div { min-width: 0; }
.cc-always { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cc-switch { width: 20px; height: 20px; flex: 0 0 auto; }

.perks-page, .policy-page { padding: 32px 0 48px; }
.perks-hero { margin-bottom: 20px; }
.perks-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--teal); font-weight: 700; margin: 0; }
.perks-lead { color: var(--muted); font-size: 16px; max-width: 720px; }
.perks-subhead { margin: 24px 0 10px; }
.perks-grid, .perks-tiers, .perks-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.perks-card, .perks-tier, .perks-steps > li { padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.perks-step-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; margin-bottom: 6px; }
.perks-chip { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--sky-soft); font-size: 12px; margin: 2px 4px 2px 0; }
.perks-list { padding-left: 18px; }
.perks-actions, .perks-plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.perks-back { display: inline-block; margin-top: 24px; }
.perks-account { min-width: 0; }
.perks-account-title { margin: 0; }
.perks-balance { font-size: 28px; font-weight: 800; margin: 6px 0; }
.perks-tierbar { margin: 10px 0; }
.perks-tierbar-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.perks-history { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.perks-history li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.perks-history li > span { min-width: 0; overflow-wrap: anywhere; }
.perks-history .is-plus { color: #1f9d55; } .perks-history .is-minus { color: #c0392b; }
.perks-history li.is-void { opacity: .5; text-decoration: line-through; }
.perks-plan { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 10px; min-width: 0; }
.perks-plan.is-paused { opacity: .8; } .perks-plan.is-cancelled { opacity: .55; }
.perks-plan-items { padding-left: 18px; margin: 6px 0; overflow-wrap: anywhere; }
.perks-plan-last { font-size: 13px; color: var(--muted); }
.perks-danger { color: #c0392b !important; }
.perks-error { color: #c0392b; font-size: 13px; }
.policy-body { max-width: 820px; line-height: 1.7; overflow-wrap: anywhere; }
.policy-body img, .policy-body table { max-width: 100%; }
.policy-body table { display: block; overflow-x: auto; }
@media (max-width: 560px) { .cc-banner { left: 8px; right: 8px; bottom: 8px; } .cc-actions { width: 100%; } .cc-actions .btn { flex: 1 1 auto; } .perks-page, .policy-page { padding: 20px 0 32px; } }
/* parity-2: autoship item editing + leaderboard */
.perks-plan-note { font-size: 13px; margin: 6px 0; }
.perks-plan-items li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.perks-plan-items li.is-dim { opacity: .7; }
.perks-plan-items img { border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.perks-item-name { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.perks-item-tools { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; width: 100%; justify-content: flex-end; }
.perks-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.perks-qty button { border: 0; background: var(--surface); width: 30px; height: 30px; cursor: pointer; font-size: 16px; line-height: 1; }
.perks-qty button:disabled { opacity: .4; cursor: default; }
.perks-qty span { min-width: 28px; text-align: center; font-weight: 700; }
.perks-link { border: 0; background: none; padding: 4px 0; color: var(--teal); cursor: pointer; font-size: 13px; text-decoration: underline; }
.perks-link:disabled { opacity: .45; cursor: default; }
.perks-freq select { max-width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.perks-add { margin-top: 10px; padding: 10px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.perks-add input { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.perks-add-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.perks-add-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.perks-board { margin: 24px 0; min-width: 0; }
.perks-board-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.perks-board-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.perks-board-list li.is-me { border-color: var(--teal); background: var(--sky-soft); }
.perks-board-rank { flex: 0 0 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: 13px; }
.perks-board-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.perks-board-list strong { white-space: nowrap; }