@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');
:root {
  --maroon: #800000;
  --deep: #4a0a10;
  --cream: #ffffff;
  --off-white: #f7f7f7;
  --gold: #800000;
  --espresso: #4a0a10;
  --rose: #f2e6e6;
  --white: #fff;
  --line: #e0e0e0;
  --ink: #1a1a1a;
  --muted: #606060;
  --heading: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'DM Sans', Arial, sans-serif;
  --ui: var(--body);
  --brand: 'Sacramento', cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  font: 14px/1.65 var(--body);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  flex-shrink: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  line-height: 1.19;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 600;
}

h2 {
  font-size: clamp(27px, 3.3vw, 42px);
  font-weight: 600;
}

h3 {
  font-size: 19px;
  font-weight: 600;
}

p {
  color: var(--muted);
}

*:focus-visible {
  outline: 3px solid var(--maroon);
  outline-offset: 3px;
}

.wrap {
  width: min(1190px, calc(100% - 64px));
  margin: auto;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.eyebrow {
  font-size: 10px;
  color: var(--maroon);
  font-weight: 800;
  letter-spacing: 0.17em;
}

.caption {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}

.demo-ribbon {
  background: var(--deep);
  color: var(--line);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  height: 30px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.demo-ribbon span {
  opacity: 0.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fffcf9f7;
  border-bottom: 1px solid var(--cream);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand {
  font-family: var(--brand);
  font-size: 52px;
  color: var(--maroon);
  line-height: 1;
  white-space: nowrap;
}

.brand-dot {
  color: var(--gold);
  font-size: 35px;
}

.brand-apostrophe {
  position: relative;
  top: -4px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 39px;
  margin-left: 80px;
}

.desktop-nav a {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 28px 0;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--maroon);
}

.desktop-nav a.active {
  box-shadow: inset 0 -2px var(--maroon);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-btn {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.cart-pill {
  border: 1px solid var(--maroon);
  color: var(--maroon);
  background: transparent;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 700;
}

.cart-count {
  min-width: 19px;
  height: 19px;
  background: var(--maroon);
  color: #fff;
  border-radius: 0px;
  font-size: 10px;
  display: grid;
  place-items: center;
}

.mobile-menu-btn,
.mobile-menu {
  display: none;
}

.btn {
  border: 1px solid transparent;
  border-radius: 0px;
  min-height: 47px;
  padding: 13px 21px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  transition: transform 0.17s,
    background 0.17s;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

.btn-primary:hover:not(:disabled) {
  background: var(--deep);
}

.btn-outline {
  color: var(--maroon);
  border-color: var(--maroon);
  background: transparent;
}

.btn-outline:hover {
  background: var(--cream);
}

.btn-light {
  background: #fff;
  color: var(--maroon);
}

.full {
  width: 100%;
}

.text-btn {
  display: block;
  text-align: center;
  border: 0;
  color: var(--maroon);
  background: transparent;
  font-weight: 700;
  font-size: 12px;
  padding: 12px;
}

.simple-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--maroon);
  padding-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--maroon);
}

.hero {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  inset: 0 48% 0 0;
  background: radial-gradient(ellipse at 50% 45%, var(--cream), var(--cream));
}

.hero-grid {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 24px;
  position: relative;
}

.hero-copy {
  z-index: 1;
  padding: 30px 0 30px 28px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--maroon);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.kicker-line {
  height: 1px;
  width: 33px;
  background: var(--maroon);
}

.hero h1 {
  font-size: clamp(44px, 4.8vw, 65px);
  letter-spacing: -0.052em;
  line-height: 1.12;
  margin-bottom: 23px;
  max-width: 550px;
}

.hero h1 em,
.split-copy h2 em {
  font-style: normal;
  color: var(--maroon);
}

.hero-copy > p {
  max-width: 430px;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-sub-link {
  color: var(--maroon);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-proof {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}

.hero-proof b {
  color: var(--line);
  padding: 0 6px;
}

.hero-visual {
  height: 580px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-img-outline {
  width: 535px;
  height: 535px;
  position: absolute;
  right: -26px;
  top: 28px;
  border: 10px solid #fff;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 20px 70px #4d2b1d22;
}

.hero-img-outline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}

.hero-food-stamp {
  position: absolute;
  z-index: 2;
  bottom: 87px;
  left: -7px;
  width: 131px;
  height: 131px;
  border: 5px solid var(--cream);
  border-radius: 0px;
  background: var(--maroon);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  transform: rotate(-13deg);
}

.hero-food-stamp strong {
  font: 39px var(--brand);
}

.hero-food-stamp span {
  font-size: 10px;
  font-style: italic;
}

.hero-side-note {
  position: absolute;
  right: 8px;
  bottom: 28px;
  font-size: 9px;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
  color: var(--maroon);
}

.strip {
  background: #fff;
}

.strip-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
}

.strip-inner > span:not(.strip-sep) {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.strip-inner svg {
  color: var(--maroon);
}

.strip-sep {
  height: 21px;
  width: 1px;
  background: var(--line);
}

.section {
  padding: 92px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 31px;
}

.section-heading h2 {
  margin: 8px 0;
}

.section-heading p {
  margin: 0;
  font-size: 13px;
}

.meal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}

.home-meals {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.meal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0px;
  overflow: hidden;
  min-width: 0;
  transition: transform 0.2s,
    box-shadow 0.2s;
}

.meal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 13px 35px #472c2516;
}

.meal-photo-btn {
  display: block;
  width: 100%;
  aspect-ratio: 1.17;
  border: 0;
  background: var(--cream);
  padding: 0;
  overflow: hidden;
}

.meal-photo-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.meal-photo-btn:hover img {
  transform: scale(1.04);
}

.meal-content {
  padding: 18px 20px 17px;
}

.meal-card-top {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  margin-bottom: 11px;
}

.meal-category {
  font-size: 9px;
  font-weight: 800;
  color: var(--maroon);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.meal-cal {
  font-size: 10px;
  color: var(--muted);
}

.meal-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.meal-card p {
  font-size: 11px;
  line-height: 1.7;
  min-height: 57px;
  margin-bottom: 14px;
}

.meal-bottom {
  border-top: 1px solid var(--cream);
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font: 700 17px var(--heading);
  color: var(--espresso);
}

.round-add {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 0px;
  background: var(--maroon);
  color: #fff;
  display: grid;
  place-items: center;
}

.round-add:hover {
  background: var(--deep);
}

.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 85px;
  align-items: center;
  margin-bottom: 100px;
}

.split-photo {
  height: 480px;
  position: relative;
}

.split-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px;
}

.photo-overlap {
  position: absolute;
  right: -36px;
  bottom: 24px;
  background: var(--cream);
  padding: 25px;
  width: 217px;
  box-shadow: 0 12px 32px #3f29171a;
}

.photo-overlap span:last-child {
  display: block;
  font: 600 17px/1.4 var(--heading);
  margin-top: 6px;
}

.split-copy h2 {
  margin: 16px 0 18px;
}

.split-copy > p {
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 25px;
}

.split-option {
  display: flex;
  align-items: start;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.split-option:last-child {
  border-bottom: 1px solid var(--line);
}

.split-num {
  font: 13px var(--heading);
  color: var(--muted);
}

.split-option > div {
  flex: 1;
}

.split-option h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.split-option p {
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}

.split-option a {
  color: var(--maroon);
  padding: 7px;
}

.cta-band {
  background: var(--maroon);
  color: #fff;
  padding: 53px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.cta-inner .eyebrow {
  color: var(--line);
}

.cta-inner h2 {
  font-size: 31px;
  margin: 7px 0;
}

.cta-inner p {
  color: var(--line);
  font-size: 12px;
  margin: 0;
}

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 65px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
  gap: 43px;
}

.footer-brand {
  color: #fff;
  font-size: 51px;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid strong {
  font-size: 12px;
  margin-bottom: 10px;
}

.footer-grid a:not(.brand),
.footer-grid p,
.footer-grid .small {
  font-size: 11px;
  line-height: 1.8;
  color: var(--line);
}

.footer-grid p {
  max-width: 265px;
  margin: 12px 0 8px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-country {
  font-size: 11px;
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin-top: 55px;
  padding-top: 18px;
  border-top: 1px solid var(--muted);
  font-size: 10px;
  color: var(--muted);
}

.page-intro {
  padding: 71px 0 65px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.page-intro > .wrap {
  position: relative;
  z-index: 1;
}

.page-intro h1 {
  font-size: clamp(31px, 4vw, 48px);
  margin: 11px 0;
}

.page-intro p {
  font-size: 13px;
  line-height: 1.85;
  margin: 0;
  max-width: 715px;
}

.menu-space,
.subscriptions-space {
  padding: 49px 0 95px;
}

.menu-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chip {
  font-size: 11px;
  font-weight: 700;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 0px;
  padding: 9px 17px;
}

.filter-chip.selected {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  width: 260px;
  border: 1px solid var(--line);
  border-radius: 0px;
  background: #fff;
  padding: 0 14px;
  color: var(--muted);
}

.search-field input {
  flex: 1;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.menu-count {
  font-size: 11px;
  color: var(--muted);
  margin: 27px 0 17px;
}

.menu-space .meal-photo-btn {
  aspect-ratio: 1.3;
}

.menu-space .meal-card h3 {
  font-size: 19px;
}

.menu-space .meal-content {
  padding: 20px 23px;
}

.empty-state {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0px;
  padding: 85px 20px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 327px;
  gap: 37px;
  padding: 50px 0 100px;
  align-items: start;
}

.config-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0px;
  padding: 29px 30px 34px;
  margin-bottom: 38px;
}

.step-title {
  display: flex;
  gap: 17px;
  align-items: start;
  margin-bottom: 24px;
}

.step-title > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border-radius: 0px;
  background: var(--maroon);
  color: #fff;
  font: 600 12px var(--heading);
}

.step-title h2 {
  font-size: 21px;
  margin: 2px 0 6px;
}

.step-title p {
  font-size: 12px;
  margin: 0;
}

.config-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.config-fields label,
.form-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.config-fields select,
.config-fields input,
.form-panel input:not([type='checkbox']),
.form-panel select,
.form-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0px;
  background: #fff;
  color: var(--ink);
  min-height: 45px;
  padding: 11px 13px;
  font-size: 12px;
  outline: 0;
}

.config-fields select:focus,
.config-fields input:focus,
.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 2px #7a1f2b12;
}

.period-chooser {
  margin-top: 25px;
}

.period-chooser > strong {
  font-size: 11px;
}

.period-pills {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.period-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 0px;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  font-weight: 700;
}

.period-pill.selected {
  background: var(--cream);
  color: var(--maroon);
  border-color: var(--maroon);
}

.period-pill input {
  accent-color: var(--maroon);
}

.slots-section > .step-title {
  margin-bottom: 23px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.day-panel {
  display: grid;
  grid-template-columns: 139px 1fr;
  min-height: 132px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0px;
  overflow: hidden;
}

.day-date {
  background: var(--cream);
  padding: 23px 15px;
  border-right: 1px solid var(--line);
}

.day-date span {
  display: block;
  color: var(--maroon);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin-bottom: 10px;
}

.day-date h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

.day-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.slot {
  padding: 16px 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  border-right: 1px solid var(--cream);
}

.slot:last-child {
  border-right: 0;
}

.slot-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.slot-period {
  font-size: 11px;
  font-weight: 800;
}

.slot-open {
  font-size: 9px;
  color: var(--muted);
}

.slot-set {
  color: var(--muted);
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.empty-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 44px;
  background: #fff;
  color: var(--maroon);
  border: 1px dashed var(--line);
  border-radius: 0px;
  font-size: 11px;
  font-weight: 700;
}

.empty-slot:hover {
  background: var(--cream);
}

.slot-filled {
  display: flex;
  align-items: center;
  gap: 9px;
}

.slot-filled img {
  height: 45px;
  width: 45px;
  object-fit: cover;
  border-radius: 0px;
}

.slot-filled > div {
  flex: 1;
  min-width: 0;
}

.slot-filled strong {
  display: block;
  font-size: 10px;
  line-height: 1.4;
}

.slot-filled span {
  display: block;
  font-size: 9px;
  color: var(--muted);
}

.edit-round {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--cream);
  color: var(--maroon);
  border: 0;
  border-radius: 0px;
}

.slot-links {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
}

.slot-links button {
  background: transparent;
  border: 0;
  font-size: 9px;
  font-weight: 700;
  color: var(--maroon);
  padding: 0;
  text-align: left;
}

.slot-links button:last-child {
  color: var(--muted);
}

.sticky-aside {
  position: sticky;
  top: 98px;
}

.review-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0px;
  padding: 28px 25px;
  box-shadow: 0 9px 25px #2c171209;
}

.review-box h3 {
  font-size: 22px;
  margin: 10px 0 15px;
}

.review-box > p {
  font-size: 12px;
  line-height: 1.7;
}

.progress {
  height: 6px;
  background: var(--cream);
  border-radius: 0px;
  overflow: hidden;
  margin-top: 23px;
}

.progress > div {
  height: 100%;
  background: var(--maroon);
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 22px;
  font-size: 10px;
  color: var(--muted);
}

.progress-label strong {
  color: var(--maroon);
}

.summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 11px;
  color: var(--muted);
  font-size: 11px;
  padding: 8px 0;
}

.summary-line strong {
  color: var(--ink);
}

.summary-line.saving,
.summary-line.saving strong {
  color: var(--muted);
}

.summary-line.total {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 13px;
}

.summary-line.total strong {
  font: 700 22px var(--heading);
  color: var(--maroon);
  white-space: nowrap;
}

.soft-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--cream);
  border-radius: 0px;
  padding: 13px;
  margin: 22px 0;
  font-size: 10px;
  color: var(--maroon);
  line-height: 1.65;
}

.soft-note svg {
  color: var(--maroon);
}

.aside-help {
  display: block;
  text-align: center;
  margin-top: 11px;
  color: var(--muted);
  font-size: 10px;
}

.small-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 8px 13px;
  background: var(--cream);
  border-radius: 0px;
  font-size: 11px;
}

.small-rule a {
  color: var(--maroon);
  text-decoration: underline;
}

.small-rule span {
  color: var(--muted);
}

.offer-intro p {
  max-width: 380px;
  font-size: 12px;
  line-height: 1.8;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}

.offer-card {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0px;
  padding: 33px 28px 27px;
  display: flex;
  flex-direction: column;
}

.offer-card.featured {
  border: 2px solid var(--maroon);
  padding: 32px 27px 26px;
}

.offer-featured {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--maroon);
  color: #fff;
  padding: 6px 11px;
  font-size: 9px;
  font-weight: 700;
}

.offer-card h3 {
  font-size: 24px;
  margin: 18px 0 10px;
}

.offer-card > p {
  font-size: 12px;
  min-height: 48px;
}

.offer-divider {
  height: 1px;
  background: var(--line);
  margin: 12px 0 22px;
}

.offer-price {
  font: 700 28px var(--heading);
  color: var(--maroon);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.offer-price small {
  font: 500 11px var(--body);
  color: var(--muted);
  letter-spacing: 0;
}

.offer-caption {
  font-size: 10px;
  color: var(--muted);
}

.tick-list {
  list-style: none;
  margin: 25px 0 29px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}

.tick-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.tick-list svg {
  color: var(--maroon);
}

.subscription-callout {
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 21px 25px;
  font-size: 11px;
  color: var(--muted);
}

.subscription-callout svg {
  color: var(--maroon);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 32px;
  margin-bottom: 35px;
}

.breadcrumb a {
  color: var(--maroon);
}

.review-page {
  min-height: 65vh;
  padding-bottom: 100px;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 40px;
  align-items: start;
}

.review-grid h1 {
  font-size: 40px;
  margin: 10px 0;
}

.lead {
  font-size: 13px;
  line-height: 1.85;
  max-width: 590px;
  margin-bottom: 28px;
}

.review-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0px;
  padding: 9px 22px;
}

.review-day {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.review-day:last-child {
  border: 0;
}

.review-day > strong {
  font-size: 12px;
}

.review-day > div {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 11px;
  padding-top: 9px;
  font-size: 11px;
}

.review-day > div span {
  color: var(--muted);
}

.review-grid aside {
  position: sticky;
  top: 100px;
}

.renewal-terms {
  background: var(--cream);
  padding: 14px;
  font-size: 10px !important;
  line-height: 1.95 !important;
  color: var(--muted);
}

.renewal-terms b {
  color: var(--ink);
}

.checkout-page {
  padding-bottom: 110px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 335px;
  gap: 45px;
  align-items: start;
}

.checkout-grid h1 {
  font-size: 40px;
  margin: 11px 0;
}

.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0px;
  padding: 28px 30px;
  margin-bottom: 20px;
}

.form-panel h2 {
  font-size: 19px;
  margin-bottom: 21px;
}

.form-panel label {
  margin-bottom: 17px;
}

.form-panel label:last-child {
  margin-bottom: 0;
}

.form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-panel textarea {
  resize: vertical;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.service-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border-radius: 0px;
  background: var(--cream);
  color: var(--muted);
  padding: 13px;
  margin-bottom: 19px;
  font-size: 10px;
  line-height: 1.7;
}

.service-note svg {
  color: var(--maroon);
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  font-size: 11px;
  border-bottom: 1px solid var(--cream);
  padding: 12px 0;
}

.checkout-line b {
  white-space: nowrap;
}

.error-text {
  font-size: 10px;
  font-weight: 500;
  color: var(--maroon);
}

.error-text:empty {
  display: none;
}

.disclosure {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  line-height: 1.7;
}

.disclosure input {
  margin-top: 4px;
  accent-color: var(--maroon);
}

.checkout-errors {
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--maroon);
  padding: 13px;
  margin-bottom: 20px;
  border-radius: 0px;
  font-size: 12px;
}

.checkout-errors[hidden] {
  display: none;
}

.checkout-submit {
  min-width: 216px;
}

.completed-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 66vh;
  padding: 90px 0;
}

.completed-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 0px;
  background: var(--cream);
  color: var(--maroon);
  margin-bottom: 22px;
}

.completed-page h1 {
  font-size: 39px;
  margin: 12px 0;
}

.completed-page > p {
  max-width: 615px;
  font-size: 14px;
  line-height: 1.9;
}

.completed-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.account-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  padding: 70px 0 109px;
}

.account-box {
  padding: 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0px;
}

.account-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 0px;
  background: var(--cream);
  color: var(--maroon);
  margin-bottom: 23px;
}

.account-box h2 {
  font-size: 26px;
}

.account-box p {
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 23px;
}

.draft-account {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0px;
  margin-bottom: 24px;
}

.draft-account h3 {
  margin: 8px 0;
  font-size: 17px;
}

.draft-account p {
  font-size: 11px;
}

.account-mini {
  padding: 40px;
  background: var(--cream);
  border-radius: 0px;
}

.account-mini h3 {
  margin-bottom: 24px;
}

.account-mini > div {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: 12px;
}

.account-mini svg {
  color: var(--maroon);
}

.faq-list {
  padding: 44px 0 110px;
  max-width: 920px;
}

.faq-list section {
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
}

.faq-list h2 {
  font-size: 19px;
  margin-bottom: 10px;
}

.faq-list p {
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
}

body.overlay-active {
  overflow: hidden;
}

.modal-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #1e1111a9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: var(--cream);
  max-height: 92vh;
  position: relative;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 20px 80px #0004;
}

.modal-x {
  position: absolute;
  top: 15px;
  right: 17px;
  z-index: 3;
  background: #fff;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 0;
  border-radius: 0px;
  box-shadow: 0 2px 9px #0002;
}

.customizer {
  display: grid;
  grid-template-columns: minmax(245px, 0.84fr) minmax(370px, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(885px, 100%);
}

.custom-photo {
  grid-row: 1/3;
  min-height: 530px;
  background: var(--cream);
}

.custom-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-body {
  grid-row: 1;
  grid-column: 2;
  min-height: 0;
  overflow: auto;
  padding: 34px 37px 25px;
}

.custom-body h2 {
  font-size: 28px;
  margin: 10px 0 9px;
}

.custom-body > p {
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.nutrition-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 25px;
  padding: 16px 8px;
  background: var(--cream);
  border-radius: 0px;
}

.nutrition-strip span {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--line);
}

.nutrition-strip span:last-child {
  border: 0;
}

.nutrition-strip b {
  font: 700 15px var(--heading);
}

.nutrition-strip small {
  font-size: 9px;
  color: var(--muted);
}

.choice-group {
  border: 0;
  min-width: 0;
  padding: 0;
  margin: 0 0 23px;
}

.choice-group legend {
  font: 600 14px var(--heading);
  margin-bottom: 10px;
}

.choice-group legend > span {
  font: 400 10px var(--body);
  color: var(--muted);
  margin-left: 7px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  border-bottom: 1px solid var(--cream);
  cursor: pointer;
  font-size: 11px;
}

.option-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.option-row input:focus-visible + .radio-visual,
.option-row input:focus-visible + .checkbox-visual {
  outline: 3px solid var(--maroon);
  outline-offset: 3px;
}

.radio-visual {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 0px;
  flex-shrink: 0;
}

.option-row input:checked + .radio-visual {
  border-color: var(--maroon);
}

.option-row input:checked + .radio-visual:after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 0px;
  background: var(--maroon);
}

.checkbox-visual {
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 0px;
  flex-shrink: 0;
}

.option-row input:checked + .checkbox-visual {
  background: var(--maroon);
  border-color: var(--maroon);
}

.option-row input:checked + .checkbox-visual:after {
  content: '✓';
  font-size: 12px;
  color: #fff;
  line-height: 13px;
  display: block;
  text-align: center;
}

.option-name {
  flex: 1;
}

.option-price {
  font-size: 10px;
  color: var(--muted);
}

.allergen {
  padding: 13px;
  background: var(--cream);
  border-radius: 0px;
  font-size: 10px !important;
}

.custom-footer {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 23px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.custom-footer > div {
  display: flex;
  flex-direction: column;
}

.custom-footer small {
  font-size: 9px;
  color: var(--muted);
}

.custom-footer strong {
  font: 700 22px var(--heading);
  color: var(--maroon);
}

.custom-footer .btn {
  min-width: 185px;
}

.choose-modal {
  width: min(790px, 100%);
  padding: 34px;
}

.choose-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.choose-head h2 {
  font-size: 27px;
  margin: 6px 0 0;
}

.inline-x {
  position: static;
}

.chooser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-height: 60vh;
  overflow: auto;
}

.choose-meal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0px;
  padding: 10px;
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
}

.choose-meal:hover {
  border-color: var(--maroon);
}

.choose-meal img {
  width: 68px;
  height: 68px;
  border-radius: 0px;
  object-fit: cover;
}

.choose-meal > span {
  flex: 1;
}

.choose-meal strong {
  display: block;
  font: 600 12px/1.4 var(--heading);
}

.choose-meal small {
  font-size: 10px;
  color: var(--muted);
}

.choose-meal > svg {
  color: var(--maroon);
  margin-right: 7px;
}

.drawer-backdrop {
  justify-content: flex-end;
  padding: 0;
}

