/* =====================================================
   CLEAN WOOCOMMERCE CHECKOUT STYLES — FIXED
   Add to: Appearance > Customize > Additional CSS
   ===================================================== */

:root {
  --ck-text: #1a1a1a;
  --ck-muted: #6b7280;
  --ck-light: #9ca3af;
  --ck-border: #e5e7eb;
  --ck-bg: #f9fafb;
  --ck-white: #ffffff;
  --ck-accent: #111827;
  --ck-green: #059669;
  --ck-green-bg: #d1fae5;
  --ck-red: #dc2626;
  --ck-r: 6px;
  --ck-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ===== RESET — fight theme interference ===== */
.ck-wrapper *,
.ck-wrapper *::before,
.ck-wrapper *::after {
  box-sizing: border-box;
}

/* ===== WRAPPER ===== */
.ck-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  font-family: var(--ck-font);
  color: var(--ck-text);
  background: var(--ck-bg);
}

/* ===== TWO-COLUMN GRID =====
   Left (ck-main) grows to fill space.
   Right (ck-sidebar) is fixed 360px and sticky.
   This is the core layout — must not be overridden by theme floats.
*/
.ck-layout {
  display: grid !important;
  grid-template-columns: 1fr 360px !important;
  gap: 1.5rem !important;
  align-items: start !important;
  float: none !important;
  width: 100% !important;
}

.ck-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  float: none !important;
  width: auto !important;
}

.ck-sidebar {
  position: sticky;
  top: 1.5rem;
  min-width: 0;
  float: none !important;
  width: auto !important;
}

/* Neutralise WooCommerce's own float-based column system */
.woocommerce-checkout #customer_details,
.woocommerce-checkout .col2-set,
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
  float: none !important;
  width: 100% !important;
  clear: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 920px) {
  .ck-layout {
    grid-template-columns: 1fr !important;
  }

  .ck-sidebar {
    order: -1;
    /* summary shows above form on mobile */
    position: static;
  }
}

/* ===== SECTIONS ===== */
.ck-section {
  background: var(--ck-white);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-r);
  margin-bottom: 10px;
  overflow: hidden;
}

.ck-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ck-border);
  background: var(--ck-white);
}

.ck-step {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--ck-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ck-title {
  margin: 0 0 2px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ck-text) !important;
  font-family: var(--ck-font) !important;
  line-height: 1.2 !important;
}

.ck-sub {
  margin: 0;
  font-size: 12px;
  color: var(--ck-muted);
  line-height: 1.3;
}

.ck-ssl {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--ck-green);
  white-space: nowrap;
}

.ck-section-body {
  padding: 16px;
}

/* Hide default WooCommerce heading tags inside sections */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-account-fields h3 {
  display: none !important;
}

/* ===== FORM GRID ===== */
.ck-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.ck-row:last-child {
  margin-bottom: 0;
}

.ck-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.ck-full {
  grid-column: 1 / -1;
}

@media (max-width: 540px) {

  .ck-row,
  .ck-row-3 {
    grid-template-columns: 1fr;
  }

  .ck-full {
    grid-column: auto;
  }
}

/* ===== LABELS & INPUTS ===== */
.ck-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ck-muted);
  margin-bottom: 4px;
}

.ck-req {
  color: var(--ck-red);
}

.ck-opt {
  color: var(--ck-light);
  font-weight: 400;
  font-size: 11px;
}

.ck-input,
.ck-select,
.ck-textarea,
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea.input-text {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-r);
  font-size: 13px;
  font-family: var(--ck-font);
  color: var(--ck-text);
  background: var(--ck-white);
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
  -webkit-appearance: none;
  appearance: none;
}

.ck-input:focus,
.ck-select:focus,
.ck-textarea:focus,
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea.input-text:focus {
  border-color: var(--ck-accent);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}

.ck-input::placeholder,
.ck-textarea::placeholder {
  color: var(--ck-light);
}

.ck-select,
.woocommerce-checkout select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}

