/* WS Food Ordering: My account, in the Snappy Bite blueprint's design. Scoped to body.wsfo-account. */
body.wsfo-account {
	--wsfo-accent: #9B1111; --a-soft: color-mix(in srgb, var(--wsfo-accent) 13%, #fff);
	--a-ink: #1D1A17; --a-muted: #6B635A; --a-line: #ECDCC6; --a-sunk: #F7EDDF; --a-cream: #FFF8EE;
	--a-leaf: #1E7A4C; --a-leaf-soft: #DDF0E5; --a-palm: #F8B30F;
	--a-display: "Bricolage Grotesque", Montserrat, system-ui, sans-serif;
	--a-body: Montserrat, -apple-system, "Segoe UI", system-ui, sans-serif;
}
body.wsfo-account .woocommerce { font-family: var(--a-body); color: var(--a-ink); }
body.wsfo-account .woocommerce h2, body.wsfo-account .woocommerce h3,
body.wsfo-account .woocommerce .wd-login-title { font-family: var(--a-display); font-weight: 700; letter-spacing: -.01em; color: var(--a-ink); text-transform: none; }

/* ---------- account menu ---------- */
body.wsfo-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 10px; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--a-line); border-radius: 18px; }
body.wsfo-account .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border: 0; }
body.wsfo-account .woocommerce-MyAccount-navigation li a {
	display: flex; align-items: center; padding: 11px 14px !important; border-radius: 11px; color: var(--a-ink) !important;
	font: 600 15px var(--a-body); text-transform: none !important; letter-spacing: normal !important; background: none !important; text-decoration: none !important;
}
body.wsfo-account .woocommerce-MyAccount-navigation li a:hover { background: var(--a-sunk) !important; }
body.wsfo-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--a-soft) !important; color: var(--wsfo-accent) !important; }
body.wsfo-account .woocommerce-MyAccount-navigation li a::before, body.wsfo-account .woocommerce-MyAccount-navigation li a::after { display: none !important; }
body.wsfo-account .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--a-muted) !important; }
@media (max-width: 767px) {
	body.wsfo-account .woocommerce-MyAccount-navigation { margin-bottom: 16px; }
	body.wsfo-account .woocommerce-MyAccount-navigation ul { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 0; gap: 8px; background: none; border: 0; border-radius: 0; }
	body.wsfo-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	body.wsfo-account .woocommerce-MyAccount-navigation li { flex: 0 0 auto; }
	body.wsfo-account .woocommerce-MyAccount-navigation li a { padding: 8px 15px !important; border-radius: 99px; background: var(--a-sunk) !important; font-size: 14px; white-space: nowrap; }
	body.wsfo-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--wsfo-accent) !important; color: #fff !important; }
}

/* ---------- dashboard ---------- */
body.wsfo-acc-dash .woocommerce-MyAccount-content > p,
body.wsfo-acc-dash .woocommerce-MyAccount-content > .wd-my-account-links { display: none; }
.wsfo-acc { display: flex; flex-direction: column; gap: 16px; }
.wsfo-acc-lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--a-muted); }
.wsfo-acc-muted { color: var(--a-muted); font-size: 13.5px; }
.wsfo-acc p { margin: 0; }
.wsfo-acc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px;
	background: var(--wsfo-accent); color: #fff !important; font: 700 15px var(--a-body); text-decoration: none !important; white-space: nowrap;
}
.wsfo-acc-btn:hover { filter: brightness(1.06); }
.wsfo-acc-btn.is-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.wsfo-acc-link { color: var(--a-ink) !important; font-weight: 700; font-size: 14px; text-decoration: underline !important; text-underline-offset: 3px; }

.wsfo-acc-hello { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px; border-radius: 18px; background: var(--a-cream); border: 1px solid var(--a-line); }
.wsfo-acc-hello h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 800 !important; margin: 4px 0 4px !important; }
.wsfo-acc-hello p { color: var(--a-muted); }

