/* Cart step — editable line items (extends checkout.css) */

.cp-checkout-page .cp-shop__notice {
  max-width: var(--cp-container-max);
  margin: 0 auto 20px;
}

.cp-checkout-page .woocommerce-NoticeGroup-updateOrderReview {
  display: none !important;
}

.cp-checkout__notices {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1.5;
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--cp-radius);
}

.cp-checkout__notices.is-empty {
  display: none;
}

.cp-checkout__notices:not(.is-empty) {
  display: block;
}

.cp-checkout__notices ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cp-checkout__notices li + li {
  margin-top: 0.45rem;
}

.cp-checkout__notices .woocommerce-error,
.cp-checkout__notices .woocommerce-info,
.cp-checkout__notices .woocommerce-message {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
}

.cp-checkout__notices .woocommerce-error::before,
.cp-checkout__notices .woocommerce-info::before,
.cp-checkout__notices .woocommerce-message::before {
  display: none;
}

/* Variation / item meta from Woo */
.cp-checkout__cart-product .variation {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--cp-text-soft);
}

.cp-checkout__cart-product .variation dt,
.cp-checkout__cart-product .variation dd {
  display: inline;
  margin: 0;
}

.cp-checkout__cart-product .variation dd p {
  margin: 0;
  display: inline;
}

body[data-cp-page="cart"] .cp-page--inner,
body.woocommerce-cart .cp-page--inner { min-height: unset; }
body[data-cp-page="cart"] #main-content.cp-checkout-page,
body.woocommerce-cart #main-content.cp-checkout-page { flex: 0 0 auto; display: block; }
body[data-cp-page="cart"] .cp-checkout__inner,
body.woocommerce-cart .cp-checkout__inner { flex: none; }
body[data-cp-page="cart"]:not(.cp-cart-page-empty) .cp-checkout__inner,
body.woocommerce-cart:not(.cp-cart-page-empty) .cp-checkout__inner { padding-bottom: 2.5rem; }

/* Hide default WooCommerce cart table chrome */
.woocommerce-cart .woocommerce-cart-form .shop_table {
  border: none;
  margin: 0;
}

.woocommerce-cart .woocommerce-cart-form .shop_table::before,
.woocommerce-cart .woocommerce-cart-form .shop_table::after {
  display: none;
}

.woocommerce-cart .woocommerce-cart-form .actions .button[name="update_cart"] {
  margin: 0;
}

.woocommerce-cart .cp-page-entry,
.woocommerce-cart .cp-page-content .cp-page-entry {
  display: none;
}

.cp-checkout__grid--cart {
  grid-template-areas: "main" "summary";
}

.cp-checkout__grid--cart > .cart_totals,
.cp-checkout__grid--cart > .cp-checkout__summary-wrap {
  grid-area: summary;
  min-width: 0;
}

/* WooCommerce targets div.cart_totals for AJAX refresh */
.cp-checkout__grid--cart .cart_totals {
  width: 100%;
}

.cp-checkout__grid--cart .cart_totals .cp-checkout__summary {
  grid-area: unset;
}

@media (min-width: 960px) {
  .cp-checkout__grid--cart {
    grid-template-areas: "main summary";
    grid-template-columns: 1fr min(22rem, 34vw);
    align-items: stretch;
  }

  .cp-checkout__grid--cart.cp-checkout__grid--cart-empty {
    grid-template-areas: "main";
    grid-template-columns: 1fr;
  }
}

.cp-checkout__main { grid-area: main; min-width: 0; }
.cp-checkout__cart-card { margin: 0; }
.cp-checkout__grid--cart.cp-checkout__grid--cart-empty .cp-checkout__summary { display: none; }

.cp-checkout__grid.cp-checkout__grid--cart-empty .cp-checkout__main {
  margin-inline: auto;
  width: 100%;
}

.cp-checkout__card-title--plain .cp-checkout__card-icon { display: none; }

/* Column labels */
.cp-checkout__col-labels {
  display: none;
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cp-text-soft);
}

@media (min-width: 720px) {
  .cp-checkout__col-labels {
    display: grid;
    grid-template-columns: 1fr 5.5rem 7rem 5.5rem;
    gap: 1rem;
    padding: 0 0 0.65rem;
    border-bottom: 1px solid var(--cp-border);
  }
}

/* Cart item rows */
.cp-checkout__cart-list { list-style: none; margin: 0; padding: 0; }

.cp-checkout__cart-row {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--cp-border);
  align-items: center;
}

@media (min-width: 720px) {
  .cp-checkout__cart-row { grid-template-columns: 1fr 5.5rem 7rem 5.5rem; padding: 1.15rem 0; }
}

.cp-checkout__cart-row:last-child { border-bottom: none; }

.cp-checkout__cart-product {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.cp-checkout__cart-thumb-link {
  flex-shrink: 0;
  display: block;
  border-radius: var(--cp-radius);
  border: 1px solid var(--cp-border);
  background: var(--cp-bg-subtle);
  overflow: hidden;
}

.cp-checkout__cart-thumb {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}

.cp-checkout__cart-name {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cp-text);
  text-decoration: none;
}

