/* CIR Christmas last orders (ci-marketing-zynt, Dec 2026) : the approved mockups' styles (v4 strip, v6 line,
   popover design 2, site round v2 : basket, Delivery page D1, top bar T2), carried over with the cxm- prefix.
   Live tokens : burgundy #832E31, light gold #F1E3C2, cream #F5F0EA, ink #1A1A1A, grey #5A5549, border #E8E3DC, live green #2E7D32. */

/* ---------- The strip (product page ; the basket adds .cxm--basket) ---------- */
.cxm { position: relative; width: 0; min-width: 100%; max-width: 100%; margin: 10px 0; font-family: var(--cir-font-body); }
.cxm-n { font-variant-numeric: lining-nums tabular-nums; }
.cxm-u { font-size: 0.8em; font-weight: 500; margin-left: 1px; }
.cxm-row { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 0; background: #F5F0EA; border-radius: 4px; white-space: nowrap; box-sizing: border-box; }
.cxm-row > * { flex-shrink: 0; }
.cxm-tag { align-self: stretch; display: flex; align-items: center; gap: 7px; padding: 0 20px 0 12px; margin-right: 4px; background: #832E31; color: #FFFFFF; border-radius: 4px 0 0 4px;
  font: 600 12px/16px var(--cir-font-body); letter-spacing: 0.3px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.cxm-tag svg { flex: none; }
.cxm.is-ink .cxm-tag { background: #1A1A1A; color: #FFFFFF; }
.cxm-pre { font: 400 13px/20px var(--cir-font-body); color: #1A1A1A; }
.cxm .cxm-clk { font: 600 15px/20px var(--cir-font-body); color: #832E31; font-variant-numeric: lining-nums tabular-nums; }
.cxm.is-ny .cxm-clk { color: #1A1A1A; }
.cxm-link { margin-left: 0; color: #832E31; font: 600 13px/20px var(--cir-font-body); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(131,46,49,.4); }
.cxm-dates { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  color: #832E31; font: 600 13px/20px var(--cir-font-body); }
.cxm-dates span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(131,46,49,.4); }
.cxm-dates[aria-expanded="true"] span { text-decoration-color: #832E31; }
.cxm-dates:focus-visible, .cxm-pop-x:focus-visible, .cxm-link:focus-visible { outline: 2px solid #832E31; outline-offset: 2px; border-radius: 2px; }
/* the plain line : the live page's small grey text ; a sentence, so it may wrap */
.cxm-line { margin: 6px 0 0; font: 400 13px/20px var(--cir-font-body); color: #5A5549; }

/* ---------- The Dates popover (design 2 : two sections with live clocks) ---------- */
.cxm-pop { position: absolute; z-index: 30; top: 46px; right: 0; width: 350px; max-width: 100%; box-sizing: border-box; padding: 14px 16px 12px; background: #FFFFFF; border: 1px solid #E8E3DC; border-radius: 6px;
  box-shadow: 0 6px 20px rgba(26,26,26,.10); white-space: normal; text-align: left; }
.cxm-pop::before { content: ""; position: absolute; top: -6px; right: 26px; width: 10px; height: 10px; background: #FFFFFF; border-left: 1px solid #E8E3DC; border-top: 1px solid #E8E3DC; transform: rotate(45deg); }
.cxm-pop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cxm-pop-title { font: 600 14px/20px var(--cir-font-body); color: #1A1A1A; }
.cxm-pop-x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -6px -8px -6px 0; padding: 0; border: 0; background: none; color: #5A5549; cursor: pointer; border-radius: 4px; }
.cxm-pop-note { margin: 6px 0 0; padding-top: 8px; border-top: 1px solid #EFEAE3; font: 400 12px/18px var(--cir-font-body); color: #5A5549; }
.cxm-p2-sec { margin: 2px 0 0; padding: 7px 0 0; border-top: 1px solid #EFEAE3; font: 600 12px/16px var(--cir-font-body); color: #2E7D32; }
.cxm-p2-sec.is-after { color: #5A5549; }
.cxm-p2-row { padding: 6px 0; }
.cxm-p2-row.is-open { display: flex; flex-direction: column; }
.cxm-p2-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.cxm-p2-n { font: 600 13px/18px var(--cir-font-body); color: #1A1A1A; }
.cxm-p2-d { white-space: nowrap; font: 400 12px/18px var(--cir-font-body); color: #5A5549; }
.cxm-p2-clk { flex: none; padding: 0 6px; border-radius: 3px; background: #F5F0EA; font: 600 12px/20px var(--cir-font-body); color: #832E31; font-variant-numeric: lining-nums tabular-nums; }
.cxm-p2-clk .cxm-u { font-size: 11px; font-weight: 500; margin-left: 1px; }
.cxm-p2-row.is-shut { padding: 3px 0; }
/* the finishes delivered after Christmas are bold like the open ones (Myles 4 Dec 10:49) */
.cxm-p2-row.is-shut .cxm-p2-n { font-weight: 600; color: #1A1A1A; }
.cxm-p2-row.is-mine { margin: 0 -16px; padding-left: 13px; padding-right: 16px; border-left: 3px solid #832E31; background: #FAF6F1; }
.cxm-sel { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 3px; background: #F5F0EA; color: #6B2225; font: 600 11px/18px var(--cir-font-body); vertical-align: 1px; }

/* ---------- Basket : the strip, compact, above Proceed To Checkout ---------- */
.cxm--basket { margin: 4px 0 14px; }
.cxm--basket .cxm-row { padding-right: 10px; gap: 6px; }
.cxm--basket .cxm-tag { padding: 0 16px 0 10px; gap: 6px; margin-right: 2px; }
.cxm--basket .cxm-clk { font-size: 14px; }
.cxm--basket .cxm-line { margin-top: 8px; font-size: 13px; line-height: 19px; }
/* a line that misses Christmas (Hand Polished, Your Own Colour ; after its cut-off, any colour) */
.cxm-note { grid-column: 1 / -1; width: 100%; display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; font: 400 13px/18px var(--cir-font-body); color: #5A5549; }
.cxm-note svg { flex: none; margin-top: 2px; color: #5A5549; }
.cxm-note b { font-weight: 600; color: #1A1A1A; }

/* ---------- Phones ---------- */
@media (max-width: 768px) {
  .cxm-row { padding-right: 12px; gap: 5px; }
  .cxm-tag { padding: 0 15px 0 8px; gap: 5px; font-size: 11.5px; letter-spacing: 0; margin-right: 2px; }
  /* the product clock stays 15px on phones, as the approved mockup measures (the basket's is 13.5px, below) */
  .cxm-pre { font-size: 12px; }
  /* tap targets : 44px tall, standing 2px over the 40px strip */
  .cxm-link, .cxm-dates { display: inline-flex; align-items: center; min-height: 44px; margin-top: -2px; margin-bottom: -2px; font-size: 12px; }
  .cxm-dates { justify-content: center; min-width: 44px; padding: 0 10px; margin-right: -12px; box-sizing: border-box; }
  .cxm-pop { left: auto; right: 0; width: 350px; max-width: 100%; }
  .cxm-pop-x { width: 44px; height: 44px; margin: -12px -14px -12px 0; }
  /* the clock centred between the tag's arrow and the info icon (Myles 3 Dec 23:17) */
  .cxm.is-xmas .cxm-clk { margin-left: auto; margin-right: auto; }
  .cxm.is-xmas .cxm-clk + .cxm-dates { margin-left: 0; justify-content: flex-start; padding-left: 2px; }
  .cxm-line { font-size: 12px; line-height: 18px; }

  .cxm--basket .cxm-row { gap: 4px; padding-right: 10px; }
  .cxm--basket .cxm-tag { padding: 0 14px 0 8px; gap: 5px; }
  .cxm--basket .cxm-clk { font-size: 13.5px; }
  .cxm--basket .cxm-u { font-size: 11px; }
  .cxm--basket .cxm-pop { left: auto; right: -16px; width: 350px; max-width: calc(100% + 32px); }
  .cxm--basket .cxm-p2-d { white-space: normal; }
  .cxm--basket .cxm-line { font-size: 13px; line-height: 19px; }
  .cxm-note { font-size: 12px; }
}
@media (max-width: 375px) { .cxm-p2-d { white-space: normal; } }

/* ---------- Delivery page : the table under the page title (D1) ---------- */
.cxm-d-sec.del-section { padding-bottom: 0; }
.cxm-d { max-width: 1000px; margin: 0 auto; box-sizing: border-box; font-family: var(--cir-font-body); scroll-margin-top: 120px; }
.cxm-d-card { border: 1px solid #E8E3DC; border-radius: 6px; background: #FFFFFF; overflow: hidden; }
.cxm-d-head { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 20px 0 0; background: #F5F0EA; }
.cxm-d-head .cxm-tag { height: 44px; align-self: stretch; font-size: 13px; padding: 0 22px 0 16px; border-radius: 6px 0 0 0; }
.cxm-d.is-ny .cxm-d-head .cxm-tag { background: #1A1A1A; }
.cxm-d-title.del-leadtime-col-heading { margin: 0; }
.cxm-d-body { padding: 4px 20px 18px; }
.cxm-d-line { margin: 14px 0 6px; font: 400 15px/22px var(--cir-font-body); color: #1A1A1A; }
.cxm-d-table { width: 100%; border-collapse: collapse; font-family: var(--cir-font-body); }
.cxm-d-table th, .cxm-d-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid #EFEAE3; text-align: left; vertical-align: middle; }
.cxm-d-table thead th { padding-top: 12px; padding-bottom: 8px; font: 600 12px/16px var(--cir-font-body); color: #5A5549; border-bottom: 1px solid #E8E3DC; }
.cxm-d-table tbody th { width: 46%; font: 600 14px/20px var(--cir-font-body); color: #1A1A1A; }
.cxm-d-table td:last-child, .cxm-d-table th:last-child { padding-right: 0; }
.cxm-d-table tr.is-shut th { font-weight: 400; color: #5A5549; }
.cxm-d-ob { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.cxm-d-date { font: 400 14px/20px var(--cir-font-body); color: #1A1A1A; }
.cxm-d-date.is-past { color: #5A5549; text-decoration: line-through; text-decoration-color: rgba(90,85,73,.6); }
.cxm-d-nodate { font: 400 13px/20px var(--cir-font-body); color: #5A5549; }
.cxm-d-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 3px; background: #EFEAE3; color: #4A463D; font: 600 12px/16px var(--cir-font-body); white-space: nowrap; }
.cxm-d-chip.is-in { background: #E7F1E8; color: #1F5E24; }
.cxm-d .cxm-p2-clk { font-size: 13px; line-height: 24px; padding: 0 7px; font-weight: 600; }
.cxm-d .cxm-p2-clk .cxm-u { font-size: 11px; }
.cxm-d-foot { margin: 14px 0 0; font: 400 14px/21px var(--cir-font-body); color: #1A1A1A; }
.cxm-d-col { margin: 6px 0 0; font: 400 13px/20px var(--cir-font-body); color: #5A5549; }
.cxm-d-ny-clk { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font: 400 13px/20px var(--cir-font-body); color: #5A5549; }
.cxm-d-ny-clk .cxm-clk { font: 600 15px/20px var(--cir-font-body); color: #1A1A1A; font-variant-numeric: lining-nums tabular-nums; }
.cxm-d .cxm-d-ph { display: none; }
@media (max-width: 768px) {
  .cxm-d-head { flex-wrap: wrap; gap: 0 12px; padding-right: 0; }
  .cxm-d-head .cxm-tag { font-size: 12px; padding: 0 18px 0 12px; }
  .cxm-d-head .cxm-d-title { flex-basis: 100%; margin: 0; padding: 10px 16px 12px; }
  .cxm-d-body { padding: 0 16px 14px; }
  .cxm-d-line { font-size: 14px; line-height: 21px; }
  .cxm-d-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cxm-d-table, .cxm-d-table tbody { display: block; width: 100%; }
  .cxm-d-table tr { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 0; border-bottom: 1px solid #EFEAE3; }
  .cxm-d-table th, .cxm-d-table td { display: block; padding: 0; border: 0; width: auto !important; }
  .cxm-d-table tbody th { font-size: 14px; }
  .cxm-d-td-ob::before { content: attr(data-l) " "; font: 400 13px/20px var(--cir-font-body); color: #5A5549; }
  .cxm-d-td-ob .cxm-d-ob { display: inline; }
  .cxm-d .cxm-d-dt { display: none; }
  .cxm-d .cxm-d-ph { display: inline-block; }
  .cxm-d-td-ob.is-nodate { display: none; }
  .cxm-d-date { font-size: 13px; }
  .cxm-d-foot { font-size: 13px; line-height: 20px; }
}

/* ---------- Top bar (desktop) : the line in the middle of the burgundy bar (T2) ---------- */
.top-bar.cxm-t-on { gap: 24px; }
.cxm-t { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 12px; white-space: nowrap; overflow: hidden;
  font: 400 13px/16px var(--cir-font-body); letter-spacing: 0.5px; color: #FFFFFF; }
.cxm-t.is-hidden { display: none; }
.cxm-t b { font-weight: 600; }
.top-bar .cxm-t-link { display: inline; color: #FFFFFF !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.55); }
.cxm-t-link:focus-visible { outline: 2px solid #F1E3C2; outline-offset: 2px; border-radius: 2px; }
/* the live bar styles every span in it (flex, white) : put the line's own parts back */
.top-bar .cxm-t span { display: inline; gap: 0; color: inherit; font: inherit; letter-spacing: inherit; }
.top-bar .cxm-t .cxm-t-clk { color: #F1E3C2; font-weight: 600; letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums; }
.top-bar .cxm-t .cxm-u { font-size: 11px; font-weight: 500; margin-left: 1px; }
.top-bar .cxm-t .cxm-t-sep { display: inline-block; width: 1px; height: 14px; background: rgba(255,255,255,.35); }
.top-bar.cxm-t-fold .top-bar-left .hide-mobile { display: none; }
/* phones : no bar (the header is transparent over the photo : Myles 4 Dec 01:07) */
@media (max-width: 768px) { .cxm-t { display: none; } }
/* the Signature date on its own line under the 8th line (Myles 4 Dec 11:01) */
.cxm-line + .cxm-line { margin-top: 2px; }
