/* Checkout — Bixoto two-column layout (all-white) */

.content:has(.cc-checkout),
.content:has(.cc-checkout) .inside {
  background: #fff;
}

.content .inside .cc-checkout,
.cc-checkout {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 48px;
  font-family: var(--cc-font-sans);
  color: var(--cc-bx-ink);
  background: #fff;
}

.cc-checkout__shell {
  max-width: var(--cc-bx-max-wide, 1200px);
  margin: 0 auto;
  padding: 20px 0 0;
  background: #fff;
}

.cc-checkout__pageHead {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ececec;
  background: #fff;
}

.cc-checkout__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cc-bx-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cc-checkout__back:hover {
  color: var(--cc-bx-accent);
  text-decoration: none;
}

.cc-checkout__pageTitle {
  margin: 0;
  font-family: var(--cc-font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cc-bx-ink);
}

/* ── Layout ── */

.cc-checkout__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
  background: #fff;
}

.cc-checkout__main {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--cc-bx-radius-lg, 12px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.cc-checkout__section {
  padding: 28px 32px;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid #ececec;
}

.cc-checkout__section:last-child {
  border-bottom: 0;
}

.cc-checkout__section--message {
  padding-bottom: 20px;
}

.cc-checkout__sectionHead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.cc-checkout__sectionIcon {
  font-size: 22px;
  line-height: 1;
  color: var(--cc-bx-accent, #ff4200);
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.cc-checkout__sectionTitle {
  margin: 0;
  font-family: var(--cc-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--cc-bx-ink);
}

/* ── Form fields ── */

.cc-checkout__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-checkout__row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cc-checkout__row3 {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1fr;
  gap: 12px;
}

.cc-checkout__input,
.cc-checkout__textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: var(--cc-bx-ink);
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: var(--cc-bx-radius, 8px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cc-checkout__input::placeholder,
.cc-checkout__textarea::placeholder {
  color: var(--cc-bx-muted);
}

.cc-checkout__input:focus,
.cc-checkout__textarea:focus {
  outline: none;
  border-color: var(--cc-bx-accent);
  box-shadow: 0 0 0 3px rgba(255, 66, 0, 0.12);
}

.cc-checkout__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23606060' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.cc-checkout__textarea {
  resize: vertical;
  min-height: 88px;
}

/* ── Tabs / pills ── */

.cc-checkout__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8e8e8;
}

.cc-checkout__tab {
  border: 0;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-bx-muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cc-checkout__tab--active {
  background: var(--cc-bx-accent-soft, #fff4f2);
  color: var(--cc-bx-accent);
  box-shadow: none;
}

.cc-checkout__company {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-checkout__addrBar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-checkout__addrLabel {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cc-bx-muted);
}

.cc-checkout__addrPills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-checkout__pill {
  border: 1px solid var(--cc-bx-border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--cc-bx-ink);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.cc-checkout__pill--active {
  border-color: var(--cc-bx-accent);
  background: var(--cc-bx-accent-soft);
}

/* ── Shipping option ── */

.cc-checkout__shipOption {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 2px solid var(--cc-bx-accent);
  border-radius: var(--cc-bx-radius, 8px);
  background: #fff;
  cursor: default;
}

.cc-checkout__shipRadio {
  margin-top: 4px;
  accent-color: var(--cc-bx-accent);
}

.cc-checkout__shipOptionBody {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.cc-checkout__shipOptionMain {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cc-checkout__shipOptionMain strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--cc-bx-ink);
}

.cc-checkout__shipOptionSub {
  font-size: 12px;
  color: var(--cc-bx-muted);
}

.cc-checkout__shipOptionPrice {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--cc-bx-ink);
}

/* ── Payment accordion ── */

.cc-checkout__payList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cc-checkout__payOption {
  border: 1px solid #e0e0e0;
  border-radius: var(--cc-bx-radius, 8px);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cc-checkout__payOption--active {
  border-color: var(--cc-bx-accent);
  box-shadow: 0 0 0 1px var(--cc-bx-accent);
}

.cc-checkout__payOptionHead {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.cc-checkout__payRadio {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--cc-bx-border);
  transition: border-color 0.15s, background 0.15s;
}

.cc-checkout__payOption--active .cc-checkout__payRadio {
  border-color: var(--cc-bx-accent);
  background: radial-gradient(circle, var(--cc-bx-accent) 42%, transparent 44%);
}

.cc-checkout__payOptionLabel {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--cc-bx-ink);
}

.cc-checkout__payOptionLogos {
  height: 22px;
  width: auto;
  max-width: 100px;
  border-radius: 4px;
}

.cc-checkout__payOptionBody {
  padding: 0 18px 16px 48px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cc-bx-muted);
}

.cc-checkout__payOptionBody p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #ececec;
}

/* ── Sidebar summary ── */

.cc-checkout__aside {
  position: sticky;
  top: 88px;
}

.cc-checkout__summaryCard {
  padding: 24px 24px 22px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--cc-bx-radius-lg, 12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.cc-checkout__summaryTitle {
  margin: 0 0 16px;
  font-family: var(--cc-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--cc-bx-ink);
}

.cc-checkout__summaryItems {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--cc-bx-border);
}

.cc-checkout__summaryItem {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--cc-bx-border);
}

.cc-checkout__summaryThumb {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ececec;
}

.cc-checkout__summaryThumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cc-checkout__summaryMeta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cc-checkout__summaryName {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cc-bx-ink);
  text-decoration: none;
}