a.cp-checkout__cart-name:hover { color: var(--cp-primary); }

.cp-checkout__cart-meta { margin: 0 0 0.45rem; font-size: 0.75rem; color: var(--cp-text-soft); }

.cp-checkout__cart-remove {
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 11px !important;
  font-weight: 600;
  color: red;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s;
}

.cp-checkout__cart-remove:hover { color: #e11d48; }

.cp-checkout__cart-unit,
.cp-checkout__cart-line { font-size: 0.9rem; font-weight: 400; color: var(--cp-text); }

.cp-checkout__cart-unit-label,
.cp-checkout__cart-line-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cp-text-soft);
  margin-bottom: 0.35rem;
}

@media (min-width: 720px) {
  .cp-checkout__cart-unit-label,
  .cp-checkout__cart-line-label { display: none; }
}

/* Quantity stepper — unified [ − | qty | + ] control */
.cp-checkout__cart-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--cp-border-strong);
  border-radius: var(--cp-radius-sm);
  background: var(--cp-bg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cp-checkout__cart-qty:focus-within {
  border-color: var(--cp-primary);
  box-shadow: 0 0 0 3px rgba(var(--cp-primary-rgb), 0.12);
}

.cp-checkout__cart-qty .quantity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-width: 2rem;
  border-left: 1px solid var(--cp-border);
  border-right: 1px solid var(--cp-border);
  background: var(--cp-bg-subtle);
}

.cp-checkout__cart-qty .quantity .qty,
.cp-checkout__cart-qty .quantity .cp-checkout__cart-qty-input,
.cp-checkout__cart-qty-input {
  width: 1.75rem;
  min-width: 1.75rem;
  height: 2.1rem;
  margin: 0;
  padding: 0 0.25rem;
  border: none;
  background: transparent;
  font-family: var(--font-ui);
  font-size: var(--cp-input-font-size);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 2.1rem;
  text-align: center;
  color: var(--cp-text);
  -moz-appearance: textfield;
  appearance: textfield;
  box-sizing: border-box;
}

.cp-checkout__cart-qty .quantity .qty:focus,
.cp-checkout__cart-qty .quantity .cp-checkout__cart-qty-input:focus,
.cp-checkout__cart-qty-input:focus {
  outline: none;
}

.cp-checkout__cart-qty .quantity .qty::-webkit-outer-spin-button,
.cp-checkout__cart-qty .quantity .qty::-webkit-inner-spin-button,
.cp-checkout__cart-qty-input::-webkit-outer-spin-button,
.cp-checkout__cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cp-checkout__cart-qty .quantity label.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cp-checkout__cart-unit-was {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cp-text-soft);
  text-decoration: line-through;
}

.cp-checkout__cart-form-actions {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cp-checkout__cart-card .woocommerce-cart-form {
  position: relative;
}

.cp-checkout__cart-remove.remove {
  text-decoration: none;
  font-size: inherit;
}

.cp-checkout__cart-qty-btn {
  flex-shrink: 0;
  width: 1.75rem;
  min-height: 2.1rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: var(--cp-bg);
  color: var(--cp-text);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.cp-checkout__cart-qty-btn:first-of-type {
  border-right: none;
}

.cp-checkout__cart-qty-btn:last-of-type {
  border-left: none;
}

.cp-checkout__cart-qty-btn:hover {
  background: rgba(var(--cp-primary-rgb), 0.08);
  color: var(--cp-primary);
}

.cp-checkout__cart-qty-btn:active {
  background: rgba(var(--cp-primary-rgb), 0.14);
}

.cp-checkout__cart-qty-btn:focus-visible {
  outline: 2px solid var(--cp-primary);
  outline-offset: -2px;
  z-index: 1;
}

.cp-checkout__cart-qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.cp-checkout__cart-qty-val {
  min-width: 2.75rem;
  padding: 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 2.1rem;
  background: var(--cp-bg-subtle);
}

/* Summary actions (cart page) */
.cp-checkout__summary-actions { margin-top: 1rem; padding-top: 0.25rem; }
.cp-checkout__summary-actions .cp-checkout__submit { display: flex; margin-bottom: 0.65rem; }

.cp-checkout__summary-actions .cp-checkout__continue {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: var(--cp-btn-font-size);
  font-weight: var(--cp-btn-font-weight);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cp-text-muted);
  transition: color 0.15s;
}

.cp-checkout__summary-actions .cp-checkout__continue:hover { color: var(--cp-primary); }

/* Never show Woo "coming soon" block inside theme cart shell */
body.woocommerce-cart .wp-site-blocks,
body.woocommerce-cart .woocommerce-coming-soon-store-only,
body[data-cp-page="cart"] .wp-site-blocks {
  display: none !important;
}

/* ============================================================
   Checkout page — same shell as cart
   ============================================================ */

body[data-cp-page="checkout"] .cp-page--inner,
body.woocommerce-checkout .cp-page--inner {
  min-height: unset;
}

body.cp-page--checkout-bare .cp-page--inner {
  min-height: unset;
}

.cp-checkout-header {
  background: #fff;
  border-bottom: 1px solid var(--cp-border);
}

.cp-checkout-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--cp-container-max);
  margin: 0 auto;
  padding: 1rem var(--cp-container-padding-x);
  box-sizing: border-box;
}

