/* Section 05 click & collect (#click-collect), owner S2 — design v5 sections/05-click-collect.html (sizes, colours,
   timings as its inline styles). A paper panel (.mc-panel--paper) with the heading, then two rows:
     customer side: the four steps (buttons, the current one has aria-current="step") and the decorative phone
       (one .cc-screen per step, the current one carries .is-on) with the honey blob (--cc-radius, --cc-turn) and,
       from 760px, the big step number;
     restaurant side: the four control points, the mascot (from 760px) and the decorative kitchen screen, whose
       demo elements are hidden with .cc-gone and the "out of stock" switch with .is-out. */

.cc { overflow-x: clip; } /* the turning blob never widens the page */
.cc__panel { padding: clamp(40px, 6vw, 96px) clamp(18px, 5vw, 72px); }
.cc-head { max-width: 900px; }
.cc-intro {
  margin: 18px 0 0;
  max-width: 660px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--mc-text);
  text-wrap: pretty;
}

.cc-side {
  margin: 0;
  padding-left: 6px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mc-link-hover);
}

/* ---------------------------------------------------------------- customer side */
.cc-customer {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.cc-steps { flex: 1 1 420px; min-width: 0; }
.cc-steps__list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cc-steps__list li { list-style: none; }
.cc-step {
  width: 100%;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 22px;
  border: 0;
  border-radius: 28px;
  background: var(--mc-paper);
  box-shadow: inset 0 0 0 2px var(--mc-sand);
  color: var(--mc-ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, transform .16s var(--mc-ease-out);
}
.cc-step:active { transform: scale(.985); }
.cc-step[aria-current="step"] { background: var(--mc-sand); box-shadow: inset 0 0 0 2px var(--mc-ink); }
.cc-step__num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mc-sand);
  color: var(--mc-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mc-serif);
  font-size: 19px;
  transition: background-color .2s ease, color .2s ease;
}
.cc-step[aria-current="step"] .cc-step__num { background: var(--mc-ink); color: var(--mc-honey); }
.cc-step__body { flex: 1; min-width: 0; padding-top: 2px; }
.cc-step__title { display: block; font-family: var(--mc-serif); font-size: clamp(20px, 1.8vw, 23px); line-height: 1.15; }
.cc-step__text { display: block; margin-top: 5px; font-size: 16px; line-height: 1.45; color: var(--mc-text); }

/* Phone column. Alone on its line (narrow screens) it is centred; next to the steps it takes no extra room. */
.cc-show {
  flex: 0 1 340px;
  min-width: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  position: relative;
}
.cc-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  height: 380px;
  max-width: 112%;
  transform: translate(-50%, -50%);
}
.cc-blob__shape {
  width: 100%;
  height: 100%;
  background: var(--mc-honey);
  opacity: .55;
  border-radius: var(--cc-radius);
  transform: rotate(var(--cc-turn));
  transition: border-radius 1.2s var(--mc-ease-inout), transform 1.2s var(--mc-ease-inout);
}
.cc-bignum {
  position: absolute;
  left: -56px;
  top: -18px;
  z-index: 2;
  font-family: var(--mc-serif);
  font-size: 150px;
  line-height: 1;
  color: var(--mc-ink);
}

