/* Calma — screen styles */

/* ================= splash ================= */

.screen--splash {
  background: #1b1913;
}

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

.splash__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 16, 11, 0.74) 0%, rgba(18, 16, 11, 0.36) 30%, rgba(18, 16, 11, 0.3) 52%, rgba(18, 16, 11, 0.92) 100%);
}

.splash__content {
  position: absolute;
  z-index: 2;
  top: 27%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fffdf8;
  padding: 0 24px;
}

.splash__content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -34px -18px;
  background: radial-gradient(ellipse at 50% 48%, rgba(16, 14, 10, 0.62) 0%, rgba(16, 14, 10, 0.32) 48%, rgba(16, 14, 10, 0) 74%);
  filter: blur(8px);
}

.splash__mark {
  width: 90px;
  height: 90px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.splash__wordmark {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.splash__tagline {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 253, 248, 0.9);
  letter-spacing: 0.1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.splash__actions {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: calc(26px + var(--safe-bottom));
  display: grid;
  gap: 10px;
}

.splash__actions .btn {
  height: 52px;
}

/* ================= home ================= */

.home__scroll {
  padding: 2px 20px 18px;
}

.home__topline {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home__welcome {
  margin-top: 2px;
  text-align: center;
}

.home__welcome h1 {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.wordmark-inline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92em;
  letter-spacing: 0;
}

.home__welcome p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}

.search {
  margin-top: 16px;
  height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream-3);
  color: var(--muted);
  box-shadow: 0 4px 12px rgba(70, 60, 38, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search:focus-within {
  border-color: rgba(94, 97, 53, 0.55);
  box-shadow: 0 0 0 3px rgba(94, 97, 53, 0.1);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 12px;
  color: var(--ink);
}

.search input::placeholder {
  color: var(--muted-2);
}

.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.cats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cat {
  height: 76px;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 14px;
  background: var(--sand);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cat .icon {
  color: var(--olive);
  transition: color 0.18s ease;
}

.cat:active {
  transform: scale(0.97);
}

.cat.is-active {
  background: var(--olive);
  color: #f8f2e4;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(74, 76, 39, 0.24);
}

.cat.is-active .icon {
  color: #f8f2e4;
}

.section-head {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.section-head h2 {
  font-size: 14.5px;
  font-weight: 700;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 0 4px 4px;
}

.section-link .icon {
  transform: translateY(0.5px);
}

.featured {
  margin-top: 9px;
  display: grid;
  gap: 11px;
}

.fcard {
  position: relative;
  height: 184px;
  border-radius: 18px;
  overflow: hidden;
  background: #d8cdb9;
  box-shadow: 0 10px 22px rgba(70, 60, 38, 0.14);
  isolation: isolate;
}

.fcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.fcard:active .fcard__img {
  transform: scale(1.03);
}

.fcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 12, 0) 34%, rgba(20, 18, 12, 0.16) 58%, rgba(20, 18, 12, 0.78) 100%);
}

.fcard__fav {
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fffdf8;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

.fcard__fav .icon {
  fill: transparent;
  transition: fill 0.18s ease, color 0.18s ease;
}

.fcard__fav.is-fav {
  color: #f0d39a;
}

.fcard__fav.is-fav .icon {
  fill: currentColor;
}

.fcard__body {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 11px;
  color: #fffdf8;
}

.fcard__body h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.fcard__loc {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: rgba(255, 253, 248, 0.84);
}

.fcard__rating {
  position: absolute;
  z-index: 3;
  left: 13px;
  bottom: 12px;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 4px;
  color: #fffdf8;
  font-size: 11px;
  font-weight: 600;
}

.fcard__rating .star {
  color: #e8bd66;
}

.fcard__count {
  color: rgba(255, 253, 248, 0.72);
  font-size: 9.5px;
  font-weight: 400;
}

.empty {
  padding: 26px 0 10px;
  text-align: center;
  color: var(--muted);
  font-size: 11.5px;
}

.tabbar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 8px calc(7px + var(--safe-bottom));
  background: rgba(255, 253, 248, 0.97);
  border-top: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tab {
  padding: 2px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #a49b87;
  font-size: 9.5px;
  font-weight: 500;
  transition: color 0.16s ease, transform 0.16s ease;
}

.tab:active {
  transform: scale(0.95);
}

.tab.is-active {
  color: var(--olive);
  font-weight: 700;
}

/* ================= explore ================= */

.explore__head {
  position: relative;
  padding: 2px 20px 0;
  text-align: center;
}

.explore__head h1 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
}

.explore__head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.chips {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 10px;
  background: var(--sand);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.chip:active {
  transform: scale(0.97);
}

.chip.is-active {
  background: var(--olive);
  color: #f8f2e4;
  font-weight: 700;
}

.chip--icon {
  width: 38px;
  padding: 0;
  justify-content: center;
  margin-inline-start: auto;
}

.explore__map {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 12px;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  background: #efe5d4;
}

.map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pin {
  position: absolute;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--olive);
  color: #f8f2e4;
  transform: translate(-50%, -100%);
  box-shadow: 0 6px 12px rgba(50, 45, 30, 0.28);
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.pin::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top: 5px solid var(--olive);
  border-bottom: 0;
}

.pin:active {
  transform: translate(-50%, -100%) scale(0.94);
}

.locate {
  position: absolute;
  left: 14px;
  bottom: 34px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-3);
  color: var(--olive);
  box-shadow: 0 6px 16px rgba(60, 50, 30, 0.2);
}

.nearby {
  position: relative;
  z-index: 3;
  flex: none;
  height: 37%;
  min-height: 258px;
  margin-top: -22px;
  padding: 13px 18px 0;
  display: flex;
  flex-direction: column;
  background: var(--cream-2);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -14px 30px rgba(60, 50, 30, 0.12);
}

.nearby h2 {
  flex: none;
  margin-bottom: 5px;
  font-size: 13.5px;
  font-weight: 700;
}

.nearby__list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  padding-bottom: calc(8px + var(--safe-bottom));
  scrollbar-width: none;
}