.cp-checkout-header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--cp-text);
  text-decoration: none;
  border-radius: var(--cp-radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.cp-checkout-header__cart:hover {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
}

.cp-checkout-header__cart-count {
  position: absolute;
  top: 0.15rem;
  right: 0.1rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
  color: #fff;
  background: #16a34a;
  border-radius: 100px;
}

.cp-checkout-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.cp-checkout-header__logo-img {
  display: block;
  width: auto;
  max-width: 148px;
  height: auto;
  max-height: 36px;
}

body.cp-page--checkout-bare #main-content.cp-checkout-page {
  min-height: auto;
  background: var(--cp-bg-subtle);
}

body.cp-page--checkout-bare .cp-checkout__inner {
  max-width: var(--cp-container-max);
  margin: 0 auto;
  padding: 1.5rem var(--cp-container-padding-x) 2.5rem;
  box-sizing: border-box;
}

body[data-cp-page="checkout"] #main-content.cp-checkout-page,
body.woocommerce-checkout #main-content.cp-checkout-page {
  flex: 0 0 auto;
  display: block;
}

body[data-cp-page="checkout"]:not(.cp-checkout-empty) .cp-checkout__inner,
body.woocommerce-checkout:not(.cp-checkout-empty) .cp-checkout__inner {
  padding-bottom: 2.5rem;
}

.cp-checkout__form.cp-checkout__form--layout {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Checkout form is the grid (mirrors cart #cp-checkout-grid) */
.cp-checkout__form.cp-checkout__grid--checkout {
  display: grid;
  gap: 20px;
  grid-template-areas: "main" "summary";
  width: 100%;
}

@media (min-width: 960px) {
  .cp-checkout__form.cp-checkout__grid--checkout {
    grid-template-areas: "main summary";
    grid-template-columns: 1fr min(22rem, 34vw);
    align-items: stretch;
  }

  .cp-checkout__grid--checkout {
    grid-template-areas: "main summary";
    grid-template-columns: 1fr min(22rem, 34vw);
    align-items: stretch;
  }

  .cp-checkout__grid--checkout.cp-checkout__grid--checkout-empty {
    grid-template-areas: "main";
    grid-template-columns: 1fr;
  }
}

.cp-checkout__form.cp-checkout__grid--checkout .cp-checkout__main,
.cp-checkout__grid--checkout .cp-checkout__main {
  grid-area: main;
  min-width: 0;
}

.cp-checkout__form.cp-checkout__grid--checkout .cp-checkout__summary-wrap,
.cp-checkout__grid--checkout .cp-checkout__summary-wrap {
  grid-area: summary;
  min-width: 0;
}

.cp-checkout__form .cp-checkout__main .cp-checkout__card + .cp-checkout__card {
  margin-top: 0;
}

.cp-checkout__main #cp-checkout-filled {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cp-checkout__main .cp-checkout__reserved + .cp-checkout__section {
  margin-top: 0;
}

.cp-checkout__main .cp-checkout__section + .cp-checkout__section {
  margin-top: 0;
}

.cp-checkout__section-title {
  margin: 0 0 1rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--cp-text);
}

.cp-checkout__section-hint {
  margin: -0.35rem 0 1rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--cp-text-soft);
}

.cp-checkout__section-fields--contact .woocommerce-billing-fields__field-wrapper,
.cp-checkout__section-fields--delivery .woocommerce-shipping-fields__field-wrapper {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.cp-checkout__delivery-row--csz {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 600px) {
  .cp-checkout__section-fields--delivery .woocommerce-shipping-fields__field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .cp-checkout__section-fields--delivery .cp-checkout__delivery-row--csz {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .cp-checkout__section-fields--delivery .cp-checkout__delivery-row--csz > .form-row,
  .cp-checkout__section-fields--delivery .cp-checkout__delivery-row--csz > .cp-checkout-csz-field {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
  }

  .cp-checkout__section-fields--delivery .cp-checkout__delivery-row--csz > #shipping_city_field {
    flex: 1.2 1 0;
  }

  .cp-checkout__section-fields--delivery .cp-checkout__delivery-row--csz > #shipping_postcode_field {
    flex: 0.85 1 0;
  }

  .cp-checkout__section-fields--delivery .cp-checkout__delivery-row--csz .select2-container {
    width: 100% !important;
  }
}