.ck-textarea {
  resize: vertical;
  min-height: 64px;
}

/* ===== TOGGLE SWITCH ===== */
.ck-toggle-row {
  padding: 10px 12px;
  background: var(--ck-bg);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-r);
  margin-bottom: 12px;
}

.ck-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ck-text);
  user-select: none;
}

.ck-toggle-label input[type="checkbox"] {
  display: none;
}

.ck-switch {
  width: 34px;
  height: 18px;
  min-width: 34px;
  background: var(--ck-border);
  border-radius: 18px;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}

.ck-switch::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.ck-toggle-label input:checked+.ck-switch {
  background: var(--ck-accent);
}

.ck-toggle-label input:checked+.ck-switch::after {
  transform: translateX(16px);
}

/* ===== NOTICES ===== */
.ck-notice {
  padding: 9px 12px;
  border-radius: var(--ck-r);
  font-size: 13px;
  margin-bottom: 12px;
}

.ck-notice--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.ck-notice--warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.ck-notice--info a {
  color: #1d4ed8;
  font-weight: 500;
}

/* ===== SAVED ADDRESS CARDS ===== */
.ck-address-cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ck-address-card {
  flex: 1;
  min-width: 160px;
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-r);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  box-sizing: border-box;
}

.ck-address-card input[type="radio"] {
  display: none;
}

.ck-address-card.selected,
.ck-address-card:has(input:checked) {
  border-color: var(--ck-accent);
  background: #f9f9fc;
}

.ck-address-card-body {
  flex: 1;
  font-size: 12px;
  color: var(--ck-text);
  min-width: 0;
}

.ck-address-card-body strong {
  font-size: 13px;
  display: block;
  margin-bottom: 2px;
}

.ck-address-card-body p {
  margin: 0;
  color: var(--ck-muted);
  line-height: 1.5;
}

.ck-add-new {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ck-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0;
}

.ck-plus {
  width: 22px;
  height: 22px;
  border: 1.5px dashed var(--ck-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ck-light);
  flex-shrink: 0;
}

/* ===== RADIO DOT (shipping cards & address cards only) ===== */
.ck-radio-dot {
  width: 14px;
  height: 14px;
  min-width: 14px;
  border: 1.5px solid var(--ck-border);
  border-radius: 50%;
  position: relative;
  margin-left: auto;
  align-self: flex-start;
  margin-top: 2px;
  flex-shrink: 0;
}

.ck-shipping-card:has(input:checked) .ck-radio-dot,
.ck-address-card:has(input:checked) .ck-radio-dot {
  border-color: var(--ck-accent);
}

.ck-shipping-card:has(input:checked) .ck-radio-dot::after,
.ck-address-card:has(input:checked) .ck-radio-dot::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--ck-accent);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ===== SHIPPING METHOD ===== */
.ck-shipping-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ck-shipping-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-r);
  cursor: pointer;
  transition: border-color .15s;
  box-sizing: border-box;
}

.ck-shipping-card input[type="radio"] {
  display: none;
}

.ck-shipping-card.is-selected,
.ck-shipping-card:has(input:checked) {
  border-color: var(--ck-accent);
  background: #f9f9fc;
}

.ck-shipping-info {
  flex: 1;
  min-width: 0;
}

.ck-shipping-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.ck-shipping-eta {
  display: block;
  font-size: 11px;
  color: var(--ck-muted);
  margin-top: 2px;
}

.ck-shipping-price {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.ck-free {
  font-size: 11px;
  font-weight: 700;
  background: var(--ck-green-bg);
  color: var(--ck-green);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ===== WALLET BOX ===== */
.ck-wallet-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #6ee7b7;
  border-radius: var(--ck-r);
  padding: 13px 16px;
  margin-bottom: 10px;
  font-size: 13px;
}

.ck-wallet-box label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  color: #065f46;
}