.wsfo-acc-live { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--a-line); border-top: 4px solid var(--wsfo-accent); }
.wsfo-acc-live-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.wsfo-acc-live-eta { display: flex; flex-direction: column; }
.wsfo-acc-live-eta b { font: 800 34px/1.1 var(--a-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wsfo-acc-progress { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.wsfo-acc-progress li { flex: 1; height: 6px; border-radius: 99px; background: var(--a-line); margin: 0; }
.wsfo-acc-progress li.is-done { background: var(--a-leaf); }
.wsfo-acc-progress li.is-now { background: var(--wsfo-accent); }
.wsfo-acc-live .wsfo-acc-btn { align-self: flex-start; }

.wsfo-acc-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--a-sunk); color: var(--a-ink); }
.wsfo-acc-pill.is-live { background: var(--a-soft); color: var(--wsfo-accent); }
.wsfo-acc-pill.is-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: wsfo-acc-blink 1.4s ease-in-out infinite; }
.wsfo-acc-pill.is-done { background: var(--a-leaf-soft); color: var(--a-leaf); }
.wsfo-acc-pill.is-off { background: var(--a-sunk); color: var(--a-muted); }
@keyframes wsfo-acc-blink { 50% { opacity: .3; } }

.wsfo-acc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wsfo-acc-tiles a { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--a-line); color: var(--a-ink) !important; text-decoration: none !important; transition: border-color .15s, background .15s; }
.wsfo-acc-tiles a:hover { border-color: var(--wsfo-accent); background: var(--a-soft); }
.wsfo-acc-tiles b { font-weight: 700; margin-top: 8px; }
.wsfo-acc-tiles small { color: var(--a-muted); font-size: 12.5px; }
.wsfo-acc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--a-soft); color: var(--wsfo-accent); }
.wsfo-acc-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.wsfo-acc-card { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--a-line); }
.wsfo-acc-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.wsfo-acc-card-head h3 { font-size: 19px; margin: 0 !important; }
.wsfo-acc-card-head a { color: var(--wsfo-accent) !important; font-weight: 700; font-size: 14px; text-decoration: none !important; }
.wsfo-acc-orders { list-style: none; margin: 0; padding: 0; }
.wsfo-acc-orders li { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--a-line); margin: 0; }
.wsfo-acc-orders li:last-child { border-bottom: 0; padding-bottom: 0; }
.wsfo-acc-order-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wsfo-acc-order-main .wsfo-acc-muted { margin-left: auto; }
.wsfo-acc-orders p { font-size: 14px; color: var(--a-muted); }
.wsfo-acc-order-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.wsfo-acc-order-foot > span { display: flex; align-items: center; gap: 14px; }
.wsfo-acc-order-foot b { font-variant-numeric: tabular-nums; }
.wsfo-acc-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 0 2px; }
.wsfo-acc-empty p { color: var(--a-muted); margin-bottom: 8px !important; }

/* ---------- orders list, order details, addresses ---------- */
body.wsfo-account .woocommerce-MyAccount-content { font-size: 15px; }
body.wsfo-account table.shop_table, body.wsfo-account .woocommerce-orders-table {
	border: 1px solid var(--a-line) !important; border-radius: 16px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; font-variant-numeric: tabular-nums;
}
body.wsfo-account table.shop_table th { background: var(--a-cream); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a-muted); border: 0 !important; padding: 12px 14px; }
body.wsfo-account table.shop_table td { border: 0 !important; border-top: 1px solid var(--a-line) !important; padding: 14px; vertical-align: middle; }
body.wsfo-account .woocommerce-orders-table__cell-order-status { font-weight: 700; }
body.wsfo-account .woocommerce-orders-table__cell-order-actions .button,
body.wsfo-account .woocommerce-MyAccount-content .button,
body.wsfo-account .woocommerce-MyAccount-content button[type="submit"] {
	min-height: 40px; padding: 0 16px; border-radius: 10px !important; border: 0; background: var(--wsfo-accent) !important; color: #fff !important;
	font: 700 14px var(--a-body) !important; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; margin: 2px 4px 2px 0;
}
body.wsfo-account .woocommerce-orders-table__cell-order-actions .button:not(.wsfo-track) { background: var(--a-sunk) !important; color: var(--a-ink) !important; }
body.wsfo-account .woocommerce-orders-table__cell-order-actions .button.wsfo-track { background: var(--wsfo-accent) !important; }
@media (max-width: 767px) {
	body.wsfo-account table.shop_table_responsive tr { display: block; padding: 6px 0; border-top: 1px solid var(--a-line); }
	body.wsfo-account table.shop_table_responsive tr:first-child { border-top: 0; }
	body.wsfo-account table.shop_table_responsive td { border-top: 0 !important; padding: 6px 14px; }
}
body.wsfo-account .woocommerce-Addresses .woocommerce-Address, body.wsfo-account .woocommerce-customer-details address {
	padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--a-line) !important; font-style: normal; line-height: 1.6;
}
body.wsfo-account .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; }
body.wsfo-account .woocommerce-Address-title a { color: var(--wsfo-accent) !important; font-weight: 700; }
body.wsfo-account mark { background: var(--a-soft); color: var(--wsfo-accent); padding: 1px 6px; border-radius: 6px; }

