/* r8 checkout and order confirmation (Laravel pages /checkout and /order/{ref}).
   No Figma frame exists for these two pages: they are built in his system (r7): Plus Jakarta Sans, the 12px / 6px tracked
   blue eyebrow, #101828 headings, #667085 body, 52px blue buttons with a 12px radius, #EAECF0 bordered cards with a 16px
   radius, white ground, the rp-crumbs breadcrumb (r7-pages.css). Loaded last, after r7-pages. */

:root { --ck-ink: #101828; --ck-g7: #344054; --ck-g6: #475467; --ck-g5: #667085; --ck-g3: #D0D5DD; --ck-g2: #EAECF0; --ck-g1: #F2F4F7; --ck-blue: #444CE7; --ck-blue-dn: #3538CD; --ck-tint: #E9EBFC; --ck-red: #D92D20; --ck-red-bg: #FEF3F2; --ck-green: #25D366; --ck-font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif; }

.ck { font-family: var(--ck-font); color: var(--ck-ink); background: #fff; padding-bottom: clamp(64px, 8vw, 128px); }
.ck .rp-crumbs { padding-top: clamp(20px, 2.9vw, 55px); }
.ck .rp-crumbs span[aria-current] { color: var(--ck-ink); }

/* head: eyebrow, heading, lead, as the rp-head pattern */
.ck-head { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding-top: clamp(28px, 3.3vw, 56px); }
.ck-eye { margin: 0; font-weight: 800; font-size: 12px; line-height: 17px; letter-spacing: 6px; text-transform: uppercase; color: var(--ck-blue); }
.ck-eye--red { color: var(--ck-red); }
.ck-h { margin: 0; font-weight: 800; font-size: clamp(30px, 2.75vw, 48px); line-height: 1.08; letter-spacing: -0.02em; color: var(--ck-ink); max-width: 18ch; }
.ck-lead { margin: 0; font-size: clamp(16px, 0.94vw, 18px); line-height: 1.56; color: var(--ck-g5); max-width: 640px; }
.ck-lead b { font-weight: 600; color: var(--ck-ink); }

/* the success mark: a blue check in a tinted ring, above the eyebrow */
.ck-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ck-tint); color: var(--ck-blue); margin-bottom: 4px; }
.ck-mark svg { width: 28px; height: 28px; }
.ck-mark--wait { background: var(--ck-g1); color: var(--ck-g6); }
.ck-mark--wait svg { animation: ck-spin 1.2s linear infinite; }
.ck-mark--fail { background: var(--ck-red-bg); color: var(--ck-red); }
@keyframes ck-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ck-mark--wait svg { animation: none; } }

/* two columns from 1024: the main column and a sticky side column */
.ck-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; align-items: start; margin-top: clamp(28px, 3vw, 48px); }
.ck-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.ck-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; position: sticky; top: calc(var(--r7-hdr-h, 92px) + 24px); }

/* cards */
.ck-card { background: #fff; border: 1px solid var(--ck-g2); border-radius: 16px; padding: clamp(20px, 2vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.ck-card__t { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; }
.ck-card__t h2, .ck-card__t .ck-t { margin: 0; font-weight: 700; font-size: 18px; line-height: 24px; color: var(--ck-ink); }
.ck-card__t a, .ck-card__t button { font: 500 14px/18px var(--ck-font); color: var(--ck-blue); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.ck-card__t a:hover, .ck-card__t button:hover { text-decoration: underline; }

/* order facts: number, date, payment, as a definition row strip */
.ck-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px 24px; margin: 0; }
.ck-facts div { display: flex; flex-direction: column; gap: 4px; }
.ck-facts dt { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ck-g5); }
.ck-facts dd { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ck-ink); overflow-wrap: anywhere; }
.ck-facts dd small { display: block; font-weight: 400; font-size: 14px; color: var(--ck-g5); }

