/* Keep CutPrice's palette; deepen pink for readable white button labels. */
.cp-error-header>a:not(.cp-error-logo),.cp-error-footer a{color:#00634e;text-underline-offset:3px}
:root{--pink:#cc0066;--cp-pink:#cc0066;--action-pink:#cc0066;--action-hover:#a80054}
.cp-pink,.cp-search button,.primary-auth{background:var(--action-pink);color:#fff}
.cp-pink:hover,.cp-search button:hover,.primary-auth:hover{background:var(--action-hover)}
button:disabled{cursor:not-allowed;opacity:.65}
:focus-visible{outline:3px solid #00634e;outline-offset:3px}
::selection{background:#c7f1e4;color:#142039}
input,textarea{caret-color:#00634e}
.cp-workflow{padding:32px 0 56px;max-width:1000px}
.cp-workflow h1{margin:20px 0 24px;font-family:Manrope,sans-serif}
.cp-workflow .db-card{margin:0 0 24px}
.cp-workflow .db-form{display:grid;gap:16px}
.cp-workflow p{max-width:70ch;line-height:1.65}
.cp-workflow button,.cp-workflow .cp-btn{min-height:44px;justify-self:start}
.cp-workflow label{display:grid;gap:8px}
.cp-workflow input,.cp-workflow select,.cp-workflow textarea{min-width:0;width:100%;box-sizing:border-box}
.cp-prewrap{white-space:pre-wrap;overflow-wrap:anywhere}
.cp-shop-photo{width:120px;height:120px;object-fit:cover;border-radius:12px}
.cp-workflow a:not(.cp-btn){color:#00634e;text-decoration:underline;text-underline-offset:3px}
.cp-error-page{margin:0;background:#f8fcfa;color:#142039;font-family:'DM Sans',sans-serif;min-height:100vh;display:flex;flex-direction:column}
.cp-error-header,.cp-error-footer{width:min(1180px,calc(100% - 48px));margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:28px 0}
.cp-error-header{border-bottom:1px solid #dce6ed}.cp-error-logo{font:800 28px Manrope,sans-serif;text-decoration:none;color:#142039}.cp-error-logo span{color:#00634e}
.cp-error-main{width:min(1100px,calc(100% - 48px));margin:auto;display:grid;grid-template-columns:1.25fr 1fr;align-items:center;gap:72px;padding:72px 0}
.cp-error-main h1{font:800 clamp(32px,4vw,54px)/1.12 Manrope,sans-serif;letter-spacing:-.025em;margin:0 0 24px;max-width:14ch}
.cp-error-main p{font-size:18px;line-height:1.65;color:#46566b;max-width:46ch;margin:0 0 28px}
.cp-error-code{font:800 clamp(100px,17vw,230px)/1 Manrope,sans-serif;color:#00634e;letter-spacing:-.035em;text-align:center;border-bottom:6px solid #cc0066;padding-bottom:24px}
.cp-error-actions{display:flex;gap:12px;flex-wrap:wrap}.cp-error-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:8px;font-weight:700;text-decoration:none;background:#cc0066;color:white}.cp-error-actions a.secondary{background:#fff;color:#00634e;border:1px solid #00634e}
.cp-error-footer{border-top:1px solid #dce6ed;font-size:14px;color:#46566b;gap:20px}.cp-error-page a:focus-visible{outline:3px solid #00634e;outline-offset:4px}
@media(max-width:700px){.cp-error-main{grid-template-columns:1fr;gap:32px;padding:40px 0}.cp-error-code{grid-row:1;text-align:left;font-size:100px;max-width:240px;padding-bottom:16px}.cp-error-header{padding:20px 0}.cp-error-footer{align-items:flex-start;flex-direction:column}.cp-error-main h1{max-width:18ch}.cp-workflow{padding-top:20px}}

/* Loading state (pages that show account data).
   A one-line script in each page's <head> adds .cp-loading to <html>; backend-ui.js removes it once the
   real data has been drawn. Until then the main area stays hidden, so the sample content written into
   the HTML design never flashes on screen. Failsafe: the content shows after 6s whatever happens. */
html.cp-loading main{visibility:hidden;animation:cp-reveal 0s linear 6s forwards}
html.cp-loading body::after{content:'Loading…';position:fixed;left:50%;top:45%;transform:translateX(-50%);color:#64748a;font-size:14px;opacity:0;animation:cp-loading-note .2s ease .5s forwards}
@keyframes cp-reveal{to{visibility:visible}}
@keyframes cp-loading-note{to{opacity:1}}

/* Item page when the listing doesn't exist or isn't approved (design-bindings.js). */
.cp-unavailable{padding:60px 0 90px;text-align:center}.cp-unavailable h1{font-size:30px;margin-bottom:10px}.cp-unavailable p{color:#64748a;margin:0 0 18px}

/* Area themes: buying pages are pink, selling pages green. The class is set by the one-line script in each
   page's <head> (buyer/ and account/ pages = buyer; seller/ pages, or account pages opened with ?role=seller = seller).
   Only the page body changes; the site header, footer and public pages keep the brand colours. */
html.cp-area-buyer main{--green:#cc0066;--mint:#fff0f7}
html.cp-area-buyer .db-sidebar nav a:hover,html.cp-area-buyer .db-sidebar nav a.active{background:#fff0f7}
html.cp-area-buyer .db-avatar,html.cp-area-buyer .db-stat .symbol,html.cp-area-buyer .db-badge{background:#ffe8f2;color:#cc0066}
html.cp-area-buyer .db-callout{background:linear-gradient(110deg,#fff0f7,#fff8fb);border-color:#f6c6dc}
html.cp-area-buyer .db-chart span{background:linear-gradient(#e0337f,#fbd5e6)}
html.cp-area-buyer .db-event{border-left-color:#f6c6dc}
html.cp-area-seller main{--pink:#00634e;--cp-pink:#00634e;--action-pink:#00634e;--action-hover:#004d3c}
.cp-unavailable a{display:inline-block;background:#00634e;color:#fff;padding:12px 22px;border-radius:8px;font-weight:700;text-decoration:none}
html.cp-area-seller .db-stat .symbol{background:#e7f8f2;color:#00634e}

/* Header bell, counts and pop-up messages (shared/js/account-menu.js) */
.cp-bell-wrap{position:relative;display:inline-flex}
.cp-bell{position:relative;background:none;border:0;padding:4px;font-size:19px;color:inherit;cursor:pointer;line-height:1}
.cp-count{position:absolute;top:-6px;right:-9px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#cc0066;color:#fff;font:700 10px/17px 'DM Sans',sans-serif;text-align:center}
.cp-count[hidden]{display:none!important}
a .cp-count,.cp-bell .cp-count{position:absolute}
header a[href$="cart.html"],header a[href$="favorites.html"]{position:relative}
.cp-bell-menu{position:absolute;right:-60px;top:calc(100% + 12px);width:330px;max-width:calc(100vw - 24px);background:#fff;border:1px solid #e3eaed;border-radius:12px;box-shadow:0 18px 40px rgba(20,32,57,.16);z-index:80;overflow:hidden;text-align:left}
.cp-bell-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid #eef1f3;font-size:14px}
.cp-bell-head button{background:none;border:0;color:#00634e;font-weight:700;font-size:12px;cursor:pointer}
.cp-bell-menu>a[data-id]{display:block;padding:10px 14px;border-bottom:1px solid #f1f4f5;font-size:13px;color:#33415c;text-decoration:none}
.cp-bell-menu>a[data-id].unread{background:#fff5fa;font-weight:600}
.cp-bell-menu>a[data-id].unread span:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#cc0066;margin-right:7px;vertical-align:middle}
.cp-bell-menu>a[data-id] small{display:block;color:#8a97a4;font-size:11px;margin-top:3px;font-weight:400}
.cp-bell-menu>a[data-id]:hover{background:#f6faf9}
.cp-bell-empty{padding:18px 14px;color:#64748a;font-size:13px;margin:0}
.cp-bell-all{display:block;text-align:center;padding:11px;font-weight:700;font-size:13px;color:#00634e;text-decoration:none}
.cp-toasts{position:fixed;top:84px;right:18px;z-index:1000;display:grid;gap:10px;width:min(360px,calc(100vw - 32px))}
.cp-toast{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid #e3eaed;border-left:4px solid #cc0066;border-radius:12px;padding:13px 14px;box-shadow:0 14px 34px rgba(20,32,57,.18);animation:cp-toast-in .3s ease;transition:opacity .4s,transform .4s}
.cp-toast.out{opacity:0;transform:translateX(20px)}
.cp-toast>i{color:#cc0066;font-size:16px;margin-top:2px}
.cp-toast strong{display:block;font-size:14px;color:#142039}
.cp-toast p{margin:3px 0 6px;font-size:13px;color:#56637a;line-height:1.4}
.cp-toast a{font-size:13px;font-weight:700;color:#00634e}
.cp-toast>button{margin-left:auto;background:none;border:0;font-size:20px;line-height:1;color:#8a97a4;cursor:pointer}
@keyframes cp-toast-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@media(max-width:600px){.cp-toasts{top:auto;bottom:16px;right:16px}.cp-bell-menu{position:fixed;left:12px;right:12px;top:70px;width:auto}}

/* Maintenance notice (Admin → Settings → Maintenance mode) */
#cp-maintenance{position:fixed;inset:0;z-index:2000;background:rgba(248,251,252,.97);display:grid;place-items:center;padding:24px;text-align:center}
#cp-maintenance>div{max-width:460px}
#cp-maintenance img{width:170px;margin-bottom:18px}
#cp-maintenance h1{font-size:30px;margin:0 0 10px}
#cp-maintenance p{color:#56637a;font-size:16px}

/* Website content preview bar (?cms_preview=1) */
.cms-preview-bar{position:sticky;top:0;z-index:1500;background:#142039;color:#fff;padding:10px 16px;font-size:14px;text-align:center}
.cms-preview-bar a{color:#9ff0cf;margin-left:8px}

/* Seller storefront (shared/js/shop-profile.js): public shop page + Shop setup preview */
.sf-card{background:#fff;border:1px solid #e3eaed;border-radius:16px;overflow:hidden;box-shadow:0 8px 26px rgba(21,51,74,.07);margin-bottom:18px}
.sf-banner{height:190px;background:linear-gradient(120deg,#00634e,#11a77e 55%,#cc0066);background-size:cover;background-position:center}
.sf-head{display:flex;gap:18px;align-items:flex-end;padding:0 24px 14px;margin-top:-46px;flex-wrap:wrap}
.sf-logo{width:104px;height:104px;border-radius:50%;border:5px solid #fff;background:#e7f8f2;overflow:hidden;display:grid;place-items:center;box-shadow:0 6px 18px rgba(0,0,0,.12);flex:none}
.sf-logo img{width:100%;height:100%;object-fit:cover}.sf-logo span{font:800 34px Manrope,sans-serif;color:#00634e}
.sf-title{flex:1;min-width:220px;padding-top:50px}
.sf-title h2{font-size:26px;margin:0 0 4px;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.sf-verified{font:700 12px 'DM Sans',sans-serif;color:#00634e;background:#e6f8ef;border-radius:20px;padding:4px 10px}
.sf-tagline{font-size:16px;color:#33415c;margin:0 0 6px}
.sf-meta{font-size:13px;color:#64748a;margin:0}
.sf-open{color:#087350;font-weight:700}.sf-closed{color:#c51962;font-weight:700}
.sf-social{display:flex;gap:10px;padding-top:50px}
.sf-social a{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#f3faf7;color:#00634e;font-size:16px}
.sf-pickup{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:4px 24px 20px;font-size:13px;color:#56637a}
.sf-pickup span{background:#f3faf7;border:1px solid #d7efe5;border-radius:20px;padding:5px 11px;color:#142039}
.sf-body{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:18px}
.sf-body .sf-card{padding:20px 22px}.sf-body h3{margin:0 0 10px}
.sf-protect{background:#fff5fa;border-radius:10px;padding:10px 12px;font-size:13px;color:#33415c}.sf-protect i{color:#cc0066;margin-right:6px}
.sf-hours{list-style:none;margin:0;padding:0}.sf-hours li{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid #eef1f3;font-size:14px}
.sf-items-title{margin:10px 0 14px}
.sf-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px}
.sf-item{display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid #e3eaed;border-radius:14px;padding:12px;color:#142039;text-decoration:none;transition:box-shadow .2s,transform .2s}
.sf-item:hover{box-shadow:0 10px 26px rgba(21,51,74,.12);transform:translateY(-2px)}
.sf-item img{width:100%;aspect-ratio:4/3;object-fit:contain;background:#f6fbf9;border-radius:10px;margin-bottom:6px}
.sf-item span{font-weight:800;color:#00634e}.sf-item s{color:#8a97a4;font-weight:400;font-size:13px}.sf-item small{color:#64748a}
.sf-empty{color:#64748a}
.shop-editor{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,1fr);gap:22px;align-items:start}
.shop-editor fieldset{border:1px solid #e3eaed;border-radius:12px;padding:12px 16px 16px;margin:0 0 14px}
.shop-editor legend{font-weight:800;padding:0 6px;color:#00634e}
.shop-editor input[name=pickup]{margin-bottom:8px}
.sf-small{font-size:12px!important;min-height:32px!important;padding:6px 12px!important;margin-top:4px}
.sf-upload input{border:1px dashed #a9cfc1;background:#f6fbf9}
.sf-day{display:grid;grid-template-columns:110px 1fr 1fr auto;gap:8px;align-items:center;margin-bottom:6px;font-size:13px}
.sf-day input[type=time]{padding:7px 8px}.sf-day label{display:flex;gap:5px;align-items:center;margin:0!important;font-weight:600}
.shop-preview{position:sticky;top:20px}
.sf-preview-label{font-size:11px;font-weight:800;letter-spacing:.12em;color:#8a97a4;text-transform:uppercase;margin:0 0 8px}
.shop-preview .sf-banner{height:120px}.shop-preview .sf-title{padding-top:46px}.shop-preview .sf-title h2{font-size:20px}.shop-preview .sf-logo{width:84px;height:84px}.shop-preview .sf-social{padding-top:10px;width:100%}
.sf-preview-about{padding:0 24px 20px;font-size:14px;color:#56637a}
@media(max-width:900px){.shop-editor,.sf-body{grid-template-columns:1fr}.shop-preview{position:static}.sf-day{grid-template-columns:1fr 1fr;}.sf-day span{grid-column:1/-1;font-weight:700}}
/* Storefront editor fields (Shop setup) */
.shop-editor label{display:block;font-weight:700;font-size:13px;color:#142039;margin:12px 0 6px}
.shop-editor label small{font-weight:400;color:#64748a}
.shop-editor input:not([type=checkbox]):not([type=file]),.shop-editor textarea{width:100%;border:1px solid #cddbe0;border-radius:9px;padding:11px 12px;font:inherit;font-size:14px;background:#fff;color:#142039}
.shop-editor input:focus,.shop-editor textarea:focus{outline:2px solid #9fd8c3;border-color:#00634e}
.shop-editor input[type=file]{width:100%;border:1px dashed #a9cfc1;background:#f6fbf9;border-radius:9px;padding:10px;font-size:13px}
.shop-editor .sf-upload small{display:block;font-weight:400;color:#64748a;margin-top:4px}
.shop-editor fieldset{background:#fbfdfd}
.shop-editor form>.cp-btn{margin:6px 8px 0 0}
.shop-editor .sf-day label{display:flex;align-items:center;gap:6px;margin:0;font-weight:600}
