/* New-look cart and checkout, 2026-11-29 */
.ck-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  padding: 0;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--line);
}
.ck-steps li {
  flex: 1 1 auto;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #8A8A8A;
  padding: 0 8px 12px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.ck-steps li.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--red);
}
.ck-steps li.is-done { color: var(--ink); }
.ck-steps a { color: inherit; text-decoration: none; }
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.95fr);
  gap: 32px;
  align-items: start;
}
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-items li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-items h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.cart-items .meta { margin: 0; font-size: 13px; color: #5E5E5E; }
.cart-items .price { font-weight: 600; text-align: right; }
.cart-items .row-actions { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; font-size: 13px; }
.cart-items .row-actions button {
  background: none; border: 0; padding: 0; color: #5E5E5E; cursor: pointer; font: inherit; text-decoration: underline;
}
.cart-items .qty { width: 64px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.cart-items.compact li { padding: 10px 0; }
.cart-summary {
  background: #F7F6F4;
  border-radius: 12px;
  padding: 22px 20px;
}
.cart-summary.inline { margin: 24px 0; }
.cart-summary h2 { margin: 0 0 16px; font-size: 18px; }
.cart-sum-lines { display: grid; gap: 10px; margin: 0 0 18px; }
.cart-sum-lines .line { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; align-items: flex-start; }
.cart-sum-lines .line > span:first-child { min-width: 0; }
.cart-sum-lines .lbl { display: block; }
.cart-sum-lines .line span:last-child { font-weight: 500; text-align: right; white-space: nowrap; flex: 0 0 auto; }
.cart-sum-lines .note {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #6B6B6B;
  margin-top: 2px;
  text-align: left;
}
.cart-sum-lines .total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 16px;
  font-weight: 600;
}
.cart-region { margin: 0 0 14px; }
.cart-region label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.cart-region select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-primary { background: var(--red, #A7001F); color: #fff; font-weight: 700; }
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-primary:disabled {
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-weight: 700;
  text-decoration: none;
}
/* Beat site.css .btn-primary:hover { background: #000 } and .md-page a:hover underline. */
.md-page a.btn-primary:hover,
.md-page a.btn-primary:focus,
.md-page a.btn-primary:focus-visible,
.md-page a.btn-primary:active,
button.btn-primary:hover,
button.btn-primary:focus,
button.btn-primary:focus-visible,
button.btn-primary:active {
  background: var(--red-dark, #880019);
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-decoration: none;
  opacity: 1;
}
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-block { width: 100%; margin-top: 8px; }
.cart-empty { padding: 12px 0 40px; }
.cart-empty .btn { margin-right: 10px; }
.ck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ck-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.ck-card h2 { margin: 0 0 16px; font-size: 18px; }
.md-form-wide { max-width: none; }
.md-form .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.md-form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; box-sizing: border-box;
}
.ck-dl p { margin: 0 0 8px; font-size: 14px; }
.ck-dl strong { display: inline-block; min-width: 7em; }
.ship-method { margin: 8px 0 20px; padding: 14px 16px; background: #F7F6F4; border-radius: 8px; }
.ship-method h2 { margin: 0 0 6px; font-size: 16px; }
.ship-method p { margin: 0; color: #5E5E5E; font-size: 14px; }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px;
  border-radius: 999px; background: var(--red, #A7001F); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
}
#md-header-cart { position: relative; }
.bn-opt { font-weight: 400; color: #8A8A8A; }
@media (max-width: 800px) {
  .cart-layout, .ck-grid, .md-form .row.two { grid-template-columns: 1fr; }
  .ck-steps li { font-size: 11px; padding: 0 4px 10px; }
}

/* ===== Checkout polish 2026-12-01: same design language as the MDS checkout, in the beta burgundy accent. CSS only. ===== */
.md-cart-page .ck-steps { counter-reset: ckn; gap: 0; border-bottom: 0; padding: 4px 0 0; margin: 0 0 30px; align-items: flex-start; }
.md-cart-page .ck-steps li { counter-increment: ckn; display: flex; flex-direction: column; align-items: center; gap: 9px; border-bottom: 0; margin-bottom: 0; padding: 0 4px; font-size: 13px; font-weight: 500; color: #6B6B6B; position: relative; }
.md-cart-page .ck-steps li::before { content: counter(ckn); width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #CFCAC3; background: #fff; color: #6B6B6B; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; line-height: 1; position: relative; z-index: 1; }
.md-cart-page .ck-steps li + li::after { content: ""; position: absolute; top: 18px; right: calc(50% + 22px); width: calc(100% - 44px); height: 2px; background: #E8E6E3; }
.md-cart-page .ck-steps li.is-done + li::after, .md-cart-page .ck-steps li.is-done + li.is-current::after { background: var(--red, #A7001F); }
.md-cart-page .ck-steps li.is-current { color: var(--ink); font-weight: 600; border-bottom: 0; }
.md-cart-page .ck-steps li.is-current::before { background: var(--red, #A7001F); border-color: var(--red, #A7001F); color: #fff; box-shadow: 0 0 0 4px rgba(167,0,31,.12); }
.md-cart-page .ck-steps li.is-done { color: var(--red, #A7001F); font-weight: 600; }
.md-cart-page .ck-steps li.is-done::before { content: "\2713"; background: #FBEAED; border-color: var(--red, #A7001F); color: var(--red, #A7001F); font-size: 17px; }
.md-cart-page .ck-steps a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* cards */
.md-cart-page .ck-card { border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: 0 1px 2px rgba(26,26,26,.04); }
.md-cart-page .ck-card h2 { font-size: 20px; font-weight: 600; margin: 0 0 18px; letter-spacing: -0.005em; }
.md-cart-page .ck-card .aux { font-size: 13px; color: #6B6B6B; line-height: 1.5; }
.md-cart-page .ck-grid { gap: 26px; }
.md-cart-page .cart-summary { background: #FAFAF8; border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; }
.md-cart-page .ship-method { background: #FAFAF8; border: 1.5px solid var(--red, #A7001F); border-radius: 12px; padding: 16px 18px; }
.md-cart-page .ship-method h2 { font-size: 17px; font-weight: 600; }
/* fields */
.md-cart-page .md-form .row { margin: 0 0 18px; }
.md-cart-page .md-form label { font-size: 14px; font-weight: 600; margin: 0 0 7px; color: var(--ink); }
.md-cart-page .md-form input[type="text"], .md-cart-page .md-form input[type="email"], .md-cart-page .md-form input[type="password"], .md-cart-page .md-form select { height: 52px; padding: 0 16px; border: 1.5px solid #D9D5CF; border-radius: 12px; font-size: 16px; color: var(--ink); background: #fff; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.md-cart-page .md-form select { -webkit-appearance: none; appearance: none; padding-right: 46px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5l6 6 6-6' stroke='%23A7001F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.md-cart-page .md-form input:hover, .md-cart-page .md-form select:hover { border-color: #A9A39A; }
.md-cart-page .md-form input:focus, .md-cart-page .md-form select:focus { outline: 0; border-color: var(--red, #A7001F); box-shadow: 0 0 0 3px rgba(167,0,31,.14); }
.md-cart-page .md-form input::placeholder { color: #9A958E; }
.md-cart-page .cart-region select { height: 52px; padding: 0 46px 0 16px; border: 1.5px solid #D9D5CF; border-radius: 12px; font-size: 16px; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5l6 6 6-6' stroke='%23A7001F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.md-cart-page .cart-region label { font-size: 14px; }
.md-cart-page .cart-region select:focus { outline: 0; border-color: var(--red, #A7001F); box-shadow: 0 0 0 3px rgba(167,0,31,.14); }
/* buttons */
.md-cart-page .md-form .md-submit { background: var(--red, #A7001F); color: #fff; height: 52px; min-width: 240px; padding: 0 34px; border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: .01em; transition: background .15s, transform .1s, box-shadow .15s; }
.md-cart-page .md-form .md-submit:hover { opacity: 1; background: var(--red-dark, #880019); box-shadow: 0 6px 16px rgba(167,0,31,.26); transform: translateY(-1px); }
.md-cart-page .md-form .md-submit:active { transform: none; box-shadow: none; }
.md-cart-page .md-form .md-submit:focus-visible { outline: 3px solid rgba(167,0,31,.35); outline-offset: 2px; }
.md-cart-page .btn { min-height: 52px; padding: 0 30px; border-radius: 999px; font-size: 16px; }
.md-cart-page .btn-primary:hover, .md-cart-page a.btn-primary:hover { box-shadow: 0 6px 16px rgba(167,0,31,.26); }
.md-cart-page .btn-block { margin-top: 12px; }
@media (max-width: 800px) {
  .md-cart-page .ck-steps li { font-size: 11px; gap: 7px; padding: 0 2px; }
  .md-cart-page .ck-steps li::before { width: 32px; height: 32px; font-size: 14px; }
  .md-cart-page .ck-steps li + li::after { top: 16px; right: calc(50% + 19px); width: calc(100% - 38px); }
  .md-cart-page .ck-card { padding: 20px 16px; border-radius: 14px; }
  .md-cart-page .md-form .md-submit, .md-cart-page .btn { width: 100%; min-width: 0; }
}
/* header cart badge: the hidden attribute must win over display:inline-flex (empty cart = no red dot) */
.cart-count[hidden] { display: none; }
