/*
 * The online store's look: the buy box on product pages, the "added to cart" panel, the
 * cart, the checkout, the thank-you page and My account. Its own clean system type and
 * spacing, scoped to .csi-shop / .csi-buy / .csi-drawer so main.css and the old pages are
 * untouched. Sizes are in px on purpose (main.css sets the root font size to 10px).
 */

.csi-shop,
.csi-buy,
.csi-drawer,
.csi-modal {
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --soft-2: #f3f4f6;
  --brand: #f57920;
  --brand-dark: #c2540a;
  --brand-soft: #fff4ec;
  --good: #15803d;
  --good-soft: #ecfdf3;
  --bad: #b91c1c;
  --bad-soft: #fef2f2;
  --warn: #b45309;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.05), 0 1px 3px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 18px 50px -12px rgba(17, 24, 39, 0.28);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.csi-shop *,
.csi-buy *,
.csi-drawer *,
.csi-modal * {
  box-sizing: border-box;
}

/* The site's own rules (Khula, capitals, coloured links) stop at the store's boxes. */
/* :not(#csi-x) lifts these above the site's own longer selectors (.product_info ul li). */
:is(.csi-shop, .csi-buy, .csi-drawer, .csi-modal) :is(h1, h2, h3, h4, p, ul, ol, li, a, span, b, strong, small, em, label, button, input, select, textarea, dl, dd, dt, div, i):not(#csi-x) {
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
}
:is(.csi-shop, .csi-buy, .csi-drawer, .csi-modal) :is(h1, h2, h3, h4, p, ul, ol, li, dl, dd, dt) {
  margin-top: 0;
}
:is(.csi-shop, .csi-buy, .csi-drawer, .csi-modal) a:not(.csi-btn) {
  background: none;
}

/* ─── buttons, inputs ─── */
.csi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
  -webkit-appearance: none;
  appearance: none;
}
.csi-btn:active {
  transform: translateY(1px);
}
.csi-btn--primary {
  background: var(--brand);
  color: #111;
}
.csi-btn--primary:hover {
  background: #ff8a3a;
  color: #111;
}
.csi-btn--dark {
  background: var(--ink);
  color: #fff;
}
.csi-btn--dark:hover {
  background: #000;
  color: #fff;
}
.csi-btn--line {
  background: #fff;
  color: var(--ink);
  border-color: #d1d5db;
}
.csi-btn--line:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.csi-btn--block {
  width: 100%;
}
.csi-btn--small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}
.csi-btn[disabled],
.csi-btn.is-busy {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.csi-btn .csi-spin {
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: csi-spin 0.7s linear infinite;
}
@keyframes csi-spin {
  to {
    transform: rotate(360deg);
  }
}
.csi-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.csi-link:hover {
  color: var(--brand-dark);
}

.csi-qty {
  display: inline-flex;
  align-items: stretch;
  height: 50px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.csi-qty button {
  width: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.csi-qty button:hover:not([disabled]) {
  background: var(--soft-2);
}
.csi-qty button[disabled] {
  opacity: 0.3;
  cursor: default;
}
.csi-qty input {
  width: 42px;
  border: 0;
  text-align: center;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}
.csi-qty input::-webkit-outer-spin-button,
.csi-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.csi-qty--small {
  height: 38px;
}
.csi-qty--small button {
  width: 34px;
  font-size: 18px;
}
.csi-qty--small input {
  width: 34px;
  font-size: 15px;
}

.csi-field {
  display: block;
  position: relative;
  margin: 0 0 12px;
}
.csi-field > span {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.csi-input,
.csi-select {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.csi-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
textarea.csi-input {
  height: auto;
  min-height: 110px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}
.csi-input:focus,
.csi-select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
}
.csi-input.is-error,
.csi-select.is-error {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}
.csi-help {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.csi-error {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--bad);
  font-weight: 500;
}
.csi-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.csi-grid3 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0 12px;
}
@media (max-width: 560px) {
  .csi-grid2,
  .csi-grid3 {
    grid-template-columns: 1fr;
  }
}
.csi-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
  color: var(--ink-2);
}
.csi-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}

.csi-note {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.csi-note--bad {
  background: var(--bad-soft);
  border-color: #fecaca;
  color: #7f1d1d;
}
.csi-note--good {
  background: var(--good-soft);
  border-color: #bbf7d0;
  color: #14532d;
}
.csi-note--brand {
  background: var(--brand-soft);
  border-color: #fed7aa;
}

/* ─── the buy box on a product page ───
   In the site's own look (Khula, the orange buttons with 2-3px corners and capitals, the green
   of "You save"), as part of the product details rather than a card on top of them. */
.csi-buy {
  font-family: Khula, Verdana, Geneva, sans-serif;
  color: #222;
  margin: 20px 0 8px;
  padding: 18px 0 0;
  border-top: 1px solid #e5e5e5;
  max-width: 470px;
}
.csi-buy--inline {
  margin: 14px 0 0;
  padding: 0;
  border-top: 0;
  max-width: none;
}
.csi-buy__stock {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.3;
}
.csi-buy__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #038625;
  box-shadow: 0 0 0 3px rgba(3, 134, 37, 0.14);
}
.csi-buy__stock strong {
  font-weight: 700;
  color: #038625;
}
.csi-buy__stock > span:not(.csi-buy__dot) {
  color: #6b6b6b;
}
.csi-buy__stock.is-low .csi-buy__dot {
  background: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16);
}
.csi-buy__stock.is-low strong {
  color: #b45309;
}
.csi-buy__stock.is-out .csi-buy__dot {
  background: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.14);
}
.csi-buy__stock.is-out strong {
  color: #b91c1c;
}
.csi-buy__row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.csi-buy__qty {
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;
  height: 48px;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  background: #fff;
}
.csi-buy__qty button {
  width: 38px;
  border: 0;
  background: none;
  color: #222;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.csi-buy__qty button:hover {
  color: #b85108;
}
.csi-buy__qty input {
  width: 38px;
  border: 0;
  border-left: 1px solid #ececec;
  border-right: 1px solid #ececec;
  text-align: center;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  background: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.csi-buy__qty input::-webkit-outer-spin-button,
.csi-buy__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.csi-buy .csi-buy__add:not(#csi-x),
.csi-buy .csi-buy__now:not(#csi-x) {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 3px 18px 0;
  border: 0;
  border-radius: 3px;
  font-family: Khula, Verdana, Geneva, sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s;
}
.csi-buy .csi-buy__add:not(#csi-x) {
  flex: 1 1 auto;
  background: #f57920;
  color: #000;
}
.csi-buy .csi-buy__add:not(#csi-x):hover {
  background: #e86c12;
  box-shadow: 0 6px 16px -8px rgba(245, 121, 32, 0.9);
}
.csi-buy .csi-buy__now:not(#csi-x) {
  width: 100%;
  background: #1f1f1f;
  color: #fff;
}
.csi-buy .csi-buy__now:not(#csi-x):hover {
  background: #000;
}
.csi-buy .csi-buy__add:not(#csi-x):disabled {
  width: 100%;
  background: #e5e5e5;
  color: #777;
  cursor: default;
  box-shadow: none;
}
.csi-buy__perks {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0 0 !important;
  padding: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #555;
}
.csi-buy__perks li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.csi-buy__perks li::before {
  content: none !important;
}
.csi-buy__perks svg {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-top: -1px;
  color: #b85108;
}
.csi-buy__more {
  display: inline;
}
.csi-buy__more summary {
  display: inline;
  cursor: pointer;
  color: #222;
  text-decoration: underline;
  text-underline-offset: 2px;
  list-style: none;
}
.csi-buy__more summary::-webkit-details-marker {
  display: none;
}
.csi-buy__more[open] summary {
  color: #b85108;
}
.csi-buy__more > span {
  display: block;
  margin-top: 6px;
  padding: 10px 12px;
  border-left: 2px solid #f57920;
  background: #faf7f4;
  color: #444;
}
.csi-buy__more a {
  color: #222;
  text-decoration: underline;
}
.csi-buy__ask {
  margin: 16px 0 0 !important;
  font-size: 14px;
  color: #777;
}
.csi-buy .csi-buy__ask a {
  color: #222 !important;
  background: none !important;
  padding: 0 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.csi-dashcam-box--shop {
  margin-top: 14px;
}
/* The product page sets every line in its details to 18px bold; not these. */
.csi-buy .csi-buy__stock:not(#csi-x) {
  font-size: 15px;
  font-weight: 400;
}
.csi-buy .csi-buy__perks li:not(#csi-x),
.csi-buy .csi-buy__ask:not(#csi-x) {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

/* ─── "added to cart" panel ─── */
.csi-drawer {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  justify-content: flex-end;
  background: rgba(17, 24, 39, 0.4);
  animation: csi-fade 0.18s ease-out;
}
@keyframes csi-fade {
  from {
    opacity: 0;
  }
}
.csi-drawer__panel {
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: csi-slide 0.22s ease-out;
}
@keyframes csi-slide {
  from {
    transform: translateX(40px);
    opacity: 0.6;
  }
}
.csi-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.csi-drawer__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.csi-drawer__head h2 svg {
  width: 22px;
  height: 22px;
  color: var(--good);
}
.csi-x {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.csi-x:hover {
  background: var(--soft-2);
}
.csi-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 20px;
}
.csi-drawer__foot {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.csi-mini {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.csi-mini:last-child {
  border-bottom: 0;
}
.csi-mini img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.csi-mini b {
  display: block;
  font-weight: 600;
  line-height: 1.35;
}
.csi-mini small {
  color: var(--muted);
  font-size: 13px;
}
.csi-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
  padding: 4px 0;
}
.csi-row--total {
  font-size: 19px;
  font-weight: 750;
  color: var(--ink);
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

/* ─── page frame (cart, account) ─── */
.csi-shop {
  background: #fff;
  padding: 28px 16px 64px;
  font-size: 16px;
  line-height: 1.5;
}
.csi-wrap {
  max-width: 1160px;
  margin: 0 auto;
}
.csi-h1 {
  margin: 0 0 22px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.02em !important;
  color: var(--ink);
}
.csi-h2 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
}
.csi-muted {
  color: var(--muted);
}
.csi-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px;
}
.csi-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 960px) {
  .csi-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.csi-sticky {
  position: sticky;
  top: 20px;
}
.csi-skeleton {
  height: 96px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--soft-2) 0%, #fafafa 50%, var(--soft-2) 100%);
  background-size: 200% 100%;
  animation: csi-shimmer 1.2s infinite linear;
  margin-bottom: 12px;
}
@keyframes csi-shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ─── cart ─── */
.csi-line {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.csi-line:first-child {
  padding-top: 4px;
}
.csi-line img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.csi-line__name {
  display: block;
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
}
.csi-line__name:hover {
  text-decoration: underline;
}
.csi-line__meta {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.csi-line__returns {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft-2);
  font-size: 12.5px;
  color: var(--ink-2);
}
.csi-line__tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.csi-line__price {
  text-align: right;
  font-size: 16.5px;
  font-weight: 700;
  white-space: nowrap;
}
.csi-line__price small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.csi-line__problem {
  margin-top: 8px;
  font-size: 14px;
  color: var(--bad);
  font-weight: 600;
}
@media (max-width: 560px) {
  .csi-line {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }
  .csi-line img {
    width: 76px;
    height: 76px;
  }
  .csi-line__price {
    grid-column: 2;
    text-align: left;
  }
}
.csi-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--soft-2);
  overflow: hidden;
  margin: 8px 0 4px;
}
.csi-progress > i {
  display: block;
  height: 100%;
  background: var(--good);
  border-radius: 999px;
}
.csi-trust {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-2);
}
.csi-trust li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.csi-trust svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--ink);
}
.csi-empty {
  text-align: center;
  padding: 56px 16px;
}
.csi-empty svg {
  width: 64px;
  height: 64px;
  color: #9ca3af;
}
.csi-empty h2 {
  margin: 14px 0 8px;
  font-size: 22px;
}