.cc-checkout__summaryName:hover {
  color: var(--cc-bx-accent);
  text-decoration: underline;
}

.cc-checkout__summaryQty {
  font-size: 11px;
  color: var(--cc-bx-muted);
}

.cc-checkout__summaryPrice {
  font-size: 13px;
  font-weight: 700;
  color: var(--cc-bx-accent);
  white-space: nowrap;
}

.cc-checkout__summaryRows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding-top: 4px;
}

.cc-checkout__summaryRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--cc-bx-muted);
}

.cc-checkout__summaryRow b {
  font-weight: 600;
  color: var(--cc-bx-ink);
}

.cc-checkout__summaryRow--total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--cc-bx-border);
  font-size: 14px;
}

.cc-checkout__summaryTotal {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--cc-bx-accent) !important;
}

.cc-checkout__payBadge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
}

.cc-checkout__payBadgeLabel {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cc-bx-muted);
}

.cc-checkout__payBadgeImg {
  height: 22px;
  width: auto;
  border-radius: 4px;
}

.cc-checkout__voucherList {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.cc-checkout__voucherList li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 12px;
  border-radius: 8px;
  background: var(--cc-bx-accent-soft);
  border: 1px solid rgba(255, 66, 0, 0.15);
}

.cc-checkout__voucherRemove {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: var(--cc-bx-muted);
  cursor: pointer;
}

.cc-checkout__coupon {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.cc-checkout__couponInput {
  flex: 1;
  min-width: 0;
}

.cc-checkout__couponBtn {
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-bx-accent);
  background: #fff;
  border: 1px solid var(--cc-bx-accent);
  border-radius: var(--cc-bx-radius, 8px);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cc-checkout__couponBtn:hover {
  background: var(--cc-bx-accent-soft);
}

.cc-checkout__terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--cc-bx-muted);
  cursor: pointer;
}

.cc-checkout__terms input {
  margin-top: 2px;
  accent-color: var(--cc-bx-accent);
}

.cc-checkout__terms a {
  color: var(--cc-bx-accent);
  text-decoration: underline;
}

.cc-checkout__placeBtn {
  margin-bottom: 8px;
}

.cc-checkout__hint {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--cc-bx-accent);
}

.cc-checkout__trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 14px;
  padding-top: 14px;
  border-top: 1px solid #ececec;
  font-size: 11px;
  line-height: 1.35;
  color: var(--cc-bx-muted);
}

.cc-checkout__trustItem {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cc-checkout__trustItem > span:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.cc-checkout__trustItem .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  color: var(--cc-bx-secondary, #34c9a2);
}

.cc-checkout__backCart {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--cc-bx-muted);
  text-decoration: underline;
}

.cc-checkout__backCart:hover {
  color: var(--cc-bx-ink);
}

/* ── States ── */

.cc-checkout__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 280px;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
}

.cc-checkout__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--cc-bx-border);
  border-top-color: var(--cc-bx-accent);
  border-radius: 50%;
  animation: cc-checkout-spin 0.7s linear infinite;
}

@keyframes cc-checkout-spin {
  to { transform: rotate(360deg) }
}

.cc-checkout__alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.cc-checkout__alert--err {
  color: var(--cc-bx-sale);
  background: #fff4f2;
  border: 1px solid rgba(211, 32, 32, 0.2);
}

.cc-checkout__alert--ok {
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid rgba(15, 118, 110, 0.22);
}

.cc-checkout__processing {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  text-align: center;
  color: var(--cc-bx-ink-secondary);
  background: var(--cc-bx-accent-soft);
  border: 1px solid var(--cc-bx-border);
}

.cc-checkout__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 48px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--cc-bx-border);
  border-radius: 12px;
}

.cc-checkout__successRing {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(52, 201, 162, 0.12);
  color: #1a8f6a;
  font-size: 26px;
}

.cc-checkout__successTitle {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--cc-bx-ink);
}

.cc-checkout__successText {
  margin: 0;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cc-bx-muted);
}

.cc-checkout__successText a {
  color: var(--cc-bx-accent);
  font-weight: 600;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .cc-checkout__layout {
    grid-template-columns: 1fr;
  }

  .cc-checkout__aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .cc-checkout__section {
    padding: 18px 16px;
  }

  .cc-checkout__row2,
  .cc-checkout__row3 {
    grid-template-columns: 1fr;
  }

  .cc-checkout__coupon {
    flex-direction: column;
  }

  .cc-checkout__couponBtn {
    width: 100%;
  }
}