/* the lines: photo, name, options, quantity x price, line total */
.ck-lines { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ck-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--ck-g2); }
.ck-line:first-child { border-top: 0; padding-top: 0; }
.ck-lines--tight .ck-line { padding: 14px 0; }
.ck-line__img { display: block; width: 72px; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--ck-g1); border: 1px solid var(--ck-g2); }
.ck-line__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ck-line__img--none { display: grid; place-items: center; color: var(--ck-g3); }
.ck-line__img--none svg { width: 24px; height: 24px; }
.ck-line__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ck-line__name { margin: 0; font-weight: 700; font-size: 16px; line-height: 22px; color: var(--ck-ink); }
.ck-line__name a { color: inherit; text-decoration: none; }
.ck-line__name a:hover { color: var(--ck-blue); }
.ck-line__opt, .ck-line__qty { margin: 0; font-size: 14px; line-height: 20px; color: var(--ck-g5); }
.ck-line__sum { margin: 0; font-weight: 600; font-size: 16px; line-height: 22px; color: var(--ck-ink); white-space: nowrap; }

/* totals */
.ck-totals { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-top: 16px; border-top: 1px solid var(--ck-g2); }
.ck-totals div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; line-height: 22px; color: var(--ck-g6); }
.ck-totals dd { margin: 0; color: var(--ck-ink); font-weight: 500; }
.ck-totals .ck-totals__all { padding-top: 12px; margin-top: 2px; border-top: 1px solid var(--ck-g2); font-size: 18px; line-height: 24px; color: var(--ck-ink); font-weight: 700; }
.ck-totals .ck-totals__all dd { font-weight: 800; font-size: 20px; }
.ck-totals__gst { margin: 0; font-size: 13px; line-height: 18px; color: var(--ck-g5); }

/* promo code, above the totals (Checkout.jsx): a link until asked for, then a field and Apply; 44px targets */
.ck-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 12px; border-top: 1px solid var(--ck-g2); }
.ck-promo__link { min-height: 44px; padding: 0; border: 0; background: none; font: 500 14px/18px var(--ck-font); color: var(--ck-blue); cursor: pointer; text-align: left; }
.ck-promo__link:hover { text-decoration: underline; }
.ck-promo__link:disabled { opacity: .55; cursor: default; }
.ck-promo__got { margin: 0; font-size: 14px; line-height: 20px; color: var(--ck-g6); }
.ck-promo__got b { color: var(--ck-ink); font-weight: 700; letter-spacing: .02em; }
.ck-promo .ck-field__err { flex-basis: 100%; margin: 0; }
.ck-promo--form { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 16px; }
.ck-promo__label { font-size: 14px; line-height: 18px; font-weight: 500; color: var(--ck-g7); }
.ck-promo__row { display: flex; gap: 8px; }
.ck-promo__row input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--ck-g3); border-radius: 6px; background: #fff; font: 400 15px/20px var(--ck-font); color: var(--ck-ink); text-transform: uppercase; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.ck-promo__row input:focus { outline: none; border-color: var(--ck-blue); box-shadow: 0 0 0 3px var(--ck-tint); }
.ck-promo__row input[aria-invalid="true"] { border-color: var(--ck-red); }
.ck-promo__apply { min-height: 44px; padding: 0 20px; border-radius: 6px; font-size: 15px; }

/* the address form: 40px fields with the #D0D5DD border and 6px radius of his Input Fields */
.ck-form { display: flex; flex-direction: column; gap: 24px; }
.ck-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ck-field { display: flex; flex-direction: column; gap: 6px; }
.ck-field--wide { grid-column: 1 / -1; }
.ck-field > span { font-size: 14px; line-height: 18px; font-weight: 500; color: var(--ck-g7); }
.ck-field input, .ck-field select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--ck-g3); border-radius: 6px; background: #fff; font: 400 15px/20px var(--ck-font); color: var(--ck-ink); box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.ck-field select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.ck-field input::placeholder { color: var(--ck-g5); }
.ck-field input:focus, .ck-field select:focus { outline: none; border-color: var(--ck-blue); box-shadow: 0 0 0 3px var(--ck-tint); }
.ck-field input[aria-invalid="true"], .ck-field select[aria-invalid="true"] { border-color: var(--ck-red); }
.ck-field__err { font-size: 13px; line-height: 18px; color: var(--ck-red); }

