/* g3-app · deals.css (step 4) · deals tile (F4b 13), deals list (F4b 14), campaign (F4b 02),
   expired (F4b 15), setup sheet (F4b 03), deal builder (F4b 04-06), upsell (F4b 07), coupon (F4b 09).
   Greens derive from --green until core adds --green-ink / --green-soft (NOTES-core.md). */

.dl, .dlc, .dl-sheet, .dl-tile-wrap {
  --dl-save-ink: var(--green-ink, color-mix(in srgb, var(--green) 78%, var(--ink)));
  --dl-save-bg: var(--green-soft, color-mix(in srgb, var(--green) 12%, var(--white)));
}
.dl-pad { padding: 0 var(--gutter); }
.dl-sub { font-size: 13px; line-height: 16px; color: var(--muted); }

/* ---------- Deals tile on the menu (F4b 13) ---------- */
.dl-tile-wrap { padding: 18px var(--gutter) 0; }
.dl-tile-wrap + .mtiles { padding-top: 10px; }
.dl-tile {
  position: relative; height: 176px; padding: 18px 18px 16px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: var(--r-card); background: var(--red); color: var(--white);
  transition: transform var(--dur-fast) var(--ease);
}
.dl-tile:active { transform: scale(0.98); }
.dl-tile-img { position: absolute; right: -10px; top: 14px; width: 190px; height: 130px; object-fit: contain; }
.dl-tile-text { position: relative; display: flex; flex-direction: column; gap: 6px; }
.dl-tile-title { font-family: var(--f-stripes); font-weight: 900; text-transform: uppercase; font-size: 52px; line-height: 48px; }
.dl-tile-sub { font-size: 14px; line-height: 18px; max-width: 180px; }
.dl-tile-foot { position: relative; display: flex; }
.dl-tile-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 14px; max-width: 100%;
  border-radius: 999px; background: var(--white); color: var(--ink);
  font-size: 13px; line-height: 16px; font-weight: 600; white-space: nowrap;
}
.dl-tile-pill span { overflow: hidden; text-overflow: ellipsis; }
.dl-tile-pill svg { flex-shrink: 0; }

/* home hero pill pointing at the campaign */
.dl-home-promo svg { flex-shrink: 0; margin-left: -2px; }

/* ---------- deals list (F4b 14) ---------- */
.dl-chips { padding: 16px var(--gutter) 14px; border-bottom: 1px solid var(--line); }
.dl-chips .chip { height: 38px; }
.dl-rows { display: flex; flex-direction: column; padding: 4px var(--gutter) 0; }
.dl-row {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 0;
  border-bottom: 1px solid var(--line); text-align: left;
}
.dl-members .dl-row:last-child { border-bottom: 0; }
.dl-ph {
  position: relative; width: 76px; height: 76px; flex-shrink: 0; border-radius: var(--r-photo);
  background: var(--beige); display: flex; align-items: center; justify-content: center;
}
.dl-ph img { width: 66px; height: 56px; object-fit: contain; }
.dl-row.is-locked .dl-ph img { width: 62px; height: 52px; opacity: 0.55; }
.dl-lock {
  position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white); border: 2px solid var(--white);
}
.dl-row-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dl-when { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.dl-when.is-red { color: var(--red); }
.dl-name { font-family: var(--f-sans); font-size: 18px; line-height: 22px; }
.dl-prices { display: flex; align-items: baseline; gap: 8px; }
.dl-price { font-family: var(--f-sans); font-size: 17px; line-height: 22px; white-space: nowrap; }
.dl-was { font-size: 13px; line-height: 16px; color: var(--muted); text-decoration: line-through 1px; white-space: nowrap; }
.dl-chev { flex-shrink: 0; color: var(--ink); }
.dl-members { display: flex; flex-direction: column; padding: 22px var(--gutter) 0; }
.dl-sec-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 4px; }
.dl-sec-count { font-size: 13px; line-height: 16px; color: var(--muted); }
.dl-rewards {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 8px; padding: 16px 14px 16px 18px;
  border-radius: var(--r-tile); background: var(--beige); text-align: left;
  transition: transform var(--dur-fast) var(--ease);
}
.dl-rewards:active { transform: scale(0.98); }
.dl-rewards-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dl-rewards-head { display: flex; align-items: baseline; gap: 6px; }
.dl-kfc { font-family: var(--f-stripes); font-weight: 900; text-transform: uppercase; font-size: 15px; line-height: 16px; }
.dl-kfc.is-red { color: var(--red); }
.dl-rewards-line { font-family: var(--f-sans); font-size: 16px; line-height: 20px; }
.go-dot.is-36 { width: 36px; height: 36px; }
.dl-coupon-link { display: inline-block; margin-top: 22px; padding: 6px 0; font-size: 14px; line-height: 18px; }

