/* ---- Account tabs ---- */
.cb-ac-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 22px; padding: 0 4px; border-bottom: 1px solid #e5e7eb; }
.cb-ac-tabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 600; font-size: 14px; color: #64748b; text-decoration: none; transition: color .2s; }
.cb-ac-tabs a svg { width: 18px; height: 18px; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.cb-ac-tabs a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: #2563eb; transform: scaleX(0); transition: transform .25s ease; }
.cb-ac-tabs a:hover { color: #0f172a; }
.cb-ac-tabs a:hover svg { transform: translateY(-2px) scale(1.12); }
.cb-ac-tabs a.is-on { color: #1d4ed8; }
.cb-ac-tabs a.is-on::after, .cb-ac-tabs a:hover::after { transform: scaleX(1); }
.cb-ac-tabs .cb-ac-logout { margin-left: auto; color: #94a3b8; }
.cb-ac-tabs .cb-ac-logout::after { display: none; }

.cb-ac-notice { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; font-size: 14px; animation: cb-ac-in .3s ease both; }
.cb-ac-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.cb-ac-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---- Address book ---- */
.cb-ac-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cb-ac-head h2, .cb-ac-panel h2 { margin: 0; }
.cb-ac-head .cb-btn { width: auto; }
.cb-ac-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cb-ac-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; animation: cb-ac-in .35s ease both; }
.cb-ac-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 23, 42, .09); }
.cb-ac-card.is-default { border-color: #93c5fd; box-shadow: 0 0 0 2px rgba(37, 99, 235, .12); }
.cb-ac-card header { display: flex; align-items: center; gap: 8px; }
.cb-ac-card p { margin: 0; font-size: 14px; color: #475569; }
.cb-ac-card .cb-ac-name { color: #0f172a; font-weight: 600; }
.cb-ac-pill { padding: 2px 9px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: 11px; font-weight: 700; }
.cb-ac-card footer { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9; font-size: 13px; }
.cb-ac-card footer form { margin: 0; display: inline; }
.cb-ac-card footer a, .cb-ac-card footer .cb-btn-link { padding: 0; color: #1d4ed8; font-size: 13px; }
.cb-ac-card footer .cb-ac-danger { color: #b91c1c; margin-left: auto; }
.cb-ac-empty { text-align: center; padding: 44px 16px; border: 1px dashed #cbd5e1; border-radius: 16px; background: #fff; color: #64748b; }
.cb-ac-empty svg { width: 64px; height: 64px; color: #93c5fd; animation: cb-ac-bob 2.4s ease-in-out infinite; }

/* ---- Forms ---- */
.cb-ac-form label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 13px; color: #334155; }
.cb-ac-form input[type="text"], .cb-ac-form input[type="tel"], .cb-ac-form input[type="email"], .cb-ac-form input[type="password"] { padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-size: 15px; }
.cb-ac-form input:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
.cb-ac-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.cb-ac-wide { grid-column: 1 / -1; }
.cb-ac-form label.cb-ac-check { flex-direction: row; align-items: center; gap: 8px; }
.cb-ac-form .cb-btn { width: auto; }
.cb-ac-cancel { margin-left: 10px; color: #64748b; }
.cb-ac-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.cb-ac-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px 22px; }
.cb-ac-panel h2 { margin-bottom: 14px; font-size: 18px; }

/* ---- Checkout: saved addresses ---- */
.cb-ck-addresses { margin: 0 0 18px; }
.cb-ck-title { margin: 0 0 8px; font-weight: 700; }
.cb-ck-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cb-ck-card { position: relative; display: block; cursor: pointer; }
.cb-ck-card input { position: absolute; opacity: 0; pointer-events: none; }
.cb-ck-card > span { display: flex; flex-direction: column; gap: 2px; height: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #dbe3ee; border-radius: 12px; background: #fff; transition: border-color .18s, box-shadow .18s, transform .18s, background .18s; }
.cb-ck-card > span em { font-style: normal; color: #475569; font-size: 13px; }
.cb-ck-card > span small { color: #64748b; font-size: 12px; line-height: 1.35; }
.cb-ck-card:hover > span { transform: translateY(-2px); border-color: #93c5fd; }
.cb-ck-card input:checked + span { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 2px rgba(37, 99, 235, .18); }
.cb-ck-card input:focus-visible + span { outline: 2px solid #2563eb; outline-offset: 2px; }
.cb-ck-new > span { justify-content: center; color: #1d4ed8; border-style: dashed; }
.cb-ck-save[hidden] { display: none; }

@keyframes cb-ac-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cb-ac-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (max-width: 800px) { .cb-ac-grid { grid-template-columns: 1fr; } .cb-ac-two { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cb-ac-card, .cb-ac-notice, .cb-ac-empty svg, .cb-ac-tabs a svg, .cb-ck-card > span { animation: none !important; transition: none !important; } }

/* ---- Checkout: services, required marks, business fields ---- */
.cb-req { color: #dc2626; font-weight: 800; margin-left: 2px; }
.cb-opt { color: #94a3b8; font-weight: 400; font-size: 12px; }
.cb-ck-legend { margin: -6px 0 10px; }
.cb-ck-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 8px; }
.cb-ck-service { position: relative; display: block; cursor: pointer; }
.cb-ck-service input { position: absolute; opacity: 0; pointer-events: none; }
.cb-ck-service > span { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid #dbe3ee; border-radius: 14px; background: #fff; transition: border-color .18s, box-shadow .18s, transform .18s, background .18s; }
.cb-ck-service svg { grid-row: 1 / span 2; width: 30px; height: 30px; color: #64748b; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), color .18s; }
.cb-ck-service strong { font-size: 15px; }
.cb-ck-service small { color: #64748b; font-size: 12px; line-height: 1.35; }
.cb-ck-service:hover > span { transform: translateY(-2px); border-color: #93c5fd; }
.cb-ck-service:hover svg { transform: scale(1.1) rotate(-5deg); }
.cb-ck-service input:checked + span { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 2px rgba(37, 99, 235, .18); }
.cb-ck-service input:checked + span svg { color: #2563eb; }
.cb-ck-service input:focus-visible + span { outline: 2px solid #2563eb; outline-offset: 2px; }
.cb-ck-business { margin: 4px 0 12px; padding: 12px 14px 2px; border: 1px dashed #cbd5e1; border-radius: 12px; background: #fcfdff; }
.cb-ck-gst.is-prompt { animation: cb-ck-nudge .5s ease; }
.cb-ck-gst.is-prompt input { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.cb-ck-gst.is-prompt .cb-help-text { color: #1d4ed8; }
.cb-ck-delivery { animation: cb-ac-in .3s ease both; }
.cb-ck-delivery[hidden], .cb-ck-pickup-note[hidden] { display: none; }
.cb-ck-subtitle { margin: 6px 0 8px; font-weight: 700; }
.cb-ck-subtitle small { font-weight: 400; color: #64748b; margin-left: 6px; }
.cb-ck-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.cb-ck-pickup-note { margin: 4px 0 12px; padding: 12px 14px; border-radius: 12px; background: #ecfeff; border: 1px solid #a5f3fc; color: #155e75; font-size: 14px; animation: cb-ac-in .3s ease both; }
.cb-checkout-form textarea { width: 100%; box-sizing: border-box; padding: .5rem .75rem; border: 1px solid #d1d5db; border-radius: .5rem; background: #fff; font: inherit; }
.cb-checkout-form textarea:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
.cb-ck-captcha { margin: 8px 0 12px; }
@keyframes cb-ck-nudge { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }
@media (max-width: 640px) { .cb-ck-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cb-ck-service > span, .cb-ck-service svg, .cb-ck-gst, .cb-ck-delivery, .cb-ck-pickup-note { animation: none !important; transition: none !important; } }