.cart-drawer {
  width: min(475px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -10px 0 50px #0003;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 27px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  font-size: 25px;
  margin: 6px 0 0;
}

.drawer-head h2 span {
  color: var(--muted);
  font: 400 14px var(--body);
}

.drawer-items {
  overflow: auto;
  flex: 1;
  padding: 8px 28px;
}

.bag-item {
  display: flex;
  gap: 15px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.bag-item > img {
  width: 98px;
  height: 98px;
  object-fit: cover;
  border-radius: 0px;
}

.bag-info {
  min-width: 0;
  flex: 1;
}

.bag-info strong {
  font: 600 13px var(--heading);
  display: block;
}

.bag-info > small {
  display: block;
  margin: 6px 0;
  font-size: 10px;
  color: var(--muted);
}

.bag-line-price {
  font-size: 12px;
  color: var(--maroon);
  font-weight: 800;
}

.bag-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.bag-tools > button {
  border: 0;
  background: none;
  padding: 2px 0;
  color: var(--maroon);
  font-size: 10px;
  font-weight: 700;
}

.qty {
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  border-radius: 0px;
}

.qty button {
  width: 28px;
  height: 27px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.qty span {
  min-width: 20px;
  text-align: center;
  font-size: 11px;
}

.drawer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 28px 28px;
  box-shadow: 0 -4px 20px #00000008;
}

.drawer-bottom .btn {
  margin-top: 18px;
}

.empty-cart {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
}

.empty-icon {
  width: 86px;
  height: 86px;
  border-radius: 0px;
  background: var(--cream);
  color: var(--maroon);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.empty-cart h3 {
  max-width: 280px;
}

.empty-cart p {
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 160;
  bottom: 23px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  border-radius: 0px;
  box-shadow: 0 7px 20px #0003;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  max-width: calc(100vw - 28px);
}

.toast svg {
  color: var(--line);
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 22px;
    margin-left: 4px;
  }

  .hero-img-outline {
    height: 455px;
    width: 455px;
    right: -29px;
    top: 78px;
  }

  .hero-visual {
    height: 560px;
  }

  .hero-food-stamp {
    left: -23px;
  }

  .home-meals {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-feature {
    gap: 55px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 295px;
    gap: 23px;
  }

  .day-panel {
    grid-template-columns: 116px 1fr;
  }

  .day-date {
    padding: 17px 11px;
  }

  .slot {
    padding: 13px;
  }

  .slot-links {
    flex-direction: column;
    gap: 6px;
  }

  .slot-filled img {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 36px, 600px);
  }

  .demo-ribbon {
    height: 25px;
    font-size: 8px;
    letter-spacing: 0.07em;
    gap: 7px;
  }

  .header-inner {
    height: 66px;
  }

  .brand {
    font-size: 45px;
  }

  .desktop-nav,
  .account-link {
    display: none;
  }

  .header-actions {
    gap: 9px;
  }

  .mobile-menu-btn {
    display: grid;
  }

  .cart-pill {
    min-width: 0;
    padding: 9px;
  }

  .cart-pill > span:not(.cart-count) {
    display: none;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 8px 23px 18px;
  }

  .mobile-menu a {
    padding: 11px 0;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid var(--cream);
  }

  .hero:before {
    inset: 0;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
  }

  .hero-copy {
    text-align: center;
    padding: 52px 0 0;
  }

  .hero-kicker {
    justify-content: center;
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(36px, 8vw, 54px);
    margin: 0 auto 17px;
  }

  .hero-copy > p {
    max-width: 430px;
    margin: 0 auto 23px;
    font-size: 13px;
    line-height: 1.75;
  }

  .hero-buttons {
    justify-content: center;
    gap: 20px;
  }

  .hero-proof {
    margin-top: 24px;
    justify-content: center;
    font-size: 9px;
  }

  .hero-visual {
    width: 100%;
    height: auto;
    aspect-ratio: 1.38;
    min-height: 267px;
  }

  .hero-img-outline {
    position: relative;
    right: auto;
    top: auto;
    width: min(72vw, 380px);
    height: min(72vw, 380px);
    border-width: 7px;
    transform: translateY(16px);
  }

  .hero-food-stamp {
    left: 10%;
    bottom: 12px;
    width: 91px;
    height: 91px;
    border-width: 4px;
  }

  .hero-food-stamp strong {
    font-size: 29px;
  }

  .hero-food-stamp span {
    font-size: 8px;
  }

  .hero-side-note {
    display: none;
  }

  .strip-inner {
    min-height: 60px;
    justify-content: space-between;
    gap: 12px;
  }

  .strip-inner > span:not(.strip-sep) {
    font-size: 9px;
    gap: 5px;
  }

  .strip-inner svg {
    width: 15px;
  }

  .strip-sep {
    height: 25px;
  }

  .section {
    padding: 62px 0;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .section-heading p {
    font-size: 11px;
  }

  .section-heading .simple-link {
    font-size: 10px;
  }

  .meal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .meal-content {
    padding: 13px;
  }

  .meal-card h3,
  .menu-space .meal-card h3 {
    font-size: 14px;
  }

  .meal-card p {
    font-size: 10px;
    min-height: 53px;
  }

  .meal-card-top {
    gap: 4px;
  }

  .meal-category,
  .meal-cal {
    font-size: 8px;
  }

  .price {
    font-size: 15px;
  }

  .split-feature {
    display: flex;
    flex-direction: column;
    gap: 45px;
    margin-bottom: 65px;
  }

  .split-photo {
    height: 310px;
    align-self: flex-start;
    width: calc(100% - 22px);
  }

  .photo-overlap {
    right: -26px;
    padding: 17px;
    width: 176px;
  }

  .photo-overlap span:last-child {
    font-size: 15px;
  }

  .split-copy h2 {
    font-size: 33px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-inner h2 {
    font-size: 26px;
  }

  .site-footer {
    padding: 43px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 33px 22px;
  }

  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }

  .footer-bottom {
    margin-top: 36px;
  }

  .page-intro {
    padding: 44px 0;
  }

  .page-intro h1 {
    font-size: 35px;
  }

  .page-intro p {
    font-size: 12px;
  }

  .menu-space,
  .subscriptions-space {
    padding: 29px 0 70px;
  }

  .menu-toolbar {
    gap: 17px;
  }

  .search-field {
    width: 100%;
  }

  .filter-row {
    gap: 8px;
  }

  .filter-chip {
    font-size: 10px;
    padding: 9px 13px;
  }

  .menu-count {
    margin: 20px 0 13px;
  }

  .menu-space .meal-photo-btn {
    aspect-ratio: 1.1;
  }

  .menu-space .meal-content {
    padding: 12px;
  }

  .page-layout,
  .review-grid,
  .checkout-grid,
  .account-layout {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .page-layout {
    padding: 30px 0 74px;
  }

  .config-card {
    padding: 23px 18px;
    margin-bottom: 34px;
  }

  .step-title h2 {
    font-size: 20px;
  }

  .step-title p {
    font-size: 11px;
  }

  .config-fields {
    gap: 12px;
  }

  .day-panel {
    grid-template-columns: 105px 1fr;
  }

  .day-slots {
    grid-template-columns: 1fr;
  }

  .slot {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px;
  }

  .slot:last-child {
    border-bottom: 0;
  }

  .slot-links {
    flex-direction: row;
  }

  .day-date {
    padding: 17px 10px;
  }

  .day-date h3 {
    font-size: 13px;
  }

  .sticky-aside,
  .review-grid aside {
    position: static;
  }

  .review-box {
    padding: 24px;
  }

  .review-page {
    padding-bottom: 65px;
  }

  .review-grid h1,
  .checkout-grid h1 {
    font-size: 32px;
  }

  .offer-intro {
    flex-direction: column;
    gap: 10px;
  }

  .offer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .offer-card {
    padding: 27px;
  }

  .offer-card.featured {
    padding: 26px;
  }

  .offer-card > p {
    min-height: 0;
  }

  .tick-list {
    margin: 18px 0 24px;
  }

  .subscription-callout {
    align-items: flex-start;
  }

  .checkout-page {
    padding-bottom: 70px;
  }

  .form-panel {
    padding: 23px 18px;
  }

  .account-layout {
    padding: 40px 0 75px;
  }

  .account-box,
  .account-mini {
    padding: 28px;
  }

  .faq-list {
    padding-top: 20px;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .customizer {
    display: flex;
    flex-direction: column;
    max-height: 97dvh;
    max-width: 570px;
  }

  .custom-photo {
    height: 155px;
    min-height: 0;
    flex-shrink: 0;
  }

  .custom-photo img {
    object-position: center 45%;
  }

  .custom-body {
    padding: 19px 20px;
    min-height: 0;
    flex: 1;
  }

  .custom-body h2 {
    font-size: 23px;
  }

  .custom-body > p {
    margin-bottom: 12px;
  }

  .nutrition-strip {
    margin-bottom: 18px;
  }

  .choice-group {
    margin-bottom: 18px;
  }

  .custom-footer {
    padding: 11px 16px;
  }

  .custom-footer strong {
    font-size: 19px;
  }

  .custom-footer .btn {
    min-width: 0;
  }

  .choose-modal {
    padding: 21px 16px;
  }

  .choose-head h2 {
    font-size: 23px;
  }

  .chooser-grid {
    grid-template-columns: 1fr;
    max-height: 65vh;
  }

  .choose-meal img {
    width: 57px;
    height: 57px;
  }

  .cart-drawer {
    width: min(440px, 100%);
  }

  .drawer-head {
    padding: 21px;
  }

  .drawer-items {
    padding: 7px 18px;
  }

  .drawer-bottom {
    padding: 18px 20px;
  }
}

@media (max-width: 390px) {
  .wrap {
    width: calc(100% - 26px);
  }

  .demo-ribbon {
    font-size: 7px;
    gap: 4px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-inner {
    height: 60px;
  }

  .brand {
    font-size: 42px;
  }

  .hero-copy {
    padding-top: 43px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-proof {
    font-size: 8px;
  }

  .strip-inner {
    gap: 5px;
  }

  .strip-inner > span:not(.strip-sep) {
    font-size: 8px;
  }

  .strip-inner svg {
    height: 14px;
    width: 14px;
  }

  .section-heading {
    flex-direction: column;
    gap: 13px;
  }

  .meal-grid {
    gap: 9px;
  }

  .meal-content {
    padding: 10px;
  }

  .meal-card h3,
  .menu-space .meal-card h3 {
    font-size: 12px;
  }

  .meal-card p {
    font-size: 9px;
    line-height: 1.6;
    min-height: 58px;
  }

  .meal-category,
  .meal-cal {
    font-size: 7px;
  }

  .price {
    font-size: 13px;
  }

  .round-add {
    width: 30px;
    height: 30px;
  }

  .footer-grid {
    gap: 25px 15px;
  }

  .config-fields,
  .form-cols {
    grid-template-columns: 1fr;
  }

  .day-panel {
    grid-template-columns: 92px 1fr;
  }

  .day-date {
    padding: 15px 9px;
  }

  .day-date h3 {
    font-size: 12px;
  }

  .day-date span {
    font-size: 8px;
  }

  .slot-links {
    flex-direction: column;
  }

  .offer-card h3 {
    font-size: 21px;
  }

  .custom-photo {
    height: 133px;
  }

  .custom-footer .btn {
    font-size: 10px;
    padding: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Gilly's 2.1: fresh, editorial build-your-own bowl & adult calorie guide. */

.build-home-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 90px);
  padding: 40px 0 80px;
}

.build-home-photo {
  min-height: 420px;
  background: var(--line);
  overflow: hidden;
  border-radius: 0px;
}

.build-home-photo img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.build-home-copy h2 {
  max-width: 480px;
  margin-top: 14px;
}

.build-home-copy h2 em,
.build-intro h1 em,
.calc-header h1 em {
  color: var(--maroon);
  font-family: var(--brand);
  font-weight: 500;
  font-size: 1.28em;
  font-style: normal;
}

.build-home-copy p {
  max-width: 455px;
  font-size: 16px;
}

.build-home-copy .simple-link {
  display: inline-flex;
  margin-left: 20px;
  margin-top: 20px;
}

.menu-build-banner {
  margin-bottom: 28px;
  padding: 22px 26px;
  background: var(--cream);
  border-left: 4px solid var(--maroon);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.menu-build-banner > div {
  display: grid;
  gap: 2px;
}

.menu-build-banner strong {
  font-family: var(--heading);
  font-size: 23px;
  line-height: 1.3;
}

.menu-build-banner > div > span:last-child {
  color: var(--muted);
  font-size: 13px;
}

/* The custom bowl uses the same tile structure as other meal choices. */
.choose-custom {
  background: #fff;
  border: 2px solid #ead7d7;
}

.choose-custom .choose-build-thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #650c1b;
  border-radius: 0;
  font-family: var(--heading);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.choose-custom .choose-meal-info {
  flex: 1 1 auto;
  min-width: 0;
}

.choose-custom > svg {
  flex: 0 0 20px;
  margin-left: auto;
}

@media (max-width: 650px) {
  .choose-custom .choose-build-thumb {
    flex-basis: 57px;
    width: 57px;
    height: 57px;
    font-size: 30px;
  }
}

.build-page,
.calorie-page {
  padding: 60px 0 100px;
}

.build-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 50px;
}

.build-intro > div {
  max-width: 710px;
}

.build-intro h1,
.calc-header h1 {
  margin: 14px 0 14px;
  max-width: 780px;
}

.build-intro p,
.calc-header p {
  font-size: 16px;
  max-width: 680px;
  margin-bottom: 0;
}

.calorie-shortcut {
  max-width: 250px;
  padding: 16px 0 16px 22px;
  border-left: 2px solid var(--maroon);
  font-size: 13px;
  line-height: 1.5;
}

.calorie-shortcut strong {
  display: block;
  color: var(--maroon);
  margin-top: 5px;
}

.build-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 54px;
  align-items: start;
}

.build-form {
  min-width: 0;
}

.ingredient-group {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 32px;
  margin: 0 0 32px;
  min-width: 0;
}

.ingredient-group legend {
  font-family: var(--heading);
  font-size: 21px;
  font-weight: 600;
  padding: 0;
  color: var(--ink);
}

.ingredient-group > p {
  margin: 3px 0 18px;
  font-size: 13px;
}

.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ingredient-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0px;
  background: #fff;
  cursor: pointer;
  transition: background 0.12s,
    border-color 0.12s;
}

.ingredient-option:hover {
  border-color: var(--maroon);
}

.ingredient-option.is-active {
  border-color: var(--maroon);
  background: var(--cream);
}

.ingredient-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.ingredient-option:focus-within {
  outline: 3px solid var(--maroon);
  outline-offset: 2px;
}

.ingredient-switch {
  width: 35px;
  height: 20px;
  border-radius: 0px;
  background: var(--line);
  flex: 0 0 auto;
  padding: 3px;
}

.ingredient-switch > span {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 0px;
  background: #fff;
  transition: transform 0.15s;
}

.ingredient-option.is-active .ingredient-switch {
  background: var(--maroon);
}

.ingredient-option.is-active .ingredient-switch > span {
  transform: translateX(15px);
}

.ingredient-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  line-height: 1.38;
}

.ingredient-copy strong {
  font-size: 12px;
  font-weight: 700;
}

.ingredient-copy small {
  color: var(--muted);
  font-size: 10px;
}

.ingredient-price {
  font-family: var(--heading);
  color: var(--maroon);
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.builder-fine-print {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.build-summary {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(74, 40, 30, 0.08);
  min-width: 0;
}

.build-visual {
  height: 220px;
  overflow: hidden;
  background: var(--line);
}

.build-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.build-summary-inner {
  padding: 28px 28px 26px;
}

.build-summary-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reset-link,
.build-buy-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--maroon);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  font-size: 12px;
}

.build-summary h2 {
  margin: 8px 0 20px;
  font-size: 26px;
}

.ingredient-receipt {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 19px;
}

.ingredient-receipt > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.ingredient-receipt > div strong {
  font-weight: 600;
  white-space: nowrap;
}

.bowl-macro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 22px 0 12px;
}

.bowl-macro-grid > div {
  background: var(--cream);
  padding: 10px 5px;
  text-align: center;
  display: grid;
  gap: 1px;
}

.bowl-macro-grid strong {
  font-family: var(--heading);
  font-size: clamp(13px, 1.5vw, 21px);
  line-height: 1.2;
}

.bowl-macro-grid small {
  font-size: 10px;
  color: var(--muted);
}

.macro-rail {
  height: 7px;
  display: flex;
  background: var(--line);
  border-radius: 0px;
  overflow: hidden;
}

.macro-protein {
  background: var(--maroon);
}

.macro-carbs {
  background: var(--ink);
}

.macro-fat {
  background: var(--muted);
}

.macro-key {
  color: var(--muted);
  font-size: 10px;
  margin: 8px 0 15px;
}

.bowl-allergens {
  font-size: 11px;
  line-height: 1.5;
}

.build-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 13px;
}

.build-total strong {
  font-size: 28px;
  font-family: var(--heading);
  color: var(--maroon);
}

.build-summary .btn {
  width: 100%;
}

.build-buy-link {
  display: block;
  text-align: center;
  margin: 18px auto 12px;
}

.build-buy-link:disabled {
  opacity: 0.4;
}

.build-demo-note {
  display: block;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 14px;
}

.calc-header {
  padding-bottom: 40px;
}

.calorie-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: 38px;
}

.calorie-form,
.calorie-result {
  background: #fff;
  border: 1px solid var(--line);
  padding: 35px;
}

.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 27px;
}

.calc-field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}

.calc-field input,
.calc-field select {
  min-width: 0;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 0px;
  background: #fff;
  color: var(--ink);
}

.calc-privacy,
.calorie-disclaimer {
  font-size: 11px;
  line-height: 1.7;
  margin: 15px 0 0;
}

.calorie-result {
  border-top: 4px solid var(--maroon);
}

.calorie-figure strong {
  display: block;
  font-family: var(--heading);
  font-size: clamp(45px, 5vw, 70px);
  letter-spacing: -0.05em;
  color: var(--maroon);
}

.calorie-figure span {
  font-weight: 600;
}

.calorie-extra {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}

.calorie-extra b {
  white-space: nowrap;
}

.calorie-result .btn {
  margin-top: 18px;
}

.calorie-empty {
  padding: 22px 0 45px;
}

.calorie-empty-number {
  font: 700 80px/1 var(--heading);
  color: var(--line);
}

.calorie-empty h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.sample-slot-notice {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.6;
  margin-top: 6px;
}

@media (max-width: 1050px) {
  .build-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 22px;
  }

  .ingredient-grid {
    grid-template-columns: 1fr;
  }

  .build-summary-inner {
    padding: 22px;
  }

  .calorie-layout {
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .build-home-feature {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 25px 0 55px;
  }

  .build-home-photo {
    min-height: unset;
    border-radius: 0px;
  }

  .build-home-photo img {
    height: 300px;
  }

  .build-home-copy .simple-link {
    display: block;
    margin-left: 0;
  }

  .menu-build-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .menu-build-banner .btn {
    width: max-content;
  }

  .build-page,
  .calorie-page {
    padding: 34px 0 65px;
  }

  .build-intro {
    display: block;
    padding-bottom: 30px;
  }

  .calorie-shortcut {
    max-width: unset;
    margin-top: 20px;
  }

  .build-layout,
  .calorie-layout {
    grid-template-columns: 1fr;
  }

  .ingredient-grid {
    grid-template-columns: 1fr 1fr;
  }

  .build-summary {
    position: static;
  }

  .build-visual {
    height: 250px;
  }

  .calorie-form,
  .calorie-result {
    padding: 25px;
  }
}

@media (max-width: 490px) {
  .ingredient-grid,
  .calc-form-grid {
    grid-template-columns: 1fr;
  }

  .ingredient-option {
    min-height: 60px;
  }

  .ingredient-group {
    margin-bottom: 22px;
    padding-bottom: 22px;
  }

  .build-summary-inner {
    padding: 20px;
  }

  .build-intro h1,
  .calc-header h1 {
    font-size: 36px;
  }

  .calorie-result {
    padding: 22px;
  }

  .build-home-copy h2 {
    font-size: 31px;
  }
}

/* The live total remains visible while assembling a bowl on mobile. */

.build-mobile-preview {
  display: none;
}

@media (max-width: 767px) {
  .build-mobile-preview {
    position: sticky;
    top: 62px;
    z-index: 26;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 2px;
    padding: 10px 14px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 5px 18px #6a232328;
  }

  .build-mobile-preview > span {
    display: grid;
    gap: 1px;
  }

  .build-mobile-preview > span:last-child {
    text-align: right;
  }

  .build-mobile-preview strong {
    font-family: var(--heading);
    font-size: 15px;
    line-height: 1.35;
  }

  .build-mobile-preview small,
  .build-mobile-preview a {
    color: var(--cream);
    font-size: 10px;
    line-height: 1.5;
  }
}

/* ==========================================================================
   Gilly's 3.0 — ground-up layout. Maroon, cream, white. Square corners only.
   Layout classes are prefixed g-. Older rules above remain only for the inner
   pages (checkout, plans, subscriptions, account) until they are redesigned.
   ========================================================================== */

*,
*::before,
*::after {
  border-radius: 0px !important;
}

body {
  background: #fff;
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: lining-nums;
  text-transform: lowercase;
}

.btn,
.simple-link,
.filter-chip,
.ingredient-group legend,
.choice-group legend {
  text-transform: lowercase;
}

::selection {
  background: var(--maroon);
  color: #fff;
}

/* Buttons (shared with inner pages) */

.btn {
  box-shadow: none;
}

.btn-primary {
  background: var(--maroon);
  color: #fff;
  border: 2px solid var(--maroon);
  font-weight: 700;
}

.btn-primary:hover:not(:disabled) {
  background: var(--deep);
  border-color: var(--deep);
}

.btn-outline,
.btn-light {
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
}

.btn-outline:hover,
.btn-light:hover {
  background: var(--maroon);
  color: #fff;
}

.simple-link {
  color: var(--maroon);
  font-weight: 700;
}

/* Notice + header */

.g-note {
  background: var(--deep);
  color: #f1d3cc;
  text-align: center;
  font-size: 12px;
  padding: 7px 16px;
}

.g-note span {
  color: var(--rose);
  padding: 0 4px;
}

.g-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--maroon);
  color: #fff;
}

.g-head-in {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.g-head .brand {
  font: 38px/1 var(--brand);
  color: #fff;
}

.g-head .brand span,
.g-foot .brand span {
  color: inherit;
}

.g-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-self: stretch;
}

.g-nav a {
  display: flex;
  align-items: center;
  padding: 3px 14px 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: lowercase;
  color: #f1d3cc;
  border-bottom: 3px solid transparent;
}

.g-nav a:hover {
  color: #fff;
}

.g-nav a.active {
  color: #fff;
  border-bottom-color: #fff;
}

.g-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: none;
  border: 0;
}

.g-icon:hover {
  background: var(--deep);
}

.g-user-link {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 10px;
  color: #fff;
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 0px;
  transition: background 0.15s;
}

.g-user-link:hover {
  background: var(--deep);
}

.g-username {
  font: 600 13px/1 var(--body);
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.g-mobile-greeting {
  display: block;
  padding: 12px 24px 4px;
  font: 700 15px/1 var(--body);
  color: var(--maroon);
}

.g-cart {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  color: var(--maroon);
  border: 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: lowercase;
}

.g-cart:hover {
  background: var(--off-white);
}

.g-cart b {
  background: var(--maroon);
  color: #fff;
  min-width: 20px;
  padding: 1px 6px;
  font-size: 12px;
  text-align: center;
}

.g-menu-btn {
  display: none;
}

.g-mobile {
  display: grid;
  background: var(--deep);
}

.g-mobile a {
  padding: 16px 32px;
  color: #fff;
  font-weight: 600;
  text-transform: lowercase;
  border-top: 1px solid #ffffff22;
}

/* Home: photo-background sections */

.g-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.g-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
}

.g-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.25) 55%,
    rgba(0, 0, 0, 0.02) 100%
  );
}

.g-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 96px 0;
}

.g-hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(46px, 6.6vw, 96px);
  color: #fff;
}

.g-hero p {
  margin: 0;
  max-width: 360px;
  font-size: 19px;
  color: #f6dcd5;
}

.g-hero .btn-primary {
  padding: 16px 32px;
  font-size: 15px;
  background: #fff;
  color: var(--maroon);
  border-color: #fff;
}

.g-hero .btn-primary:hover:not(:disabled) {
  background: var(--cream);
  border-color: var(--cream);
}

.g-info {
  background: #fff;
  border-bottom: 2px solid var(--maroon);
}

.g-info-in {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.g-info-in > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 24px;
  border-left: 1px solid var(--line);
}

.g-info-in > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.g-info strong {
  font: 800 18px/1.2 var(--heading);
  color: var(--maroon);
  text-transform: lowercase;
}

.g-info span {
  font-size: 13px;
  color: var(--muted);
}

/* Home: product tiles (also the menu grid) */

.g-section {
  padding: 72px 0;
}

.g-section > h2 {
  margin: 0 0 32px;
  font-size: clamp(30px, 3.6vw, 46px);
  color: var(--maroon);
}

.g-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.g-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.g-tile-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--deep);
  cursor: pointer;
}

.g-tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.03);
  transition: transform 0.35s;
}

.g-tile-photo:hover img {
  transform: scale(1.05);
}

.g-tile-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 20px;
}

.g-tile h3 {
  margin: 0;
  font-size: 22px;
  color: var(--ink);
}