.cp-checkout__option-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cp-checkout__option-card {
  position: relative;
  margin: 0;
  border: 1px solid var(--cp-border-strong);
  border-radius: var(--cp-radius);
  background: var(--cp-bg);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cp-checkout__option-card.is-selected {
  border-color: var(--cp-primary);
  background: rgba(var(--cp-primary-rgb), 0.04);
  box-shadow: 0 0 0 1px rgba(var(--cp-primary-rgb), 0.08);
}

.cp-checkout__option-input {
  position: absolute;
  opacity: 0;
}

.cp-checkout__option-cards--payment .cp-checkout__option-input,
.cp-checkout__option-card--checkbox .cp-checkout__option-input {
  pointer-events: none;
}

.cp-checkout__option-cards--payment .payment_method_mecom_paypal .cp-checkout__option-input {
  pointer-events: auto;
}

.cp-checkout__option-cards--shipping .cp-checkout__option-input {
  pointer-events: auto;
}

.cp-checkout__option-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.95rem 1rem;
  cursor: pointer;
}

.cp-checkout__option-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cp-checkout__option-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-size: var(--cp-input-font-size);
  font-weight: 700;
  line-height: 1.35;
  color: var(--cp-text);
}

.cp-checkout__option-desc {
  font-family: var(--font-ui);
  font-size: var(--cp-input-font-size);
  line-height: 1.45;
  color: var(--cp-text-soft);
}

.cp-checkout__option-price {
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: var(--cp-input-font-size);
  font-weight: 700;
  color: var(--cp-text);
}

.cp-checkout__option-price--free {
  color: var(--cp-primary);
}

.cp-checkout__option-icon {
  flex-shrink: 0;
  color: var(--cp-primary);
}

.cp-checkout__option-icons {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 9rem;
}

.cp-checkout__option-icons .mecom-paypal-payment-icon {
  float: none;
  max-height: 22px;
  width: auto;
  margin: 0;
}

.cp-checkout__option-icons #cs-pp-loader,
.cp-checkout__option-icons #cs-pp-loader-credit {
  display: none;
}

.cp-checkout__option-card .payment_box {
  margin: 0;
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--cp-border);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--cp-text-muted);
}

.cp-checkout__option-cards--payment .cp-checkout__option-card .payment_box {
  background: rgba(var(--cp-primary-rgb), 0.02);
}

.cp-checkout__payment-placeholder {
  margin: 0;
  padding: 1rem;
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--cp-text-muted);
  text-align: center;
  border: 1.5px dashed var(--cp-border-strong);
  border-radius: var(--cp-radius);
  background: var(--cp-bg-subtle);
}

.cp-checkout__section--payment .cp-checkout__payment {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.cp-checkout__section--payment .cp-checkout__payment-title {
  margin: 0 0 0.35rem;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--cp-text);
}

.cp-checkout__section--payment .cp-checkout__payment-hint {
  margin: 0 0 1rem;
}

.cp-checkout__section--payment .cp-checkout__place-order {
  margin: 1rem 0 0;
  padding: 0;
}

.cp-checkout__section--payment #place_order.cp-checkout__submit {
  width: 100%;
  min-height: var(--cp-btn-height);
  font-family: var(--font-ui);
  font-size: var(--cp-btn-font-size);
  font-weight: var(--cp-btn-font-weight);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 960px) {
  .cp-checkout__section--payment #place_order.cp-checkout__submit {
    display: inline-flex;
  }
}

@media (max-width: 959px) {
  .cp-checkout__section--payment #place_order.cp-checkout__submit {
    display: none;
  }
}

body.woocommerce-checkout .cp-page-entry,
body.woocommerce-checkout .cp-page-content .cp-page-entry,
body[data-cp-page="checkout"] .cp-page-entry {
  display: none;
}

/* Hide duplicate Woo section headings inside theme cards */
.cp-checkout__card .woocommerce-billing-fields > h3,
.cp-checkout__card .woocommerce-shipping-fields > h3,
.cp-checkout__card #ship-to-different-address {
  margin-top: 0;
}

.cp-checkout__card .woocommerce-billing-fields > h3,
.cp-checkout__card .woocommerce-shipping-fields > h3 {
  display: none;
}

.cp-checkout__card .cp-checkout__billing-toggle {
  display: block;
  margin: 0 0 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.cp-checkout__card .cp-checkout__billing-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.cp-checkout__card .cp-billing-address-fields[hidden] {
  display: none !important;
}

.cp-checkout__card .woocommerce-billing-fields,
.cp-checkout__card .woocommerce-shipping-fields {
  margin: 0;
}

.cp-checkout__card .shipping_address {
  display: block !important;
}

.cp-checkout__card #ship-to-different-address {
  display: none !important;
}

.cp-checkout__card .form-row {
  margin: 0;
  padding: 0;
}

@media (min-width: 600px) {
  .cp-checkout__card .woocommerce-billing-fields__field-wrapper,
  .cp-checkout__card .cp-billing-address-fields__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
  }

  .cp-checkout__section-fields--delivery .woocommerce-shipping-fields__field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .cp-checkout__section-fields--contact .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cp-checkout__card .form-row-wide:not(#shipping_city_field):not(#shipping_state_field):not(#shipping_postcode_field),
  .cp-checkout__card #billing_country_field,
  .cp-checkout__card #shipping_country_field,
  .cp-checkout__card #billing_state_field,
  .cp-checkout__card #billing_email_field,
  .cp-checkout__card #billing_phone_field,
  .cp-checkout__section-fields--delivery #shipping_country_field,
  .cp-checkout__section-fields--delivery #shipping_first_name_field,
  .cp-checkout__section-fields--delivery #shipping_address_1_field,
  .cp-checkout__section-fields--delivery #shipping_address_2_field {
    width: 100%;
  }
}