.ck-wallet-box input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #059669;
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== PAYMENT METHOD LIST ===== */
ul.wc_payment_methods.ck-payment-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Each gateway item ── */
.ck-pm-item {
  border: 1.5px solid var(--ck-border);
  border-radius: 10px;
  /* overflow must NOT be hidden — Stripe UPE mounts an iframe that needs
     to be able to expand beyond the border-radius clip */
  overflow: visible;
  transition: border-color .18s, box-shadow .18s;
  background: var(--ck-white);
}

.ck-pm-item:has(input:checked) {
  border-color: var(--ck-accent);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .07);
}

/* Charge-to-Account variant gets a green accent */
.ck-pm-item--credit {
  border-color: #a7f3d0;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.ck-pm-item--credit:has(input:checked) {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .1);
}

/* ── Label row ── */
.ck-pm-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

/* ── Custom radio indicator ── */
.ck-pm-radio {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--ck-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
  flex-shrink: 0;
}

.ck-pm-item:has(input:checked) .ck-pm-radio {
  border-color: var(--ck-accent);
}

.ck-pm-item--credit:has(input:checked) .ck-pm-radio {
  border-color: #059669;
}

.ck-pm-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ck-accent);
  transform: scale(0);
  transition: transform .15s;
}

.ck-pm-item--credit .ck-pm-radio-dot {
  background: #059669;
}

.ck-pm-item:has(input:checked) .ck-pm-radio-dot {
  transform: scale(1);
}

/* Real radio hidden visually but present in DOM — WC checkout.js needs it */
.ck-pm-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  /* NOTE: pointer-events must NOT be 'none' — the label click needs to
     reach the radio so the browser fires the 'change' event natively.
     The radio is already zero-sized so it doesn't intercept any clicks. */
}

/* ── Icon wrap ── */
.ck-pm-icon-wrap {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 9px;
  background: var(--ck-bg);
  border: 1px solid var(--ck-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ck-muted);
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}

.ck-pm-item:has(input:checked) .ck-pm-icon-wrap {
  background: #f1f5f9;
  color: var(--ck-accent);
  border-color: #cbd5e1;
}