.g-tile-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--maroon);
  text-transform: lowercase;
}

.g-tile p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.g-tile-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  padding: 0 20px;
  border: 0;
  background: var(--maroon);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: lowercase;
}

.g-tile-add span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.g-tile-add b {
  font: 800 19px/1 var(--heading);
}

.g-tile-add:hover {
  background: var(--deep);
}

/* Home: build + plan */

.g-build,
.g-plan {
  position: relative;
  overflow: hidden;
  background: var(--deep);
}

.g-build {
  padding: 88px 0;
}

.g-build-wrap,
.g-plan-wrap {
  position: relative;
  z-index: 1;
}

.g-build-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 520px;
  padding: clamp(28px, 4vw, 52px);
  background: var(--maroon);
  color: #fff;
}

.g-build h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  color: #fff;
}

.g-build p {
  margin: 0;
  font-size: 17px;
  color: #f1d3cc;
}

.g-build .btn-primary {
  background: #fff;
  color: var(--maroon);
  border-color: #fff;
}

.g-build .btn-primary:hover {
  background: var(--cream);
  border-color: var(--cream);
}

.g-plan {
  padding: 88px 0;
}

.g-plan::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #4a0a10b8;
}

.g-plan h2 {
  margin: 0 0 32px;
  font-size: clamp(30px, 3.6vw, 46px);
  color: #fff;
}

.g-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--maroon);
  background: var(--cream);
}

.g-plan-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
  color: var(--maroon);
  background: var(--off-white);
  border: 1px solid var(--line);
}

.g-plan-item + .g-plan-item {
  border-left: 2px solid var(--maroon);
}

.g-plan-item h3 {
  margin: 0 0 6px;
  font-size: 28px;
  color: inherit;
}

.g-plan-item p {
  margin: 0;
  max-width: 300px;
  color: var(--muted);
}

.g-plan-item:hover {
  background: var(--maroon);
  color: #fff;
}

.g-plan-item:hover p {
  color: #f1d3cc;
}

/* Footer */

.g-foot {
  padding: 56px 0 28px;
  background: var(--deep);
  color: #e2bdb5;
}

.g-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.g-foot .brand {
  font: 44px/1 var(--brand);
  color: #fff;
}

.g-foot strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #fff;
  text-transform: lowercase;
}

.g-foot a:not(.brand) {
  display: block;
  padding: 3px 0;
  font-size: 14px;
  color: #e2bdb5;
}

.g-foot a:not(.brand):hover {
  color: #fff;
}

.g-foot p {
  margin: 8px 0 0;
  font-size: 14px;
  color: #e2bdb5;
}

.g-foot-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ffffff22;
  font-size: 12px;
}

/* Inner pages: page head, menu controls */

.g-pagehead {
  padding: 56px 0 40px;
  background: var(--cream);
  border-bottom: 2px solid var(--maroon);
}

.g-pagehead h1 {
  margin: 0 0 8px;
  font-size: clamp(38px, 5vw, 64px);
  color: var(--maroon);
}

.g-pagehead p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.menu-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 24px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  border: 2px solid var(--maroon);
}

.filter-chip {
  padding: 11px 18px;
  background: #fff;
  color: var(--maroon);
  border: 0;
  border-right: 2px solid var(--maroon);
  font-weight: 700;
}

.filter-chip:last-child {
  border-right: 0;
}

.filter-chip.selected,
.filter-chip[aria-pressed='true'] {
  background: var(--maroon);
  color: #fff;
}

.search-field {
  background: #fff;
  border: 2px solid var(--maroon);
}

.menu-count {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* Build a bowl */

.build-intro h1,
.calc-header h1 {
  color: var(--maroon);
}

.ingredient-group legend {
  font: 800 24px var(--heading);
  color: var(--maroon);
}

.ingredient-grid {
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.ingredient-option {
  padding: 16px;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.ingredient-option:hover {
  background: var(--cream);
}

.ingredient-option.is-active {
  background: var(--maroon);
  color: #fff;
  box-shadow: none;
}

.ingredient-option.is-active .ingredient-copy small {
  color: #f1d3cc;
}

.ingredient-option.is-active .ingredient-price {
  color: #fff;
}

.ingredient-switch {
  position: relative;
  width: 18px;
  height: 18px;
  padding: 0;
  background: #fff;
  border: 2px solid var(--maroon);
}

.ingredient-switch > span {
  display: none;
}

.ingredient-option.is-active .ingredient-switch {
  background: #fff;
  border-color: #fff;
}

.ingredient-option.is-active .ingredient-switch::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--maroon);
}

.build-summary {
  background: #fff;
  border: 2px solid var(--maroon);
  border-top-width: 8px;
  box-shadow: none;
}

.build-visual {
  background: var(--deep);
}

.bowl-macro-grid > div {
  background: var(--cream);
}

.macro-protein {
  background: var(--maroon);
}

.macro-carbs {
  background: var(--deep);
}

.macro-fat {
  background: var(--rose);
}

.build-total strong {
  color: var(--maroon);
}

.build-mobile-preview {
  background: var(--maroon);
}

.calorie-form,
.calorie-result {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.calorie-result {
  border-top: 6px solid var(--maroon);
}

.calorie-figure strong {
  color: var(--maroon);
}

@media (max-width: 900px) {
  .g-nav {
    display: none;
  }

  .g-menu-btn {
    display: grid;
  }

  .g-head-in {
    gap: 12px;
  }

  .g-head-actions {
    margin-left: auto;
  }

  .g-hero {
    min-height: 100svh;
    min-height: 100vh;
  }

  .g-hero::after {
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.3) 55%,
      rgba(0, 0, 0, 0.04) 100%
    );
  }

  .g-hero-copy {
    padding: 56px 0 48px;
    align-self: flex-end;
  }

  .g-info-in {
    grid-template-columns: 1fr;
  }

  .g-info-in > div,
  .g-info-in > div:first-child {
    padding: 14px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .g-info-in > div:first-child {
    border-top: 0;
  }

  .g-build,
  .g-plan {
    padding: 48px 0;
  }

  .g-section {
    padding: 48px 0;
  }

  .g-plan-grid {
    grid-template-columns: 1fr;
  }

  .g-plan-item + .g-plan-item {
    border-left: 0;
    border-top: 2px solid var(--maroon);
  }

  .g-plan-item {
    padding: 24px;
  }

  .g-foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .g-tiles {
    grid-template-columns: 1fr 1fr;
  }

  .g-tile-body {
    padding: 12px 12px 14px;
  }

  .g-tile h3 {
    font-size: 17px;
  }

  .g-tile p {
    display: none;
  }

  .g-tile-add {
    height: 44px;
    padding: 0 12px;
  }

  .g-tile-add b {
    font-size: 16px;
  }

  .g-foot-grid {
    grid-template-columns: 1fr;
  }
}

/* Meal plan calorie target */

.kcal-line {
  font-size: 0.85rem;
  color: #4a0a10;
  margin-top: 0.25rem;
}

.kcal-line.over {
  color: #800000;
}

.kcal-warning {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid #800000;
  background: #fff;
  color: #800000;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}

.plan-calc {
  margin-top: 1rem;
}

.plan-calc summary {
  cursor: pointer;
  font-weight: 600;
  color: #800000;
}

.plan-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.plan-calc-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.calc-err {
  color: #800000;
  font-size: 0.85rem;
}

/* Distinct macro colors (bar + legend) */

.macro-protein {
  background: #800000;
}

.macro-carbs {
  background: #d9a441;
}

.macro-fat {
  background: #7c9a7e;
}

.macro-key .mk-protein {
  color: #800000;
}

.macro-key .mk-carbs {
  color: #d9a441;
}

.macro-key .mk-fat {
  color: #7c9a7e;
}

/* Food-first polish (visual only) */

.g-hero {
  min-height: 100vh;
}

.g-hero::after {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.25) 55%,
    rgba(0, 0, 0, 0.02) 100%
  );
}

.g-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f6dcd5;
  border-bottom: 1px solid #f6dcd566;
  padding-bottom: 8px;
}

.g-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 16px 28px;
  font-size: 15px;
}

.btn-ghost-light:hover {
  background: #ffffff22;
}

.g-section-cream {
  background: var(--off-white);
  padding: 72px 0;
}

.g-section-cream > .wrap > h2 {
  margin-top: 0;
}

.g-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.g-strip-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  color: #fff;
}

.g-strip-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.g-strip-tile:hover img {
  transform: scale(1.06);
}

.g-strip-tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(0deg, #4a0a10dd, transparent);
}

@media (max-width: 900px) {
  .g-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .g-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .g-hero-cta .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

.g-pagehead {
  position: relative;
  color: #fff;
  border-bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.38) 100%),
    url('https://images.unsplash.com/photo-1547592180-85f173990554?auto=format&fit=crop&w=1600&q=80')
      center / cover;
}

.g-pagehead h1 {
  color: #fff;
}

.g-pagehead p {
  color: #f6dcd5;
}

/* ---- Visual polish (CSS only): food-first look inspired by restaurant ordering sites ---- */

.g-head {
  box-shadow: 0 2px 18px #4a0a1040;
}

/* Hero: bigger, slow zoom, richer overlay */

.g-hero {
  min-height: 100vh;
}

.g-hero .g-bg {
  animation: g-slow-zoom 22s ease-out both;
}

@keyframes g-slow-zoom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.1);
  }
}

.g-hero::after {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.25) 55%,
    rgba(0, 0, 0, 0.02) 100%
  );
}

.g-eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ffffff80;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.g-hero h1 {
  max-width: 11ch;
  text-shadow: 0 2px 24px #0006;
}

.g-hero p {
  font-size: 21px;
}

.g-hero-cta .btn {
  padding: 17px 34px;
  font-size: 15px;
}

/* Info band floats over the hero edge */

.g-info {
  position: relative;
  z-index: 3;
  margin: -46px auto 0;
  max-width: 1100px;
  border: 0;
  box-shadow: 0 18px 44px #4a0a1030;
}

.g-info-in {
  padding: 0 8px;
}

/* Menu cards: photo-first with gentle lift */

.g-tiles {
  border: 0;
  gap: 22px;
}

.g-tile {
  border: 1px solid var(--line);
  transition: transform 0.25s ease,
    box-shadow 0.25s ease;
}

.g-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px #4a0a1022;
}

.g-tile-photo {
  aspect-ratio: 4 / 3;
}

.g-tile-photo img {
  transition: transform 0.6s ease;
}

.g-tile:hover .g-tile-photo img {
  transform: scale(1.07);
}

.g-tile-body {
  gap: 8px;
}

.g-tile-meta {
  display: inline-block;
  width: fit-content;
  padding: 3px 9px;
  background: var(--cream);
}

/* Section rhythm: alternate backgrounds */

.g-section-cream {
  background: var(--off-white);
}

.g-section-cream {
  padding: 88px 0;
}

.g-section > h2,
.g-section-cream > .wrap > h2 {
  position: relative;
  padding-bottom: 14px;
}

.g-section > h2::after,
.g-section-cream > .wrap > h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--maroon);
}

/* Strip: always-visible names with brighter hover */

.g-strip-tile:hover span {
  background: linear-gradient(0deg, #800000ee, transparent);
}

@media (max-width: 760px) {
  .g-hero {
    min-height: 100svh;
    min-height: 100vh;
  }

  .g-info {
    margin-top: 0;
    box-shadow: none;
    border-bottom: 2px solid var(--maroon);
  }

  .g-tile:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .g-hero .g-bg {
    animation: none;
  }

  .g-tile,
  .g-tile-photo img {
    transition: none;
  }
}

/* Accounts: sign in, create account, forgot password, and signed-in account. */

.auth-wrap {
  max-width: 560px;
  padding: 56px 0 96px;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--maroon);
  padding: 36px;
}

.auth-card .auth-form {
  display: grid;
  gap: 17px;
}

.auth-card .btn {
  margin-top: 6px;
}

.auth-alert {
  background: var(--cream);
  border-left: 4px solid var(--maroon);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 600;
}

.auth-links a {
  color: var(--maroon);
}

.auth-card .caption {
  margin-top: 18px;
}

.account-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

@media (max-width: 490px) {
  .auth-card {
    padding: 24px;
  }
}

/* Checkout account gate, saved delivery addresses, and account address book. */

.gate-box {
  max-width: 680px;
  padding: 60px 0 100px;
}

.gate-box h1 {
  margin-bottom: 14px;
}

.gate-box .account-actions {
  margin-top: 26px;
}

.form-panel .address-choices {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.form-panel .address-card {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
}

.form-panel .address-card.is-active {
  border-color: var(--maroon);
  background: var(--cream);
}

.form-panel .address-card input[type='radio'] {
  width: auto;
  min-height: 0;
  padding: 0;
  margin-top: 3px;
  accent-color: var(--maroon);
}

.address-card-body {
  display: grid;
  gap: 3px;
}

.address-card-body small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.default-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  background: var(--maroon);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  vertical-align: middle;
}

.new-address {
  display: grid;
  gap: 17px;
  margin-bottom: 18px;
}

.form-panel label.check-row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
}

.form-panel label.check-row input[type='checkbox'] {
  accent-color: var(--maroon);
}

.address-manager {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.address-manager h3 {
  font-size: 17px;
  margin: 0;
}

.address-manager .form-panel {
  display: grid;
  gap: 14px;
}

.address-manager .form-panel h2 {
  font-size: 17px;
  margin: 0;
}

.saved-address {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}

.saved-address-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  white-space: nowrap;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--maroon);
  font-weight: 600;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Password field with Show / Hide toggle. */

.password-wrap {
  position: relative;
  display: block;
}

