/* AC (17/10/2026): the personal area (/my-account/) and the 404 page. Loaded on those screens only (inc/account.php,
   priority 31, after every polish layer). Owner's bar: airy, clean, minimal; the designer's line (rounded panels,
   the warm palette, the lead band's fields). The opening band (hb_open_band) carries the title and one line. */

/* ---------- Personal area: one panel under the band, content on the site's text width ---------- */
.hb-cp.hb-contact > .hb-acc__box { margin-top: 0; padding: clamp(26px, 3.4vw, 52px) clamp(16px, 4vw, 56px); }
.hb-acc__box > :not(.hb-acc__narrow) { max-width: 1280px; margin-inline: auto; }
.hb-acc .hb-acc__narrow { max-width: 560px; margin-inline: auto; }

/* Navigation: four equal tabs on one white track, the active one in the site's rose; "יציאה" a quiet link apart. */
.hb-acc__menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(22px, 2.6vw, 36px); }
.hb-acc__menu ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: min(700px, 100%); margin: 0; padding: 4px; border-radius: 999px; background: var(--hb-white, #fff); list-style: none; }
.hb-acc__menu li { min-width: 0; }
.hb-acc__menu ul a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 15.5px; line-height: 1.2; color: rgba(53, 43, 36, .7); text-align: center; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.hb-acc__menu ul a.is-on { background: var(--hb-rose); color: var(--hb-ink-warm); }
@media (hover: hover) and (pointer: fine) { .hb-acc__menu ul a:not(.is-on):hover { background: var(--hb-filter-bg); color: var(--hb-ink-warm); } }
.hb-acc__menu ul a:focus-visible, .hb-acc__menu .hb-acc__out:focus-visible { outline: 2px solid var(--hb-ink-warm); outline-offset: 2px; }
.hb-acc__menu .hb-acc__out { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; color: rgba(53, 43, 36, .65) !important; text-decoration: underline; text-decoration-color: rgba(53, 43, 36, .3); text-underline-offset: 4px; }
@media (max-width: 599px) {
	.hb-acc__menu { flex-direction: column; align-items: stretch; gap: 6px; }
	.hb-acc__menu ul { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 24px; }
	.hb-acc__menu ul a { border-radius: 20px; font-size: 15px; }
	.hb-acc__menu .hb-acc__out { align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .hb-acc__menu ul a { transition: none; } }

/* Headings inside the panel: one size, calm spacing. */
.hb-acc .hb-acc__h { margin: clamp(26px, 2.6vw, 36px) 0 12px; font-size: clamp(20px, 1.7vw, 24px); }
.hb-acc__box > .hb-acc__h:first-of-type, .hb-acc__intro > .hb-acc__h { margin-top: 0; }
.hb-acc__note:not([hidden]) + .hb-acc__h { margin-top: 24px; }

/* Nothing ordered yet: one calm card that points to ordering. */
.hb-acc__none { display: grid; justify-items: center; gap: 8px; padding: clamp(34px, 4.4vw, 60px) 20px; border-radius: 26px; background: var(--hb-white, #fff); text-align: center; }
.hb-acc__none-t { margin: 0; font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; color: var(--hb-ink-warm); }
.hb-acc__none-p { margin: 0; max-width: 52ch; text-wrap: balance; font-size: 16.5px; line-height: 1.55; color: #5f524c; }
.hb-acc__none-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; margin: 14px 0 0; }
.hb-acc .hb-acc__none-go .hb-acc__go { width: auto; min-width: 200px; min-height: 50px; padding: 0 32px; font-size: 17px; }
.hb-acc__none-alt { font-weight: 700; font-size: 15.5px; color: var(--hb-ink-warm); text-decoration: underline; text-decoration-color: rgba(53, 43, 36, .3); text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .hb-acc__none-alt:hover { text-decoration-color: currentColor; } }

/* Fields: the lead band's style (50px, radius 16, a thin warm line, ink focus ring). */
.hb-acc .hb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.hb-acc .hb-field > label, .hb-acc__wc label { font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--hb-ink-warm); }
.hb-acc .hb-field input:not([type="checkbox"]), .hb-acc__wc input.input-text, .hb-acc__wc input[type="password"] {
	box-sizing: border-box; width: 100%; min-width: 0; height: 50px; min-height: 50px; padding: 0 16px; border: 1px solid rgba(53, 43, 36, .16); border-radius: 16px; background: #fff; color: #352b24; font: 500 16px/1.2 var(--hb-font); }
.hb-acc .hb-field input:focus, .hb-acc__wc input:focus { border-color: #352b24; }
.hb-acc .hb-field input:focus-visible, .hb-acc__wc input:focus-visible { outline: 2px solid #352b24; outline-offset: 2px; }
.hb-acc .hb-field.is-invalid input { border-color: #b3261e; box-shadow: 0 0 0 1px #b3261e; }
.hb-acc .hb-acc__otp { font-size: 24px; letter-spacing: .35em; text-align: center !important; }
.hb-acc .hb-acc__go, .hb-acc__wc button[type="submit"] { min-height: 50px; font-size: 17px; }

/* Logged out: the perks on the reading side, the sign-in card beside them. */
.hb-acc__login { align-items: start; }
.hb-acc__intro { padding-top: clamp(4px, 1vw, 14px); }
.hb-acc__intro .hb-acc__perks { margin-top: 0; }
/* Phones and tablets: signing in comes first, the perks follow. */
@media (max-width: 1023px) { .hb-acc__login > .hb-acc__auth { order: -1; } }
.hb-acc__auth > h2 { font-size: clamp(22px, 1.9vw, 26px); }

/* Lost / reset password: WooCommerce's form inside our card. */
.hb-acc__wc form { display: grid; gap: 14px; margin: 0; }
.hb-acc__wc form > p { margin: 0 !important; }
.hb-acc__wc .form-row { display: flex; flex-direction: column; gap: 6px; width: 100% !important; float: none !important; padding: 0 !important; }
.hb-acc__wc .clear { display: none; }
.hb-acc__wc .password-input { position: relative; display: block; }
.hb-acc__wc .show-password-input { position: absolute; inset-inline-end: 10px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; }
.hb-acc__wc .woocommerce-password-strength { margin-top: 8px; padding: 8px 12px; border-radius: 12px; font-size: 14px; font-weight: 700; text-align: start; }
.hb-acc__wc .woocommerce-password-hint { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: #6b5f58; }
.hb-acc :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) { margin: 0 0 14px; padding: 12px 16px; border: 0; border-radius: 14px; background: #e6ede5; color: var(--hb-sage-dark); font-weight: 700; font-size: 15px; line-height: 1.45; list-style: none; }
.hb-acc .woocommerce-error { background: #fbe9e4; color: #8a2d1a; }
.hb-acc :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { display: none; }
.hb-acc .woocommerce-error li { margin: 0; }

/* ---------- 404: the bitten bagel, one line, a search and three ways forward ---------- */
.hb-cp.hb-contact > .hb-state__box--404 { padding-block: clamp(40px, 5vw, 76px); }
.hb-state__box--404 { gap: 12px; }
.hb-state__box--404 .hb-state__code { font-size: clamp(88px, 9vw, 132px); }
.hb-state__box--404 .hb-state__code img { width: clamp(84px, 8.4vw, 120px); }
.hb-state__box--404 .hb-state__title { font-size: clamp(28px, 2.8vw, 40px); }
.hb-state__box--404 .hb-state__text { max-width: 44ch; font-size: 17px; line-height: 1.55; }
.hb-state__box--404 .hb-state__search { width: min(640px, 100%); margin-top: 10px; }
.hb-state__ways { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(640px, 100%); margin-top: 4px; }
.hb-state__ways .hb-state__link { min-height: 52px; padding: 0 18px; font-size: 16.5px; }
@media (max-width: 599px) {
	.hb-state__ways { grid-template-columns: minmax(0, 1fr); }
}

/* Owner rule 17/10 (subtract): no quote band in the personal area or on the 404; the page has its own one way forward. */
body.woocommerce-account .hb-lb, body:has(.hb-acc) .hb-lb, body.error404 .hb-lb { display: none !important; }

/* 2/11/2026: the login is one card in the middle; five tabs with "הצעות מחיר". */
.hb-acc__box .hb-acc__login { grid-template-columns: minmax(0, 460px); justify-content: center; }
@media (min-width: 768px) { .hb-acc__menu ul { grid-template-columns: repeat(5, minmax(0, 1fr)); width: min(820px, 100%); } }

/* 2/11/2026: lines with their photos, a package's dishes as photos; phones: one dish per row. */
.hb-acc__lines li.hb-acc__rich { display: block; }
.hb-acc__richhead { display: flex; align-items: flex-start; gap: 12px; }
.hb-acc__richhead > span { flex: 1; min-width: 0; }
.hb-acc__richhead > bdi { flex: none; font-weight: 700; }
.hb-acc__richhead .hb-acc__meta { display: block; }
.hb-acc__linepic { flex: none; width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.hb-acc__dsec { margin-top: 16px; }
.hb-acc__dsect { margin: 0 0 8px; font-weight: 700; font-size: 15.5px; }
.hb-acc__dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.hb-acc .hb-acc__lines .hb-acc__dishes li { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin: 0; padding: 6px; border: 0; border-radius: 14px; background: var(--hb-filter-bg, #f9f4f0); font-size: 14.5px; line-height: 1.3; }
.hb-acc__dishes img, .hb-acc__dnopic { flex: none; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.hb-acc__dnopic { display: block; background: #ecdfd9; }
.hb-acc__dishes small { display: block; color: rgba(53, 43, 36, .65); }
@media (max-width: 767px) {
	.hb-acc__menu ul li:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.hb-acc__dishes { grid-template-columns: minmax(0, 1fr); }
	.hb-acc__linepic { width: 56px; height: 56px; }
	.hb-acc__orderview .hb-acc__card { padding: 16px; }
}

/* Phones: the date stays one line, the details in two columns, the PDF and the actions above the long list. */
.hb-acc__ordertitle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.hb-acc__ordertitle strong, .hb-acc__ordertitle bdi { white-space: nowrap; }
.hb-acc__order .hb-acc__order-items { white-space: normal; overflow: visible; text-overflow: clip; }
@media (max-width: 767px) {
	.hb-acc .hb-acc__rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; padding: 0; }
	.hb-acc .hb-acc__rows dd { margin: 0; }
	.hb-acc__orderview .hb-acc__orderside { order: -1; }
}

/* The section titles stand on the same edge as the rows under them. */
.hb-acc .hb-acc__box > .hb-acc__h { margin-inline: auto; }