.cp-checkout__card #ship-to-different-address {
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.cp-checkout__card #ship-to-different-address label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  cursor: pointer;
}

.cp-checkout__card .form-row label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cp-text);
}

.cp-checkout__card .form-row.woocommerce-invalid .cp-checkout__input,
.cp-checkout__card .form-row.woocommerce-invalid select,
.cp-checkout__card .form-row.woocommerce-invalid-required-field .cp-checkout__input,
.cp-checkout__card .form-row.woocommerce-invalid-required-field select {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.cp-checkout__card .checkout-inline-error-message {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  color: #e11d48;
}

.woocommerce-privacy-policy-text {
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--cp-text-soft);
}

.cp-checkout__card .input-text,
.cp-checkout__card select,
.cp-checkout__card textarea {
  font-family: var(--font-ui);
  color: var(--cp-text);
  background: var(--cp-bg);
  border: 1px solid var(--cp-border-strong);
  border-radius: var(--cp-radius);
  padding: 0.72rem 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.cp-checkout__card select {
  font-size: var(--cp-input-font-size);
}

.cp-checkout__card .input-text,
.cp-checkout__card textarea {
  font-size: var(--cp-input-font-size);
}

.cp-checkout__card .input-text:hover {
  border-color: var(--cp-primary-light);
}

.cp-checkout__card .input-text:focus,
.cp-checkout__card textarea:focus {
  outline: none;
  border-color: var(--cp-primary);
  box-shadow: 0 0 0 3px rgba(var(--cp-primary-rgb), 0.1);
}

/* Native selects (country, state, etc.) */
.cp-checkout__card select,
.cp-checkout__card .cp-checkout__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  min-height: 2.85rem;
  line-height: 1.4;
  padding-right: 2.5rem;
  background-color: var(--cp-bg);
  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='%231e3a5f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cp-checkout__card select:hover,
.cp-checkout__card .cp-checkout__select:hover {
  border-color: var(--cp-primary-light);
}

.cp-checkout__card select:focus,
.cp-checkout__card .cp-checkout__select:focus {
  outline: none;
  border-color: var(--cp-primary);
  box-shadow: 0 0 0 3px rgba(var(--cp-primary-rgb), 0.1);
}

.cp-checkout__card select:disabled,
.cp-checkout__card .cp-checkout__select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--cp-bg-muted);
}

.cp-checkout__card .woocommerce-invalid select,
.cp-checkout__card .woocommerce-invalid-required-field select,
.cp-checkout__card select.woocommerce-invalid {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

/* WooCommerce SelectWoo / Select2 (country & state) */
.cp-checkout__card .select2-container {
  width: 100% !important;
  max-width: 100%;
}

.cp-checkout__card .select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
  min-height: 2.85rem;
  height: auto;
  padding: 0.55rem 2.5rem 0.55rem 0.85rem;
  font-family: var(--font-ui);
  font-size: var(--cp-input-font-size);
  line-height: 1.4;
  color: var(--cp-text);
  background: var(--cp-bg);
  border: 1px solid var(--cp-border-strong);
  border-radius: var(--cp-radius);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cp-checkout__card .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: 1.4;
  color: var(--cp-text);
}

.cp-checkout__card .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--cp-text-soft);
}

.cp-checkout__card .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50%;
  right: 0.75rem;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
}

.cp-checkout__card .select2-container--default .select2-selection--single .select2-selection__arrow b {
  display: none;
}

.cp-checkout__card .select2-container--default .select2-selection--single .select2-selection__arrow::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  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='%231e3a5f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.cp-checkout__card .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow::after {
  transform: rotate(180deg);
}

.cp-checkout__card .select2-container--default:hover .select2-selection--single {
  border-color: var(--cp-primary-light);
}

.cp-checkout__card .select2-container--default.select2-container--focus .select2-selection--single,
.cp-checkout__card .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--cp-primary);
  box-shadow: 0 0 0 3px rgba(var(--cp-primary-rgb), 0.1);
}

.cp-checkout__card .woocommerce-invalid .select2-container--default .select2-selection--single {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected],
body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[data-selected] {
  background-color: var(--cp-primary);
  color: var(--cp-on-gold);
}

body.woocommerce-checkout .select2-dropdown {
  border: 1px solid var(--cp-border-strong);
  border-radius: var(--cp-radius);
  box-shadow: var(--cp-shadow-soft);
  font-family: var(--font-ui);
  font-size: var(--cp-input-font-size);
  overflow: hidden;
  z-index: 200;
}

body.woocommerce-checkout .select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--cp-border-strong);
  border-radius: var(--cp-radius-sm);
  padding: 0.5rem 0.65rem;
  font-family: var(--font-ui);
  font-size: var(--cp-input-font-size);
}