/* ---------- forms ---------- */
body.wsfo-account .woocommerce form .form-row label, body.wsfo-account .woocommerce form label { font-weight: 600; font-size: 13.5px; color: var(--a-ink); }
body.wsfo-account .woocommerce form .form-row .required { color: var(--wsfo-accent); text-decoration: none; }
body.wsfo-account .woocommerce form .input-text, body.wsfo-account .woocommerce form select,
body.wsfo-account .woocommerce form input[type="email"], body.wsfo-account .woocommerce form input[type="password"], body.wsfo-account .woocommerce form input[type="text"], body.wsfo-account .woocommerce form input[type="tel"],
body.wsfo-account .select2-container .select2-selection--single {
	min-height: 48px; border: 1.5px solid transparent !important; border-radius: 12px !important; background: var(--a-sunk) !important; padding: 10px 14px;
	font: 500 16px var(--a-body); color: var(--a-ink); box-shadow: none !important;
}
body.wsfo-account .woocommerce form .input-text:focus, body.wsfo-account .woocommerce form input:focus, body.wsfo-account .woocommerce form select:focus { outline: none; border-color: var(--wsfo-accent) !important; background: #fff !important; }
body.wsfo-account .woocommerce form fieldset { border: 1px solid var(--a-line); border-radius: 16px; padding: 16px; margin-top: 20px; }
body.wsfo-account .woocommerce form fieldset legend { font: 700 16px var(--a-display); padding: 0 6px; }
body.wsfo-account .woocommerce-EditAccountForm, body.wsfo-account .woocommerce-address-fields { background: #fff; border: 1px solid var(--a-line); border-radius: 18px; padding: 20px; }

/* ---------- login / register ---------- */
body.wsfo-account #customer_login { gap: 18px; }
body.wsfo-account #customer_login > .wd-col, body.wsfo-account #customer_login > .u-column1, body.wsfo-account #customer_login > .u-column2 {
	background: #fff; border: 1px solid var(--a-line); border-radius: 20px; padding: clamp(20px, 3vw, 30px);
}
body.wsfo-account #customer_login .col-register-text { background: var(--a-cream); }
body.wsfo-account .wd-login-title { font-size: 24px !important; text-align: left; }
body.wsfo-account .wd-login-title::after { display: none !important; }
body.wsfo-account .wd-login-divider { color: var(--a-muted); }
body.wsfo-account .woocommerce-form-login__submit, body.wsfo-account .woocommerce-form-register__submit, body.wsfo-account .wd-switch-to-register {
	width: 100%; min-height: 50px; border: 0 !important; border-radius: 12px !important; background: var(--wsfo-accent) !important; color: #fff !important;
	font: 700 15.5px var(--a-body) !important; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important;
}
body.wsfo-account .wd-switch-to-register { background: var(--a-ink) !important; }
body.wsfo-account .woocommerce-LostPassword a, body.wsfo-account .lost_password a { color: var(--wsfo-accent) !important; font-weight: 600; }
body.wsfo-account .woocommerce-form-login__rememberme { font-weight: 500; }
body.wsfo-account .woocommerce-form-login__rememberme input, body.wsfo-account .woocommerce form input[type="checkbox"] { accent-color: var(--wsfo-accent); }

/* notices */
body.wsfo-account .woocommerce-message, body.wsfo-account .woocommerce-info, body.wsfo-account .woocommerce-error { border-radius: 14px; border: 0; font-family: var(--a-body); }
body.wsfo-account .woocommerce-info { background: var(--a-cream); color: var(--a-ink); }
body.wsfo-account .woocommerce-message { background: var(--a-leaf-soft); color: var(--a-leaf); }
body.wsfo-account .woocommerce-error { background: #FEF3F2; color: #912018; }

@media (max-width: 767px) {
	.wsfo-acc-tiles { grid-template-columns: 1fr 1fr; }
	.wsfo-acc-hello .wsfo-acc-btn { width: 100%; }
	.wsfo-acc-order-main .wsfo-acc-muted { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .wsfo-acc-pill.is-live i { animation: none; } }
