/* Click and Collect on a computer or an iPad (src/collect/collect.js), after the B2C Design System
   desktop templates (C&C), on top of the Catering site styles (.ct) and in the venue's colours. */

/* Top banner: loyalty, then "Your order" once paid */
.ct--collect .ct-topbar .ct-wrap { justify-content: space-between; min-height: 44px; }
.ct--collect .ct-chip--bar { padding: 6px 14px; background: color-mix(in srgb, var(--brand-bg) 16%, transparent); color: var(--brand-bg); }
.ct--collect .ct-topbar--order { background: var(--brand-ink); color: var(--brand-bg); font-weight: 600; }
.ct--collect .ct-topbar-hit { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); min-height: 44px; }
.ct--collect .ct-round--flag img { width: 20px; height: 14px; border-radius: 3px; }
.ct--collect .ct-navbar .ct-round { box-shadow: none; background: transparent; }

/* Home */
.ct--collect .ct-intro { margin-bottom: 10px; }
.ct--collect .ct-addr { display: flex; align-items: center; gap: 8px; margin: 0 0 30px; font-weight: 500; font-size: 14.5px; }
.ct--collect .ct-featured { margin: 0 0 34px; }
.ct--collect .ct-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ct--collect .ct-tile b { text-transform: none; letter-spacing: -0.005em; font-size: 19px; }
.ct--collect .ct-empty svg { margin-bottom: 8px; }

/* Menu: tree on the left, one category at a time */
.ct--collect .ct-menu { grid-template-columns: 280px minmax(0, 1fr) 360px; }
.ct--collect .ct-tree { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 110px); overflow: auto; }
.ct--collect :is(.ct-tree-cat, .ct-tree-sec) { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; border-radius: 14px; font-family: var(--display); font-size: 18px; }
.ct--collect .ct-tree-sec { font-size: 16px; }
.ct--collect :is(.ct-tree-cat, .ct-tree-sec) svg { transform: rotate(90deg); transition: transform 0.2s; opacity: 0.7; }
.ct--collect :is(.ct-tree-cat, .ct-tree-sec)[aria-expanded="true"] { background: var(--soft); }
.ct--collect .ct-tree-sec[aria-expanded="true"] svg { transform: rotate(-90deg); }
.ct--collect :is(.ct-tree-cat, .ct-tree-sec):hover { background: var(--hover); }
.ct--collect .ct-tree-cat .ct-cthumb { width: 52px; height: 36px; }
.ct--collect .ct-tree-sub { display: flex; flex-direction: column; gap: 4px; padding-left: 20px; }
.ct--collect .ct-tree-groups { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 6px 16px; }
.ct--collect .ct-tree-group { all: unset; box-sizing: border-box; cursor: pointer; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.ct--collect .ct-tree-group:hover { background: var(--soft); }
.ct--collect .ct-msec { scroll-margin-top: 110px; }
.ct--collect .ct-group { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; color: var(--muted); font-size: 14px; scroll-margin-top: 110px; }
.ct--collect .ct-group i { flex: 1; height: 1px; background: var(--line-strong); }
.ct--collect .ct-mkt { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 140px; min-height: 120px; margin-top: 14px; width: 100%; border-radius: 18px; overflow: hidden; background: var(--soft); }

/* Dish dialog */
.ct--collect .ct-ocount.is-req { background: var(--soft); color: var(--ink); }
.ct--collect .ct-orule { margin: -2px 0 4px; color: var(--muted); font-size: 14px; }
.ct--collect .ct-optimg { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.ct--collect .ct-pm-img video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Dialogs */
.ct--collect .ct-center { text-align: center; }
.ct--collect .ct-lang { display: inline-flex; align-items: center; gap: 10px; }
.ct--collect .ct-lang img { border-radius: 3px; }
.ct--collect .ct-socials img { display: block; }
.ct--collect .ct-mtitle { font-size: 24px; margin: 0 0 4px; }
.ct--collect .ct-phone { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; width: 100%; margin-top: 10px; }
.ct--collect .ct-phone .ct-field { margin: 0; }
.ct--collect .ct-phone-cc { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fffdf8; font-weight: 500; }
.ct--collect .ct-phone-cc img { border-radius: 3px; }
.ct--collect .ct-check--lead { justify-content: flex-start; font-weight: 400; color: var(--muted); font-size: 13.5px; text-align: left; }
.ct--collect .ct-otp { display: grid; grid-template-columns: repeat(6, 44px); gap: 8px; margin: 12px 0 8px; }
.ct--collect .ct-otp span { display: grid; place-items: center; height: 52px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fffdf8; font-size: 20px; font-weight: 600; }
.ct--collect .ct-paid { align-items: center; justify-content: center; gap: 16px; min-height: 260px; text-align: center; }
.ct--collect .ct-paid h2 { font-size: 24px; }
.ct--collect .ct-paid-check { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-primary); color: var(--brand-onPrimary); }
.ct--collect .ct-switch { flex: none; position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--line-strong); transition: background 0.2s; }
.ct--collect .ct-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.ct--collect input:checked + .ct-switch { background: var(--brand-primary); }
.ct--collect input:checked + .ct-switch::after { transform: translateX(18px); }
.ct--collect .ct-check { margin-top: 14px; }