/* ─── checkout (its own page, no site menu) ─── */
.csi-co-body {
  margin: 0;
  background: #fff;
}
.csi-co-top {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.csi-co-top__in {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.csi-co-top img {
  display: block;
  height: 40px;
  width: auto;
}
.csi-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.csi-secure svg {
  width: 18px;
  height: 18px;
}
.csi-co-help {
  font-size: 14px;
  color: var(--muted);
}
.csi-co-help a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 640px) {
  .csi-co-help {
    display: none;
  }
}
.csi-co {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(400px, 1fr);
  min-height: calc(100vh - 69px);
}
.csi-co__main {
  padding: 36px 48px 64px 16px;
}
.csi-co__side {
  background: var(--soft);
  border-left: 1px solid var(--line);
  padding: 36px 16px 48px 40px;
}
.csi-co__main > .csi-co__inner {
  max-width: 620px;
  margin-left: auto;
}
.csi-co__side > .csi-co__inner {
  max-width: 440px;
  position: sticky;
  top: 24px;
}
@media (max-width: 1000px) {
  .csi-co {
    grid-template-columns: 1fr;
  }
  .csi-co__main {
    padding: 20px 16px 48px;
    order: 2;
  }
  .csi-co__side {
    order: 1;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 16px;
  }
  .csi-co__main > .csi-co__inner,
  .csi-co__side > .csi-co__inner {
    max-width: 620px;
    margin: 0 auto;
    position: static;
  }
}
.csi-step {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.csi-step:first-child {
  padding-top: 0;
}
.csi-step:last-of-type {
  border-bottom: 0;
}
.csi-step__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.csi-step__head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}
.csi-signedin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  font-size: 15px;
}
.csi-ship {
  display: grid;
  gap: 10px;
}
.csi-ship label {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.csi-ship label:hover {
  border-color: #9ca3af;
}
.csi-ship input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
}
/* One price only (the cheapest carrier): no choice to make, so no radio dot. */
.csi-ship--one label {
  grid-template-columns: 1fr auto;
  cursor: default;
}
.csi-ship--one input {
  display: none;
}
.csi-ship label.is-on {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.csi-ship b {
  display: block;
  font-size: 15.5px;
  font-weight: 650;
}
.csi-ship small {
  color: var(--muted);
  font-size: 13.5px;
}
.csi-ship .csi-price {
  font-weight: 700;
  font-size: 15.5px;
  white-space: nowrap;
}
.csi-free {
  color: var(--good);
}
#csi-payment {
  min-height: 160px;
}
.csi-pay {
  margin-top: 18px;
}
.csi-pay .csi-btn {
  width: 100%;
  min-height: 56px;
  font-size: 17.5px;
  border-radius: 14px;
}
.csi-fine {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.45;
}
.csi-fine svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
.csi-sum-toggle {
  display: none;
}
@media (max-width: 1000px) {
  .csi-sum-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    cursor: pointer;
  }
  .csi-sum-toggle b {
    font-size: 17px;
  }
  .csi-sum[data-open='false'] .csi-sum__body {
    display: none;
  }
  .csi-sum__body {
    padding-bottom: 18px;
  }
}
.csi-sum__item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  font-size: 14.5px;
}
.csi-sum__img {
  position: relative;
}
.csi-sum__img img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.csi-sum__img i {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #6b7280;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.csi-sum__item b {
  display: block;
  font-weight: 600;
  line-height: 1.35;
}
.csi-sum__item small {
  color: var(--muted);
  font-size: 12.5px;
  display: block;
}
.csi-sum__totals {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ─── thank-you page ─── */
.csi-done {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}
.csi-done__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--good-soft);
  color: var(--good);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.csi-done__icon svg {
  width: 34px;
  height: 34px;
}
.csi-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 22px 0 6px;
  padding: 0;
  list-style: none;
}
.csi-steps li {
  position: relative;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding-top: 30px;
}
.csi-steps li::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d1d5db;
  z-index: 1;
}
.csi-steps li::after {
  content: '';
  position: absolute;
  top: 12px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #e5e7eb;
}
.csi-steps li:first-child::after {
  display: none;
}
.csi-steps li.is-done {
  color: var(--ink);
  font-weight: 600;
}
.csi-steps li.is-done::before {
  background: var(--good);
  border-color: var(--good);
}
.csi-steps li.is-done::after {
  background: var(--good);
}
.csi-steps li span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