.cc-phone {
  position: relative;
  width: 280px;
  height: 570px;
  border-radius: 52px;
  background: var(--mc-ink);
  padding: 10px;
  box-shadow: 0 50px 80px -36px rgba(46, 20, 8, .6), inset 0 0 0 2px var(--mc-brown);
}
.cc-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: #FFF6EC;
  color: #2A1608;
}
.cc-phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 5;
  width: 84px;
  height: 24px;
  border-radius: 999px;
  background: var(--mc-ink);
  transform: translateX(-50%);
}
.cc-screen { position: absolute; inset: 0; display: none; flex-direction: column; }
.cc-screen.is-on { display: flex; animation: mcFade .2s ease-out both; }
.cc-screen__title { font-family: var(--mc-serif); font-size: 22px; }
.cc-screen__sub { margin-top: 4px; font-size: 13px; color: var(--mc-brown); }
.cc-screen__foot { margin-top: auto; padding: 14px; }
.cc-phone-btn {
  height: 50px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.cc-phone-btn--red { background: #C8322A; color: #FFFFFF; }
.cc-phone-btn--caramel { margin-top: auto; background: var(--mc-caramel); }
.cc-phone-btn--dark { margin-top: auto; background: var(--mc-ink); color: var(--mc-on-dark); }

/* step 1: the menu */
.cc-menu__head { background: #C8322A; color: #FFFFFF; padding: 46px 20px 20px; border-radius: 0 0 30px 30px; }
.cc-menu__name { font-family: var(--mc-serif); font-size: 22px; }
.cc-menu__sub { margin-top: 4px; font-size: 13px; }
.cc-menu__items { padding: 16px 14px; display: flex; flex-direction: column; gap: 9px; }
.cc-menu__item { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 20px; background: #FFFFFF; }
.cc-menu__pic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--cc-tint); }
.cc-menu__dish { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; }
.cc-menu__added {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--mc-ink);
  color: var(--mc-honey);
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}
.cc-menu__add {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #C8322A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* step 2: the pickup slot */
.cc-slots { padding: 50px 16px 16px; }
.cc-slots__grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cc-slot {
  height: 48px;
  border-radius: 999px;
  background: var(--mc-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.cc-slot--picked { background: var(--mc-ink); color: var(--mc-honey); font-weight: 800; }
.cc-slot--full { background: none; border: 2px dashed #D8C1A3; color: #6B4A35; font-size: 13px; }

/* step 3: payment */
.cc-pay { padding: 50px 16px 16px; }
.cc-pay__sms {
  padding: 12px 14px;
  border-radius: 22px;
  background: var(--mc-ink);
  color: var(--mc-on-dark);
  font-size: 13px;
  line-height: 1.4;
  animation: mcUp .3s var(--mc-ease-out) .5s both;
}
.cc-pay__sms b { color: var(--mc-honey); }
.cc-pay__title { margin-top: 18px; }
.cc-pay__card {
  margin-top: 12px;
  padding: 16px;
  border-radius: 24px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.cc-pay__row { display: flex; justify-content: space-between; gap: 8px; }
.cc-pay__row--total { font-size: 16px; }
.cc-pay__rule { height: 2px; border-radius: 999px; background: var(--mc-sand); }

/* step 4: ready */
.cc-done { align-items: center; justify-content: center; padding: 50px 20px 20px; text-align: center; }
.cc-done__check {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--mc-caramel);
  color: var(--mc-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-done__check svg { display: block; }
.cc-done__title { margin-top: 22px; font-family: var(--mc-serif); font-size: 24px; line-height: 1.1; }
.cc-done__sub { margin-top: 8px; font-size: 14px; color: var(--mc-brown); }
.cc-done__bars { margin-top: 22px; width: 100%; display: flex; gap: 6px; }
.cc-done__bars span { flex: 1; height: 8px; border-radius: 999px; background: var(--mc-caramel); }
.cc-done__labels {
  margin-top: 8px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mc-brown);
}

/* ---------------------------------------------------------------- restaurant side */
.cc-resto {
  margin-top: clamp(40px, 6vw, 80px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  align-items: flex-start;
}
.cc-control { flex: 1 1 320px; min-width: 0; }
.cc-control .cc-side { padding-left: 2px; }
.cc-control__title {
  margin: 10px 0 0;
  font-family: var(--mc-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}
.cc-control__list { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cc-control__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 24px;
  background: var(--mc-sand);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}
.cc-control__icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mc-ink);
  color: var(--mc-honey);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-control__icon svg { display: block; }
.cc-mascot { margin-top: 24px; gap: 10px; }
.cc-mascot__pic { flex: none; width: 150px; }
.cc-mascot__bubble { margin-bottom: 64px; max-width: 220px; box-shadow: none; }

/* Kitchen screen */
.cc-kitchen { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cc-kitchen__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cc-kitchen__title { margin: 0; font-family: var(--mc-serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
.cc-kitchen__example { font-family: var(--mc-sans); font-weight: 600; font-size: 14px; color: #6B4A35; }
.cc-replay {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--mc-sand);
  color: var(--mc-ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color .2s ease, transform .16s var(--mc-ease-out);
}
.cc-replay:hover { background-color: var(--mc-sand-dark); }
.cc-replay:active { transform: scale(.97); }
.cc-replay svg { flex: none; display: block; }

.cc-screenk {
  border-radius: clamp(26px, 3vw, 36px);
  background: var(--mc-ink);
  padding: clamp(8px, 1vw, 12px);
  box-shadow: 0 40px 60px -36px rgba(46, 20, 8, .6), inset 0 0 0 2px var(--mc-brown);
}
.cc-screenk__inner {
  position: relative;
  border-radius: clamp(20px, 2.4vw, 28px);
  background: var(--mc-cream);
  color: var(--mc-ink);
  padding: clamp(12px, 1.6vw, 18px);
  overflow: hidden;
}
.cc-gone { display: none !important; }
/* A ticket that comes and goes in a column keeps its place (each column always holds its tallest state), and its
   entrance animation starts again each time it shows. */
.cc-k-ticket.cc-hold { visibility: hidden; animation: none; }

.cc-k-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 2px 4px 14px;
}
.cc-k-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cc-k-logo {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #C8322A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mc-serif);
  font-size: 17px;
}
.cc-k-who { min-width: 0; }
.cc-k-who b { display: block; font-size: 15px; }
.cc-k-who span { display: block; font-size: 12px; color: #6B4A35; }
.cc-k-status { display: flex; gap: 6px; }
.cc-k-clock,
.cc-k-live {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}
.cc-k-clock { background: #FFFFFF; font-variant-numeric: tabular-nums; }
.cc-k-live { gap: 6px; background: var(--mc-ink); color: var(--mc-honey); }
.cc-k-live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mc-honey); }

.cc-k-sms {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  z-index: 4;
  max-width: 300px;
  margin-left: auto;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--mc-ink);
  color: var(--mc-on-dark);
  box-shadow: 0 20px 30px -16px rgba(46, 20, 8, .6);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: mcPop .35s var(--mc-ease-out) both;
}
.cc-k-sms__tag {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--mc-honey);
  color: var(--mc-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.cc-k-sms__text { font-size: 13px; line-height: 1.4; }
.cc-k-sms__text b { color: var(--mc-honey); }

.cc-k-cols {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.cc-k-col {
  flex: 1 0 200px;
  min-height: 200px;
  scroll-snap-align: start;
  border-radius: 20px;
  background: var(--mc-sand);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cc-k-col__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  font-weight: 800;
  font-size: 14px;
}
.cc-k-count {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-k-count--caramel { background: var(--mc-caramel); }
.cc-k-count--honey { background: var(--mc-honey); }

.cc-k-ticket {
  padding: 12px 14px;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 8px 16px -12px rgba(46, 20, 8, .45);
}
.cc-k-ticket--new {
  box-shadow: 0 0 0 2px var(--mc-ink), 0 8px 16px -12px rgba(46, 20, 8, .45);
  animation: mcUp .35s var(--mc-ease-out) both;
}
.cc-k-ticket--in { animation: mcUp .35s var(--mc-ease-out) both; }
.cc-k-ticket--past { opacity: .7; }
.cc-k-ticket__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cc-k-ticket__no { font-family: var(--mc-serif); font-size: 20px; line-height: 1; white-space: nowrap; }
.cc-k-ticket__time {
  flex: none;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--mc-cream);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.cc-k-ticket__items { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--mc-text); }
.cc-k-ticket__btn {
  margin-top: 10px;
  height: 36px;
  border-radius: 999px;
  background: var(--mc-caramel);
  color: var(--mc-ink);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-k-ticket--dark { background: var(--mc-ink); color: var(--mc-on-dark); box-shadow: none; }
.cc-k-ticket--dark .cc-k-ticket__time { background: var(--mc-ink-3); }
.cc-k-ticket--dark .cc-k-ticket__items { color: var(--mc-on-dark-2); }
.cc-k-ticket__sent { margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--mc-honey); }
.cc-k-wait {
  flex: 1;
  min-height: 80px;
  border-radius: 16px;
  border: 2px dashed #D8C1A3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #6B4A35;
}

/* The "out of stock" switch: on (online) until the last step of the demo, then off (.is-out). */
.cc-k-stock {
  margin-top: 10px;
  min-height: 56px;
  padding: 8px 10px 8px 18px;
  border-radius: 999px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
}
.cc-k-stock__label { font-weight: 800; font-size: 14px; }
.cc-k-stock__item { flex: 1; min-width: 110px; font-size: 14px; font-weight: 600; color: var(--mc-ink); transition: color .2s ease; }
.cc-k-stock.is-out .cc-k-stock__item { color: #A38C76; text-decoration: line-through; }
/* "Online" and "Sold out" share one cell, as wide as the longer one: the row doesn't rewrap when the item goes off. */
.cc-k-stock__state { display: inline-grid; font-size: 13px; font-weight: 700; color: #6B4A35; }
.cc-k-stock__on,
.cc-k-stock__off { grid-area: 1 / 1; }
.cc-k-stock__off,
.cc-k-stock.is-out .cc-k-stock__on { visibility: hidden; }
.cc-k-stock.is-out .cc-k-stock__off { visibility: visible; }
.cc-k-switch {
  flex: none;
  width: 48px;
  height: 28px;
  padding: 3px;
  border-radius: 999px;
  background: var(--mc-caramel);
  transition: background-color .2s ease;
}
.cc-k-switch__knob {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mc-paper);
  transform: translateX(20px);
  transition: transform .2s var(--mc-ease-out);
}
.cc-k-stock.is-out .cc-k-switch { background: var(--mc-brown); }
.cc-k-stock.is-out .cc-k-switch__knob { transform: translateX(0); }

/* ---------------------------------------------------------------- phones (design: notMobile, phoneZoom .82) */
@media (max-width: 759.98px) {
  .cc-bignum,
  .cc-mascot { display: none; }
  .cc-phone { zoom: .82; }
}