.nearby__list::-webkit-scrollbar {
  display: none;
}

.nrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-2);
}

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

.nrow__img {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
}

.nrow__info {
  flex: 1;
  min-width: 0;
}

.nrow__name {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
}

.nrow__loc {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9.5px;
}

.nrow__meta {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 9.5px;
}

.nrow__meta .star {
  color: var(--gold);
}

.nrow__fav {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  color: #b3aa97;
}

.nrow__fav.is-fav {
  color: var(--gold);
}

.nrow__fav.is-fav .icon {
  fill: currentColor;
}

.nrow__fav .icon {
  font-size: 16px;
}

.nrow__chev {
  width: 12px;
  height: 12px;
  flex: none;
  color: #b3aa97;
}

/* ================= detail ================= */

.detail__scroll {
  background: var(--cream-2);
}

.detail__hero {
  position: relative;
  height: 280px;
  background: #d8cdb9;
}

.detail__hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 12, 0.4) 0%, rgba(20, 18, 12, 0.02) 36%);
}

.detail__actions {
  position: absolute;
  top: 50px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail__actions-end {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fffdf8;
  background: rgba(24, 22, 16, 0.2);
  border: 1px solid rgba(255, 253, 248, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.hero-btn:active {
  transform: scale(0.93);
}

.hero-btn.is-fav .icon {
  fill: #f0d39a;
  color: #f0d39a;
}

.detail__sheet {
  position: relative;
  margin-top: -26px;
  padding: 16px 20px calc(22px + var(--safe-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--cream-2);
  box-shadow: 0 -12px 24px rgba(40, 35, 22, 0.08);
}

.detail__identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail__logo {
  width: 50px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sand);
  color: var(--olive);
  box-shadow: inset 0 0 0 1px rgba(94, 97, 53, 0.08);
}

.detail__cup {
  width: 30px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail__names {
  min-width: 0;
}

.detail__names h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.rating {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  flex-direction: row-reverse;
  justify-content: center;
}

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

.location {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
}

.detail__desc {
  margin-top: 11px;
  color: #746d5c;
  font-size: 10.8px;
  line-height: 1.75;
}

.detail__tabs {
  margin-top: 14px;
  padding-bottom: 10px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.dt {
  height: 32px;
  padding: 0 14px;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.dt.is-active {
  background: var(--olive);
  color: #f8f2e4;
  font-weight: 700;
}

.menu-head {
  margin-top: 10px;
}

.menu-head h2 {
  font-size: 13.5px;
  font-weight: 700;
}

.menu {
  margin-top: 2px;
}

.mrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-2);
}

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

.mrow__img {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
}

.mrow__info {
  flex: 1;
  min-width: 0;
}

.mrow__name {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
}

.mrow__desc {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9.2px;
}

.mrow__price {
  margin-top: 2px;
  font-family: var(--font-num);
  font-size: 9.8px;
  font-weight: 600;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

.mrow__add {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--olive);
  color: #f8f2e4;
  box-shadow: 0 4px 10px rgba(74, 76, 39, 0.2);
  transition: transform 0.16s ease;
}

.mrow__add:active {
  transform: scale(0.9);
}

.menu-empty {
  padding: 26px 0 18px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.info-panel {
  padding: 10px 0 4px;
}

.info-panel__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 10.5px;
  color: var(--ink-2);
}

.info-panel__row .icon {
  margin-top: 2px;
  color: var(--olive);
}

.info-panel__row span {
  line-height: 1.6;
}

/* ================= checkout ================= */

.pagehead {
  position: relative;
  flex: none;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.pagehead h1 {
  font-size: 19px;
  font-weight: 700;
}

.pagehead .iconbtn--back {
  top: 8px;
}

.checkout__scroll {
  padding: 2px 20px 14px;
}

.cafe-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--sand);
}

.cafe-summary img {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
}

.cafe-summary h2 {
  font-size: 14px;
  font-weight: 700;
}

.cafe-summary p {
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
}

.block-head {
  margin-top: 19px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.block-head h2 {
  font-size: 13.5px;
  font-weight: 700;
}

.block-head h2 span {
  color: var(--muted);
  font-weight: 500;
}

.block-head--icon {
  color: var(--olive);
}

.block-head--icon h2 {
  color: var(--ink);
}

.cart {
  margin-top: 2px;
}

.crow {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
}

.crow__img {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
}

.crow__info {
  flex: 1;
  min-width: 0;
}

.crow__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.crow__price {
  margin-top: 2px;
  font-family: var(--font-num);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--sand);
}

.stepper button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--olive);
  transition: background-color 0.16s ease;
}

.stepper button:active {
  background: rgba(94, 97, 53, 0.12);
}

.stepper span {
  min-width: 14px;
  text-align: center;
  font-family: var(--font-num);
  font-size: 10.5px;
  font-weight: 600;
}

.delivery {
  margin-top: 4px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
}

.info-ico {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sand);
  color: var(--olive);
}