/* ---------- campaign (F4b 02) + expired (F4b 15) ---------- */
.dlc { display: flex; flex-direction: column; }
.dlc-top { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-top) + 4px) var(--gutter) 0; }
.dlc-head { display: flex; flex-direction: column; gap: 4px; padding: 14px var(--gutter) 0; }
.dlc-title {
  font-family: var(--f-stripes); font-weight: 900; text-transform: uppercase;
  font-size: 44px; line-height: 44px; letter-spacing: -0.01em; text-wrap: balance;
}
.dlc-ends { display: flex; align-items: center; gap: 6px; font-size: 15px; line-height: 18px; }
.dlc-clock { flex-shrink: 0; color: var(--red); }
.dlc-ends.is-muted { color: var(--muted); }
.dlc-ends.is-muted .dlc-clock { color: var(--muted); }
.dlc-photo {
  position: relative; height: 176px; margin: 18px var(--gutter) 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-card); background: var(--beige);
}
.dlc-photo img { width: 250px; height: 160px; object-fit: contain; }
.dlc-photo.is-gone img { filter: grayscale(1); opacity: 0.45; }
.dlc-badge { position: absolute; left: 14px; top: 14px; height: 24px; padding: 0 10px; }
.dlc-price { display: flex; align-items: center; gap: 10px; padding: 16px var(--gutter) 0; }
.dlc-now { font-family: var(--f-sans); font-size: 30px; line-height: 34px; white-space: nowrap; }
.dlc-was { font-family: var(--f-sans); font-size: 16px; line-height: 20px; color: var(--muted); text-decoration: line-through 1px; white-space: nowrap; }
.dlc-save {
  margin-left: auto; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; white-space: nowrap;
  border-radius: 999px; background: var(--dl-save-bg); color: var(--dl-save-ink);
  font-size: 13px; line-height: 16px; font-weight: 600;
}
.dlc-in { display: flex; flex-direction: column; gap: 10px; padding: 20px var(--gutter) 0; }
.dlc-in-row { display: flex; gap: 8px; }
.dlc-in-item { flex: 0 1 calc((100% - 24px) / 4); min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dlc-in-ph { width: 100%; height: 64px; border-radius: 16px; background: var(--beige); display: flex; align-items: center; justify-content: center; }
.dlc-in-ph img { width: 60px; height: 46px; object-fit: contain; }
.dlc-in-label { font-size: 13px; line-height: 16px; text-align: center; }
.dl-facts { display: flex; flex-direction: column; gap: 10px; padding: 20px var(--gutter) 0; }
.dl-fact { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 18px; }
.dl-fact svg { flex-shrink: 0; }
.dlc-instead { display: flex; flex-direction: column; padding: 22px var(--gutter) 0; }
.dlc-instead .sec-label { padding-bottom: 2px; }
.dlc-instead .dl-row:last-child { border-bottom: 0; }

/* ---------- sheets: shared head ---------- */
.dl-sheet-head { display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter) 0; }
.dl-sheet-titles { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dl-sheet-title { font-family: var(--f-sans); font-size: 22px; line-height: 26px; }
.dl-sheet-sub { font-size: 13px; line-height: 17px; color: var(--muted); }
/* plain handle in the notch (upsell, coupon) */
.dl-handle .sheet-notch-steps i { width: 40px; }

/* ---------- order setup sheet (F4b 03) ---------- */
.dls { padding-bottom: 18px; }
.dls-seg { display: flex; margin: 20px var(--gutter) 0; padding: 3px; border-radius: 999px; background: var(--beige); }
.dls-seg-b {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px;
  border-radius: 999px; font-size: 15px; line-height: 18px; font-weight: 500;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.dls-seg-b.is-on { background: var(--ink); color: var(--white); font-weight: 600; }
.dls-near { display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter) 8px; }
.dls-map { font-size: 13px; line-height: 16px; font-weight: 600; text-decoration: underline 1px; text-underline-position: from-font; }
.dls-list { display: flex; flex-direction: column; padding: 0 var(--gutter); }
.dls-r {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--line); border-radius: 0;
}
.dls-r:last-child { border-bottom: 0; }
.dls-r.is-on { padding: 12px 16px; border: 2px solid var(--ink); border-radius: var(--r-tile); background: var(--beige); }
.dls-r-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dls-r-name { font-family: var(--f-sans); font-size: 17px; line-height: 20px; }
.dls-r-addr { font-size: 13px; line-height: 16px; color: var(--muted); }
.dls-r-open { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 16px; }
.dls-r-open .dot { width: 7px; height: 7px; }
.dls-r-km { width: 64px; flex-shrink: 0; text-align: right; font-family: var(--f-sans); font-size: 15px; line-height: 18px; white-space: nowrap; }
.dls-cta { padding: 10px var(--gutter) 0; }