.password-wrap input {
  padding-right: 68px !important;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 6px 8px;
  color: var(--maroon);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.password-toggle:hover {
  text-decoration: underline;
}

/* 4.0 maroon theme: maroon canvas, white cards, yellow accents */

:root {
  --yellow: #f7c948;
  --band: #5c0a12;
}

body {
  background: var(--maroon);
  color: #fff;
}

main {
  color: #fff;
}

main h1,
main h2,
.g-section > h2,
.g-section-cream > .wrap > h2 {
  color: #fff;
}

main p,
main .lead,
main .caption {
  color: #f6dcd5;
}

.g-section > h2::after,
.g-section-cream > .wrap > h2::after {
  background: var(--yellow);
}

.g-section-cream {
  background: var(--band);
}

.site-footer {
  background: #3a0710;
  border-top: 3px solid var(--yellow);
}

.site-footer a:hover {
  color: var(--yellow);
}

.g-eyebrow {
  color: var(--yellow);
  border-color: #f7c94866;
}

.btn-primary,
.g-hero .btn-primary,
.g-build .btn-primary {
  background: var(--yellow);
  color: var(--maroon);
  border-color: var(--yellow);
}

.btn-primary:hover:not(:disabled),
.g-hero .btn-primary:hover:not(:disabled),
.g-build .btn-primary:hover {
  background: #fff;
  color: var(--maroon);
  border-color: #fff;
}

main .btn-outline,
main .btn-light {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

main .btn-outline:hover,
main .btn-light:hover {
  background: #fff;
  color: var(--maroon);
}

.g-cart {
  background: var(--yellow);
}

.g-cart:hover {
  background: #fff;
}

.filter-chip.selected,
.filter-chip[aria-pressed='true'] {
  background: var(--yellow);
  color: var(--maroon);
}

.default-tag {
  background: var(--yellow);
  color: var(--maroon);
}

.link-btn {
  color: var(--yellow);
}

/* White cards keep dark text; buttons inside them go maroon with a yellow label */

.meal-card,
.config-card,
.day-panel,
.review-box,
.progress,
.soft-note,
.offer-card,
.subscription-callout,
.review-panel,
.form-panel,
.service-note,
.checkout-errors,
.account-box,
.account-mini,
.draft-account,
.modal,
.custom-footer,
.cart-drawer,
.menu-build-banner,
.build-summary,
.calorie-form,
.calorie-result,
.g-info,
.g-tile,
.g-plan-grid,
.g-plan-item,
.auth-card,
.empty-state,
.nutrition-strip {
  color: var(--ink);
}

.meal-card h1,
.meal-card h2,
.meal-card h3,
.meal-card h4,
.config-card h1,
.config-card h2,
.config-card h3,
.config-card h4,
.day-panel h1,
.day-panel h2,
.day-panel h3,
.day-panel h4,
.review-box h1,
.review-box h2,
.review-box h3,
.review-box h4,
.progress h1,
.progress h2,
.progress h3,
.progress h4,
.soft-note h1,
.soft-note h2,
.soft-note h3,
.soft-note h4,
.offer-card h1,
.offer-card h2,
.offer-card h3,
.offer-card h4,
.subscription-callout h1,
.subscription-callout h2,
.subscription-callout h3,
.subscription-callout h4,
.review-panel h1,
.review-panel h2,
.review-panel h3,
.review-panel h4,
.form-panel h1,
.form-panel h2,
.form-panel h3,
.form-panel h4,
.service-note h1,
.service-note h2,
.service-note h3,
.service-note h4,
.checkout-errors h1,
.checkout-errors h2,
.checkout-errors h3,
.checkout-errors h4,
.account-box h1,
.account-box h2,
.account-box h3,
.account-box h4,
.account-mini h1,
.account-mini h2,
.account-mini h3,
.account-mini h4,
.draft-account h1,
.draft-account h2,
.draft-account h3,
.draft-account h4,
.modal h1,
.modal h2,
.modal h3,
.modal h4,
.custom-footer h1,
.custom-footer h2,
.custom-footer h3,
.custom-footer h4,
.cart-drawer h1,
.cart-drawer h2,
.cart-drawer h3,
.cart-drawer h4,
.menu-build-banner h1,
.menu-build-banner h2,
.menu-build-banner h3,
.menu-build-banner h4,
.build-summary h1,
.build-summary h2,
.build-summary h3,
.build-summary h4,
.calorie-form h1,
.calorie-form h2,
.calorie-form h3,
.calorie-form h4,
.calorie-result h1,
.calorie-result h2,
.calorie-result h3,
.calorie-result h4,
.g-info h1,
.g-info h2,
.g-info h3,
.g-info h4,
.g-tile h1,
.g-tile h2,
.g-tile h3,
.g-tile h4,
.g-plan-grid h1,
.g-plan-grid h2,
.g-plan-grid h3,
.g-plan-grid h4,
.g-plan-item h1,
.g-plan-item h2,
.g-plan-item h3,
.g-plan-item h4,
.auth-card h1,
.auth-card h2,
.auth-card h3,
.auth-card h4,
.empty-state h1,
.empty-state h2,
.empty-state h3,
.empty-state h4,
.nutrition-strip h1,
.nutrition-strip h2,
.nutrition-strip h3,
.nutrition-strip h4 {
  color: var(--maroon);
}

.meal-card p,
.meal-card small,
.meal-card .caption,
.meal-card .lead,
.config-card p,
.config-card small,
.config-card .caption,
.config-card .lead,
.day-panel p,
.day-panel small,
.day-panel .caption,
.day-panel .lead,
.review-box p,
.review-box small,
.review-box .caption,
.review-box .lead,
.progress p,
.progress small,
.progress .caption,
.progress .lead,
.soft-note p,
.soft-note small,
.soft-note .caption,
.soft-note .lead,
.offer-card p,
.offer-card small,
.offer-card .caption,
.offer-card .lead,
.subscription-callout p,
.subscription-callout small,
.subscription-callout .caption,
.subscription-callout .lead,
.review-panel p,
.review-panel small,
.review-panel .caption,
.review-panel .lead,
.form-panel p,
.form-panel small,
.form-panel .caption,
.form-panel .lead,
.service-note p,
.service-note small,
.service-note .caption,
.service-note .lead,
.checkout-errors p,
.checkout-errors small,
.checkout-errors .caption,
.checkout-errors .lead,
.account-box p,
.account-box small,
.account-box .caption,
.account-box .lead,
.account-mini p,
.account-mini small,
.account-mini .caption,
.account-mini .lead,
.draft-account p,
.draft-account small,
.draft-account .caption,
.draft-account .lead,
.modal p,
.modal small,
.modal .caption,
.modal .lead,
.custom-footer p,
.custom-footer small,
.custom-footer .caption,
.custom-footer .lead,
.cart-drawer p,
.cart-drawer small,
.cart-drawer .caption,
.cart-drawer .lead,
.menu-build-banner p,
.menu-build-banner small,
.menu-build-banner .caption,
.menu-build-banner .lead,
.build-summary p,
.build-summary small,
.build-summary .caption,
.build-summary .lead,
.calorie-form p,
.calorie-form small,
.calorie-form .caption,
.calorie-form .lead,
.calorie-result p,
.calorie-result small,
.calorie-result .caption,
.calorie-result .lead,
.g-info p,
.g-info small,
.g-info .caption,
.g-info .lead,
.g-tile p,
.g-tile small,
.g-tile .caption,
.g-tile .lead,
.g-plan-grid p,
.g-plan-grid small,
.g-plan-grid .caption,
.g-plan-grid .lead,
.g-plan-item p,
.g-plan-item small,
.g-plan-item .caption,
.g-plan-item .lead,
.auth-card p,
.auth-card small,
.auth-card .caption,
.auth-card .lead,
.empty-state p,
.empty-state small,
.empty-state .caption,
.empty-state .lead,
.nutrition-strip p,
.nutrition-strip small,
.nutrition-strip .caption,
.nutrition-strip .lead {
  color: var(--muted);
}

.meal-card .btn-primary,
.config-card .btn-primary,
.day-panel .btn-primary,
.review-box .btn-primary,
.progress .btn-primary,
.soft-note .btn-primary,
.offer-card .btn-primary,
.subscription-callout .btn-primary,
.review-panel .btn-primary,
.form-panel .btn-primary,
.service-note .btn-primary,
.checkout-errors .btn-primary,
.account-box .btn-primary,
.account-mini .btn-primary,
.draft-account .btn-primary,
.modal .btn-primary,
.custom-footer .btn-primary,
.cart-drawer .btn-primary,
.menu-build-banner .btn-primary,
.build-summary .btn-primary,
.calorie-form .btn-primary,
.calorie-result .btn-primary,
.g-info .btn-primary,
.g-tile .btn-primary,
.g-plan-grid .btn-primary,
.g-plan-item .btn-primary,
.auth-card .btn-primary,
.empty-state .btn-primary,
.nutrition-strip .btn-primary {
  background: var(--maroon);
  color: var(--yellow);
  border-color: var(--maroon);
}

.meal-card .btn-primary:hover:not(:disabled),
.config-card .btn-primary:hover:not(:disabled),
.day-panel .btn-primary:hover:not(:disabled),
.review-box .btn-primary:hover:not(:disabled),
.progress .btn-primary:hover:not(:disabled),
.soft-note .btn-primary:hover:not(:disabled),
.offer-card .btn-primary:hover:not(:disabled),
.subscription-callout .btn-primary:hover:not(:disabled),
.review-panel .btn-primary:hover:not(:disabled),
.form-panel .btn-primary:hover:not(:disabled),
.service-note .btn-primary:hover:not(:disabled),
.checkout-errors .btn-primary:hover:not(:disabled),
.account-box .btn-primary:hover:not(:disabled),
.account-mini .btn-primary:hover:not(:disabled),
.draft-account .btn-primary:hover:not(:disabled),
.modal .btn-primary:hover:not(:disabled),
.custom-footer .btn-primary:hover:not(:disabled),
.cart-drawer .btn-primary:hover:not(:disabled),
.menu-build-banner .btn-primary:hover:not(:disabled),
.build-summary .btn-primary:hover:not(:disabled),
.calorie-form .btn-primary:hover:not(:disabled),
.calorie-result .btn-primary:hover:not(:disabled),
.g-info .btn-primary:hover:not(:disabled),
.g-tile .btn-primary:hover:not(:disabled),
.g-plan-grid .btn-primary:hover:not(:disabled),
.g-plan-item .btn-primary:hover:not(:disabled),
.auth-card .btn-primary:hover:not(:disabled),
.empty-state .btn-primary:hover:not(:disabled),
.nutrition-strip .btn-primary:hover:not(:disabled) {
  background: var(--deep);
  border-color: var(--deep);
}

.meal-card .btn-outline,
.config-card .btn-outline,
.day-panel .btn-outline,
.review-box .btn-outline,
.progress .btn-outline,
.soft-note .btn-outline,
.offer-card .btn-outline,
.subscription-callout .btn-outline,
.review-panel .btn-outline,
.form-panel .btn-outline,
.service-note .btn-outline,
.checkout-errors .btn-outline,
.account-box .btn-outline,
.account-mini .btn-outline,
.draft-account .btn-outline,
.modal .btn-outline,
.custom-footer .btn-outline,
.cart-drawer .btn-outline,
.menu-build-banner .btn-outline,
.build-summary .btn-outline,
.calorie-form .btn-outline,
.calorie-result .btn-outline,
.g-info .btn-outline,
.g-tile .btn-outline,
.g-plan-grid .btn-outline,
.g-plan-item .btn-outline,
.auth-card .btn-outline,
.empty-state .btn-outline,
.nutrition-strip .btn-outline {
  color: var(--maroon);
  border-color: var(--maroon);
}

.meal-card .btn-outline:hover,
.config-card .btn-outline:hover,
.day-panel .btn-outline:hover,
.review-box .btn-outline:hover,
.progress .btn-outline:hover,
.soft-note .btn-outline:hover,
.offer-card .btn-outline:hover,
.subscription-callout .btn-outline:hover,
.review-panel .btn-outline:hover,
.form-panel .btn-outline:hover,
.service-note .btn-outline:hover,
.checkout-errors .btn-outline:hover,
.account-box .btn-outline:hover,
.account-mini .btn-outline:hover,
.draft-account .btn-outline:hover,
.modal .btn-outline:hover,
.custom-footer .btn-outline:hover,
.cart-drawer .btn-outline:hover,
.menu-build-banner .btn-outline:hover,
.build-summary .btn-outline:hover,
.calorie-form .btn-outline:hover,
.calorie-result .btn-outline:hover,
.g-info .btn-outline:hover,
.g-tile .btn-outline:hover,
.g-plan-grid .btn-outline:hover,
.g-plan-item .btn-outline:hover,
.auth-card .btn-outline:hover,
.empty-state .btn-outline:hover,
.nutrition-strip .btn-outline:hover {
  background: var(--maroon);
  color: #fff;
}

.meal-card .link-btn,
.config-card .link-btn,
.day-panel .link-btn,
.review-box .link-btn,
.progress .link-btn,
.soft-note .link-btn,
.offer-card .link-btn,
.subscription-callout .link-btn,
.review-panel .link-btn,
.form-panel .link-btn,
.service-note .link-btn,
.checkout-errors .link-btn,
.account-box .link-btn,
.account-mini .link-btn,
.draft-account .link-btn,
.modal .link-btn,
.custom-footer .link-btn,
.cart-drawer .link-btn,
.menu-build-banner .link-btn,
.build-summary .link-btn,
.calorie-form .link-btn,
.calorie-result .link-btn,
.g-info .link-btn,
.g-tile .link-btn,
.g-plan-grid .link-btn,
.g-plan-item .link-btn,
.auth-card .link-btn,
.empty-state .link-btn,
.nutrition-strip .link-btn {
  color: var(--maroon);
}

.breadcrumb,
.breadcrumb a,
.breadcrumb span {
  color: #f6dcd5;
}

.breadcrumb svg {
  stroke: #f6dcd5;
}

/* Chef logo lockup: mark + wordmark */

.g-head .brand,
.g-foot .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand b {
  font-weight: 400;
}

.chef-mark {
  flex: none;
}

@media (max-width: 560px) {
  .g-head .chef-mark {
    width: 36px;
    height: 36px;
  }

  .g-head .brand {
    font-size: 32px;
  }
}

/* ==========================================================================
   Gilly's 5.0 theme — dark-maroon restaurant look: two-tier header with a
   nav band, condensed uppercase headings, dark feature cards, red buttons,
   gold accents. Visual layer only; no logic or data attributes changed.
   ========================================================================== */

:root {
  --maroon: #7a0000;
  --red: #b01212;
  --red-dark: #8c0d0d;
  --gold: #f0b429;
  --cream-text: #fff3c4;
  --black-band: #0d0d0d;
  --card-dark: #151515;
}

body {
  font-family: var(--body);
  background: var(--maroon);
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: uppercase;
}

.btn,
.simple-link,
.filter-chip,
.ingredient-group legend,
.choice-group legend,
.g-cart,
.g-tile-add,
.g-mobile a {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

main h1,
main h2,
.g-section > h2 {
  color: #fff;
}

.g-section > h2::after,
.g-section-cream > .wrap > h2::after {
  display: none;
}

/* Buttons: red, square, small caps */

body .btn.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  font-size: 12px;
  min-height: 42px;
}

body .btn.btn-primary:hover:not(:disabled) {
  background: #fff;
  color: var(--red);
  border-color: #fff;
  transform: none;
}

body .btn.btn-outline,
body .btn.btn-ghost-light {
  font-size: 12px;
}

body .g-cart {
  background: var(--gold);
  color: #3a0000;
}

body .g-cart b {
  background: #3a0000;
  color: var(--gold);
}

body .filter-chip.selected,
body .filter-chip[aria-pressed='true'] {
  background: var(--red);
  color: #fff;
}

body .filter-row,
body .search-field {
  border-color: #ffffff55;
}

body .filter-chip {
  background: transparent;
  color: #fff;
  border-right-color: #ffffff55;
}

body .search-field {
  background: #fff;
}

/* Header: logo row + nav band */

.g-head {
  background: #4d0000;
  box-shadow: 0 3px 16px #0006;
}

.g-head-top {
  background: #4d0000;
}

.g-head-in {
  height: 76px;
  justify-content: space-between;
}

.g-navbar {
  background: #8f0f0f;
  border-top: 1px solid #ffffff1f;
}

.g-nav {
  margin: 0 auto;
  gap: 0;
  align-self: auto;
  height: 46px;
  align-items: stretch;
}

.g-nav a {
  padding: 0 30px;
  font-family: var(--heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 0;
}

.g-nav a:hover {
  background: #ffffff1a;
}

.g-nav a.active {
  background: #4d0000;
  border-bottom: 0;
}

/* Hero */

.g-hero {
  min-height: 78vh;
}

.g-hero::after {
  background: linear-gradient(90deg, #000000e6 0%, #00000099 35%, #00000000 75%),
    linear-gradient(0deg, #0000008c 0%, #0000 40%);
}

.g-hero h1 {
  max-width: 14ch;
  color: var(--cream-text);
  font-size: clamp(40px, 5.8vw, 82px);
  text-shadow: 0 2px 20px #0008;
}

.g-hero p {
  color: #fff;
  font-size: 18px;
}

body .g-hero .btn.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  padding: 15px 30px;
}

body .g-hero .btn.btn-primary:hover:not(:disabled) {
  background: #fff;
  color: var(--red);
}

/* Three dark feature cards that overlap the hero edge */

.g-feature {
  background: var(--black-band);
  padding-bottom: 64px;
}

.g-feature-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: -84px;
}

.g-feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px 26px;
  background: var(--card-dark);
  border: 1px solid #2c2c2c;
  box-shadow: 0 14px 34px #0009;
}

.g-feature-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  margin-bottom: 8px;
}

.g-feature-card h2 {
  margin: 0;
  padding: 0 4px;
  font-size: 22px;
  color: var(--cream-text);
}

.g-feature-card p {
  margin: 0 0 6px;
  padding: 0 4px;
  font-size: 13px;
  line-height: 1.8;
  color: #a9a9a9;
}

.g-feature-card .btn {
  margin: auto 4px 0;
}

/* Product tiles: dark cards, white-framed photos */

.g-section {
  padding: 72px 0;
}

.g-section-cream {
  background: var(--maroon);
}

.g-tiles {
  gap: 24px;
}

.g-tile {
  background: var(--card-dark);
  border: 1px solid #2c2c2c;
}

.g-tile:hover {
  box-shadow: 0 16px 36px #0008;
}

.g-tile-photo {
  width: calc(100% - 24px);
  margin: 12px 12px 0;
  border: 5px solid #fff;
  background: #fff;
}

.g-tile h3,
.g-tile-body h3 {
  color: var(--cream-text);
  font-size: 20px;
}

.g-tile p {
  color: #a9a9a9;
}

.g-tile-meta {
  padding: 0;
  background: none;
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.g-tile-add {
  background: var(--red);
  color: #fff;
}

.g-tile-add:hover {
  background: var(--red-dark);
}

.g-tile-add b {
  color: var(--cream-text);
}

/* Plan band: photo + dark veil, centred gold heading (like the newsletter band) */

.g-plan::after {
  background: #000000a6;
}

.g-plan h2 {
  text-align: center;
  color: var(--gold);
}

.g-plan-grid {
  max-width: 820px;
  margin: 0 auto;
  border: 0;
  background: transparent;
  gap: 16px;
}

.g-plan-item,
.g-plan-item + .g-plan-item {
  background: #000000a0;
  border: 1px solid #ffffff3d;
  color: #fff;
}

.g-plan-item h3 {
  color: var(--cream-text);
}

.g-plan-item p,
.g-plan-item p {
  color: #d6d6d6;
}

.g-plan-item:hover {
  background: var(--red);
  border-color: var(--red);
}

.g-plan-item:hover h3,
.g-plan-item:hover p {
  color: #fff;
}

/* Inner page banner */

.g-pagehead {
  background: linear-gradient(0deg, #000000d9 0%, #00000099 100%),
    url('https://images.unsplash.com/photo-1547592180-85f173990554?auto=format&fit=crop&w=1600&q=80')
      center / cover;
  border-bottom: 3px solid var(--red);
}

.g-pagehead h1 {
  color: var(--cream-text);
}

/* Footer */

.g-foot {
  background: #3d0000;
  border-top: 3px solid var(--red);
}

.g-foot strong {
  font-family: var(--heading);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream-text);
}

.g-foot a:not(.brand):hover {
  color: var(--gold);
}

/* Sticky panels sit below the taller header */

.sticky-aside,
.build-summary,
.review-grid aside {
  top: 134px;
}

@media (max-width: 900px) {
  .g-navbar {
    display: none;
  }

  .g-head-in {
    height: 64px;
  }

  .g-hero {
    min-height: 64vh;
  }

  .g-hero::after {
    background: linear-gradient(0deg, #000000e6 0%, #00000066 55%, #00000000 100%);
  }

  .g-feature-grid {
    grid-template-columns: 1fr;
    margin-top: -40px;
  }

  .g-feature-card img {
    height: 170px;
  }

  .g-mobile {
    background: #4d0000;
  }
}

@media (max-width: 760px) {
  .sticky-aside,
  .build-summary,
  .review-grid aside {
    top: auto;
  }
}

/* 5.0 fixes: readable text on the maroon canvas and inside white cards */

main .build-intro h1,
main .calc-header h1,
main .calc-header h1 em,
main .build-intro h1 em {
  color: var(--cream-text);
}

main .ingredient-group legend {
  color: var(--cream-text);
  font-size: 22px;
}

main .ingredient-group {
  border-bottom-color: #ffffff40;
}

main .ingredient-group > p {
  color: #f6dcd5;
}

.ingredient-option {
  color: var(--ink);
}

.ingredient-option .ingredient-copy small {
  color: var(--muted);
}

.ingredient-option .ingredient-price {
  color: var(--red);
}

.ingredient-option.is-active {
  background: var(--red);
  color: #fff;
}

.ingredient-option.is-active .ingredient-copy small,
.ingredient-option.is-active .ingredient-price {
  color: #fff;
}

.ingredient-option.is-active .ingredient-switch::after {
  background: var(--red);
}

.ingredient-switch {
  border-color: var(--red);
}

.step-title > span {
  background: var(--red);
  color: #fff;
}

.build-summary,
.calorie-result {
  border-color: var(--red);
}

.build-total strong,
.calorie-figure strong,
.price,
.summary-line.total strong {
  color: var(--red);
}

.builder-fine-print,
.calc-privacy {
  color: #f6dcd5;
}

/* Legacy typography sizing rules — font families now inherit the two-font brand system. */

body {
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: none;
}

.g-head .brand,
.g-foot .brand {
  font: 600 30px/1 var(--brand);
  letter-spacing: -0.02em;
}

.g-nav a {
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.btn,
.g-cart,
.g-tile-add,
.filter-chip {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 12px;
}

.g-hero h1 {
  font-size: clamp(38px, 5.2vw, 72px);
  letter-spacing: -0.02em;
}

.g-foot strong {
  font-family: var(--heading);
  text-transform: none;
  letter-spacing: 0;
}

.calc-header h1 em,
.build-intro h1 em {
  font-family: var(--heading);
  font-size: 1em;
  font-weight: 600;
}

input,
select,
textarea,
button {
  font-family: inherit;
}

/* 5.1 inner pages: larger readable text, clearer cards, stronger structure */

.caption,
.small,
.progress-label,
.soft-note,
.service-note,
.aside-help,
.slot-open,
.slot-set,
.offer-caption,
.menu-count,
.error-text,
.renewal-terms,
.sample-slot-notice,
.build-demo-note,
.macro-key,
.bowl-allergens,
.address-card-body small {
  font-size: 13px !important;
  line-height: 1.6;
}

.step-title p,
.review-box > p,
.offer-card > p,
.lead,
.tick-list li,
.summary-line,
.checkout-line,
.review-day > div,
.account-box p,
.faq-list p {
  font-size: 14px;
}

.config-fields label,
.form-panel label,
.calc-field,
.plan-calc-grid label {
  font-size: 13px;
  font-weight: 600;
}

.slot-period,
.day-date span {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.slot-filled strong {
  font-size: 13px;
}

.slot-filled span,
.slot-links button {
  font-size: 12px;
}

/* White panels: soft shadow + red top edge */

.config-card,
.review-box,
.form-panel,
.auth-card,
.account-box,
.account-mini,
.offer-card,
.review-panel,
.calorie-form,
.empty-state,
.subscription-callout {
  border: 0;
  border-top: 4px solid var(--red);
  box-shadow: 0 12px 30px #00000040;
}

.offer-card.featured {
  border-top-color: var(--gold);
  box-shadow: 0 16px 36px #00000066;
}

.offer-featured {
  background: var(--gold);
  color: #3a0000;
  font-size: 12px;
}

.offer-card h3,
.review-box h3 {
  font-size: 22px;
}

.offer-price {
  font-size: 32px;
  color: var(--red);
}

.review-box h3,
.config-card h2,
.form-panel h2 {
  color: var(--maroon);
}

.review-box {
  padding: 28px 26px;
}

.account-mini {
  background: #fff;
}

/* Schedule days: dark date column, roomy slots */

.day-panel {
  border: 0;
  box-shadow: 0 8px 22px #00000038;
  grid-template-columns: 150px 1fr;
}

.day-panel .day-date {
  background: #4d0000;
  border-right: 0;
}

.day-panel .day-date span,
.day-panel .day-date h3,
.day-panel .kcal-line {
  color: var(--cream-text);
}

.day-panel .kcal-line.over {
  color: var(--gold);
}

.empty-slot {
  height: 52px;
  border: 2px dashed #b0121266;
  color: var(--red);
  font-size: 13px;
}

.empty-slot:hover {
  background: #fdf1f1;
  border-color: var(--red);
}

.period-pill {
  font-size: 13px;
  padding: 10px 18px;
  border-width: 2px;
}

.period-pill.selected {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.progress > div {
  background: var(--red);
}

.progress {
  height: 8px;
}

.slots-section > .step-title h2,
.slots-section > .step-title p {
  color: #fff;
}

/* Forms */

.form-panel input:not([type='checkbox']):not([type='radio']),
.form-panel select,
.form-panel textarea,
.config-fields select,
.config-fields input,
.calc-field input,
.calc-field select {
  min-height: 48px;
  font-size: 14px;
  border: 1.5px solid #d4c4c4;
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus,
.config-fields select:focus,
.config-fields input:focus,
.calc-field input:focus,
.calc-field select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px #b0121226;
}

.auth-wrap {
  max-width: 520px;
}

.auth-card {
  padding: 40px;
}

.address-card.is-active,
.form-panel .address-card.is-active {
  border: 2px solid var(--red);
}

.checkout-page .lead,
.review-page .lead {
  color: #f6dcd5;
}

/* Text-only pages: empty cart, gate, 404, done */

.review-page,
.completed-page {
  padding-top: 56px;
}

.review-page > h1,
.completed-page h1 {
  font-size: clamp(30px, 4vw, 48px);
  color: var(--cream-text);
  margin-bottom: 14px;
}

.completed-icon {
  background: var(--gold);
  color: #3a0000;
}

.completed-page > p,
.review-page > p {
  font-size: 16px;
}

/* FAQ cards */

.faq-list {
  display: grid;
  gap: 16px;
  max-width: 860px;
}

.faq-list section {
  background: #00000033;
  border: 0;
  border-left: 4px solid var(--gold);
  padding: 22px 26px;
}

.faq-list h2 {
  font-size: 19px;
  color: var(--cream-text);
}

/* Menu toolbar + modal + drawer */

.menu-toolbar {
  margin: 36px 0 20px;
}

.search-field input {
  font-size: 14px;
}

.option-row {
  font-size: 14px;
  min-height: 46px;
}

.choice-group legend {
  font-size: 15px;
  color: var(--maroon);
}

.bag-info strong {
  font-size: 15px;
}

.bag-info > small,
.bag-tools > button {
  font-size: 12px;
}

.modal,
.cart-drawer {
  border-top: 4px solid var(--red);
}

.custom-footer strong,
.drawer-bottom .summary-line.total strong {
  color: var(--red);
}

.review-day > div {
  grid-template-columns: 90px 1fr auto;
}

@media (max-width: 760px) {
  .day-panel {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 26px;
  }
}

/* ==========================================================================
   5.2 Button system — one shape, one type style, clear states.
   Primary = solid red · Outline = cream on maroon, red inside white cards ·
   Text/link buttons = underlined Outfit · Icon/stepper buttons = square.
   ========================================================================== */

body .btn {
  min-height: 46px;
  padding: 0 26px;
  gap: 10px;
  border: 2px solid transparent;
  font: 600 13px/1 var(--heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.15s,
    color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}

body .btn.full {
  width: 100%;
}

body .btn.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

body .btn.btn-primary:hover:not(:disabled) {
  background: #d41a1a;
  border-color: #d41a1a;
  color: #fff;
  box-shadow: 0 8px 18px #0000004d;
  transform: translateY(-1px);
}

body .btn:active:not(:disabled) {
  transform: none;
  box-shadow: none;
}

/* Outline on the maroon canvas: cream line, fills on hover */

body main .btn.btn-outline,
body main .btn.btn-ghost-light,
body main .btn.btn-light {
  background: transparent;
  color: var(--cream-text);
  border-color: #fff3c4b3;
}

body main .btn.btn-outline:hover:not(:disabled),
body main .btn.btn-ghost-light:hover:not(:disabled),
body main .btn.btn-light:hover:not(:disabled) {
  background: var(--cream-text);
  color: #4d0000;
  border-color: var(--cream-text);
  transform: none;
}

/* Outline inside white cards, panels, modal and drawer: red line */

body :is(.config-card, .review-box, .form-panel, .offer-card, .account-box, .account-mini,
.draft-account, .modal, .cart-drawer, .calorie-result, .calorie-form, .build-summary,
.empty-state, .auth-card, .menu-build-banner, .g-tile) .btn.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

body :is(.config-card, .review-box, .form-panel, .offer-card, .account-box, .account-mini,
.draft-account, .modal, .cart-drawer, .calorie-result, .calorie-form, .build-summary,
.empty-state, .auth-card, .menu-build-banner, .g-tile) .btn.btn-outline:hover:not(:disabled) {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Disabled: clearly inactive, never pink-on-white */

body .btn:disabled,
body main .btn:disabled {
  background: #d8cdcd;
  border-color: #d8cdcd;
  color: #7d6b6b;
  opacity: 1;
  box-shadow: none;
  transform: none;
}

/* Text and link buttons */

.text-btn,
.link-btn,
.reset-link,
.build-buy-link,
.password-toggle,
.slot-links button,
.bag-tools > button {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  color: var(--red);
  background: none;
  border: 0;
  cursor: pointer;
}

.text-btn {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  font-size: 13px;
}

.text-btn:hover,
.link-btn:hover,
.reset-link:hover,
.build-buy-link:hover,
.slot-links button:hover,
.bag-tools > button:hover {
  color: var(--maroon);
}

main > .wrap .link-btn,
.slots-section .link-btn {
  color: var(--gold);
}

/* Icon, close and stepper buttons: square, outlined, same hover */

.icon-btn,
.modal-x,
.edit-round {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #fff;
  color: var(--maroon);
  border: 2px solid #ead7d7;
  box-shadow: none;
  transition: background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.icon-btn:hover,
.modal-x:hover,
.edit-round:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.edit-round {
  width: 36px;
  height: 36px;
}

.g-icon {
  color: #fff;
  border: 2px solid #ffffff4d;
}

.g-icon:hover {
  background: #ffffff1a;
  border-color: #fff;
}

.qty {
  border: 2px solid #ead7d7;
}

.qty button {
  width: 36px;
  height: 34px;
  color: var(--maroon);
  transition: background 0.15s;
}

.qty button:hover {
  background: #f6e9e9;
}

.qty span {
  min-width: 34px;
  font: 600 14px var(--heading);
  color: var(--ink);
}

.round-add {
  background: var(--red);
}

.round-add:hover {
  background: #d41a1a;
}

/* Tile add bar, slot picker, chips and pills */

.g-tile-add {
  height: 50px;
  font: 600 13px var(--heading);
  letter-spacing: 0.05em;
  transition: background 0.15s;
}

.g-tile-add:hover {
  background: #d41a1a;
}

.empty-slot {
  font: 600 12px var(--heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.choose-meal {
  border: 2px solid #ead7d7;
  transition: border-color 0.15s,
    background 0.15s;
}

.choose-meal:hover {
  background: #fdf1f1;
  border-color: var(--red);
}

.filter-chip {
  transition: background 0.15s,
    color 0.15s;
}

.filter-chip:hover:not(.selected) {
  background: #ffffff1f;
}

.period-pill:hover:not(.selected) {
  border-color: var(--red);
  color: var(--red);
}

.g-cart {
  font: 600 13px var(--heading);
  transition: background 0.15s;
}

.g-cart:hover {
  background: #fff;
}

/* Keyboard focus: gold on dark, red on white */

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

:is(.modal, .cart-drawer, .config-card, .review-box, .form-panel, .offer-card, .account-box,
.calorie-form, .build-summary, .auth-card) :focus-visible {
  outline-color: var(--red);
}

@media (max-width: 760px) {
  body .btn {
    min-height: 48px;
    padding: 0 20px;
  }

  .g-hero-cta .btn {
    flex: 1 1 100%;
  }
}

/* 5.3 inner-page banner: plain dark maroon, no photo */

.g-pagehead {
  background: #4d0000;
  border-bottom: 3px solid var(--red);
  padding: 48px 0 40px;
}

/* 5.4 inner-page banner: photo back, red line removed */

.g-pagehead {
  background: linear-gradient(0deg, #000000d9 0%, #00000099 100%),
    url('https://images.unsplash.com/photo-1547592180-85f173990554?auto=format&fit=crop&w=1600&q=80')
      center / cover;
  border-bottom: 0;
  padding: 56px 0 48px;
}

/* 5.5 Build a bowl: full-page photo under a black filter */

.build-page {
  background: linear-gradient(180deg, #000000d1 0%, #000000b8 100%),
    url('https://images.unsplash.com/photo-1546069901-ba9599a7e63c?auto=format&fit=crop&w=2000&q=80')
      center / cover fixed;
  background-color: #1a0000;
  padding-bottom: 110px;
}

@media (max-width: 900px) {
  .build-page {
    background-attachment: scroll;
  }
}

/* Sign-in, sign-up and forgot-password: photo as the page background under a black filter */

.auth-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #000000d1 0%, #000000b8 100%),
    url('https://images.unsplash.com/photo-1546069901-ba9599a7e63c?auto=format&fit=crop&w=2000&q=80')
      center / cover fixed;
  background-color: #000;
}

.auth-page .g-pagehead {
  background: transparent;
  border-bottom: 0;
}

@media (max-width: 900px) {
  .auth-page {
    background-attachment: scroll;
  }
}

/* 5.6 footer: no red top line */

.g-foot {
  border-top: 0;
}

/* Wordmark: keep Gilly’s signature Sacramento script. */

.g-head .brand,
.g-foot .brand {
  font-family: var(--brand);
  font-weight: 400;
  font-size: 46px;
  letter-spacing: 0;
  text-transform: lowercase;
}

.g-foot .brand {
  font-size: 52px;
}

.brand b {
  font-weight: 400;
}

@media (max-width: 560px) {
  .g-head .brand {
    font-size: 38px;
  }
}

/* Typeface system: Barlow Condensed headings, DM Sans controls, signature Sacramento wordmark. */

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 15px;
  font-variant-numeric: lining-nums;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.18;
}

.g-hero h1 {
  font-size: clamp(38px, 5.2vw, 72px);
  letter-spacing: -0.01em;
}

/* Labels, buttons and controls use DM Sans. */

.g-nav a,
.btn,
body .btn,
.g-cart,
.g-tile-add,
.filter-chip,
.empty-slot,
.text-btn,
.link-btn,
.reset-link,
.build-buy-link,
.password-toggle,
.slot-links button,
.bag-tools > button,
.qty span,
.g-foot strong,
.period-pill,
.slot-period,
.day-date span,
.nutrition-strip small,
.step-title > span,
.offer-featured,
.g-tile-meta,
.choice-group legend {
  font-family: var(--ui);
}

.btn,
body .btn,
.g-cart,
.g-tile-add,
.filter-chip,
.g-nav a {
  font-weight: 900;
  letter-spacing: 0.07em;
}

.text-btn,
.link-btn,
.reset-link,
.build-buy-link,
.password-toggle,
.slot-links button,
.bag-tools > button,
.empty-slot,
.period-pill {
  font-weight: 700;
}

.g-tile-add b,
.price,
.offer-price,
.calorie-figure strong,
.build-total strong,
.summary-line.total strong {
  font-family: var(--heading);
}

.g-foot strong {
  font-weight: 700;
  font-size: 15px;
}

.ingredient-copy strong,
.bag-info strong,
.slot-filled strong {
  font-family: var(--ui);
  font-weight: 700;
}

.calc-header h1 em,
.build-intro h1 em {
  font-family: var(--heading);
}

/* Additional typography treatment for headlines and the signature wordmark. */

h1,
h2,
h3 {
  font-family: var(--heading);
  letter-spacing: -0.025em;
}

.g-hero h1 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.g-pagehead h1,
.build-intro h1,
.calc-header h1 {
  font-weight: 700;
}

.g-head .brand,
.g-foot .brand {
  font-family: var(--brand);
  font-weight: 400;
  letter-spacing: 0;
}

/* Selected Gilly’s logo: transparent, maroon-and-gold brand artwork.
   A compact responsive lockup preserves the original restaurant styling. */

.g-head .brand,
.g-foot .brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  letter-spacing: normal;
}

.g-brand-logo {
  display: block;
  width: 148px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.g-head-in {
  height: 112px;
}

.g-foot .g-brand-logo {
  width: 184px;
}

.sticky-aside,
.build-summary,
.review-grid aside {
  top: 170px;
}

@media (max-width: 900px) {
  .g-head-in {
    height: 88px;
  }

  .g-head .g-brand-logo {
    width: 112px;
  }

  .sticky-aside,
  .build-summary,
  .review-grid aside {
    top: auto;
  }
}

/* Final mascot lockup + compact icon-only cart ------------------------------- */

.g-head-in {
  min-height: 92px;
  height: auto;
  padding: 14px 0;
}

.g-head .brand,
.g-foot .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.g-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.g-brand-mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.g-brand-wordmark {
  display: block;
  font-family: var(--brand);
  font-size: clamp(38px, 3vw, 48px);
  line-height: 0.94;
  white-space: nowrap;
}

.g-head .g-brand-wordmark,
.g-foot .g-brand-wordmark {
  color: #fff;
}

.g-head-actions {
  gap: 14px;
}

/* A clean square icon button with a count pinned to its top-right corner. */

body .g-cart {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 0px;
  background: #fffaf3;
  color: var(--maroon);
  box-shadow: none;
  text-transform: none;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

body .g-cart:hover {
  transform: translateY(-1px);
  background: #fff0df;
}

.g-cart:active {
  transform: translateY(0);
}

.g-cart:focus-visible {
  outline: 3px solid #ffd88e;
  outline-offset: 3px;
}

.g-cart-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--maroon);
}

.g-cart-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.9;
}

body .g-cart .g-cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 2px solid var(--maroon);
  border-radius: 0px;
  background: #ffc453;
  color: #581111;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.g-foot .g-brand-mark {
  width: 66px;
  height: 66px;
}

.g-foot p {
  max-width: 260px;
}

@media (max-width: 900px) {
  .g-head-in {
    min-height: 78px;
    padding: 10px 0;
  }

  .g-brand-lockup {
    gap: 10px;
  }

  .g-head .g-brand-mark {
    width: 48px;
    height: 48px;
  }

  .g-head .g-brand-wordmark {
    font-size: 40px;
  }

  body .g-cart {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .g-username {
    display: none;
  }
}

@media (max-width: 560px) {
  .g-head-actions {
    gap: 8px;
  }

  .g-brand-wordmark {
    font-size: 34px;
  }

  .g-foot .g-brand-mark {
    width: 58px;
    height: 58px;
  }
}

/* ========================================================================== 
   Responsive storefront polish — handheld, foldable, tablet and widescreen
   Keeps the mascot, live cursive wordmark and icon-only cart consistent.
   ========================================================================== */

/* Prevent intrinsic content sizes and animated photography from widening the
   document; this clips only the intentionally zoomed hero photograph. */

.g-hero {
  overflow: hidden;
  overflow: clip;
}

main,
.g-pagehead,
.g-section,
.g-build,
.g-plan,
.g-head,
.g-foot {
  min-width: 0;
}

.account-layout,
.page-layout,
.review-grid,
.g-feature-grid,
.g-foot-grid,
.g-plan-grid,
.g-tiles,
.ingredient-grid,
.day-slots {
  min-width: 0;
}

.account-layout > *,
.page-layout > *,
.review-grid > *,
.g-feature-grid > *,
.g-foot-grid > *,
.g-plan-grid > *,
.ingredient-grid > *,
.day-panel > *,
.day-slots > * {
  min-width: 0;
}

.account-mini .btn,
.account-box .btn,
.form-panel .btn,
.review-box .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.account-box,
.account-mini,
.config-card,
.review-box,
.form-panel,
.auth-card,
.offer-card,
.calorie-form,
.calorie-result {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Shopping cart integrates into the burgundy masthead rather than appearing
   as a separate white tile. A count only exists when the cart is non-empty. */

body .g-cart {
  border: 1px solid transparent;
  border-radius: 0px;
  background: transparent;
  color: #fff;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

body .g-cart:hover,
body .g-cart:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
}

.g-cart-icon {
  color: inherit;
}

.g-cart-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.9;
}

body .g-cart .g-cart-count {
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  border: 2px solid #4d0000;
  background: #ffcf65;
  color: #4d0000;
}

/* A plus sign already communicates the customization action: keep only + and
   the price as visible content while the full screen-reader label remains. */

.g-tile-add {
  text-transform: none;
}

.g-tile-add .g-tile-plus {
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 0px;
  flex: 0 0 auto;
}

.g-tile-add .g-tile-plus svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.1;
}

/* Browser text scaling should not clip CTA, menu, or form content. */

.g-cart,
.g-user-link,
.g-menu-btn {
  flex-shrink: 0;
}

.g-tile,
.g-feature-card,
.g-tile-body,
.g-tile-add {
  min-width: 0;
}

@media (max-width: 1100px) {
  .account-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .g-nav {
    justify-content: center;
  }

  .g-nav a {
    padding-inline: clamp(8px, 1.4vw, 18px);
  }
}

@media (max-width: 900px) {
  .account-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .g-head .brand,
  .g-foot .brand {
    flex-shrink: 1;
    min-width: 0;
  }

  .g-head-in {
    gap: 12px;
  }

  .g-head-actions {
    margin-left: auto;
    gap: 8px;
  }

  .g-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-panel,
  .day-slots {
    min-width: 0;
  }

  .account-mini .btn {
    line-height: 1.4;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .g-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .g-tile h3 {
    overflow-wrap: anywhere;
  }

  .g-tile-add {
    padding: 0 12px;
    min-height: 46px;
    height: auto;
  }

  .g-head-in {
    padding-block: 10px;
  }

  .g-foot-grid {
    gap: 24px;
  }

  .account-layout,
  .review-grid,
  .checkout-grid {
    gap: 18px;
  }

  .account-box,
  .account-mini {
    padding: clamp(18px, 5vw, 28px);
  }

  .account-actions {
    flex-wrap: wrap;
  }

  .account-actions .btn {
    min-width: 0;
    flex: 1 1 160px;
  }

  .filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-chip,
  body .filter-chip {
    min-width: 0;
    text-align: center;
    padding: 10px 6px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .day-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .day-panel .day-date {
    border-right: 0;
    padding: 16px 18px;
  }

  .day-slots {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .g-head-in {
    gap: 6px;
  }

  .g-brand-lockup {
    gap: 7px;
  }

  .g-head .g-brand-mark {
    width: 42px;
    height: 42px;
  }

  .g-head .g-brand-wordmark {
    font-size: clamp(29px, 8.5vw, 37px);
  }

  .g-head-actions {
    gap: 2px;
  }

  .g-user-link,
  .g-menu-btn {
    width: 40px;
    height: 42px;
    padding: 0 8px;
  }

  body .g-cart {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .g-tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .g-tile-photo {
    aspect-ratio: 1.5;
  }

  .g-tile-body {
    padding: 16px;
  }

  .g-tile h3 {
    font-size: 20px;
  }

  .g-tile p {
    display: block;
  }

  .g-tile-add {
    padding-inline: 16px;
  }

  .g-pagehead h1 {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 355px) {
  .g-head .g-brand-mark {
    width: 36px;
    height: 36px;
  }

  .g-head .g-brand-wordmark {
    font-size: 28px;
  }

  .g-head-actions {
    gap: 0;
  }

  .g-user-link,
  .g-menu-btn {
    width: 37px;
    padding: 0 6px;
  }

  body .g-cart {
    min-width: 38px;
    width: 38px;
    height: 40px;
    flex-basis: 38px;
  }
}

@media (max-width: 600px) {
  /* Long action labels must wrap instead of forcing their flex or grid parent
     beyond the device width (notably the meal-plan autofill controls). */
  main .btn,
  .modal .btn,
  .cart-drawer .btn {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.35;
  }
}

@media (max-width: 600px) {
  .filter-row {
    width: 100%;
  }

  .filter-row .filter-chip {
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }
}

/* Checkout upgrade — preview steps, reusable addresses, and local history. */
.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.checkout-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 10px;
  font-size: 11px;
  font-weight: 600;
  border-right: 1px solid var(--line);
}

.checkout-steps li:last-child { border-right: 0; }
.checkout-steps b {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  height: 24px;
  background: var(--maroon);
  color: #fff;
}
.checkout-help { font-size: 12px; line-height: 1.6; color: var(--muted) !important; }
.checkout-saved-details {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--off-white);
  color: var(--ink);
}
.checkout-saved-details p { margin: 6px 0; color: var(--ink) !important; font-size: 12px; }
.checkout-saved-details .caption { color: var(--muted) !important; }
.checkout-saved-title { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--maroon); font-size: 12px; }
.checkout-payment-options { display: grid; gap: 10px; margin: 16px 0 20px; }
.checkout-payment-choice {
  display: flex;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px !important;
  padding: 16px;
  background: #fff;
  color: var(--ink) !important;
  border: 1px solid var(--maroon);
  cursor: pointer;
}
.checkout-payment-choice input { margin: 3px 0 0; accent-color: var(--maroon); }
.checkout-payment-choice span { display: grid; gap: 5px; }
.checkout-payment-choice small { font-size: 11px; line-height: 1.5; color: var(--muted) !important; }
.checkout-payment-choice.is-disabled { opacity: .6; border-color: var(--line); cursor: not-allowed; }
.demo-receipt {
  width: min(100%, 520px);
  padding: 26px;
  margin: 20px 0;
  background: #fff;
  color: var(--ink);
  border-top: 5px solid var(--maroon);
  text-align: left;
}
.demo-receipt-head, .demo-receipt-row { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 14px; font-size: 12px; }
.demo-receipt-head { padding-bottom: 13px; border-bottom: 1px solid var(--line); color: var(--maroon); overflow-wrap: anywhere; }
.demo-receipt-row span { color: var(--muted); }
.demo-receipt-row strong { text-align: right; }
.demo-receipt .caption { font-size: 11px; margin-bottom: 0; }
.demo-history { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.demo-history h3 { margin-bottom: 10px; }
.demo-history-item { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.demo-history-item > div { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.demo-history-item small { color: var(--muted); font-size: 11px; }
.demo-history-item .btn { white-space: normal; }
@media (max-width: 560px) {
  .checkout-steps li { flex-direction: column; align-items: flex-start; font-size: 10px; }
  .demo-history-item { flex-direction: column; align-items: stretch; }
  .completed-links { flex-wrap: wrap; justify-content: center; }
  .demo-receipt { padding: 18px; }
}

/* Dedicated account preview-history page. */
.demo-history-page { min-height: 64vh; padding: 64px 0 95px; }
.demo-history-page h1 { margin: 10px 0 12px; }
.demo-history-page .demo-history { background: #fff; color: var(--ink); border-top: 5px solid var(--maroon); padding: 25px; }
.demo-history-page .demo-history h3 { color: var(--maroon); }
.demo-history-page .demo-history .caption { color: var(--muted) !important; }
.demo-history-page .account-actions { margin-top: 28px; }

/* Account-only address editing and clear order-history navigation. */
.account-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0 32px;
}
.account-quick-links .btn { flex: 1 1 170px; }
.saved-address-entry { padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.saved-address-entry .saved-address { border-bottom: 0; }
.account-address-form { margin: 10px 0 24px; }
.account-address-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.account-add-address { margin-top: 18px; }
.checkout-delivery-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 14px 0 21px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-size: 12px;
  color: var(--ink) !important;
}
.checkout-delivery-line strong { color: var(--maroon); }
.checkout-delivery-line span { color: var(--muted); }

/* Cash-on-delivery checkout: a single clear, non-interactive payment method. */
.checkout-cod-only {
  padding: 18px 20px;
  border: 2px solid var(--maroon);
  background: #fff;
  color: var(--ink);
  margin: 14px 0 20px;
}
.checkout-cod-only strong {
  display: block;
  color: var(--maroon);
  font-size: 16px;
}
.checkout-cod-only p {
  color: var(--muted) !important;
  font-size: 12px;
  margin: 6px 0 0;
}

/* ============================================================================
   Order History and printable order summaries
   ============================================================================ */

.order-history-actions,
.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.order-history-actions .btn {
  min-width: 130px;
}

.receipt-page {
  padding: 60px 0 95px;
  min-height: 60vh;
}

.receipt-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.receipt-toolbar h1 {
  margin: 8px 0 10px;
}

.receipt-toolbar .lead {
  margin: 0;
}

.receipt-sheet {
  max-width: 850px;
  padding: 48px;
  background: #fff;
  color: var(--ink);
  border-top: 6px solid var(--maroon);
  box-shadow: 0 12px 40px #00000018;
  font-size: 13px;
  line-height: 1.6;
}

.receipt-sheet h2 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--maroon);
  text-transform: none;
}

.receipt-sheet p {
  margin: 0 0 5px;
  color: var(--ink);
}

.receipt-topline,
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}

.receipt-topline {
  padding-bottom: 25px;
  border-bottom: 2px solid var(--maroon);
}

.receipt-business {
  display: block;
  font: 38px/1.2 var(--brand);
  color: var(--maroon);
}

.receipt-heading {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.receipt-heading strong {
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--maroon);
}

.receipt-heading small {
  font-size: 11px;
  color: var(--muted);
}

.receipt-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 26px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.receipt-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-wrap: anywhere;
}

.receipt-meta span {
  font-size: 11px;
  color: var(--muted);
}

.receipt-customer {
  padding: 24px 0;
}

.receipt-items {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 25px;
  font-size: 12px;
}

.receipt-items th,
.receipt-items td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.receipt-items th:nth-child(2),
.receipt-items td:nth-child(2) {
  width: 60px;
  text-align: center;
}

.receipt-items th:last-child,
.receipt-items td:last-child {
  width: 170px;
  text-align: right;
}

.receipt-items th {
  color: var(--maroon);
  font-weight: 700;
}

.receipt-total {
  align-items: baseline;
  padding: 18px 0;
  border-top: 2px solid var(--maroon);
  color: var(--maroon);
}

.receipt-total strong {
  font-size: 22px;
}

.receipt-disclaimer {
  margin-top: 15px;
  padding: 15px;
  background: var(--off-white);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.receipt-missing {
  padding: 30px;
  max-width: 650px;
  background: #fff;
  color: var(--ink);
}

.receipt-missing p {
  color: var(--ink);
}

@media (max-width: 760px) {
  .receipt-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .receipt-actions {
    justify-content: flex-start;
  }

  .receipt-sheet {
    padding: 24px 16px;
  }

  .receipt-meta {
    grid-template-columns: 1fr;
  }

  .receipt-topline {
    flex-direction: column;
  }

  .receipt-heading {
    justify-items: start;
    text-align: left;
  }

  .receipt-items th:last-child,
  .receipt-items td:last-child {
    width: 120px;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 15mm;
  }

  body,
  main {
    margin: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }

  .g-head,
  .g-foot,
  .receipt-toolbar,
  .toast,
  .modal-backdrop,
  .drawer-backdrop {
    display: none !important;
  }

  .receipt-page {
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    padding: 0 !important;
  }

  .receipt-sheet {
    max-width: none;
    padding: 0;
    box-shadow: none;
    border-top: none;
    break-inside: auto;
  }

  .receipt-items tr,
  .receipt-customer,
  .receipt-total {
    break-inside: avoid;
  }

  .receipt-items th,
  .receipt-items td {
    border-bottom-color: #999;
  }
}



/* Final storefront navigation and button rhythm.
   Keep one navigation row and remove oversized horizontal button spacing. */
@media (min-width: 901px) {
  .g-navbar .g-nav {
    justify-content: center;
    gap: clamp(2px, 0.35vw, 8px);
  }

  .g-navbar .g-nav a {
    padding-inline: clamp(11px, 1.4vw, 21px);
    letter-spacing: 0.025em;
    white-space: nowrap;
  }
}

body .btn {
  min-height: 44px;
  padding: 11px 19px;
  gap: 8px;
  letter-spacing: 0.018em;
  line-height: 1.3;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.account-actions,
.account-address-buttons,
.order-history-actions,
.receipt-actions,
.completed-links {
  gap: 12px;
}

@media (max-width: 600px) {
  body .btn {
    padding: 11px 15px;
  }
}


/* Restaurant typography refresh: Barlow Condensed + DM Sans.
   The existing Sacramento wordmark remains intentionally unchanged. */
body,
button,
input,
select,
textarea {
  font-family: var(--body);
}

h1,
h2,
h3,
.g-pagehead h1,
.g-hero h1,
.g-section > h2,
.g-section-cream > .wrap > h2,
.g-tile h3,
.build-intro h1,
.calc-header h1 {
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: 0.008em;
  line-height: 1.08;
}

.g-hero h1 {
  font-weight: 800;
  letter-spacing: -0.005em;
}

/* Keep the chef mascot's custom cursive Gilly's wordmark. */
.g-head .g-brand-wordmark,
.g-foot .g-brand-wordmark {
  font-family: var(--brand);
  letter-spacing: 0;
  font-weight: 400;
}

/* Compact navigation: avoid stretched letters and oversized side padding. */
.g-navbar .g-nav a,
.g-mobile a {
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.15;
}

@media (min-width: 901px) {
  .g-navbar .g-nav {
    gap: clamp(1px, 0.25vw, 6px);
  }

  .g-navbar .g-nav a {
    padding-inline: clamp(10px, 1.15vw, 18px);
  }
}

body .btn,
.g-tile-add,
.filter-chip,
.g-cart,
.checkout-submit,
.receipt-actions button {
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0.01em;
  word-spacing: normal;
  white-space: normal;
}

body .btn {
  padding: 11px 18px;
  gap: 9px;
  min-height: 44px;
}

.g-hero-cta,
.account-actions,
.receipt-actions,
.completed-links {
  column-gap: 12px;
  row-gap: 10px;
}

@media (max-width: 560px) {
  body .btn { padding: 10px 14px; }
}

/* Checkout delivery selection: one compact summary, editable only on request. */
.checkout-address-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.checkout-address-heading h2 { margin: 0; }
.checkout-address-heading .link-btn { white-space: nowrap; }
.checkout-current-address {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fbf8f6;
  border-left: 3px solid var(--maroon);
  padding: 14px 16px;
  margin-bottom: 18px;
  color: var(--ink);
  line-height: 1.55;
  font-size: 13px;
}
.checkout-current-address strong { color: var(--maroon); }
.checkout-address-options {
  padding: 17px 0 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.checkout-address-options > label { display: grid; gap: 8px; }
.checkout-address-options select { width: 100%; }
.checkout-edit-once { display: inline-block; margin: 12px 0 0; }
.checkout-address-fields { display: grid; gap: 14px; margin-top: 14px; }
.checkout-address-fields label { margin-bottom: 0; }
.checkout-address-fields .form-cols { gap: 14px; }
.checkout-address-fields .checkout-save-address {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
}
.checkout-save-address input { accent-color: var(--maroon); margin-top: 3px; }
.order-local-notice {
  padding: 12px 16px;
  margin: 10px 0 24px;
  border-left: 3px solid var(--maroon);
  background: #fff7f4;
  color: var(--ink) !important;
  font-size: 13px;
}
@media (max-width: 520px) {
  .checkout-address-heading { align-items: flex-start; }
  .checkout-address-fields .form-cols { grid-template-columns: 1fr; }
}


/* Targeted visibility fix: the order history card is white, so its outline
   actions need dark text. Other buttons retain their original appearance. */
.demo-history-page .demo-history .btn.btn-outline[data-action="refresh-orders"],
.demo-history-page .demo-history .btn.btn-outline[data-action="order-reorder"] {
  background: #fff;
  border-color: #500c19;
  color: #500c19;
}

.demo-history-page .demo-history .btn.btn-outline[data-action="refresh-orders"]:hover:not(:disabled),
.demo-history-page .demo-history .btn.btn-outline[data-action="order-reorder"]:hover:not(:disabled) {
  background: #500c19;
  border-color: #500c19;
  color: #fff;
}

.demo-history-page .demo-history .btn.btn-outline[data-action="refresh-orders"]:disabled {
  opacity: 1;
  background: #eee;
  border-color: #888;
  color: #555;
}

/* Restaurant order statement, consistent on screen, print, and in PDF. */
.receipt-sheet .receipt-table-wrap { width: 100%; overflow-x: auto; }
.receipt-sheet .receipt-items { table-layout: fixed; }
.receipt-sheet .receipt-items th:first-child,
.receipt-sheet .receipt-items td:first-child { width: 45%; overflow-wrap: anywhere; }
.receipt-sheet .receipt-items th:nth-child(2),
.receipt-sheet .receipt-items td:nth-child(2) { width: 20%; text-align: right; white-space: nowrap; }
.receipt-sheet .receipt-items th:nth-child(3),
.receipt-sheet .receipt-items td:nth-child(3) { width: 10%; text-align: center; }
.receipt-sheet .receipt-items th:nth-child(4),
.receipt-sheet .receipt-items td:nth-child(4) { width: 25%; text-align: right; white-space: nowrap; }
.receipt-totals { margin: 10px 0 7px auto; width: min(100%, 430px); display: grid; gap: 4px; }
.receipt-breakdown-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 6px 0; color: var(--ink); font-size: 12px; }
.receipt-breakdown-row strong { font-weight: 700; text-align: right; }
.receipt-breakdown-row span small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.receipt-discount { color: #500c19; }
.receipt-tax { border-top: 1px dashed #d4c5c5; margin-top: 5px; padding-top: 14px; }
.receipt-sheet .receipt-total { margin-top: 10px; justify-content: space-between; align-items: center; }
.receipt-sheet .receipt-total span { max-width: 62%; font-weight: 700; }
@media (max-width: 540px) {
  .receipt-sheet .receipt-items { min-width: 400px; }
  .receipt-totals { width: 100%; }
  .receipt-sheet .receipt-total strong { font-size: 21px; }
}
@media print {
  .receipt-sheet .receipt-table-wrap { overflow: visible; }
  .receipt-sheet .receipt-items { min-width: 0; }
  .receipt-totals, .receipt-total, .receipt-meta, .receipt-customer { break-inside: avoid; }
}

/* Receipt-only visual refinements: leave all storefront buttons unchanged. */
.receipt-sheet { max-width: 850px; padding: 40px 44px; border: 1px solid #e5dcdc; border-top: 5px solid #780a14; box-shadow: 0 12px 36px #21060616; }
.receipt-topline { align-items: center; padding-bottom: 21px; gap: 26px; }
.receipt-brand-lockup { display: flex; align-items: center; min-width: 0; }
.receipt-brand-image { display: block; width: min(100%, 260px); height: auto; object-fit: contain; }
.receipt-heading strong { font-family: var(--heading); font-size: 20px; letter-spacing: 0.04em; }
.receipt-meta { gap: 14px 26px; padding: 22px 0; }
.receipt-meta strong { font-weight: 700; }
.receipt-customer { padding: 24px 0 20px; }
.receipt-sheet .receipt-table-wrap { overflow-x: auto; }
.receipt-sheet .receipt-items { margin-bottom: 16px; }
.receipt-sheet .receipt-items th { background: #fcf6f2; padding: 11px 10px; }
.receipt-sheet .receipt-items td { padding: 12px 10px; }
.receipt-totals { width: min(100%, 460px); gap: 0; margin: 10px 0 10px auto; }
.receipt-breakdown-row { border-bottom: 1px solid #f0eaea; padding: 7px 0; font-size: 12px; }
.receipt-tax { border-top: 1px solid #d7c3c3; margin-top: 6px; padding-top: 12px; }
.receipt-sheet .receipt-total { padding: 17px 0 10px; margin-top: 10px; }
.receipt-sheet .receipt-total strong { font-size: 26px; }
@media (max-width: 760px) {
  .receipt-sheet { padding: 23px 16px; }
  .receipt-brand-image { width: 220px; }
  .receipt-heading { justify-items: start; text-align: left; }
  .receipt-totals { width: 100%; }
}
@media print {
  .receipt-sheet { border: 0; border-top: 0; padding: 0; box-shadow: none; }
  .receipt-brand-image { width: 245px; }
  .receipt-topline, .receipt-customer, .receipt-meta, .receipt-totals { break-inside: avoid; }
}


/* Receipt structure refinement */
.receipt-summary-card {
  margin-top: 10px;
  border-top: 1px solid #d7c3c3;
  padding-top: 18px;
}
.receipt-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 10px;
}
.receipt-summary-head h2 {
  margin: 0;
}
.receipt-summary-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}
.receipt-totals {
  width: 100%;
  gap: 0;
  margin: 0;
  border: 1px solid #efe3e3;
  border-radius: 0px;
  overflow: hidden;
  background: #fffdfc;
}
.receipt-breakdown-row {
  border-bottom: 1px solid #f0eaea;
  padding: 10px 16px;
  font-size: 12px;
}
.receipt-breakdown-row:last-child {
  border-bottom: 0;
}
.receipt-tax {
  border-top: 1px solid #d7c3c3;
  margin-top: 0;
  padding-top: 10px;
}
.receipt-total {
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid #8a101a;
  border-radius: 0px;
  background: #fff9f8;
}
.receipt-sheet .receipt-total span {
  max-width: none;
}
@media (max-width: 700px) {
  .receipt-summary-head {
    align-items: start;
    flex-direction: column;
  }
  .receipt-summary-head p {
    text-align: left;
  }
  .receipt-breakdown-row {
    padding: 10px 12px;
  }
  .receipt-total {
    padding: 14px 12px;
  }
}


/* Subscriptions: same daily calorie feedback as Meal Plans. */
.subscription-calorie-overview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--ink);
}
.subscription-calorie-overview span { color: var(--muted); }
.subscription-review-calories {
  margin-top: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.subscription-review-calories h2 {
  margin-bottom: 12px;
  font-size: 19px;
  color: var(--maroon);
}
.subscription-review-day {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 12px;
}
.subscription-review-day:last-child { border-bottom: 0; }
.subscription-review-day.is-over,
.subscription-review-day.is-over strong { color: #9d1010; }
.subscription-calorie-settings .plan-calc small { display: block; margin-top: 12px; }
@media (max-width: 520px) {
  .subscription-review-calories { padding: 18px 14px; }
  .subscription-review-day { flex-wrap: wrap; gap: 4px 10px; }
}


/* Typography only: match the supplied Gilly's design reference.
   Fraunces belongs on editorial titles / food card headings, not interface text. */
:root {
  --display-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}
h1, h2, h3,
.g-pagehead h1,
.g-hero h1,
.g-section > h2,
.g-section-cream > .wrap > h2,
.g-tile h3,
.build-intro h1,
.calc-header h1 {
  font-family: var(--display-serif);
  letter-spacing: -0.02em;
}
/* Readability: prices, forms, navigation and button labels stay DM Sans. */
.g-navbar, .g-mobile, .btn, .filter-chip,
input, select, textarea, .receipt-items,
.receipt-breakdown-row, .receipt-total strong {
  font-family: var(--body);
}


/* Dedicated cart review (the first step before delivery checkout). */
.cart-review-page { padding-top: 38px; padding-bottom: 96px; }
.cart-review-intro { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin: 12px 0 32px; }
.cart-review-intro h1 { margin-bottom: 8px; }
.cart-review-intro .lead { margin: 0; }
.cart-review-step { color: var(--muted); font-size: 12px; white-space: nowrap; padding-top: 9px; }
.cart-review-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr); align-items: start; gap: 30px; }
.cart-review-panel { background: #fff; border: 1px solid var(--line); border-radius: 0px; padding: 24px; min-width: 0; }
.cart-review-panel-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.cart-review-panel-heading h2 { margin: 0; }
.cart-review-add, .cart-review-link { background: none; border: 0; color: var(--maroon); font-size: 12px; font-weight: 700; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cart-review-add:hover, .cart-review-link:hover { opacity: 0.75; }
.cart-review-item { display: grid; grid-template-columns: 98px minmax(0,1fr) auto; align-items: center; gap: 17px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-review-item:last-child { border-bottom: 0; }
.cart-review-item img { width: 98px; height: 98px; object-fit: cover; border-radius: 0px; }
.cart-review-item-info { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cart-review-item-info > strong { font-size: 15px; }
.cart-review-item-info > small { color: var(--muted); line-height: 1.5; }
.cart-review-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cart-review-price { color: var(--ink); align-self: start; padding-top: 4px; font-size: 14px; white-space: nowrap; }
.cart-review-sidebar .review-box { position: sticky; top: 24px; }
.cart-review-sidebar .summary-line { padding-top: 12px; padding-bottom: 12px; }
.cart-review-sidebar .btn { margin-top: 18px; }
.cart-review-cod-note { margin: 12px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
.cart-review-incomplete { margin-top: 12px; font-size: 12px; color: var(--maroon); }
.cart-review-schedule-note { margin: 14px 0; color: var(--muted); font-size: 13px; }
.cart-review-panel .review-meals { margin-top: 12px; }
.cart-review-kinds { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.cart-review-kind { font: inherit; font-size: 13px; font-weight: 700; padding: 10px 16px; background: #fff; color: var(--maroon); border: 1px solid var(--maroon); border-radius: 0px; cursor: pointer; }
.cart-review-kind.selected { background: var(--maroon); color: #fff; }
.cart-review-calorie-list { margin-top: 22px; }
.cart-review-calorie-list h3 { margin-bottom: 12px; }
.cart-review-calorie-list .kcal-warning { margin-top: 14px; }
.cart-review-empty { text-align: center; border: 1px solid var(--line); background: #fff; padding: 48px 20px; border-radius: 0px; }
.cart-review-empty .empty-icon { margin: 0 auto 14px; }
.cart-review-empty p { color: var(--muted); margin: 12px 0 24px; }
@media (max-width: 820px) { .cart-review-grid { grid-template-columns: 1fr; } .cart-review-sidebar .review-box { position: static; } }
@media (max-width: 580px) { .cart-review-page { padding-top: 22px; } .cart-review-intro { display: block; } .cart-review-step { display: block; margin-top: 10px; } .cart-review-panel { padding: 14px; } .cart-review-item { grid-template-columns: 74px minmax(0,1fr); gap: 12px; } .cart-review-item img { width: 74px; height: 74px; } .cart-review-price { grid-column: 2; padding-top: 0; } }

/* Empty schedule guidance only; existing visual system is preserved. */
.schedule-empty-note {
  padding: 24px 20px;
  border: 1px dashed #d9c6c6;
  border-radius: 0px;
  background: #fffaf8;
  color: #674d50;
  font-size: 14px;
  line-height: 1.6;
}


/* ==========================================================================
   GILLY'S: Cart legibility, itemized restaurant-style order slip and responsive
   overflow protections. All overrides are scoped to the relevant components.
   ========================================================================== */

/* Cart cards are white. Never inherit white text from maroon marketing sections. */
.cart-review-page .cart-review-panel,
.cart-review-page .cart-review-sidebar .review-box,
.cart-review-page .cart-review-empty {
  color: #211919;
  background-color: #fff;
}
.cart-review-page .cart-review-panel h2,
.cart-review-page .cart-review-panel h3,
.cart-review-page .cart-review-sidebar h3,
.cart-review-page .cart-review-empty h2 { color: #650817; }
.cart-review-page .cart-review-panel .cart-review-item-info > strong,
.cart-review-page .cart-review-panel .cart-review-price,
.cart-review-page .cart-review-panel .qty span,
.cart-review-page .cart-review-sidebar .summary-line strong,
.cart-review-page .cart-review-sidebar .summary-line span,
.cart-review-page .cart-review-panel .review-meals td,
.cart-review-page .cart-review-panel .review-meals th { color: #211919; }
.cart-review-page .cart-review-panel .cart-review-item-info > small,
.cart-review-page .cart-review-panel .cart-review-schedule-note,
.cart-review-page .cart-review-sidebar .cart-review-cod-note,
.cart-review-page .cart-review-empty p { color: #565050; }
.cart-review-page .cart-review-panel .cart-review-link,
.cart-review-page .cart-review-panel .cart-review-add { color: #780c19; }
.cart-review-page .cart-review-controls .qty { color: #211919; background: #fff; }
.cart-review-page .cart-review-controls .qty button { color: #650817; }
.cart-review-page .cart-review-sidebar .summary-line.total,
.cart-review-page .cart-review-sidebar .summary-line.total strong { color: #650817; }
.cart-review-page .cart-review-panel .kcal-warning { color: #650817; }
.cart-review-page .cart-review-panel .kcal-warning span { color: #4b3030; }

/* Receipt: compact, complete restaurant-style order acknowledgment. */
.receipt-sheet {
  width: min(100%, 800px);
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(18px, 4.4vw, 42px);
  border: 1px solid #e4d3cd;
  border-top: 5px solid #810b19;
  border-radius: 0px;
  box-shadow: 0 9px 29px #3c141214;
  background: #fff;
  color: #231e1d;
  overflow-wrap: anywhere;
}
.receipt-topline {
  align-items: center;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid #7b1421;
}
.receipt-brand-lockup { flex: 0 1 300px; min-width: 0; }
.receipt-brand-image {
  width: min(100%, 300px);
  height: auto;
  object-fit: contain;
  object-position: left center;
  max-height: none;
  overflow: visible;
}
.receipt-heading { flex: 1; min-width: 145px; }
.receipt-heading strong { font-family: var(--body); font-size: clamp(14px, 2vw, 20px); font-weight: 800; line-height: 1.3; }
.receipt-heading small { font-size: 11px; }
.receipt-meta {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px 22px;
  padding: 18px 0;
}
.receipt-meta div { min-width: 0; }
.receipt-meta strong { word-break: break-word; line-height: 1.4; }
.receipt-delivery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(16px, 3vw, 28px);
  padding: 19px 0 15px;
  border-bottom: 1px solid #e9dfdb;
  min-width: 0;
}
.receipt-customer, .receipt-schedule { min-width: 0; padding: 0; }
.receipt-customer h2, .receipt-schedule h2 { margin-bottom: 10px; }
.receipt-customer p, .receipt-schedule p { margin: 0 0 5px; font-size: 12px; line-height: 1.55; }
.receipt-instructions { margin-top: 10px !important; }
.receipt-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 20px 0 8px; }
.receipt-section-title h2 { margin: 0; }
.receipt-section-title span { color: #6c5956; font-size: 11px; }
.receipt-sheet h2 { color: #7d1020; font-family: var(--display-serif); font-size: 17px; }
.receipt-table-wrap { overflow-x: visible; }
.receipt-sheet .receipt-items { width: 100%; margin: 0; table-layout: fixed; }
.receipt-sheet .receipt-items th,
.receipt-sheet .receipt-items td { padding: 11px 8px; font-size: 12px; line-height: 1.4; }
.receipt-sheet .receipt-items th:first-child,
.receipt-sheet .receipt-items td:first-child { width: 46%; }
.receipt-sheet .receipt-items th:nth-child(2),
.receipt-sheet .receipt-items td:nth-child(2) { width: 22%; text-align: right; }
.receipt-sheet .receipt-items th:nth-child(3),
.receipt-sheet .receipt-items td:nth-child(3) { width: 10%; text-align: center; }
.receipt-sheet .receipt-items th:nth-child(4),
.receipt-sheet .receipt-items td:nth-child(4) { width: 22%; text-align: right; }
.receipt-sheet .receipt-items td { color: #211a1a; }
.receipt-sheet .receipt-items th { background: #faf3f0; color: #6d0b19; }
.receipt-summary-card { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px dashed #c6a9a3; }
.receipt-summary-head { display: flex; gap: 8px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.receipt-summary-head h2 { margin: 0; }
.receipt-summary-head p { margin: 0; font-size: 11px; color: #675b57; }
.receipt-totals { width: 100%; margin: 0; border: 1px solid #e7dcd7; border-radius: 0px; overflow: hidden; background: #fff; }
.receipt-breakdown-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #eee6e3; }
.receipt-breakdown-row span { min-width: 0; }
.receipt-breakdown-row strong { flex-shrink: 0; color: #281c1c; font-variant-numeric: tabular-nums; }
.receipt-breakdown-row.receipt-tax { background: #fcf9f7; border-top: 1px solid #d9c6bf; margin-top: 0; }
.receipt-breakdown-row span small { color: #72655f; }
.receipt-sheet .receipt-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; gap: 15px; margin: 12px 0 0;
  border: 1px solid #871b2b; border-radius: 0px; background: #fff7f4;
  color: #740b19;
}
.receipt-sheet .receipt-total span { max-width: none; font-size: 13px; }
.receipt-sheet .receipt-total strong { color: #740b19; font-size: clamp(20px, 3vw, 27px); }
.receipt-payment-line { display: flex; justify-content: space-between; gap: 14px; margin: 16px 0 0; padding: 11px 2px; border-bottom: 1px solid #e9e2df; font-size: 12px; }
.receipt-payment-line span { color: #625350; }
.receipt-payment-line strong { color: #2d2121; }

/* Keep all site pages inside mobile viewports, including navigation and forms. */
html, body { max-width: 100%; overflow-x: clip; }
.wrap, .g-content, main, .g-section, .g-main, .g-container { min-width: 0; }
.g-navbar .g-nav { min-width: 0; }
button, input, select, textarea { max-width: 100%; }
.g-grid > *, .g-plan-grid > *, .g-feature-grid > *,
.g-foot-grid > *, .cart-review-grid > *, .receipt-delivery-grid > *,
.g-content > * { min-width: 0; }
@media (max-width: 900px) {
  .receipt-page { padding: 28px 0 66px; }
  .cart-review-grid { grid-template-columns: minmax(0,1fr); }
  .cart-review-sidebar .review-box { position: static; }
}
@media (max-width: 600px) {
  .wrap { width: min(1190px, calc(100% - 28px)); }
  .cart-review-page { padding: 18px 0 60px; }
  .cart-review-panel { padding: 13px; }
  .cart-review-intro { margin-bottom: 18px; }
  .cart-review-item { grid-template-columns: 64px minmax(0,1fr); gap: 9px 11px; }
  .cart-review-item img { width: 64px; height: 64px; }
  .cart-review-item-info > strong { overflow-wrap: anywhere; line-height: 1.3; }
  .cart-review-price { grid-column: 2; justify-self: start; }
  .cart-review-controls { gap: 8px 12px; }
  .receipt-toolbar { flex-direction: column; align-items: stretch; }
  .receipt-actions { justify-content: stretch; }
  .receipt-actions .btn { flex: 1 1 150px; }
  .receipt-sheet { padding: 19px 15px; }
  .receipt-topline { flex-direction: column; align-items: flex-start; gap: 5px; }
  .receipt-brand-lockup { flex: none; width: min(100%,270px); }
  .receipt-brand-image { width: 100%; }
  .receipt-heading { text-align: left; justify-items: start; min-width: 0; }
  .receipt-meta { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
  .receipt-delivery-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .receipt-section-title { margin-top: 17px; }
  .receipt-items thead { display: none; }
  .receipt-sheet .receipt-items,
  .receipt-sheet .receipt-items tbody {
    display: block; width: 100%; max-width: 100%; min-width: 0;
  }
  .receipt-sheet .receipt-items tr {
    display: grid; grid-template-columns: 1fr auto; gap: 4px 14px;
    padding: 10px 0 12px; border-bottom: 1px solid #e6dbd7;
  }
  .receipt-sheet .receipt-items td,
  .receipt-sheet .receipt-items td:first-child,
  .receipt-sheet .receipt-items td:nth-child(2),
  .receipt-sheet .receipt-items td:nth-child(3),
  .receipt-sheet .receipt-items td:nth-child(4) {
    display: block; width: auto; text-align: left;
    border: 0; padding: 0;
    white-space: normal; overflow-wrap: anywhere; font-size: 11.5px;
  }
  .receipt-sheet .receipt-items td:first-child { grid-column: 1/-1; color: #65101d; font-weight: 700; font-size: 12.5px; }
  .receipt-sheet .receipt-items td:nth-child(2)::before { content: 'Unit price: '; color: #6e6260; font-weight: 400; }
  .receipt-sheet .receipt-items td:nth-child(3)::before { content: 'Qty: '; color: #6e6260; }
  .receipt-sheet .receipt-items td:nth-child(4) { grid-column: 1/-1; text-align: right; font-weight: 700; }
  .receipt-sheet .receipt-items td:nth-child(4)::before { content: 'Amount: '; font-weight: 400; color: #6e6260; }
  .receipt-summary-head { flex-direction: column; align-items: flex-start; }
  .receipt-summary-head p { text-align: left; }
  .receipt-breakdown-row { padding: 9px 10px; font-size: 11.5px; }
  .receipt-sheet .receipt-total { padding: 13px 11px; }
}
@media (max-width: 360px) {
  .receipt-meta { grid-template-columns: minmax(0,1fr); }
  .cart-review-item { grid-template-columns: 56px minmax(0,1fr); }
  .cart-review-item img { width: 56px; height: 56px; }
  .receipt-sheet .receipt-total { flex-wrap: wrap; }
}
@media print {
  .receipt-sheet {
    width: 100%; max-width: none; border: 0; box-shadow: none;
    padding: 0; overflow: visible;
  }
  .receipt-brand-lockup { max-width: 300px; }
  .receipt-summary-card, .receipt-delivery-grid, .receipt-meta, .receipt-total { break-inside: avoid; }
  .receipt-section-title { break-after: avoid; }
  .receipt-table-wrap { overflow: visible; }
  .receipt-sheet .receipt-items tr { break-inside: avoid; }
  .receipt-items th { background: #faf3f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .receipt-sheet .receipt-total { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Cart drawer: safeguard text readability on the white slide-out panel. */
.cart-drawer { background: #fff; color: #211919; }
.cart-drawer .drawer-head h2,
.cart-drawer .bag-info strong,
.cart-drawer .qty span,
.cart-drawer .drawer-bottom .summary-line span,
.cart-drawer .drawer-bottom .summary-line strong,
.cart-drawer .empty-cart h3 { color: #211919; }
.cart-drawer .bag-info > small,
.cart-drawer .drawer-head h2 span,
.cart-drawer .drawer-bottom .caption,
.cart-drawer .empty-cart p { color: #575151; }
.cart-drawer .bag-tools > button,
.cart-drawer .bag-line-price,
.cart-drawer .qty button { color: #77101e; }
.cart-drawer .drawer-bottom .summary-line.total strong { color: #77101e; }
@media (max-width: 420px) {
  .cart-drawer { width: 100%; }
  .cart-drawer .drawer-head { padding: 18px 16px; }
  .cart-drawer .drawer-items { padding: 8px 16px; }
  .cart-drawer .drawer-bottom { padding: 16px; }
  .cart-drawer .bag-item > img { width: 72px; height: 72px; flex: 0 0 72px; }
  .cart-drawer .bag-item { gap: 12px; }
}


/* Receipt refinement: supports any number of order lines and multi-page print. */
.receipt-sheet .receipt-topline { margin-bottom: 0; }
.receipt-sheet .receipt-section-title { margin-top: 23px; }
.receipt-sheet .receipt-items { border-collapse: collapse; }
.receipt-sheet .receipt-items thead th {
  background: #f7efea;
  border-block: 1px solid #d8c3bc;
  font-weight: 750;
}
.receipt-sheet .receipt-items tbody tr:nth-child(even) { background: #fcfaf9; }
.receipt-sheet .receipt-items tbody tr { break-inside: avoid; page-break-inside: avoid; }
.receipt-sheet .receipt-items tbody td { border-bottom: 1px solid #e9dfdb; }
.receipt-sheet .receipt-items th:nth-child(n+2),
.receipt-sheet .receipt-items td:nth-child(n+2),
.receipt-sheet .receipt-totals strong,
.receipt-sheet .receipt-total strong {
  font-variant-numeric: tabular-nums;
}
.receipt-sheet .receipt-summary-card {
  margin-top: 23px;
  padding-top: 18px;
  border-top: 2px solid #8a1725;
  break-inside: avoid;
  page-break-inside: avoid;
}
.receipt-sheet .receipt-summary-head { margin-bottom: 12px; }
.receipt-sheet .receipt-totals { border-radius: 0px; }
.receipt-sheet .receipt-breakdown-row { min-height: 37px; }
.receipt-sheet .receipt-total {
  background: #fff8f5;
  border: 1.5px solid #831624;
  border-radius: 0px;
  margin-top: 12px;
}
.receipt-sheet .receipt-payment-line {
  margin-top: 12px;
  padding: 11px 3px;
}
@media (max-width: 600px) {
  .receipt-sheet .receipt-items tbody tr:nth-child(even) { background: transparent; }
  .receipt-sheet .receipt-items tbody tr { padding-block: 13px; }
}
@media print {
  .receipt-sheet { width: 100%; max-width: none; border: 0; border-radius: 0px; }
  .receipt-sheet .receipt-items { display: table !important; width: 100%; table-layout: fixed; }
  .receipt-sheet .receipt-items thead { display: table-header-group !important; }
  .receipt-sheet .receipt-items tbody { display: table-row-group !important; }
  .receipt-sheet .receipt-items tr { display: table-row !important; }
  .receipt-sheet .receipt-items td,
  .receipt-sheet .receipt-items th {
    display: table-cell !important;
    border-bottom: 1px solid #e9dfdb;
    padding: 8px !important;
    font-size: 10px;
  }
  .receipt-sheet .receipt-items td:nth-child(2),
  .receipt-sheet .receipt-items th:nth-child(2) { text-align: right !important; }
  .receipt-sheet .receipt-items td:nth-child(3),
  .receipt-sheet .receipt-items th:nth-child(3) { text-align: center !important; }
  .receipt-sheet .receipt-items td:nth-child(4),
  .receipt-sheet .receipt-items th:nth-child(4) { text-align: right !important; }
  .receipt-sheet .receipt-items td::before { content: none !important; }
  .receipt-sheet .receipt-summary-card,
  .receipt-sheet .receipt-payment-line { break-inside: avoid; page-break-inside: avoid; }
  .receipt-sheet .receipt-items tr { break-inside: avoid; page-break-inside: avoid; }
}

/* Subscription overview: breathing room, clear package hierarchy, aligned actions.
   Scoped to this page so existing ordering and checkout styles stay unchanged. */
.subscriptions-space .offer-grid {
  gap: clamp(22px, 2.5vw, 34px);
  align-items: stretch;
}

.subscriptions-space .offer-card,
.subscriptions-space .offer-card.featured {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 40px clamp(22px, 2.2vw, 34px) 30px;
}

.subscriptions-space .offer-card h3 {
  margin: 16px 0 14px;
  line-height: 1.22;
  overflow-wrap: break-word;
}

.subscriptions-space .offer-card > p {
  min-height: 0;
  margin: 0 0 20px;
  line-height: 1.65;
}

.subscriptions-space .offer-divider {
  margin: 4px 0 23px;
}

.subscriptions-space .offer-price {
  display: block;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.subscriptions-space .offer-price small {
  display: inline-block;
  margin-top: 5px;
  white-space: nowrap;
}

.subscriptions-space .offer-caption {
  display: block;
  margin-top: 8px;
  line-height: 1.5;
}

.subscriptions-space .tick-list {
  flex: 1;
  gap: 15px;
  margin: 28px 0 32px;
}

.subscriptions-space .tick-list li {
  align-items: flex-start;
  gap: 12px;
  line-height: 1.55;
}

.subscriptions-space .tick-list li svg {
  margin-top: 3px;
  flex-shrink: 0;
}

.subscriptions-space .offer-card > .btn {
  display: flex;
  width: 100%;
  min-height: 54px;
  margin-top: auto;
  padding: 14px 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: break-word;
}

.subscriptions-space .offer-card > .btn.btn-outline {
  border-color: var(--maroon);
  color: var(--maroon);
  background: #fff;
}

.subscriptions-space .offer-card > .btn.btn-outline:hover:not(:disabled),
.subscriptions-space .offer-card > .btn.btn-outline:focus-visible {
  background: var(--maroon);
  color: #fff;
}

@media (max-width: 1090px) and (min-width: 761px) {
  .subscriptions-space .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .subscriptions-space .offer-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(100%, 500px);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .subscriptions-space .offer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .subscriptions-space .offer-card,
  .subscriptions-space .offer-card.featured {
    padding: 30px 23px 25px;
  }
  .subscriptions-space .offer-card > .btn {
    min-height: 50px;
  }
}


/* ===============================================================
   SIGN IN — centred chef mascot and live cursive Gilly's signature
   =============================================================== */
.auth-card .auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  padding: 0 0 24px;
  text-align: center;
}

.auth-card .auth-brand-mark {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.auth-card .auth-brand-wordmark {
  display: block;
  font-family: 'Sacramento', 'Segoe Script', 'Brush Script MT', cursive;
  font-weight: 400;
  font-size: 55px;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  color: var(--maroon);
}

@media (max-width: 520px) {
  .auth-card .auth-brand { padding-bottom: 20px; }
  .auth-card .auth-brand-mark { width: 88px; height: 88px; }
  .auth-card .auth-brand-wordmark { font-size: 49px; }
}

/* ===============================================================
   RECEIPT PDF — same HTML and visual styling as the on-screen sheet.
   Native Print / Save as PDF preserves selectable text, table rows,
   accurate values, mascot artwork and the website's colors.
   =============================================================== */
@media print {
  @page { size: A4 portrait; margin: 10mm; }

  html, body {
    background: #fff !important;
    color: #231e1d !important;
    max-width: none !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .g-head, .g-foot, .receipt-toolbar,
  .toast, .modal-backdrop, .drawer-backdrop {
    display: none !important;
  }

  .receipt-page, main.receipt-page {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
  }

  #printable-receipt.receipt-sheet {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 22px 26px !important;
    border: 1px solid #e4d3cd !important;
    border-top: 5px solid #810b19 !important;
    border-radius: 0px !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #231e1d !important;
    overflow: visible !important;
    break-inside: auto !important;
  }

  .receipt-sheet .receipt-topline {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid #7b1421 !important;
  }

  .receipt-sheet .receipt-brand-lockup {
    display: flex !important;
    flex: 0 1 240px !important;
    max-width: 240px !important;
    min-width: 0 !important;
  }

  .receipt-sheet .receipt-brand-image {
    display: block !important;
    width: 100% !important;
    max-height: none !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .receipt-sheet .receipt-heading {
    display: grid !important;
    flex: 1 1 auto !important;
    justify-items: end !important;
    text-align: right !important;
    min-width: 100px !important;
  }

  .receipt-sheet .receipt-heading strong { font-size: 17px !important; }

  .receipt-sheet .receipt-meta {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 22px !important;
    padding: 17px 0 !important;
    break-inside: avoid;
  }

  .receipt-sheet .receipt-delivery-grid {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    gap: 20px !important;
    padding: 15px 0 12px !important;
    break-inside: avoid;
  }

  .receipt-sheet .receipt-section-title {
    margin: 17px 0 7px !important;
    break-after: avoid;
  }

  .receipt-sheet .receipt-table-wrap { overflow: visible !important; }
  .receipt-sheet .receipt-items {
    display: table !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }
  .receipt-sheet .receipt-items thead { display: table-header-group !important; }
  .receipt-sheet .receipt-items tbody { display: table-row-group !important; }
  .receipt-sheet .receipt-items tr { display: table-row !important; break-inside: avoid; }
  .receipt-sheet .receipt-items th, .receipt-sheet .receipt-items td {
    display: table-cell !important;
    padding: 8px 6px !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    border-bottom: 1px solid #e9dfdb !important;
    color: #211a1a !important;
  }
  .receipt-sheet .receipt-items th {
    background: #f7efea !important;
    color: #6d0b19 !important;
  }
  .receipt-sheet .receipt-items tr:nth-child(even) { background: #fcfaf9 !important; }
  .receipt-sheet .receipt-items td::before { display: none !important; content: none !important; }

  .receipt-sheet .receipt-summary-card {
    margin-top: 18px !important;
    padding-top: 13px !important;
    border-top: 2px solid #8a1725 !important;
    break-inside: avoid;
  }
  .receipt-sheet .receipt-summary-head { margin-bottom: 9px !important; }
  .receipt-sheet .receipt-totals { width: 100% !important; }
  .receipt-sheet .receipt-breakdown-row {
    display: flex !important;
    padding: 7px 12px !important;
    min-height: 0 !important;
    font-size: 10px !important;
    gap: 10px !important;
  }
  .receipt-sheet .receipt-total {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 13px !important;
    margin-top: 10px !important;
    border: 1.5px solid #831624 !important;
    background: #fff8f5 !important;
    color: #740b19 !important;
    break-inside: avoid;
  }
  .receipt-sheet .receipt-total strong { color: #740b19 !important; font-size: 21px !important; }
  .receipt-sheet .receipt-payment-line {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 10px !important;
    padding: 9px 3px !important;
    break-inside: avoid;
  }
}


/* ===========================================================================
   RECEIPTS — one visual design for Meals, Meal Plans and Subscriptions.
   The on-screen view and Save as PDF use the SAME receiptDocument() markup.
   Only page furniture / pagination differs when printing.
   =========================================================================== */
.receipt-sheet {
  width: min(100%, 800px);
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 36px;
  background: #fff;
  color: #231e1d;
  border: 0;
  border-radius: 0px;
  box-shadow: none;
}

.receipt-sheet .receipt-topline {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #8a1421;
}

.receipt-sheet .receipt-brand-lockup {
  display: flex;
  flex: 0 1 240px;
  width: 240px;
  max-width: 240px;
  min-width: 0;
  align-items: center;
}

.receipt-sheet .receipt-brand-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.receipt-sheet .receipt-heading {
  display: grid;
  flex: 1 1 auto;
  justify-items: end;
  text-align: right;
  min-width: 100px;
}

.receipt-sheet .receipt-heading strong {
  font-size: 18px;
  letter-spacing: 0.025em;
  color: #7d1020;
}

.receipt-sheet .receipt-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  padding: 16px 0;
}

.receipt-sheet .receipt-delivery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  padding: 15px 0 12px;
  border-top: 1px solid #e8deda;
  border-bottom: 1px solid #e8deda;
}

.receipt-sheet .receipt-section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0 7px;
}

.receipt-sheet .receipt-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.receipt-sheet .receipt-items {
  display: table;
  width: 100%;
  margin: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.receipt-sheet .receipt-items thead { display: table-header-group; }
.receipt-sheet .receipt-items tbody { display: table-row-group; }
.receipt-sheet .receipt-items tr { display: table-row; }

.receipt-sheet .receipt-items th,
.receipt-sheet .receipt-items td {
  display: table-cell;
  padding: 10px 8px;
  font-size: 11px;
  line-height: 1.42;
  border-bottom: 1px solid #e8deda;
}

.receipt-sheet .receipt-items th {
  color: #740b19;
  background: #f7efeb;
  border-top: 1px solid #dec3ba;
  border-bottom: 1px solid #dec3ba;
}

.receipt-sheet .receipt-items tbody tr:nth-child(even) { background: #fcfaf9; }
.receipt-sheet .receipt-items td::before { content: none; }

.receipt-sheet .receipt-summary-card {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1.5px solid #8a1421;
}

.receipt-sheet .receipt-summary-head { margin-bottom: 11px; }
.receipt-sheet .receipt-totals {
  width: 100%;
  margin: 0;
  border: 1px solid #e7dcd7;
  border-radius: 0px;
  background: #fff;
  overflow: hidden;
}

.receipt-sheet .receipt-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 34px;
  padding: 8px 13px;
  font-size: 11px;
  border-bottom: 1px solid #e7dcd7;
}

.receipt-sheet .receipt-breakdown-row:last-child { border-bottom: 0; }
.receipt-sheet .receipt-breakdown-row.receipt-tax {
  margin: 0;
  background: #fcf9f7;
  border-top: 1px solid #e7dcd7;
}

.receipt-sheet .receipt-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 13px 16px;
  border: 1px solid #8a1421;
  border-radius: 0px;
  background: #fff8f5;
  color: #740b19;
}

.receipt-sheet .receipt-total strong {
  color: #740b19;
  font-size: 27px;
}

.receipt-sheet .receipt-payment-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 12px;
  padding: 8px 2px;
  border-bottom: 1px solid #e8deda;
}

/* Preserve mobile reading layout on the website, not in A4 PDF output. */
@media screen and (max-width: 600px) {
  .receipt-sheet { padding: 20px 15px; }
  .receipt-sheet .receipt-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .receipt-sheet .receipt-brand-lockup { flex: none; width: min(100%, 230px); }
  .receipt-sheet .receipt-heading { flex: none; justify-items: start; text-align: left; }
  .receipt-sheet .receipt-meta,
  .receipt-sheet .receipt-delivery-grid { grid-template-columns: minmax(0, 1fr); }
  .receipt-sheet .receipt-items { display: table; min-width: 0; }
  .receipt-sheet .receipt-items thead { display: table-header-group; }
  .receipt-sheet .receipt-items tbody { display: table-row-group; }
  .receipt-sheet .receipt-items tr { display: table-row; padding: 0; }
  .receipt-sheet .receipt-items th,
  .receipt-sheet .receipt-items td {
    display: table-cell;
    padding: 8px 3px;
    font-size: 9px;
  }
  .receipt-sheet .receipt-items td:first-child { font-size: 9px; font-weight: 500; }
  .receipt-sheet .receipt-items td::before { content: none !important; }
  .receipt-sheet .receipt-total strong { font-size: 21px; }
}

/* No separately redrawn PDF. Print the identical order sheet on A4 paper. */
@media print {
  @page { size: A4 portrait; margin: 7mm; }

  #printable-receipt.receipt-sheet {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 30px 32px !important;
    border: 0 !important;
    border-top: 0 !important;
    border-radius: 0px !important;
    box-shadow: none !important;
    background: #fff !important;
    break-inside: auto !important;
    overflow: visible !important;
  }

  .receipt-sheet .receipt-topline {
    gap: 20px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #8a1421 !important;
  }
  .receipt-sheet .receipt-brand-lockup {
    flex: 0 1 240px !important;
    width: 240px !important;
    max-width: 240px !important;
  }
  .receipt-sheet .receipt-heading strong { font-size: 18px !important; }
  .receipt-sheet .receipt-meta {
    gap: 14px 24px !important;
    padding: 16px 0 !important;
  }
  .receipt-sheet .receipt-delivery-grid {
    gap: 24px !important;
    padding: 15px 0 12px !important;
    border-top: 1px solid #e8deda !important;
    border-bottom: 1px solid #e8deda !important;
  }
  .receipt-sheet .receipt-section-title { margin: 18px 0 7px !important; }
  .receipt-sheet .receipt-table-wrap { overflow: visible !important; }
  .receipt-sheet .receipt-items { min-width: 0 !important; }
  .receipt-sheet .receipt-items th,
  .receipt-sheet .receipt-items td {
    padding: 8px 8px !important;
    font-size: 11px !important;
    line-height: 1.42 !important;
    border-bottom: 1px solid #e8deda !important;
  }
  .receipt-sheet .receipt-items th {
    background: #f7efeb !important;
    border-top: 1px solid #dec3ba !important;
    border-bottom: 1px solid #dec3ba !important;
  }
  .receipt-sheet .receipt-summary-card {
    margin-top: 17px !important;
    padding-top: 15px !important;
    border-top: 1.5px solid #8a1421 !important;
    break-inside: avoid !important;
  }
  .receipt-sheet .receipt-summary-head { margin-bottom: 11px !important; }
  .receipt-sheet .receipt-totals {
    border: 1px solid #e7dcd7 !important;
    border-radius: 0px !important;
    background: #fff !important;
  }
  .receipt-sheet .receipt-breakdown-row {
    min-height: 34px !important;
    padding: 8px 13px !important;
    font-size: 11px !important;
    border-bottom: 1px solid #e7dcd7 !important;
  }
  .receipt-sheet .receipt-breakdown-row.receipt-tax {
    background: #fcf9f7 !important;
    border-top: 1px solid #e7dcd7 !important;
  }
  .receipt-sheet .receipt-total {
    margin-top: 12px !important;
    padding: 13px 16px !important;
    border: 1px solid #8a1421 !important;
    border-radius: 0px !important;
    background: #fff8f5 !important;
  }
  .receipt-sheet .receipt-total strong { font-size: 27px !important; }
  .receipt-sheet .receipt-payment-line {
    margin-top: 12px !important;
    padding: 8px 2px !important;
    border-bottom: 1px solid #e8deda !important;
  }

  .receipt-sheet .receipt-items tr,
  .receipt-sheet .receipt-meta,
  .receipt-sheet .receipt-delivery-grid,
  .receipt-sheet .receipt-topline { break-inside: avoid; }
  .receipt-sheet .receipt-items thead { display: table-header-group !important; }
  html, body, .receipt-sheet, .receipt-sheet * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}


/* Sign-in and account creation: shared Gilly's brand-centered presentation. */
.auth-page .auth-wrap { max-width: 620px; padding-top: 34px; }
.auth-page .auth-card { padding: clamp(24px, 4vw, 45px); background: #fff; }
.auth-page .auth-card .auth-brand {
  display: flex; flex-direction: column; align-items: center;
  gap: 0; padding: 0 0 19px; text-align: center;
  border-bottom: 1px solid #e8dad5;
}
.auth-page .auth-card .auth-brand-mark { width: 102px; height: 102px; object-fit: contain; }
.auth-page .auth-card .auth-brand-wordmark {
  font-family: 'Sacramento', 'Segoe Script', 'Brush Script MT', cursive;
  font-weight: 400; font-size: 57px; line-height: 1.1;
  letter-spacing: 0; text-transform: none; color: #7a0000;
}
.auth-page .auth-card .auth-brand-tagline {
  display: block; color: #6d5149; font-size: 11px; font-weight: 700;
  line-height: 1.4; letter-spacing: .045em; text-transform: none;
  margin-top: 0;
}
.auth-page .auth-form-intro { padding: 20px 0 24px; text-align: center; }
.auth-page .auth-form-intro h2 {
  margin: 0 0 7px; font-family: var(--heading); font-weight: 700;
  font-size: clamp(21px, 3vw, 29px); text-transform: none; color: #7a0000;
}
.auth-page .auth-form-intro p { margin: 0; color: #6c5e58; font-size: 12px; line-height: 1.6; }
.auth-page .auth-card .auth-form { gap: 15px; }
.auth-page .auth-card .auth-links { margin-top: 22px; }
@media (max-width: 520px) {
  .auth-page .auth-wrap { padding-top: 22px; }
  .auth-page .auth-card { padding: 24px 20px; }
  .auth-page .auth-card .auth-brand-mark { width: 90px; height: 90px; }
  .auth-page .auth-card .auth-brand-wordmark { font-size: 52px; }
}
/* Export: html2pdf.js captures the on-screen .receipt-sheet, not the print overrides.
   Keep receipt sections and individual table rows together where practical. */
.receipt-sheet .receipt-items tr,
.receipt-sheet .receipt-summary-card,
.receipt-sheet .receipt-total { break-inside: avoid; page-break-inside: avoid; }


/* Branded cursive signature & tagline are rendered from original Gilly's
   artwork, so both remain correct even if Google Fonts is unavailable. */
.auth-page .auth-card .auth-brand { gap: 0; }
.auth-page .auth-card .auth-brand-signature {
  display: block;
  width: min(100%, 244px);
  height: auto;
  object-fit: contain;
  margin: -10px auto 0;
}
@media (max-width: 520px) {
  .auth-page .auth-card .auth-brand-signature { width: min(100%, 218px); }
}

/* ========================================================================== 
   GILLY'S SIGN IN / CREATE ACCOUNT — Centered food-photo design
   Both account pages use the existing Gilly's mascot + cursive wordmark
   + Good food, good days artwork. No header, order or receipt changes.
   ========================================================================== */

/* Keep the original site-wide header and cursive wordmark untouched. */
.auth-page:has(.auth-brand) > .g-pagehead {
  display: none;
}

/* A real food photograph behind both account forms. The overlay maintains
   enough contrast for the card to stand out against bright food photos. */
.auth-page:has(.auth-brand) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 152px);
  padding: clamp(32px, 5vw, 72px) 20px;
  background-color: #510c13;
  background-image:
    linear-gradient(180deg, #000000d1 0%, #000000b8 100%),
    url('https://images.unsplash.com/photo-1546069901-ba9599a7e63c?auto=format&fit=crop&w=1800&q=85');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.auth-page .auth-wrap:has(.auth-brand) {
  width: min(100%, 540px);
  max-width: 540px;
  margin: 0 auto;
  padding: 0;
}

.auth-page .auth-card:has(.auth-brand) {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(24px, 3.6vw, 38px);
  background: #fffdfb;
  border: 1px solid rgba(255, 245, 239, 0.88);
  border-top: 4px solid #851017;
  box-shadow: 0 24px 70px rgba(20, 4, 6, 0.35);
}

/* The logo is ONE original, uncropped asset: mascot, handwritten Gilly's,
   and the slogan stay aligned and proportional at every screen size. */
.auth-page .auth-card .auth-brand {
  order: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid #eaddd8;
  background: transparent;
  overflow: visible;
}

.auth-page .auth-card .auth-brand-full {
  display: block;
  width: min(100%, 290px);
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.auth-page .auth-card .auth-form-intro {
  order: 1;
  margin: 0;
  padding: 20px 0 18px;
  text-align: center;
}

.auth-page .auth-card .auth-form-intro h2 {
  margin: 0 0 6px;
  color: #780a11;
  font-family: var(--heading);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.auth-page .auth-card .auth-form-intro p {
  max-width: 360px;
  margin: 0 auto;
  color: #746460;
  font-size: 12px;
  line-height: 1.65;
}

.auth-page .auth-card > .auth-alert,
.auth-page .auth-card > .service-note {
  order: 2;
  margin: 0 0 14px;
}

.auth-page .auth-card .auth-form {
  order: 3;
  gap: 15px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.auth-page .auth-card .auth-form label {
  gap: 7px;
  color: #392b2a;
  font-size: 12px;
  font-weight: 700;
}

.auth-page .auth-card .auth-form input:not([type='checkbox']) {
  min-height: 46px;
  border: 1px solid #dacbc7;
  background: #fff;
  color: #2b2220;
  padding: 11px 13px;
}

.auth-page .auth-card .auth-form .btn-primary {
  min-height: 48px;
  margin-top: 7px;
}

.auth-page .auth-card .auth-links {
  order: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 15px;
  margin: 18px 0 0;
  padding: 0;
  line-height: 1.6;
  font-size: 11px;
}

.auth-page .auth-card .auth-links a {
  color: #7a0000;
  font-weight: 700;
}

@media (max-width: 600px) {
  .auth-page:has(.auth-brand) {
    min-height: calc(100dvh - 118px);
    padding: 26px 14px 40px;
    background-position: 60% center;
  }

  .auth-page .auth-card:has(.auth-brand) {
    padding: 25px 22px 29px;
  }

  .auth-page .auth-card .auth-brand-full {
    width: min(100%, 262px);
  }
}

@media (max-width: 360px) {
  .auth-page .auth-card:has(.auth-brand) {
    padding-inline: 17px;
  }

  .auth-page .auth-card .auth-brand-full {
    width: min(100%, 228px);
  }
}


/* ========================================================================== 
   GILLY'S CUSTOMER AUTH — compact mascot + wordmark + tagline lockup
   Sign In and Create Account only. Preserve original header/footer branding,
   dark food background, ordering, checkout, admin and receipt styles.
   ========================================================================== */
.auth-page .auth-card .auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0;
  margin: 0;
  padding: 0 0 17px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e9ddda;
  text-align: center;
}
.auth-page .auth-card .auth-brand-lockup {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0 auto;
  width: max-content;
  max-width: 100%;
  min-height: 86px;
}
.auth-page .auth-card .auth-brand-mark {
  display: block;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0px;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}
.auth-page .auth-card .auth-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  text-align: center;
}
/* Use the exact cursive font variable from the original header and footer. */
.auth-page .auth-card .g-brand-wordmark.auth-brand-wordmark {
  display: block;
  font-family: var(--brand);
  font-size: 52px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--maroon);
  white-space: nowrap;
  padding: 0;
  margin: 0;
  overflow: visible;
}
.auth-page .auth-card .auth-brand-tagline {
  display: block;
  margin: -1px 0 0;
  padding: 0;
  color: #6d5149;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .02em;
  text-transform: none;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .auth-page .auth-card .auth-brand-lockup { gap: 11px; min-height: 76px; }
  .auth-page .auth-card .auth-brand-mark {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }
  .auth-page .auth-card .g-brand-wordmark.auth-brand-wordmark { font-size: 46px; }
  .auth-page .auth-card .auth-brand-tagline { font-size: 10px; }
}
@media (max-width: 360px) {
  .auth-page .auth-card .auth-brand-lockup { gap: 8px; }
  .auth-page .auth-card .auth-brand-mark {
    width: 63px;
    height: 63px;
    flex-basis: 63px;
  }
  .auth-page .auth-card .g-brand-wordmark.auth-brand-wordmark { font-size: 41px; }
  .auth-page .auth-card .auth-brand-tagline { font-size: 9px; }
}

/* ========================================================================
   Spacing refinements — meal plan auto-fill and Order Meals filters.
   Layout-only adjustments; no changes to ordering behavior or appearance
   outside these two controls.
   ======================================================================== */

/* Separate the auto-fill control from its schedule / guidance box. */
.slots-section > .btn[data-action="plan-autofill"] {
  display: inline-flex;
  margin: 0 0 16px;
}

/* Four consistently sized filter buttons with no irregular gaps. */
.menu-toolbar .filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 580px);
}

.menu-toolbar .filter-row .filter-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  margin: 0;
  text-align: center;
}

/* Keep labels readable on phones without breaking the joined borders. */
@media (max-width: 600px) {
  .menu-toolbar .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .menu-toolbar .filter-row .filter-chip:nth-child(2) {
    border-right: 0;
  }

  .menu-toolbar .filter-row .filter-chip:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

/* Staff portal entry: low-contrast, unobtrusive footer-only link. */
.g-foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.g-foot .g-foot-bottom a.g-foot-staff-link {
  display: inline-flex;
  align-items: center;
  padding: 3px 0;
  font-size: 12px;
  font-weight: 500;
  color: #e2bdb5;
  text-decoration: none;
  text-underline-offset: 3px;
}

.g-foot .g-foot-bottom a.g-foot-staff-link:hover,
.g-foot .g-foot-bottom a.g-foot-staff-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.g-foot .g-foot-bottom a.g-foot-staff-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 0px;
}


/* GILLY'S FLAT-EDGE DESIGN — required for published & local interfaces.
   Applies to cards, forms, controls, modals, tabs, status labels and
   decorative pseudo-elements at every breakpoint. Keep this at the end. */
html,
html *,
html *::before,
html *::after {
  border-radius: 0px !important;
  border-start-start-radius: 0px !important;
  border-start-end-radius: 0px !important;
  border-end-start-radius: 0px !important;
  border-end-end-radius: 0px !important;
}


/* PUBLICATION RESPONSIVENESS — no horizontal/landscape table scrolling.
   Receipt remains a four-column printable table, with natural wrapping on mobile. */
@media screen {
  .receipt-sheet .receipt-table-wrap { overflow-x:visible!important; max-width:100%; min-width:0; }
  .receipt-sheet .receipt-items { width:100%; max-width:100%; min-width:0!important; table-layout:fixed; }
  .receipt-sheet .receipt-items th, .receipt-sheet .receipt-items td { overflow-wrap:anywhere; word-break:normal; }
  .receipt-sheet .receipt-items th:first-child, .receipt-sheet .receipt-items td:first-child { width:40%; }
  .receipt-sheet .receipt-items th:nth-child(2), .receipt-sheet .receipt-items td:nth-child(2) { width:23%; }
  .receipt-sheet .receipt-items th:nth-child(3), .receipt-sheet .receipt-items td:nth-child(3) { width:11%; }
  .receipt-sheet .receipt-items th:last-child, .receipt-sheet .receipt-items td:last-child { width:26%; }
  .receipt-sheet .receipt-items tbody td:nth-child(n+2) { font-variant-numeric:tabular-nums; }
}
@media screen and (max-width:600px) {
  .receipt-sheet .receipt-items th, .receipt-sheet .receipt-items td { font-size:clamp(8px,2.3vw,10px); padding:8px 3px; }
  .receipt-sheet .receipt-items th { white-space:normal; }
  .receipt-sheet .receipt-items td { white-space:normal; }
  .receipt-sheet .receipt-items td:last-child { font-weight:700; }
}
/* Prevent narrow content children from forcing the page wider than the viewport. */
@media screen and (max-width:760px) {
  #app, #app main, .wrap, .receipt-page, .receipt-sheet, .cart-review-page { min-width:0; max-width:100%; }
  .receipt-sheet .receipt-total, .receipt-sheet .receipt-payment-line, .receipt-sheet .receipt-breakdown-row { min-width:0; }
  .receipt-sheet .receipt-total strong { overflow-wrap:anywhere; text-align:right; }
}


/* Receipt readability on phones: compact labelled item records instead of
   four tiny sideways columns. Desktop and A4/PDF remain semantic tables. */
@media screen and (max-width:600px) {
  .receipt-page .receipt-sheet .receipt-table-wrap { overflow-x:visible!important; }
  .receipt-page .receipt-sheet .receipt-items,
  .receipt-page .receipt-sheet .receipt-items tbody { display:block!important; width:100%; min-width:0!important; }
  .receipt-page .receipt-sheet .receipt-items thead {
    position:absolute!important; width:1px!important; height:1px!important;
    padding:0!important; margin:-1px!important; border:0!important;
    overflow:hidden!important; clip-path:inset(50%);
  }
  .receipt-page .receipt-sheet .receipt-items tbody tr {
    display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 12px; padding:11px 10px; border:1px solid #e8deda;
    margin-bottom:10px; background:#fff;
  }
  .receipt-page .receipt-sheet .receipt-items tbody td {
    display:block!important; width:100%!important; min-width:0;
    padding:7px 0!important; border:0!important;
    font-size:11px!important; white-space:normal!important;
    overflow-wrap:anywhere; text-align:left;
  }
  .receipt-page .receipt-sheet .receipt-items tbody td::before {
    content:attr(data-label)!important; display:block!important;
    font-size:10px!important; font-weight:800; color:#755b56;
    margin-bottom:3px; text-transform:uppercase;
  }
  .receipt-page .receipt-sheet .receipt-items tbody td:first-child {
    grid-column:1 / -1; border-bottom:1px solid #e8deda!important;
    font-weight:700; color:#312421;
  }
  .receipt-page .receipt-sheet .receipt-items tbody td:last-child {
    color:#740b19; font-weight:800;
  }
}


/* GILLY'S FLAT CORNERS - 20261115-squared-v4-source-flat. Cloudflare + local. */
html body, html body *, html body *::before, html body *::after,
html body #app, html body #app *, html body #app *::before, html body #app *::after,
html body #ga-admin, html body #ga-admin *, html body #ga-admin *::before, html body #ga-admin *::after {
  border-radius:0px !important;
  border-top-left-radius:0px !important;
  border-top-right-radius:0px !important;
  border-bottom-left-radius:0px !important;
  border-bottom-right-radius:0px !important;
  border-start-start-radius:0px !important;
  border-start-end-radius:0px !important;
  border-end-start-radius:0px !important;
  border-end-end-radius:0px !important;
}


/* Customer delivery-receipt confirmation — square and responsive. */
.order-delivery-verified { color:#23653e!important; font-weight:700; }
.order-delivery-alert { color:#9b2b20!important; font-weight:700; }
.order-delivery-prompt { color:#711e2a!important; font-weight:700; }
.demo-history-item .order-history-actions { max-width:390px; }
.demo-history-item .order-history-actions [data-action^="delivery-"] { flex:1 1 180px; }
@media (max-width:600px) {
  .demo-history-item .order-history-actions { max-width:none; width:100%; justify-content:stretch; }
  .demo-history-item .order-history-actions .btn { flex:1 1 100%; width:100%; min-width:0; }
}

/* Order History action buttons: readable maroon-on-white controls.
   Scope to the history card to avoid changing hero or dark-section buttons. */
.demo-history-page .demo-history .order-history-actions .btn.btn-outline[data-action="order-reorder"] {
  background: #ffffff;
  border: 2px solid #500c19;
  color: #500c19;
  opacity: 1;
}
.demo-history-page .demo-history .order-history-actions .btn.btn-outline[data-action="order-reorder"]:hover:not(:disabled),
.demo-history-page .demo-history .order-history-actions .btn.btn-outline[data-action="order-reorder"]:focus-visible {
  background: #500c19;
  border-color: #500c19;
  color: #ffffff;
}


/* My Orders — clear receipt actions and customer delivery acknowledgment. */
.demo-history-page .demo-history .order-history-actions .btn {
  border-radius:0!important; opacity:1!important;
}
.demo-history-page .demo-history .order-history-actions [data-action="order-reorder"],
.demo-history-page .demo-history .order-history-actions [data-action="delivery-report-missing"] {
  color:#650c1b!important; background:#fff!important; border:2px solid #650c1b!important;
}
.demo-history-page .demo-history .order-history-actions [data-action="order-reorder"]:hover,
.demo-history-page .demo-history .order-history-actions [data-action="delivery-report-missing"]:hover {
  background:#650c1b!important; color:#fff!important;
}
.demo-history-page .demo-history .order-history-actions [data-action="delivery-confirm-received"] {
  color:#fff!important; background:#9e121e!important; border:2px solid #9e121e!important;
}
.demo-history-page .demo-history .order-history-actions [data-action="delivery-confirm-received"]:hover {
  background:#650c1b!important; border-color:#650c1b!important;
}
.demo-history-page .demo-history .order-delivery-prompt {
  color:#650c1b!important; font-weight:700!important;
}
@media(max-width:700px) {
 .demo-history-page .demo-history .order-history-actions { width:100%; max-width:none; }
 .demo-history-page .demo-history .order-history-actions .btn {
  width:100%; flex:1 1 100%; white-space:normal; text-align:center;
 }
}


/* Customer Profile — removed redundant Explore Gilly’s sidebar. */
body .account-layout.account-layout--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 920px;
  margin-inline: auto;
}
body .account-layout.account-layout--single > .account-box {
  width: 100%;
  min-width: 0;
}

/* My Orders — View Receipt is the solid maroon primary action. */
body .demo-history-page .demo-history .order-history-actions .btn.btn-primary[data-action="order-receipt"] {
  color: #ffffff !important;
  background: #650c1b !important;
  border: 2px solid #650c1b !important;
  border-radius: 0 !important;
  opacity: 1 !important;
}
body .demo-history-page .demo-history .order-history-actions .btn.btn-primary[data-action="order-receipt"]:hover:not(:disabled),
body .demo-history-page .demo-history .order-history-actions .btn.btn-primary[data-action="order-receipt"]:focus-visible {
  color: #ffffff !important;
  background: #500c19 !important;
  border-color: #500c19 !important;
}

/* Custom question-mark confirmation — affirmative button bottom right. */
.g-confirm-overlay {
  position: fixed; inset: 0; z-index: 10010; padding: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(22, 8, 11, .66);
}
.g-confirm-dialog {
  width: min(100%, 440px); background: #fffaf6; color: #281a1a;
  padding: clamp(22px, 5vw, 34px); border: 1px solid #dfc8c0;
  border-radius: 0 !important; box-shadow: 0 22px 65px rgba(0,0,0,.26);
  text-align: center;
}
.g-confirm-icon { display: flex; justify-content: center; color: #770b1b; margin-bottom: 16px; }
.g-confirm-dialog h2 { color: #460c17; font-size: clamp(20px, 4vw, 25px); margin: 0 0 10px; }
.g-confirm-dialog p { color: #675b58; font-size: 14px; line-height: 1.6; margin: 0; }
.g-confirm-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.g-confirm-actions button {
  appearance: none; flex: 0 1 auto; min-width: 120px; padding: 12px 18px;
  border-radius: 0 !important; font: inherit; font-size: 13px;
  font-weight: 800; letter-spacing: .02em; cursor: pointer;
}
.g-confirm-cancel { color: #650c1b; border: 2px solid #650c1b; background: #fffaf6; }
.g-confirm-accept { color: #fff; border: 2px solid #650c1b; background: #650c1b; }
.g-confirm-cancel:hover { background: #f4e5df; }
.g-confirm-accept:hover { background: #490713; border-color: #490713; }
.g-confirm-actions button:focus-visible { outline: 3px solid #cf9b50; outline-offset: 2px; }
@media (max-width: 420px) {
  .g-confirm-actions { flex-wrap: nowrap; }
  .g-confirm-actions button { flex: 1 1 50%; min-width: 0; padding: 12px 8px; }
}
/* Readable per-meal add-on and unit-price breakdown in on-screen/PDF receipt. */
.receipt-sheet .receipt-detail-row td { padding: 9px 12px 15px !important; background: #fdfaf8; text-align: left !important; }
.receipt-itemization { display: grid; gap: 6px; width: 100%; color: #392422; font-size: 11px; }
.receipt-itemization-head, .receipt-itemization-line,
.receipt-itemization-subtotal { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.receipt-itemization-head { font-weight: 800; color: #650c1b; border-bottom: 1px solid #e5d2cb; padding-bottom: 5px; }
.receipt-itemization-head span, .receipt-itemization-note { color: #776962; font-size: 10px; }
.receipt-itemization-head span { margin-left: auto; text-align: right; }
.receipt-itemization-line > span { min-width: 0; flex: 1; overflow-wrap: anywhere; text-align: left; }
.receipt-itemization-line strong { flex: 0 0 auto; white-space: nowrap; margin-left: auto; text-align: right; }
.receipt-added-choice { padding-left: 8px; }
.receipt-itemization-subtotal { font-weight: 800; border-top: 1px solid #e5d2cb; padding-top: 6px; margin-top: 4px; text-align: left; }
.receipt-itemization-subtotal strong { margin-left: auto; text-align: right; }
.receipt-itemization-note { text-align: left; }
@media (max-width: 600px) {
  .receipt-page .receipt-sheet .receipt-items tr.receipt-detail-row { display: block !important; }
  .receipt-page .receipt-sheet .receipt-items tr.receipt-detail-row td { display: block !important; width: 100% !important; }
  .receipt-page .receipt-sheet .receipt-items tr.receipt-detail-row td::before { display: none !important; }
}


/* Gilly's pickup-only checkout — accessible, square-corner layout. */
.pickup-description { color:var(--muted);line-height:1.65;margin:6px 0 18px; }
.pickup-delegate-fields {display:grid;gap:12px;background:#fbf8f7;border:1px solid #e5d7d7;padding:14px;border-radius:0;}
.pickup-location-box {display:grid;gap:8px;border:1px solid #e5d7d7;background:#fff9f6;padding:16px;border-left:4px solid #650c1b;border-radius:0;}
.pickup-location-box strong {display:flex;align-items:center;gap:8px;color:#650c1b;font-size:14px;}
.pickup-location-box p {margin:0;line-height:1.6;font-size:13px;color:#514447;}
.pickup-eyebrow {display:block;color:#650c1b;font-size:11px;font-weight:800;letter-spacing:.1em;margin-bottom:9px;}
.pickup-couriers {display:grid;gap:12px;min-width:0;border-radius:0;}
.pickup-couriers h2 {margin:0;color:#510b19;}
.pickup-couriers > p {margin:0;color:#514447;font-size:13px;line-height:1.7;}
.pickup-courier-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.pickup-courier-links a {display:flex;align-items:center;flex-wrap:wrap;min-width:0;gap:3px 10px;padding:16px;background:#fff;border:1px solid #ddc8ca;border-radius:0;text-decoration:none;color:#650c1b;transition:background .16s,border-color .16s;}
.pickup-courier-links a:hover,.pickup-courier-links a:focus-visible {background:#fff5f5;border-color:#650c1b;outline-offset:3px;}
.pickup-courier-links strong {flex:1 1 auto;font-size:15px;color:#650c1b;}
.pickup-courier-links small {flex-basis:100%;font-size:12px;line-height:1.5;color:#5e5154;}
.pickup-courier-links svg {flex:0 0 auto;}
.pickup-courier-note {font-size:12px!important;line-height:1.75!important;border-top:1px solid #eee0e0;padding-top:12px;}
.checkout-page .pickup-delegate-fields input,.checkout-page .pickup-location-box,.checkout-page .pickup-couriers,.checkout-page .pickup-courier-links a {border-radius:0!important;}
@media(max-width:650px) {
  .pickup-courier-links {grid-template-columns:1fr;gap:10px;}
  .pickup-courier-links a {padding:14px;}
  .pickup-delegate-fields,.pickup-location-box {padding:12px;}
}


/* Address editor is inline within the existing My Information section.
   No second white card, border, shadow, or decorative top stripe. */
.account-box .account-address-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 100%;
  margin: 4px 0 20px;
  padding: 0;
  border: 0;
  border-top: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
}
.account-box .account-address-form > h2 {
  color: var(--maroon);
  font-size: 17px;
  line-height: 1.4;
  margin: 0;
}
.account-box .account-address-form label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.account-box .account-address-form input:not([type='checkbox']),
.account-box .account-address-form select,
.account-box .account-address-form textarea {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1.5px solid #d4c4c4;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  outline: none;
}
.account-box .account-address-form input:focus,
.account-box .account-address-form select:focus,
.account-box .account-address-form textarea:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px #b0121226;
}
.account-box .account-address-form .check-row {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
}
.account-box .account-address-form .check-row input {
  accent-color: var(--maroon);
  flex: none;
}
.account-box .account-address-form .account-address-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}
@media (max-width: 600px) {
  .account-box .account-address-form .form-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .account-box .account-address-form .account-address-buttons > .btn {
    flex: 1 1 140px;
  }
}

/* Courier pickup requires no rider identity at the time of checkout. */
.checkout-page .pickup-courier-inline-note {
  color: #665458;
  background: transparent;
  border: 0;
  padding: 2px 0 4px;
  margin: 0;
  line-height: 1.65;
  font-size: 13px;
}


/* Gilly's simplified pickup checkout: one form, no nested collection cards. */
.checkout-page .pickup-location-inline {
  display: flex; align-items: center; gap: 8px;
  margin: 0; padding: 3px 0 0;
  font-size: 13px; line-height: 1.5; color: #514447;
}
.checkout-page .pickup-location-inline svg { flex: 0 0 auto; color: #650c1b; }
.checkout-page .pickup-location-inline strong { color: #650c1b; }
.checkout-page .pickup-location-inline small { font-size: 12px; color: #786c70; }
.checkout-page .pickup-couriers-simple {
  margin: 0; padding: 0 2px 16px;
  border: 0; background: transparent; box-shadow: none;
  font-size: 13px; line-height: 1.65;
}
.checkout-page .pickup-couriers-simple p { margin: 0; color: #514447; }
.checkout-page .pickup-couriers-simple p strong { color: #510b19; }
.checkout-page .pickup-couriers-simple a {
  color: #650c1b; text-decoration: underline; text-underline-offset: 3px;
  font-weight: 700;
}
.checkout-page .pickup-couriers-simple a:focus-visible { outline: 2px solid #650c1b; outline-offset: 3px; }
.checkout-page .pickup-couriers-simple small { display: block; margin-top: 4px; color: #786c70; }
@media (max-width: 650px) {
  .checkout-page .pickup-location-inline { align-items: flex-start; }
}


/* Pickup checkout: distinct, readable courier options with square corners. */
.checkout-page .pickup-couriers {
  display:grid;gap:14px;padding:26px 30px;margin-bottom:18px;
  background:#fff;border:1px solid #e4d2d2;
  color:#34272b;border-radius:0;box-shadow:none;
}
.checkout-page .pickup-couriers h2 {margin:0;color:#5c0b1a;font-size:19px;}
.checkout-page .pickup-couriers > p {margin:0;color:#56464c;font-size:13px;line-height:1.65;}
.checkout-page .pickup-courier-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;}
.checkout-page .pickup-courier-links a {
  display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;
  min-width:0;padding:18px;background:#fff;border:1.5px solid #a78388;
  border-radius:0!important;text-decoration:none;color:#650c1b;
}
.checkout-page .pickup-courier-links a:hover,
.checkout-page .pickup-courier-links a:focus-visible {
  background:#fff6f5;border-color:#650c1b;
}
.checkout-page .pickup-courier-links strong {font-size:16px;color:#650c1b;flex:1;}
.checkout-page .pickup-courier-links small {font-size:12px;color:#65565a;flex-basis:100%;}
.checkout-page .pickup-courier-links svg {flex:0 0 19px;color:#650c1b;}
.checkout-page .pickup-courier-note {
  color:#65565a!important;font-size:12px!important;border-top:1px solid #eee1e1;
  padding-top:13px;margin:0!important;
}
@media(max-width:650px) {
  .checkout-page .pickup-couriers {padding:22px 18px;}
  .checkout-page .pickup-courier-links {grid-template-columns:1fr;gap:10px;}
  .checkout-page .pickup-courier-links a {padding:14px;}
}

/* Clear pickup summary presentation. */
.g-confirmation-summary { width: min(100%, 700px); margin: 25px auto; padding: 24px 28px; background: #fff; border: 1px solid #e9dada; border-top: 4px solid #780a14; border-radius: 0; color: #2a2424; text-align: left; }
.g-confirmation-top { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 28px; padding-bottom: 19px; border-bottom: 1px solid #eee0df; }
.g-confirmation-top > div { min-width: 0; display: grid; gap: 5px; }
.g-confirmation-top span { color: #766568; font-size: 12px; }
.g-confirmation-top strong { color: #4f0a15; font-size: 14px; overflow-wrap: anywhere; }
.g-confirmation-summary h2 { margin: 20px 0 8px; color: #700c1b; font-size: 20px; }
.g-confirmation-meal, .g-confirmation-totals > div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid #f2e8e6; font-size: 14px; }
.g-confirmation-meal strong, .g-confirmation-totals strong { text-align: right; white-space: nowrap; }
.g-confirmation-totals { margin-top: 14px; }
.g-confirmation-totals .g-confirmation-grand { padding-top: 15px; margin-top: 6px; font-size: 17px; font-weight: 750; color: #650b19; border-top: 2px solid #7c1221; border-bottom: 0; }
.g-confirmation-notice { max-width: 700px; margin: 0 auto 24px; font-size: 13px; color: #685658; text-align: center; }
@media(max-width: 630px) { .g-confirmation-summary { padding: 17px 15px; } .g-confirmation-top { grid-template-columns: 1fr; gap: 11px; } .g-confirmation-meal, .g-confirmation-totals > div { font-size: 12px; } .g-confirmation-totals .g-confirmation-grand { font-size: 15px; } }

.g-confirmation-item { border-bottom: 1px solid #f2e8e6; padding: 2px 0 9px; }
.g-confirmation-item .g-confirmation-meal { border: 0; padding-bottom: 5px; }
.g-confirmation-item-details { margin-left: 22px; display: grid; gap: 4px; color: #6e5e60; font-size: 12px; }
.g-confirmation-item-details > div { display: flex; justify-content: space-between; gap: 12px; }
.g-confirmation-item-details strong { font-size: 12px; color: #624a4e; font-weight: 500; text-align: right; }
@media(max-width: 630px) { .g-confirmation-item-details { margin-left: 10px; } }

/* Full pickup address, including small-screen wrapping. */
.checkout-page .pickup-location-inline span { min-width:0; overflow-wrap:anywhere; }
.g-confirmation-top .g-confirmation-location { grid-column:1 / -1; }
.receipt-schedule p { overflow-wrap:anywhere; }

/* Gilly's pickup pricing: concise customization details and checkout confirmation */
.g-checkout-choices { padding: 0 0 12px 12px; margin: 0 0 8px 0; border-bottom: 1px solid #eadedb; }
.g-checkout-choice { display:flex; justify-content:space-between; gap:12px; padding:3px 0; font-size:12px; color:#746064; }
.g-checkout-choice span:last-child { text-align:right; flex-shrink:0; }
.g-confirm-dialog:has(.g-preconfirm-review) { width:min(100%,590px); padding:clamp(16px,3vw,27px); max-height:min(90vh,850px); display:flex; flex-direction:column; text-align:left; }
.g-confirm-dialog:has(.g-preconfirm-review) .g-confirm-icon { margin:0 0 8px; }
.g-confirm-dialog:has(.g-preconfirm-review) h2, .g-confirm-dialog:has(.g-preconfirm-review) > p { text-align:center; }
.g-confirm-dialog:has(.g-preconfirm-review) .g-confirm-actions { margin-top:14px; flex-shrink:0; }
.g-preconfirm-review { overflow-y:auto; overscroll-behavior:contain; min-height:0; margin-top:13px; padding:0 5px 2px 0; }
.g-preconfirm-schedule { border-top:1px solid #e8d9d5; border-bottom:1px solid #e8d9d5; padding:9px 0; }
.g-preconfirm-review h3 {font-size:15px;color:#620f1a;margin:14px 0 8px;}
.g-preconfirm-item {padding:5px 0 8px; border-bottom:1px solid #efe4df;}
.g-preconfirm-row {display:flex; justify-content:space-between; gap:12px; padding:6px 0; font-size:13px;}
.g-preconfirm-row span {min-width:0; color:#655559;}
.g-preconfirm-row strong {flex:0 1 auto; text-align:right; overflow-wrap:anywhere; color:#44222a; font-variant-numeric:tabular-nums;}
.g-preconfirm-option {display:flex; justify-content:space-between; gap:12px; padding:3px 0 3px 12px; font-size:11px; color:#77676b;}
.g-preconfirm-totals {margin-top:9px;}
.g-preconfirm-grand {font-size:16px; font-weight:750; border-top:2px solid #640f1a; margin-top:6px; padding-top:12px;}
.g-preconfirm-grand span,.g-preconfirm-grand strong {color:#640f1a;}
@media(max-width:550px) {
  .g-preconfirm-row {font-size:12px;}
  .g-preconfirm-grand {font-size:14px;}
  .g-confirm-dialog:has(.g-preconfirm-review) {max-height:92vh;}
  .g-checkout-choice {flex-wrap:wrap;}
}