.info-copy {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.info-copy > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.info-copy strong {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 600;
}

.info-copy p {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.6;
}

.summary {
  margin-top: 8px;
}

.sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6.5px 0;
  color: var(--ink-2);
  font-size: 11.5px;
}

.sum-row span:last-child {
  font-family: var(--font-num);
  font-weight: 500;
  direction: ltr;
  unicode-bidi: isolate;
}

.sum-total {
  margin-top: 7px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 10px;
  background: var(--sand);
  font-size: 12px;
  font-weight: 700;
}

.sum-total span:last-child {
  font-family: var(--font-num);
  font-size: 13.5px;
  direction: ltr;
  unicode-bidi: isolate;
}

.checkout__cta {
  flex: none;
  padding: 9px 20px calc(14px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(251, 247, 238, 0), var(--cream-2) 34%);
}

/* ================= responsive refinements ================= */

@media (max-width: 599px) {
  .screen--splash .statusbar,
  .screen--detail .statusbar {
    display: none;
  }

  .home__scroll {
    padding-top: calc(var(--safe-top) + 2px);
  }

  .explore__head {
    padding-top: calc(var(--safe-top) + 2px);
  }

  .pagehead {
    height: calc(54px + var(--safe-top));
    padding-top: var(--safe-top);
  }

  .pagehead .iconbtn--back {
    top: calc(8px + var(--safe-top));
  }

  .detail__actions {
    top: calc(var(--safe-top) + 10px);
  }

  .detail__hero {
    height: 32dvh;
    min-height: 240px;
    max-height: 320px;
  }

  .explore__map {
    margin: 0 10px;
  }
}

@media (max-height: 740px) and (min-width: 600px) {
  .splash__content {
    top: 22%;
  }

  .detail__hero {
    height: 260px;
  }

  .fcard {
    height: 172px;
  }
}

@media (max-width: 374px) {
  .home__scroll,
  .checkout__scroll {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home__welcome h1 {
    font-size: 23px;
  }

  .cat {
    height: 72px;
    font-size: 10px;
  }

  .explore__head h1 {
    font-size: 21px;
  }

  .detail__names h1 {
    font-size: 21px;
  }
}

/* ================= production checkout & tracking ================= */

[hidden] {
  display: none !important;
}

.icon--10 { font-size: 10px; }

.screen--detail .detail__scroll {
  padding-bottom: 96px;
}

.cartbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--safe-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border-radius: 18px;
  background: rgba(73, 75, 39, 0.97);
  color: var(--cream-3);
  box-shadow: 0 16px 32px rgba(43, 42, 34, 0.28);
  backdrop-filter: blur(10px);
}

.cartbar__info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.cartbar__info span {
  font-size: 10px;
  color: rgba(255, 253, 248, 0.7);
}

.cartbar__info strong {
  margin-top: 2px;
  font-family: var(--font-num);
  font-size: 14px;
}

.cartbar .btn {
  height: 38px;
  padding: 0 18px;
  font-size: 12px;
}

.btn--cream {
  background: var(--cream-3);
  color: var(--olive-dark);
}

.recent-orders {
  margin-bottom: 14px;
}

.recent-order {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream-3);
  text-align: right;
}

.recent-order__main {
  flex: 1;
  min-width: 0;
}

.recent-order__main strong {
  display: block;
  font-size: 12.5px;
}

.recent-order__main span {
  font-size: 10px;
  color: var(--muted);
}