/* Checkout */
.ct--collect .ct-co-head { justify-content: space-between; padding: 20px 24px 4px; }
.ct--collect .ct-co-head h1 { font-size: 26px; }
.ct--collect .ct-seg--sm { margin: 0; padding: 3px; }
.ct--collect .ct-seg--sm button { padding: 7px 14px; font-size: 13.5px; }
.ct--collect .ct-seg--sm button[aria-pressed="false"] { color: var(--muted); }
.ct--collect .ct-addr-block { margin: 0; font-size: 14.5px; line-height: 1.45; }
.ct--collect .ct-addr-block b { font-weight: 600; }
.ct--collect .ct-sumline--flat { padding: 7px 0; }
.ct--collect .ct-co-sec .ct-loyal { margin-bottom: 20px; }
.ct--collect .ct-co-sec .ct-terms { margin: 18px 6px 12px; }
.ct--collect .ct-co-sum { padding: 6px 0 0; overflow: hidden; }
.ct--collect .ct-co-sum .ct-sumtot { border-top: 0; margin-top: 0; }
.ct--collect .ct-co-sum .ct-terms { margin: 22px 0 18px; }
.ct--collect .ct-co-sum .ct-bfoot { border-top: 1px solid var(--line); }
.ct--collect .ct-terms u { text-underline-offset: 2px; }
.ct--collect .ct-link--muted { margin: 0; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 400; text-decoration: none; padding: 0; }

/* Order page: map, then the ticket with zigzag edges */
.ct--collect .ct-conf-card { overflow: hidden; }
.ct--collect .ct-cc-map { position: relative; height: 200px; overflow: hidden; background: var(--soft); }
.ct--collect .ct-cc-map > img { width: 100%; height: 100%; object-fit: cover; }
.ct--collect .ct-cc-pin { position: absolute; transform: translate(-50%, -100%); color: var(--brand-primary); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.ct--collect .ct-cc-pin svg { fill: var(--brand-primary); stroke: var(--brand-bg); }
.ct--collect .ct-cc-osm { position: absolute; right: 6px; bottom: 26px; padding: 1px 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.75); font-size: 9px; color: #333; }
.ct--collect .ct-ticket--cc { position: relative; margin: -24px 16px 22px; padding: 26px 20px 26px; text-align: left; background: var(--card); box-shadow: 0 8px 22px rgba(46, 29, 20, 0.12); }
.ct--collect .ct-zig { position: absolute; left: 0; width: 100%; height: 8px; fill: var(--card); }
.ct--collect .ct-zig:not(.ct-zig--b) { top: -8px; }
.ct--collect .ct-zig--b { bottom: -8px; }
.ct--collect .ct-ticket--cc .ct-conf-title { font-size: 28px; }
.ct--collect .ct-ticket--cc .ct-conf-sub { margin: 0 0 18px; max-width: none; }
.ct--collect .ct-ticket + .ct-csec { border-top: 0; }
.ct--collect .ct-cnote { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; }
.ct--collect .ct-ccard { align-items: center; }
.ct--collect .ct-ccard .ct-chip { margin-top: 10px; }
.ct--collect .ct-ccard--mkt { display: block; padding: 0; overflow: hidden; background: var(--soft); }
.ct--collect .ct-ccard--mkt > div { padding: 18px 18px 14px; }
.ct--collect .ct-ccard--mkt > img { display: block; width: calc(100% - 8px); margin: 0 4px 4px; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 14px; }

@media (max-width: 1180px) { .ct--collect .ct-menu { grid-template-columns: 230px minmax(0, 1fr) 330px; } }
@media (max-width: 1080px) {
  .ct--collect .ct-menu { grid-template-columns: 220px minmax(0, 1fr); }
  .ct--collect .ct-menu > .ct-basket-col { display: none; }
  .ct--collect:is([data-view="menu"]) .ct-mobilebar.on { display: block; }
}
@media (max-width: 899px) {
  .ct--collect .ct-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct--collect .ct-menu { grid-template-columns: minmax(0, 1fr); }
  .ct--collect .ct-tree { position: sticky; top: 68px; z-index: 10; flex-direction: row; overflow-x: auto; max-height: none; margin: -26px calc(var(--gutter) * -1) 0; padding: 10px var(--gutter); background: var(--page); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .ct--collect .ct-tree-sub { display: none; }
  .ct--collect .ct-tree-cat { flex: none; width: auto; padding: 5px 14px 5px 5px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; }
  .ct--collect .ct-tree-cat[aria-expanded="true"] { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-onPrimary); }
  .ct--collect .ct-tree-cat svg { display: none; }
  .ct--collect .ct-tree-cat .ct-cthumb { width: 30px; height: 30px; border-radius: 50%; }
}

/* Click and Collect / Delivery on a computer or iPad: the brunch photo, bigger and less zoomed than the old strip,
   so the food shows. The pages keep their short banner at checkout and on the order page. */
@media (min-width: 641px) {
  .ct--collect .ct-hero { height: clamp(360px, 34vw, 540px); }
  .ct--collect .ct-hero-art { background-position: center 70%; }
  .ct--collect:is([data-view="checkout"], [data-view="confirm"]) .ct-hero { height: 150px; }
  .ct--collect:is([data-view="checkout"], [data-view="confirm"]) .ct-hero-art { background-position: center 78%; }
}