/* ---------- deal builder (F4b 04-06) ---------- */
.dl-builder .sheet-body { padding-bottom: 0; display: flex; flex-direction: column; }
.dlb { flex: 1 0 auto; display: flex; flex-direction: column; }
.dlb-run { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 6px 0; }
.dlb-run-price { font-family: var(--f-sans); font-size: 18px; line-height: 22px; white-space: nowrap; }
.dlb-i {
  width: 18px; height: 18px; border-radius: 999px; background: var(--red); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-weight: 700; font-size: 12px; line-height: 12px;
}
.dlb-slots { display: flex; gap: 8px; padding: 20px var(--gutter) 0; }
.dlb-slot { flex: 0 1 64px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dlb-slot:disabled { cursor: default; }
.dlb-slot-box {
  width: 100%; height: 52px; border-radius: 14px; border: 1.5px dashed var(--handle);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.dlb-slot.is-filled .dlb-slot-box { border: 2px solid transparent; background: var(--beige); }
.dlb-slot.is-on .dlb-slot-box { border-color: var(--ink); }
.dlb-slot-box img { width: 44px; height: 36px; object-fit: contain; animation: dlb-pop var(--dur) var(--ease) both; }
@keyframes dlb-pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
.dlb-slot-n { font-family: var(--f-sans); font-size: 15px; line-height: 18px; color: var(--muted); }
.dlb-slot-label {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; line-height: 14px; color: var(--muted);
}
.dlb-slot.is-on .dlb-slot-label { color: var(--ink); font-weight: 600; }
.dlb-body { padding-bottom: 20px; }
.dlb-hint { padding: 18px var(--gutter) 10px; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--muted); }
.dlb-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 var(--gutter); }
.dlb-tile {
  height: 168px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r-tile); background: var(--beige); color: var(--ink); text-align: center;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.dlb-tile:active { transform: scale(0.98); }