/* ─── my account ─── */
.csi-acct {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 860px) {
  .csi-acct {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.csi-nav {
  display: grid;
  gap: 4px;
}
@media (max-width: 860px) {
  .csi-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .csi-nav::-webkit-scrollbar {
    display: none;
  }
}
.csi-nav a,
.csi-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
}
.csi-nav a:hover,
.csi-nav button:hover {
  background: var(--soft-2);
  color: var(--ink);
}
.csi-nav a.is-on {
  background: var(--ink);
  color: #fff;
}
.csi-nav svg {
  width: 19px;
  height: 19px;
}
.csi-signin {
  max-width: 440px;
  margin: 8px auto 0;
}
.csi-signin .csi-card {
  padding: 28px;
}
.csi-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--soft-2);
  margin: 0 0 18px;
}
.csi-tabs button {
  height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.csi-tabs button.is-on {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.csi-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
}
.csi-or::before,
.csi-or::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}
.csi-social {
  display: grid;
  gap: 10px;
}
.csi-social .csi-btn {
  border-radius: 12px;
  min-height: 48px;
  font-size: 15.5px;
}
.csi-social svg {
  width: 20px;
  height: 20px;
}
.csi-code {
  font-size: 26px !important;
  letter-spacing: 0.5em !important;
  text-align: center;
  font-weight: 700;
  padding-left: 0.5em !important;
}
.csi-order {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.csi-order:hover {
  border-color: #9ca3af;
  box-shadow: var(--shadow);
}
.csi-order__imgs {
  display: flex;
}
.csi-order__imgs img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  border: 2px solid #fff;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  margin-right: -14px;
}
.csi-order__text {
  padding-left: 14px;
  min-width: 0;
}
.csi-order__text b {
  font-size: 16px;
}
.csi-order__text p {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .csi-order {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .csi-order > :last-child {
    grid-column: 1 / -1;
  }
}
.csi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  background: var(--soft-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.csi-badge--good {
  background: var(--good-soft);
  color: var(--good);
}
.csi-badge--brand {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.csi-badge--bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.csi-track {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.csi-track li {
  position: relative;
  padding: 0 0 18px 28px;
  font-size: 14.5px;
}
.csi-track li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
}
.csi-track li::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.csi-track li:last-child::after {
  display: none;
}
.csi-track li:first-child::before {
  background: var(--good);
  box-shadow: 0 0 0 4px var(--good-soft);
}
.csi-track b {
  display: block;
  font-weight: 650;
}
.csi-track small {
  color: var(--muted);
  font-size: 13px;
}
.csi-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) {
  .csi-two {
    grid-template-columns: 1fr;
  }
}
.csi-kv {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
.csi-kv dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin-top: 12px;
}
.csi-kv dt:first-child {
  margin-top: 0;
}
.csi-kv dd {
  margin: 2px 0 0;
}
.csi-copy {
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

/* ─── dialogs ─── */
.csi-modal {
  position: fixed;
  inset: 0;
  z-index: 100002;
  background: rgba(17, 24, 39, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: csi-fade 0.15s ease-out;
}
.csi-modal__box {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.csi-modal__box h2 {
  margin: 0 0 6px;
  font-size: 21px;
  color: var(--ink);
}
.csi-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}
.csi-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 100003;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 32px);
}
.csi-hide {
  display: none !important;
}