/* buttons: his Button (52, radius 12, 16/24 semibold) */
.ck-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 13px 24px; border-radius: 12px; border: 1px solid var(--ck-blue); background: var(--ck-blue); color: #fff; font: 600 16px/1.5 var(--ck-font); letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.ck-btn:hover { background: var(--ck-blue-dn); border-color: var(--ck-blue-dn); }
.ck-btn:disabled { opacity: .55; cursor: default; }
.ck-btn:focus-visible { outline: 2px solid var(--ck-blue); outline-offset: 2px; }
.ck-btn svg { width: 20px; height: 20px; flex: none; }
.ck-btn--line { background: #fff; color: #1A202C; border-color: #596780; }
.ck-btn--line:hover { background: #1A202C; border-color: #1A202C; color: #fff; }
.ck-btn--wa { background: var(--ck-green); border-color: var(--ck-green); color: #fff; }
.ck-btn--wa:hover { background: #1FB457; border-color: #1FB457; }
.ck-btn--block { width: 100%; }
.ck-acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* the pay block: button, error, payment marks, the no-COD line */
.ck-pay { display: flex; flex-direction: column; gap: 14px; }
.ck-err { margin: 0; padding: 12px 14px; border: 1px solid #FDA29B; background: var(--ck-red-bg); border-radius: 8px; font-size: 14px; line-height: 20px; color: #B42318; }
.ck-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ck-marks li { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--ck-g2); border-radius: 6px; font-size: 12px; line-height: 1; font-weight: 600; color: var(--ck-g6); background: #fff; }
.ck-marks li img { display: block; width: 36px; height: 22px; object-fit: contain; }
.ck-marks__note { margin: 0; font-size: 13px; line-height: 18px; color: var(--ck-g5); }

/* facts strip under the form and on the confirmation: shipping, returns, payment, from the site's own content */
.ck-facts-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ck-facts-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--ck-g6); }
.ck-facts-list li svg { width: 18px; height: 18px; flex: none; color: var(--ck-blue); margin-top: 1px; }
.ck-facts-list b { font-weight: 600; color: var(--ck-ink); }

/* what happens next: numbered steps */
.ck-steps { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: ck; }
.ck-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; counter-increment: ck; }
.ck-steps li::before { content: counter(ck); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ck-tint); color: var(--ck-blue); font-weight: 700; font-size: 14px; }
.ck-steps b { display: block; font-weight: 600; font-size: 16px; line-height: 22px; color: var(--ck-ink); }
.ck-steps p { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--ck-g5); }
.ck-steps a { color: var(--ck-blue); text-decoration: none; }
.ck-steps a:hover { text-decoration: underline; }

/* address block */
.ck-addr { margin: 0; font-style: normal; font-size: 15px; line-height: 23px; color: var(--ck-g6); }
.ck-addr b { display: block; font-weight: 600; color: var(--ck-ink); }

.ck-quiet { margin: 0; font-size: 14px; line-height: 20px; color: var(--ck-g5); }

/* tablet and phone */
@media (max-width: 1023px) {
  .ck-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ck-side { position: static; }
  .ck-side--first { order: -1; }
}
@media (max-width: 719px) {
  .ck-fields { grid-template-columns: minmax(0, 1fr); }
  .ck-field--wide { grid-column: auto; }
  .ck-h { font-size: 28px; }
  .ck-card { padding: 20px; gap: 16px; }
  .ck-line { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; }
  .ck-line__img { width: 56px; }
  .ck-acts .ck-btn { width: 100%; }
  .ck-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  /* 16px keeps iOS Safari from zooming the page on focus */
  .ck-field input, .ck-field select, .ck-promo__row input { font-size: 16px; }
}
@media (max-width: 400px) {
  .ck-facts { grid-template-columns: 1fr; }
}