.dlb-tile img { width: 120px; height: 80px; object-fit: contain; }
.dlb-tile-name { font-family: var(--f-sans); font-size: 16px; line-height: 19px; padding: 0 8px; }
.dlb-tile-sub { font-size: 13px; line-height: 16px; color: var(--muted); }
.dlb-tile.is-on { background: var(--ink); color: var(--white); }
.dlb-tile.is-on .dlb-tile-sub { color: var(--on-ink-muted); }
.dlb-plus {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px;
  background: var(--red); color: var(--white); font-size: 12px; line-height: 14px; font-weight: 600;
}
.dlb-sizes { display: flex; gap: 8px; padding: 0 var(--gutter) 6px; }
.dlb-size {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 10px; background: var(--beige); font-size: 13px; line-height: 16px; font-weight: 500;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.dlb-size.is-on { background: var(--ink); color: var(--white); font-weight: 600; }
.dlb-size-plus { color: var(--red); font-weight: 600; }
.dlb-size.is-on .dlb-size-plus { color: var(--white); }
.dlb-rows { display: flex; flex-direction: column; padding: 0 var(--gutter); }
.dlb-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dlb-row:last-child { border-bottom: 0; }
.dlb-ph { width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; background: var(--beige); display: flex; align-items: center; justify-content: center; }
.dlb-ph img { width: 52px; height: 48px; object-fit: contain; }
.dlb-row-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dlb-row-name { font-family: var(--f-sans); font-size: 17px; line-height: 20px; }
.dlb-row-sub { font-size: 13px; line-height: 16px; color: var(--muted); }
.dlb-row-sub.is-red { color: var(--red); }
.dlb-step {
  display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 4px; flex-shrink: 0;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white);
}
.dlb-step-b {
  width: 28px; height: 28px; border-radius: 999px; background: var(--beige); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease);
}
.dlb-step-b:active { transform: scale(0.9); }
.dlb-step-b:disabled { color: var(--on-ink-muted); cursor: default; }
.dlb-step-b:disabled:active { transform: none; }
.dlb-n { width: 22px; text-align: center; font-family: var(--f-sans); font-size: 16px; line-height: 20px; color: var(--dot-off); }
.dlb-step.has-n .dlb-n { color: var(--ink); }
.dlb-bar {
  position: sticky; bottom: 0; margin-top: auto; display: flex; flex-direction: column; gap: 12px;
  padding: 14px var(--gutter) calc(var(--safe-bottom) + var(--foot-gap));
  background: var(--white); border-top: 1px solid var(--line);
}
.dlb-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dlb-sep { font-size: 14px; line-height: 18px; color: var(--muted); }
.dlb-sep s { text-decoration: line-through 1px; margin-left: 4px; }
.dlb-save { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--dl-save-ink); white-space: nowrap; }