.ck-pm-icon-wrap--credit {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

.ck-pm-item--credit:has(input:checked) .ck-pm-icon-wrap--credit {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}

.ck-pm-svg {
  width: 20px;
  height: 20px;
}

/* ── Text block ── */
.ck-pm-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ck-pm-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ck-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ck-pm-sub {
  font-size: 11px;
  color: var(--ck-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Right-side badge / card logos ── */
.ck-pm-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .3px;
}

.ck-pm-badge--credit {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.ck-pm-cards {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ck-pm-cards img {
  height: 18px;
  width: auto;
  opacity: .7;
  filter: grayscale(1);
  transition: opacity .15s, filter .15s;
}

.ck-pm-item:has(input:checked) .ck-pm-cards img {
  opacity: 1;
  filter: none;
}

/* ── Expandable body (Stripe form, description, etc.) ── */
.ck-pm-body {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--ck-border);
  font-size: 13px;
  color: var(--ck-muted);
  background: #fcfcfd;
  animation: ck-slide-down .18s ease;
}

.ck-pm-body p {
  margin: 0 0 8px;
}

.ck-pm-body p:last-child {
  margin-bottom: 0;
}

.ck-pm-item:has(input[type="radio"]:checked) .ck-pm-body {
  display: block !important;
}

/* Stripe element overrides inside the body */
.ck-pm-body .wc-stripe-elements-field,
.ck-pm-body #stripe-card-element,
.ck-pm-body .__StripeElement,
.ck-pm-body .wc-stripe-upe-element {
  background: var(--ck-white) !important;
  border: 1px solid var(--ck-border) !important;
  border-radius: var(--ck-r) !important;
  padding: 10px 12px !important;
  margin-top: 10px;
}

/* The fieldset wrapper must NOT get border/padding — only the inner element does */
.ck-pm-body .wc-upe-form,
.ck-pm-body #wc-stripe-upe-form {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Stripe UPE iframe container — explicit height so the iframe renders correctly.
   Stripe needs the container to have a real height before it mounts. */
.ck-pm-body .wc-stripe-upe-element {
  min-height: 44px;
  display: block;
}

/* The Stripe iframe itself must be fully visible */
.ck-pm-body .wc-stripe-upe-element iframe,
.ck-pm-body .__StripeElement iframe {
  width: 100% !important;
  min-height: 44px !important;
  display: block !important;
  border: none !important;
}

@keyframes ck-slide-down {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Also hide old-style .ck-payment-box / .ck-payment-label that may exist ── */
.ck-payment-label {
  display: none !important;
}

.ck-payment-box {
  display: none !important;
}

/* ── JS-driven selected state (fallback for browsers without :has support) ── */
.ck-pm-item.ck-pm-item--selected {
  border-color: var(--ck-accent);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .07);
}

.ck-pm-item--credit.ck-pm-item--selected {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .1);
}

.ck-pm-item.ck-pm-item--selected .ck-pm-radio {
  border-color: var(--ck-accent);
}

.ck-pm-item--credit.ck-pm-item--selected .ck-pm-radio {
  border-color: #059669;
}

.ck-pm-item.ck-pm-item--selected .ck-pm-radio-dot {
  transform: scale(1);
}

.ck-pm-item.ck-pm-item--selected .ck-pm-icon-wrap {
  background: #f1f5f9;
  color: var(--ck-accent);
  border-color: #cbd5e1;
}

.ck-pm-item--credit.ck-pm-item--selected .ck-pm-icon-wrap--credit {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}

.ck-pm-item.ck-pm-item--selected .ck-pm-cards img {
  opacity: 1;
  filter: none;
}

/* ── Prevent WC blockUI from covering #payment ── */
#payment .blockOverlay,
#payment .blockUI {
  display: none !important;
  pointer-events: none !important;
}

/* ── Kill WooCommerce's default payment list styles that leak through ──────
   When WC reinjects our payment.php override it still loads its own CSS;
   these rules suppress any default labels/boxes that bypass our template. ── */
#payment .wc_payment_methods li.wc_payment_method>label:not(.ck-pm-label) {
  display: none !important;
}

#payment ul.wc_payment_methods li.wc_payment_method>.payment_box:not(.ck-pm-body) {
  display: none !important;
}

/* ===== TERMS ===== */
.ck-terms {
  padding: 10px 0;
  font-size: 12px;
  color: var(--ck-muted);
}

.ck-terms label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ===== PLACE ORDER ===== */
.ck-place-order {
  margin-top: 12px;
}

.ck-submit-btn,
button#place_order {
  width: 100% !important;
  padding: 13px !important;
  background: var(--ck-accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--ck-r) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: var(--ck-font) !important;
  cursor: pointer !important;
  transition: opacity .15s !important;
  letter-spacing: 0.2px !important;
  display: block !important;
  text-align: center !important;
  line-height: 1.4 !important;
}

.ck-submit-btn:hover,
button#place_order:hover {
  opacity: .85 !important;
}

.ck-secure-note {
  font-size: 11px;
  color: var(--ck-muted);
  text-align: center;
  margin-top: 8px;
  margin-bottom: 0;
}

/* ===== ORDER SUMMARY (sidebar) ===== */
.ck-order-summary {
  background: var(--ck-white);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-r);
  overflow: hidden;
}

.ck-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ck-border);
}

.ck-summary-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  font-family: var(--ck-font) !important;
  color: var(--ck-text) !important;
}

.ck-item-count {
  font-size: 11px;
  color: var(--ck-muted);
  background: var(--ck-bg);
  border: 1px solid var(--ck-border);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.ck-summary-body {
  padding: 14px 16px;
}

/* Cart items */
.ck-items {
  margin-bottom: 12px;
}

.ck-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ck-border);
}

.ck-item:last-child {
  border-bottom: none;
}