.recent-order__status {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--olive-dark);
  font-size: 9.5px;
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.field > span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: var(--cream-3);
  padding: 10px 12px;
  color: var(--ink);
  font-size: 12.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--olive-2);
  box-shadow: 0 0 0 3px rgba(94, 97, 53, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field--wide {
  grid-column: 1 / -1;
}

.field textarea {
  min-height: 58px;
  resize: vertical;
}

.segmented {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  padding: 3px;
  border-radius: 12px;
  background: var(--sand);
}

.segmented button {
  flex: 1;
  height: 34px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.segmented button.is-active {
  background: var(--olive);
  color: var(--cream-3);
  box-shadow: 0 4px 10px rgba(73, 75, 39, 0.18);
}

.form-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.pay-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sand);
}

.pay-row__ico {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: var(--cream-3);
  color: var(--olive);
}

.pay-row strong {
  display: block;
  font-size: 12px;
}

.pay-row div > span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

#confirm:disabled {
  opacity: 0.5;
}

.empty-state {
  padding: 34px 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.empty-state .btn {
  margin-top: 12px;
}

.loading-line {
  padding: 24px 12px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.tracking__scroll {
  padding: 8px 16px 24px;
}

.tracking__card {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream-3);
  box-shadow: var(--shadow-soft);
}

.tracking__hero {
  border: 0;
  background: linear-gradient(145deg, var(--olive-dark), var(--olive));
  color: var(--cream-3);
}

.tracking__hero h2 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.2px;
}

.tracking__hero > p {
  margin-top: 3px;
  color: rgba(255, 253, 248, 0.7);
  font-size: 11px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.14);
  color: var(--cream-3);
  font-size: 10px;
}

.timeline {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.timeline__step {
  position: relative;
  display: flex;
  gap: 10px;
  padding-bottom: 14px;
}

.timeline__step:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1.5px solid rgba(255, 253, 248, 0.35);
  border-radius: 50%;
  color: transparent;
}

.timeline__step.is-done .timeline__dot {
  border-color: var(--cream-3);
  background: var(--cream-3);
  color: var(--olive-dark);
}

.timeline__step.is-active .timeline__dot {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--olive-dark);
  box-shadow: 0 0 0 4px rgba(199, 154, 62, 0.18);
}

.timeline__step:not(:last-child) .timeline__dot::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -14px;
  left: 50%;
  width: 1px;
  background: rgba(255, 253, 248, 0.22);
  transform: translateX(-50%);
}

.timeline__body {
  padding-top: 1px;
}

.timeline__label {
  color: rgba(255, 253, 248, 0.55);
  font-size: 12px;
  font-weight: 600;
}

.timeline__step.is-done .timeline__label,
.timeline__step.is-active .timeline__label {
  color: var(--cream-3);
}

.timeline__time {
  margin-top: 1px;
  color: rgba(255, 253, 248, 0.45);
  font-size: 9.5px;
}

.tracking__items .crow:last-child {
  border-bottom: 0;
}

.tracking__address {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
}

#tracking-refresh {
  width: 100%;
  margin-top: 2px;
}

.favorites-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.screen--favorites .scroll {
  padding: 8px 20px 24px;
}

.account__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 18px 20px;
  border-radius: 22px;
  background: var(--sand);
  text-align: center;
}

.account__cup {
  width: 46px;
  height: 55px;
  fill: none;
  color: var(--olive);
  stroke: var(--olive);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account__card h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 24px;
}

.account__card p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.account__version {
  margin-top: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--cream-3);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 9.5px;
}

.account__links {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 12.5px;
  text-align: right;
}

.link-row .icon {
  color: var(--muted);
  transform: scaleX(-1);
}

.account__note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
  text-align: center;
}

.success__order {
  margin: 0 0 14px !important;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--sand);
  color: var(--olive-dark) !important;
  font-family: var(--font-num);
  font-size: 11px !important;
  direction: ltr;
}

.success__actions {
  display: grid;
  gap: 8px;
}

.cartbar .btn {
  width: auto;
  min-width: 118px;
  flex: none;
}

.cartbar__info {
  min-width: 0;
}

.cartbar__info strong {
  white-space: nowrap;
}

.success__actions .btn--ghost,
#tracking-refresh {
  border: 1px solid var(--line);
  background: var(--sand);
  color: var(--olive-dark);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.install-card {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream-3);
}

.install-card h3 {
  font-size: 13px;
  font-weight: 700;
}

.install-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.crow__price,
.mrow__price,
.cartbar__info strong,
.sum-row span:last-child,
.sum-total span:last-child,
.tracking__items strong,
#tracking-total {
  direction: ltr;
  unicode-bidi: isolate;
}

.mrow__price,
.crow__price,
.cartbar__info strong {
  text-align: right;
}

.link-row {
  text-decoration: none;
}

.nearby__list {
  justify-content: flex-start;
}