/* ---------- upsell sheet (F4b 07) ---------- */
.dlu { padding-bottom: 6px; }
.dlu-done { display: flex; align-items: center; gap: 14px; padding: 16px var(--gutter) 18px; border-bottom: 1px solid var(--line); }
.dlu-check {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.dlu-done-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dlu-done-title { font-family: var(--f-sans); font-size: 17px; line-height: 20px; }
.dlu-done-save { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--dl-save-ink); }
.dlu-head { display: flex; flex-direction: column; gap: 2px; padding: 20px var(--gutter) 0; }
.dlu-tiles { display: flex; gap: 8px; padding: 16px var(--gutter) 0; }
.dlu-tile {
  position: relative; flex: 1 1 0; min-width: 0; height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: var(--r-tile); background: var(--beige); color: var(--ink); text-align: center;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.dlu-tile:active { transform: scale(0.97); }
.dlu-tile img { width: 84px; height: 62px; object-fit: contain; }
.dlu-name { font-family: var(--f-sans); font-size: 15px; line-height: 18px; padding: 0 6px; }
.dlu-price { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; line-height: 14px; font-weight: 600; color: var(--muted); }
.dlu-mark {
  position: absolute; right: 8px; top: 8px; width: 24px; height: 24px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; background: var(--red); color: var(--white);
}
.dlu-tile.is-on { background: var(--ink); color: var(--white); }
.dlu-tile.is-on .dlu-price { background: var(--red); color: var(--white); }
.dlu-tile.is-on .dlu-mark { background: var(--white); color: var(--ink); }
.dlu-cta { display: flex; flex-direction: column; gap: 6px; padding: 24px var(--gutter) 0; }
.dlu-no { height: 44px; font-size: 15px; line-height: 18px; font-weight: 600; text-align: center; }

/* ---------- coupon sheet (F4b 09) ---------- */
.dl-coupon .sheet-body { display: flex; flex-direction: column; }
.dlcp { flex: 1 0 auto; display: flex; flex-direction: column; }
.dlcp .dl-pad { padding-top: 18px; }
.dlcp-cam {
  position: relative; display: block; width: 100%; height: 260px; overflow: hidden;
  border-radius: var(--r-card); background: var(--ink); color: var(--white);
}
.dlcp-corners { position: absolute; left: 50%; top: 34px; width: 270px; height: 170px; margin-left: -135px; }
.dlcp-card {
  position: absolute; left: 50%; top: 62px; width: 190px; height: 112px; margin-left: -95px;
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; text-align: left;
  border-radius: 10px; background: var(--beige); color: var(--ink);
  transform: rotate(-5deg);
}
.dlcp-art { font-family: var(--f-stripes); font-weight: 900; text-transform: uppercase; font-size: 22px; line-height: 22px; color: var(--red); }
.dlcp-art-sub { font-size: 10px; line-height: 13px; }
.dlcp-bars {
  width: 110px; height: 26px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1.6px, transparent 1.6px 3px, var(--ink) 3px 4.6px, transparent 4.6px 7px);
}
.dlcp-aim { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 13px; line-height: 16px; font-weight: 500; }
.dlcp-cam::after {
  content: ""; position: absolute; left: 50px; right: 50px; top: 40px; height: 2px; border-radius: 2px;
  background: var(--red); opacity: 0; transform: translateY(0);
}
.dlcp-cam.is-scanning::after { animation: dlcp-scan 700ms var(--ease) both; }
@keyframes dlcp-scan { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 1; transform: translateY(150px); } }
.dlcp-type { display: flex; flex-direction: column; gap: 10px; padding: 22px var(--gutter) 0; }
.dlcp-form { display: flex; gap: 8px; }
.dlcp-input {
  flex: 1 1 0; min-width: 0; height: 52px; padding: 0 20px; border: 2px solid transparent; outline: none;
  border-radius: 999px; background: var(--beige); font-size: 16px; line-height: 18px; text-transform: uppercase;
}
.dlcp-input::placeholder { text-transform: none; color: var(--dot-off); }
.dlcp-input:focus-visible { border-color: var(--ink); }
.dlcp-input.is-bad { border-color: var(--red); }
.dlcp-apply {
  height: 52px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--white);
  font-size: 15px; line-height: 18px; font-weight: 600;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.dlcp-apply:disabled { background: var(--line); color: var(--dot-off); cursor: default; }
.dlcp-err { font-size: 13px; line-height: 17px; color: var(--red); font-weight: 500; }
.dlcp-note { font-size: 13px; line-height: 17px; color: var(--muted); }
.dlcp-foot { margin-top: auto; padding: 24px var(--gutter) 18px; }
.dlcp-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 0; border-top: 1px solid var(--line); text-align: left; }
.dlcp-row-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dlcp-row-title { font-family: var(--f-sans); font-size: 16px; line-height: 20px; }
.dlcp-row > svg { flex-shrink: 0; }
/* empty slots: plain beige, faded number, no dashed border (same as the meal builder) */
.dlb-slot-box { border: 2px solid transparent; background: var(--beige); }
.dlb-slot:not(.is-filled) .dlb-slot-n { color: var(--ink); opacity: 0.22; font-size: 20px; }