.ck-item-img {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: var(--ck-r);
  overflow: hidden;
  background: var(--ck-bg);
  border: 1px solid var(--ck-border);
  position: relative;
  flex-shrink: 0;
}

.ck-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ck-qty-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--ck-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ck-item-info {
  flex: 1;
  min-width: 0;
}

.ck-item-name {
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ck-item-price {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Coupon */
.ck-coupon {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--ck-border);
}

.ck-coupon-row {
  display: flex;
  gap: 8px;
}

.ck-coupon-input {
  flex: 1;
  font-size: 12px !important;
  padding: 7px 10px !important;
}

.ck-coupon-btn {
  padding: 7px 14px;
  background: var(--ck-bg);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-r);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ck-text);
  font-family: var(--ck-font);
  white-space: nowrap;
  transition: border-color .15s;
}

.ck-coupon-btn:hover {
  border-color: var(--ck-accent);
}

/* Totals */
.ck-totals {
  border-top: 1px solid var(--ck-border);
  padding-top: 10px;
}

.ck-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
  color: var(--ck-muted);
}

.ck-total-row span:last-child {
  font-weight: 500;
  color: var(--ck-text);
}

/* ===== FIX: shipping row in sidebar shows raw WC html with radios =====
   Hide the WC shipping package form that leaks into the totals area     */
#ck-shipping-total-value .woocommerce-shipping-totals,
#ck-shipping-total-value table,
#ck-shipping-total-value .shipping-calculator-form,
#ck-shipping-total-value ul,
#ck-shipping-total-value li {
  display: none !important;
}

/* Show only the price text nodes / amounts */
#ck-shipping-total-value {
  font-weight: 500;
  color: var(--ck-text);
  font-size: 13px;
}

.ck-discount-row span:first-child {
  color: var(--ck-muted);
}

.ck-discount {
  color: var(--ck-green) !important;
}

.ck-coupon-tag {
  background: var(--ck-green-bg);
  color: var(--ck-green);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.ck-remove-coupon {
  color: var(--ck-red);
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.ck-grand-total {
  border-top: 2px solid var(--ck-text);
  margin-top: 8px;
  padding-top: 10px;
  font-size: 15px !important;
  font-weight: 700 !important;
}

.ck-grand-total span {
  color: var(--ck-text) !important;
  font-weight: 700 !important;
}

/* Trust badges */
.ck-trust {
  display: flex;
  justify-content: space-around;
  padding: 10px;
  background: var(--ck-white);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-r);
  margin-top: 8px;
}

.ck-trust-item {
  font-size: 11px;
  color: var(--ck-muted);
  font-weight: 500;
}

/* ===== SELECT2 OVERRIDES ===== */
.select2-container {
  width: 100% !important;
}

.select2-selection--single {
  height: 36px !important;
  border-radius: var(--ck-r) !important;
  border: 1px solid var(--ck-border) !important;
}

.select2-selection__rendered {
  line-height: 36px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
}

.select2-selection__arrow {
  height: 36px !important;
  right: 6px !important;
}

/* ===== LOADING STATE ===== */
.processing .ck-submit-btn::after,
.processing button#place_order::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ck-spin .6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes ck-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== WOOCOMMERCE ERROR NOTICES ===== */
.woocommerce-NoticeGroup {
  margin-bottom: 12px;
}

/* ===== COUPON BAR (the blue bar above the form) ===== */
.woocommerce-info {
  display: none !important;
}

/* Hide WC default coupon link — we have inline coupon field */

.ck-layout>* {
  min-width: 0;
}

/* Payment body: hidden by default, shown when item is selected.
   Two rules cover it:
   1. CSS :has() for modern browsers
   2. .ck-pm-item--selected class (set by JS) as a fallback for older browsers */
.ck-pm-item .ck-pm-body {
  display: none;
}

.ck-pm-item:has(input[type="radio"]:checked) .ck-pm-body,
.ck-pm-item--selected .ck-pm-body {
  display: block !important;
}