body.woocommerce-checkout .select2-container--default .select2-search--dropdown .select2-search__field:focus {
  outline: none;
  border-color: var(--cp-primary);
  box-shadow: 0 0 0 3px rgba(var(--cp-primary-rgb), 0.1);
}

body.woocommerce-checkout .select2-container--default .select2-results__option {
  padding: 0.5rem 0.75rem;
  font-size: var(--cp-input-font-size);
}

/* Coupon — sidebar only (removed from top of checkout) */
.cp-checkout-page .woocommerce-form-coupon-toggle {
  display: none !important;
}

.cp-checkout__summary-card .cp-checkout__coupon {
  margin: 0 0 1.15rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--cp-border);
}

.cp-checkout__coupon-label {
  margin: 0 0 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cp-text-muted);
}

.cp-checkout__coupon-form {
  margin: 0;
  padding: 0;
  display: block !important;
}

.cp-checkout__coupon-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.cp-checkout__coupon-input {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.cp-checkout__coupon-btn {
  flex-shrink: 0;
  min-height: 2.85rem;
  padding: 0 1.1rem;
  font-family: var(--font-ui);
  font-size: var(--cp-btn-font-size);
  font-weight: var(--cp-btn-font-weight);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cp-primary);
  background: var(--cp-bg);
  border: 1.5px solid var(--cp-primary);
  border-radius: var(--cp-radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cp-checkout__coupon-btn:hover {
  color: var(--cp-on-gold);
  background: var(--cp-primary);
  border-color: var(--cp-primary);
}

.cp-checkout__coupon-btn:focus-visible {
  outline: 2px solid var(--cp-accent);
  outline-offset: 2px;
}

.cp-checkout__summary-card .cp-checkout-review .cart-discount dd a {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cp-primary);
}

/* Compact order review (matches cart sidebar) */
.cp-checkout__summary-card .cp-checkout-review {
  margin: 0;
}

.cp-checkout__summary-card .cp-checkout-review .cp-checkout__items {
  max-height: 16rem;
}

.cp-checkout__summary-card .cp-checkout-review .cp-checkout__totals {
  margin-bottom: 0;
}

.cp-checkout__item-variation {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--cp-text-soft);
}

.cp-checkout__item-variation dl,
.cp-checkout__item-variation dt,
.cp-checkout__item-variation dd {
  display: inline;
  margin: 0;
}

.cp-checkout__shipping-methods {
  margin: 0.35rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--cp-border);
}

.cp-checkout__shipping-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cp-text-muted);
}

.cp-checkout__shipping-options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cp-checkout__shipping-options li {
  margin: 0 0 0.45rem;
}

.cp-checkout__shipping-options label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--cp-input-font-size);
  line-height: 1.45;
  color: var(--cp-text);
  cursor: pointer;
}

.cp-checkout__shipping-options input {
  margin-top: 0.2rem;
  accent-color: var(--cp-primary);
}

/* Payment block — now in main checkout column */
.cp-checkout__summary-card .cp-checkout__payment {
  display: none;
}

.cp-checkout__payment-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cp-text-muted);
}

.cp-checkout__summary-card #payment .payment_methods {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  border: 0;
}

.cp-checkout__summary-card #payment .payment_methods li {
  margin: 0 0 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  background: var(--cp-bg-subtle);
}

.cp-checkout__summary-card #payment .payment_methods li label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cp-text);
  cursor: pointer;
}

.cp-checkout__summary-card #payment .payment_box {
  margin: 0.65rem 0 0;
  padding: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--cp-text-muted);
  background: var(--cp-card);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-sm);
}

.cp-checkout__summary-card .cp-checkout__place-order {
  margin: 0;
  padding: 0;
}

.cp-checkout__summary-card #place_order.cp-checkout__submit {
  width: 100%;
  min-height: var(--cp-btn-height);
  font-family: var(--font-ui);
  font-size: var(--cp-btn-font-size);
  font-weight: var(--cp-btn-font-weight);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cp-on-gold);
  background: var(--cp-primary);
  border: none;
  border-radius: var(--cp-radius);
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s, transform 0.1s;
}

.cp-checkout__summary-card #place_order.cp-checkout__submit:hover {
  background: var(--cp-primary-deep);
}

.cp-checkout__summary-card .cp-checkout__secure {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

@media (max-width: 959px) {
  .cp-checkout__section--payment #place_order.cp-checkout__submit {
    display: none;
  }

  body.cp-page--checkout-bare .cp-checkout__section--payment #place_order.cp-checkout__submit {
    display: flex;
  }

  body.cp-page--checkout-bare .cp-checkout__mobile-bar {
    display: none !important;
  }

  body.cp-page--checkout-bare .cp-checkout__form.cp-checkout__grid--checkout {
    grid-template-areas: "summary" "main";
    gap: 0;
  }

  body.cp-page--checkout-bare .cp-checkout__summary-wrap {
    background: #fff;
    padding: 0;
    border-bottom: 1px solid var(--cp-border);
  }

  body.cp-page--checkout-bare .cp-checkout__summary-toggle {
    margin: 0;
    padding: 0.95rem var(--cp-container-padding-x);
    background: #fff;
    border: 0;
    border-radius: 0;
  }

  body.cp-page--checkout-bare .cp-checkout__summary-panel {
    padding: 0 var(--cp-container-padding-x) 1rem;
    background: #f3f6f9;
  }

  body.cp-page--checkout-bare .cp-checkout__summary-card {
    padding: 1rem 0 0;
    background: transparent;
    border: 0;
  }

  body.cp-page--checkout-bare .cp-checkout__main {
    padding: 1rem var(--cp-container-padding-x) 1.5rem;
  }

  body.cp-page--checkout-bare .cp-checkout__main-extras .cp-checkout__sidebar-extras {
    margin-top: 0.25rem;
  }

  body.cp-page--checkout-bare .cp-checkout__trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.cp-page--checkout-bare:not(.cp-checkout-empty) .cp-checkout__inner,
  body.cp-page--checkout-bare.woocommerce-checkout:not(.cp-checkout-empty) .cp-checkout__inner {
    padding-bottom: 1.5rem;
  }

  body.woocommerce-checkout:not(.cp-checkout-empty) .cp-checkout__inner {
    padding-bottom: 1.5rem;
  }
}

/* Woo default table fallback (AJAX fragments) */
.cp-checkout__summary-card table.woocommerce-checkout-review-order-table {
  display: none;
}

/* ============================================================
   Emerald-style checkout layout
   ============================================================ */

body.cp-page--checkout-bare .cp-checkout__form.cp-checkout__grid--checkout {
  gap: 0;
  min-height: auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
}

@media (min-width: 960px) {
  body.cp-page--checkout-bare .cp-checkout__form.cp-checkout__grid--checkout {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 24rem);
  }

  body.cp-page--checkout-bare .cp-checkout__main {
    display: block;
    padding: 2rem 2rem 2.5rem;
    background: #fff;
    border-right: 1px solid var(--cp-border);
  }

  body.cp-page--checkout-bare .cp-checkout__main #cp-checkout-filled {
    width: 100%;
    max-width: none;
    gap: 1.35rem;
  }

  body.cp-page--checkout-bare .cp-checkout__summary-wrap {
    background: #f3f6f9;
    padding: 2rem 1.5rem 2.5rem;
  }

  body.cp-page--checkout-bare .cp-checkout__summary-card {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}

body.cp-page--checkout-bare .cp-checkout__summary-card {
  position: static;
  top: auto;
  max-height: none;
  overflow: visible;
}

body.cp-page--checkout-bare .cp-checkout__form .cp-checkout__main .cp-checkout__card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.cp-page--checkout-bare .cp-checkout__section-title,
body.cp-page--checkout-bare .cp-checkout__card-title {
  margin-bottom: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cp-text);
}

body.cp-page--checkout-bare .cp-checkout__banner--success {
  color: #14532d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

body.cp-page--checkout-bare .cp-checkout__banner--success .cp-checkout__banner-icon {
  display: flex;
  color: #16a34a;
}

body.cp-page--checkout-bare .cp-checkout__option-card.is-selected {
  border-color: #16a34a;
  background: #f0fdf4;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.12);
}

body.cp-page--checkout-bare .cp-checkout__option-price--free,
body.cp-page--checkout-bare .cp-checkout__shipping-free,
body.cp-page--checkout-bare .cp-checkout__total-row--discount dd {
  color: #16a34a;
}

body.cp-page--checkout-bare .cp-checkout__summary-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

body.cp-page--checkout-bare .cp-checkout__items {
  margin-bottom: 0.85rem;
}

body.cp-page--checkout-bare .cp-checkout__item-media {
  position: relative;
  flex-shrink: 0;
}

body.cp-page--checkout-bare .cp-checkout__item-thumb {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 8px;
}

body.cp-page--checkout-bare .cp-checkout__item-qty {
  position: absolute;
  top: -0.35rem;
  left: -0.35rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  color: #fff;
  background: #64748b;
  border-radius: 100px;
}

body.cp-page--checkout-bare .cp-checkout__item-meta {
  font-size: 0.78rem;
}

body.cp-page--checkout-bare .cp-checkout__coupon {
  margin: 0 0 1rem;
}

body.cp-page--checkout-bare .cp-checkout__coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

body.cp-page--checkout-bare .cp-checkout__coupon-input {
  min-height: 2.75rem;
  border-radius: 8px;
}

body.cp-page--checkout-bare .cp-checkout__coupon-btn {
  min-height: 2.75rem;
  padding: 0 1rem;
  font-weight: 600;
  color: var(--cp-text);
  background: #fff;
  border: 1px solid var(--cp-border-strong);
  border-radius: 8px;
}

body.cp-page--checkout-bare .cp-checkout__totals {
  border-top: 1px solid var(--cp-border);
  padding-top: 0.85rem;
}

body.cp-page--checkout-bare .cp-checkout__total-row--grand dt,
body.cp-page--checkout-bare .cp-checkout__total-row--grand dd {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cp-text);
}

body.cp-page--checkout-bare .cp-checkout__trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  list-style: none;
  margin: 1.25rem 0 0.85rem;
  padding: 0;
}

body.cp-page--checkout-bare .cp-checkout__trust-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-height: 4.5rem;
  padding: 0.75rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--cp-text-muted);
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: 8px;
}

body.cp-page--checkout-bare .cp-checkout__trust-icon {
  color: #16a34a;
}

body.cp-page--checkout-bare .cp-checkout__trust-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cp-text-muted);
}

body.cp-page--checkout-bare .cp-checkout__trust-score-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  color: #16a34a;
}

body.cp-page--checkout-bare .cp-checkout__trust-score-brand svg {
  color: #16a34a;
}

body.cp-page--checkout-bare .cp-checkout__trust-score-stars .cp-pdp-star--filled {
  color: #c9a227;
}

body.cp-page--checkout-bare .cp-checkout__review-card {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: 10px;
}

body.cp-page--checkout-bare .cp-checkout__review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

body.cp-page--checkout-bare .cp-checkout__review-stars .cp-pdp-star--filled {
  color: #c9a227;
}

body.cp-page--checkout-bare .cp-checkout__review-when {
  font-size: 0.72rem;
  color: var(--cp-text-soft);
}

body.cp-page--checkout-bare .cp-checkout__review-title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cp-text);
}

body.cp-page--checkout-bare .cp-checkout__review-body {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--cp-text-muted);
}

body.cp-page--checkout-bare .cp-checkout__review-author {
  margin: 0;
  font-size: 0.78rem;
  color: var(--cp-text-soft);
}

body.cp-page--checkout-bare .cp-checkout__review-author strong {
  color: var(--cp-text);
}

body.cp-page--checkout-bare .cp-checkout__review-author span::before {
  content: "·";
  margin: 0 0.35rem;
}

body.cp-page--checkout-bare .cp-checkout__upsells-title {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cp-text);
}

body.cp-page--checkout-bare .cp-checkout__upsell-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

body.cp-page--checkout-bare .cp-checkout__upsell-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

body.cp-page--checkout-bare .cp-checkout__upsell-thumb {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  background: #fff;
}

body.cp-page--checkout-bare .cp-checkout__upsell-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cp-text);
  text-decoration: none;
}

body.cp-page--checkout-bare .cp-checkout__upsell-name:hover {
  color: #16a34a;
}

body.cp-page--checkout-bare .cp-checkout__upsell-price {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--cp-text-muted);
}

body.cp-page--checkout-bare .cp-checkout__upsell-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  background: #16a34a;
  border-radius: 100px;
  box-shadow: none;
}

body.cp-page--checkout-bare .cp-checkout__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.75rem;
  color: var(--cp-text-soft);
  justify-content: center;
}

body.cp-page--checkout-bare .cp-checkout__policies a {
  color: inherit;
  text-decoration: none;
}

body.cp-page--checkout-bare .cp-checkout__policies a:hover {
  color: #16a34a;
  text-decoration: underline;
}

@media (max-width: 959px) {
  body.cp-page--checkout-bare .cp-checkout__main {
    padding: 1.25rem var(--cp-container-padding-x) 1.5rem;
  }
}

@media (max-width: 767.98px) {
  body.woocommerce-checkout:not(.cp-checkout-empty) .cp-checkout__inner {
    padding: 0px !important;
  }

  body.cp-page--checkout-bare .cp-checkout__form.cp-checkout__grid--checkout {
    background: #fff;
    border-radius: 0;
    border: 0;
  }

  body.cp-page--checkout-bare .cp-checkout__summary-wrap {
    margin-bottom: 0;
  }

  body.cp-page--checkout-bare .cp-checkout__inner--thankyou {
    padding: 0 !important;
  }

  body.cp-page--checkout-bare .cp-checkout-thankyou__grid--single {
    border: 0;
    border-radius: 0;
  }

  body.cp-page--checkout-bare .cp-checkout-thankyou__main {
    padding: 1.25rem var(--cp-container-padding-x) 1.5rem;
  }
}

/* ============================================================
   Thank you / order received — bare checkout layout (single column)
   ============================================================ */

body.cp-page--checkout-bare .cp-checkout__inner--thankyou {
  padding: 1.5rem var(--cp-container-padding-x) 2.5rem;
}

body.cp-page--checkout-bare .cp-checkout-thankyou__grid--single {
  gap: 0;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
}

body.cp-page--checkout-bare .cp-checkout-thankyou__main {
  min-width: 0;
  padding: 1.25rem var(--cp-container-padding-x) 1.5rem;
}

body.cp-page--checkout-bare .cp-checkout-thankyou__card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.cp-page--checkout-bare .cp-checkout-thankyou__status {
  margin-bottom: 1rem;
}

body.cp-page--checkout-bare .cp-checkout-thankyou__meta-row--total dd {
  color: #16a34a;
}

@media (min-width: 480px) {
  body.cp-page--checkout-bare .cp-checkout-thankyou__main {
    padding: 2rem 2rem 2.5rem;
  }
}
