/* Checkout-specific CSS variables */
:root {
  --checkout-surface: color-mix(in srgb, var(--surface-2, #f2eeeb) 82%, var(--white, #ffffff));
  --checkout-bg: var(--surface-1, #ffffff);
  --checkout-radius: var(--border-radius, 16px);
  --checkout-border: color-mix(in srgb, var(--brand-primary, #1f1f1f) 12%, var(--brand-bg, #f7f5f3));
  --checkout-cta: var(--cta, #c85537);
  --checkout-cta-hover: var(--cta-hover, #ad492f);
  --checkout-text-muted: var(--text-muted, #67605d);
  --checkout-transition: all 0.2s ease;
}

/* hide default header */
.page-header {
  display: none !important;
}

/* CART HEADER */
.jk-cart-header {
  text-align: center;
  margin-bottom: 0;
  padding: 50px 0;
}
.jk-cart-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--primary);
}

/* MAIN GRID */
.jk-cart-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.jk-cart-items-section,
.jk-cart-sidebar {
  background: none;
  padding: 0;
}

/* this fixes the shrink from the theme rule */
.jk-cart-sidebar .cart-collaterals .cart_totals {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* CART ITEMS LIST */
.cart-items-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* CART ITEM - Cart page specific styles */
.cart-items-grid .cart-item {
  background: var(--checkout-surface);
  border: 1px solid var(--checkout-border);
  border-radius: var(--checkout-radius);
  padding: 10px 64px 10px 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  transition: var(--checkout-transition);
}
.cart-items-grid .cart-item:hover {
  background: var(--checkout-surface);
}

.cart-item-product-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.cart-item-image {
  flex-shrink: 0;
}
.cart-item-image img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--checkout-radius);
  transition: var(--checkout-transition);
}
.cart-item-image:hover img {
  transform: none;
}

/* ITEM DETAILS */
.cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cart-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  margin: 0;
}
.cart-item-title a {
  color: var(--black);
  text-decoration: none;
  transition: var(--checkout-transition);
}
.cart-item-title a:hover {
  color: var(--checkout-cta);
}
.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0;
}
.cart-item-meta .variation-item {
  background: var(--surface-4);
  padding: 3px 8px;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  color: var(--checkout-text-muted);
}

.cart-item-price-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-price-label {
  color: var(--checkout-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* RIGHT SIDE OF ITEM */
.cart-item-actions-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.cart-item-qty-subtotal {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* QUANTITY + SUBTOTAL CELLS */
.cart-item-quantity,
.cart-item-subtotal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.cart-item-quantity {
  min-width: 156px;
}
.cart-item-quantity-title {
  /* we don't want the "Qty" label */
  display: none;
}
.cart-item-subtotal-title {
  font-size: 0.8rem;
  color: var(--checkout-text-muted);
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cart-item-subtotal-value {
  font-weight: 600;
  color: var(--black);
  transition: var(--checkout-transition);
}
.cart-item-subtotal-value.is-updating {
  color: var(--checkout-cta);
  transform: scale(1.05);
}

/* OUR CUSTOM QUANTITY CONTROL */
.quantity.jk-qty-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--checkout-border);
  border-radius: 999px;
  padding: 2px 4px;
}

.cart-item-quantity .jk-qty-variation,
.jk-qty-control.jk-qty-cart .jk-qty-variation {
  display: none;
}

/* Cart page quantity controls - fixed width for consistency */
.cart-item-quantity .jk-qty-control {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.cart-item-quantity .jk-qty-control .jk-qty-row,
.cart-item-quantity .jk-qty-control .jk-qty-add {
  width: 100%;
  min-width: 156px;
  min-height: 42px;
  height: 42px;
  border: 1px solid var(--background-grey);
  border-radius: var(--pill-radius);
  background: var(--brand-bg);
  box-shadow: none;
}

.cart-item-quantity .jk-qty-control .jk-qty-add {
  font-size: 14px;
  padding: 0 12px;
  color: var(--text-body);
  font-weight: 600;
}

.cart-item-quantity .jk-qty-control .jk-qty-minus,
.cart-item-quantity .jk-qty-control .jk-qty-plus {
  width: 44px;
  flex: 0 0 44px;
  font-size: 16px;
  background: var(--surface-2);
  color: var(--text-body);
}

.cart-item-quantity .jk-qty-control .jk-qty-input {
  font-size: 14px;
  padding: 0 12px;
  min-width: 3ch;
  flex: 1 1 64px;
  background: transparent;
}

.cart-item-quantity .jk-qty-control .jk-qty-btn:hover,
.cart-item-quantity .jk-qty-control .jk-qty-add:hover {
  background: var(--brand-bg);
  color: var(--text-body);
  filter: brightness(0.98);
}

.quantity.jk-qty-wrapper input.qty {
  width: 60px;
  height: 34px;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
}
.quantity.jk-qty-wrapper input[type=number]::-webkit-outer-spin-button,
.quantity.jk-qty-wrapper input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quantity.jk-qty-wrapper input[type=number] {
  -moz-appearance: textfield;
}
.quantity.jk-qty-wrapper .jk-qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--checkout-bg);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
  color: var(--black);
}
.quantity.jk-qty-wrapper .jk-qty-btn:hover {
  background: var(--checkout-border);
}

/* allow clicking while updating */
.cart-items-grid .cart-item.is-updating {
  opacity: 0.95;
  position: relative;
}
.cart-items-grid .cart-item.is-updating::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border: 3px solid var(--checkout-cta);
  border-top-color: transparent;
  border-radius: 50%;
  animation: jk-spin .6s linear infinite;
}
@keyframes jk-spin { to { transform: rotate(360deg); } }
.cart-items-grid .cart-item.is-updating .jk-qty-wrapper,
.cart-items-grid .cart-item.is-updating .jk-qty-btn,
.cart-items-grid .cart-item.is-updating input.qty {
  pointer-events: auto;
  opacity: 1;
}

/* REMOVE BUTTON */
.cart-item-remove {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-remove .remove {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  border-radius: 50% !important;
  background: var(--black) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  position: relative !important;
  text-decoration: none !important;
  padding: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.cart-item-remove .remove::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');
  background-repeat: no-repeat;
  background-position: center;
}
.cart-item-remove .remove:hover {
  background: var(--primary) !important;
}
.cart-item-remove .remove:hover::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');
}

/* CART TOTALS BOX */
.jk-cart-sidebar .cart_totals {
  background: var(--checkout-surface);
  border: 1px solid var(--checkout-border);
  border-radius: var(--checkout-radius);
  padding: 24px;
  box-sizing: border-box;
}
.jk-cart-sidebar .cart_totals h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--black);
  padding-bottom: 0;
  border-bottom: none;
}

/* table inside totals */
.jk-cart-sidebar .cart_totals table.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  border: none;
}

/* THIS fixes the title padding issue — we override WooCommerce padding */
.jk-cart-sidebar .cart_totals table.shop_table th,
.jk-cart-sidebar .cart_totals table.shop_table td,
.jk-cart-sidebar .cart_totals .shop_table th,
.jk-cart-sidebar .cart_totals .shop_table td {
  padding: 10px 0 !important; /* vertical only */
  border: none;
}

.jk-cart-sidebar .cart_totals table.shop_table th {
  text-align: left;
  color: var(--black);
  font-weight: 600;
}
.jk-cart-sidebar .cart_totals table.shop_table td {
  text-align: right;
  font-weight: 600;
  color: var(--black);
  border-top: none;
}

/* SHIPPING ROW SPECIAL */
.cart_totals .jk-shipping-row th,
.cart_totals .jk-shipping-row td {
  border-top: none;
  padding: 10px 0 !important;
}

/* SHIPPING BLOCK (align right, 2nd line clean) */
.jk-ship-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.jk-ship-main {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.jk-ship-original-price {
  display: none;
}
.jk-ship-free {
  color: var(--black);
  font-weight: 700;
}
.jk-ship-cost {
  font-weight: 600;
  color: var(--black);
}

/* remove funny background from "to Austria" */
.jk-ship-meta {
  display: inline-block;
  text-align: right;
  font-size: 0.78rem;
  color: var(--black);
  margin-top: 2px;
  background: none;
  padding: 0;
}
.jk-ship-destination-label {
  font-weight: 500;
  white-space: nowrap;
}
.jk-ship-change {
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
}
.jk-ship-change:hover {
  text-decoration: underline;
}

/* TOTAL ROW & VAT LINE */
.jk-cart-sidebar .cart_totals .order-total {
  border-top: 1px solid var(--checkout-border);
  margin-top: 12px;
}
.jk-cart-sidebar .cart_totals .order-total th,
.jk-cart-sidebar .cart_totals .order-total td {
  font-size: 1.25rem;
  font-weight: 700;
  padding-top: 18px !important;
}
.jk-cart-sidebar .cart_totals .order-total td small,
.jk-cart-sidebar .cart_totals .order-total .includes_tax {
  display: block;
  font-size: 0.72rem;
  color: var(--black);
  margin-top: 4px;
  line-height: 1.3;
}

/* CHECKOUT BUTTON — full parent width */
.jk-cart-sidebar .cart_totals .wc-proceed-to-checkout {
  margin-top: 0;
}
.jk-cart-sidebar .cart_totals .wc-proceed-to-checkout .checkout-button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
  text-align: center;
  padding: 16px 20px;
  background: var(--checkout-cta) !important;
  color: var(--white) !important;
  border-radius: var(--checkout-radius);
  font-weight: 700;
  font-size: 1.05rem;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(var(--cta-rgb), 0.16);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.jk-cart-sidebar .cart_totals .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--checkout-cta-hover) !important;
  color: var(--white) !important;
  border-color: transparent !important;
  transform: translateY(-1px);
  filter: saturate(1.02);
  box-shadow: 0 18px 34px rgba(var(--cta-rgb), 0.2);
}

/* TRUST BADGES */
.jk-trust-badges {
  background: var(--checkout-surface);
  border-radius: var(--checkout-radius);
  padding: 16px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.jk-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.jk-badge-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jk-badge-icon svg {
  color: var(--checkout-cta);
}
.jk-badge-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.jk-badge-content strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
}
/* general second-line text in badges */
.jk-badge-content > span {
    display: block;
    font-size: 0.75rem;
    color: var(--checkout-text-muted);
}

/* but if a WC price appears inside, keep its own style */
.jk-badge-content span.woocommerce-Price-amount {
    display: inline;
    font-size: inherit;
    color: inherit;
}

/* make price inside trust badge same size as text after it */
.jk-badge-content strong .woocommerce-Price-amount,
.jk-badge-content strong .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* EMPTY CART */
.cart-empty {
  text-align: center;
  background: var(--checkout-surface);
  border-radius: var(--checkout-radius);
  padding: 48px 24px;
}
.cart-empty .return-to-shop .button {
  background: var(--checkout-cta) !important;
  color: var(--white) !important;
  border-radius: var(--checkout-radius);
}

/* hide WC update button */
.woocommerce-cart-form button[name="update_cart"] {
  display: none !important;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .jk-cart-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cart-items-grid .cart-item {
    padding: 10px 70px 10px 10px;
  }
}
@media (max-width: 768px) {
  .cart-items-grid .cart-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px 16px 16px;
  }
  .cart-item-remove {
    top: 14px;
    right: 14px;
    transform: none;
  }
  .cart-item-image img {
    width: 100%;
    height: auto;
    max-height: 180px;
  }
  .cart-item-qty-subtotal {
    gap: 20px;
    flex-direction: row;
    justify-content: space-between;
  }
  .quantity.jk-qty-wrapper input.qty {
    width: 56px;
    height: 40px;
  }
}
@media (max-width: 480px) {
  .cart-items-grid .cart-item {
    padding: 12px 14px 14px 14px;
  }
  .jk-trust-badges {
    padding: 12px;
  }
}

/* Stretch quantity control across available cart width */
.cart-item-qty-subtotal {
  width: 100%;
  gap: 24px;
  align-items: stretch;
}
.cart-item-quantity {
  flex: 1;
  align-items: stretch;
}
.cart-item-subtotal {
  flex: 1;
  justify-content: center;
  align-items: flex-end;
}

/* CHECKOUT PAGE - MODERN FLAT DESIGN */

body.woocommerce-checkout {
  --checkout-surface: color-mix(in srgb, var(--surface-2, #f2eeeb) 82%, var(--white, #ffffff));
  background: var(--brand-bg, #f7f5f3);
}

/* Hide default page header */
body.woocommerce-checkout .page-header {
  display: none !important;
}

/* Main Container */
body.woocommerce-checkout .woocommerce {
  color: var(--black);
  max-width: 1900px;
  margin: 0 auto;
  padding: 40px 2%;
  box-sizing: border-box;
  background: transparent;
}

/* Notices */
body.woocommerce-checkout .woocommerce-notices-wrapper {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-error {
  background: var(--checkout-surface);
  border: none !important;
  border-radius: var(--checkout-radius);
  color: var(--black);
  padding: 14px 18px;
  margin: 0 0 10px;
}
body.woocommerce-checkout .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-message::before,
body.woocommerce-checkout .woocommerce-error::before {
  display: none;
}
body.woocommerce-checkout .woocommerce-error {
  background: var(--white);
  background: color-mix(in srgb, var(--cta-2) 12%, var(--white));
  color: var(--cta-2);
}
body.woocommerce-checkout .woocommerce-message {
  background: var(--white);
  background: color-mix(in srgb, var(--cta-3) 12%, var(--white));
  color: var(--cta-3);
}

/* Layout */
body.woocommerce-checkout form.checkout {
  display: block;
  width: 100%;
}

body.woocommerce-checkout .jk-checkout-container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  grid-template-areas:
    "billing review"
    "shipping review";
  gap: 24px;
  align-items: start;
}

body.woocommerce-checkout .jk-checkout-billing {
  grid-area: billing;
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin: 0;
}

body.woocommerce-checkout .jk-checkout-shipping {
  grid-area: shipping;
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin: 0;
}

body.woocommerce-checkout .jk-checkout-review {
  grid-area: review;
  position: sticky;
  top: 120px;
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin: 0;
}

body.woocommerce-checkout .jk-checkout-section {
  background: var(--checkout-surface);
  border: 1px solid var(--checkout-border);
  border-radius: var(--checkout-radius);
  padding: 24px;
  box-sizing: border-box;
  box-shadow: var(--card-shadow);
  float: none !important;
  clear: both;
  width: 100%;
  display: block;
  align-self: start;
}

body.woocommerce-checkout .jk-checkout-section h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
}

/* Coupon (inline, inside checkout form) */
body.woocommerce-checkout .woocommerce-form-coupon-toggle {
  display: none;
}

body.woocommerce-checkout .jk-checkout-coupon {
  margin-bottom: 20px;
}

body.woocommerce-checkout .jk-checkout-coupon-title {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--black);
}

body.woocommerce-checkout .jk-checkout-coupon-fields {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

body.woocommerce-checkout .jk-checkout-coupon-fields .button {
  white-space: nowrap;
}

/* Buttons */
body.woocommerce-checkout .button,
body.woocommerce-checkout .woocommerce-button,
body.woocommerce-checkout button.button {
  padding: 12px 18px;
  background: var(--checkout-cta) !important;
  color: var(--white) !important;
  border: 1px solid transparent !important;
  border-radius: var(--checkout-radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 24px rgba(var(--cta-rgb), 0.14);
}

body.woocommerce-checkout .button:hover,
body.woocommerce-checkout .woocommerce-button:hover,
body.woocommerce-checkout button.button:hover {
  background: var(--checkout-cta-hover) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  filter: saturate(1.02);
  box-shadow: 0 16px 28px rgba(var(--cta-rgb), 0.18);
}

/* Billing / Shipping Fields */
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
}

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row,
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper .form-row {
  margin: 0;
  width: 100%;
}

body.woocommerce-checkout .form-row-first,
body.woocommerce-checkout .form-row-last {
  float: none;
  width: 100%;
}

body.woocommerce-checkout .form-row-wide {
  grid-column: 1 / -1;
}

body.woocommerce-checkout .woocommerce-shipping-fields {
  margin-top: 0;
}

body.woocommerce-checkout h3#ship-to-different-address {
  margin: 0 0 16px;
}

body.woocommerce-checkout h3#ship-to-different-address label {
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

body.woocommerce-checkout h3#ship-to-different-address input[type="checkbox"] {
  margin-right: 8px;
}

/* Order Review */
body.woocommerce-checkout #order_review_heading {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--black);
}

body.woocommerce-checkout #order_review {
  background: transparent;
  padding: 0;
  margin-top: 0;
}

body.woocommerce-checkout form.checkout_coupon,
body.woocommerce-checkout form.login,
body.woocommerce-checkout form.register {
  border: none;
  padding: 0;
  margin: 0;
}

body.woocommerce-checkout #order_review table.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  border: none;
  margin-bottom: 20px;
}

body.woocommerce-checkout #order_review table.shop_table thead th {
  padding: 0 0 10px;
  border: none;
  color: var(--checkout-text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}

body.woocommerce-checkout #order_review table.shop_table thead th:last-child {
  text-align: right;
}

body.woocommerce-checkout #order_review table.shop_table tbody tr {
  background: transparent;
}

body.woocommerce-checkout #order_review table.shop_table tbody td,
body.woocommerce-checkout #order_review table.shop_table tfoot th,
body.woocommerce-checkout #order_review table.shop_table tfoot td {
  padding: 12px 14px;
  border: 1px solid transparent;
  color: var(--black);
  vertical-align: top;
  background: var(--white, #FFFFFF);
}

body.woocommerce-checkout #order_review table.shop_table tbody td:first-child,
body.woocommerce-checkout #order_review table.shop_table tfoot th {
  border-radius: var(--checkout-radius) 0 0 var(--checkout-radius);
  border-color: var(--checkout-border);
  border-right: none;
}

body.woocommerce-checkout #order_review table.shop_table tbody td:last-child,
body.woocommerce-checkout #order_review table.shop_table tfoot td {
  border-radius: 0 var(--checkout-radius) var(--checkout-radius) 0;
  border-color: var(--checkout-border);
  border-left: none;
}

body.woocommerce-checkout #order_review table.shop_table tbody td:last-child,
body.woocommerce-checkout #order_review table.shop_table tfoot td {
  text-align: right;
}

body.woocommerce-checkout #order_review table.shop_table tfoot tr:first-child th,
body.woocommerce-checkout #order_review table.shop_table tfoot tr:first-child td {
  padding-top: 14px;
}

body.woocommerce-checkout #order_review .order-total th,
body.woocommerce-checkout #order_review .order-total td {
  font-size: 1.2rem;
  font-weight: 700;
  padding-top: 14px;
  padding-bottom: 4px;
}

body.woocommerce-checkout #order_review .order-total td small {
  display: block;
  font-size: 0.75rem;
  color: var(--checkout-text-muted);
  margin-top: 4px;
  font-weight: 400;
}

/* Product Images in Order Review */
body.woocommerce-checkout #order_review .product-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.woocommerce-checkout #order_review .product-name img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--checkout-radius);
}

/* Form Fields */
body.woocommerce-checkout .form-row {
  margin-bottom: 16px;
}

body.woocommerce-checkout .form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--black);
  font-size: 0.95rem;
}

body.woocommerce-checkout .form-row .required {
  color: var(--cta-2);
}

body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .select2-container--default .select2-selection--single,
body.woocommerce-checkout .jk-checkout-coupon-fields .input-text {
  width: 100%;
  background: var(--white, #FFFFFF);
  border: 1px solid var(--checkout-border);
  border-radius: var(--checkout-radius);
  padding: 12px 14px;
  color: var(--black);
  box-sizing: border-box;
  transition: var(--checkout-transition);
  font-size: 0.95rem;
}

body.woocommerce-checkout .form-row textarea {
  min-height: 100px;
  resize: vertical;
}

body.woocommerce-checkout .form-row input.input-text:focus,
body.woocommerce-checkout .form-row textarea:focus,
body.woocommerce-checkout .form-row select:focus,
body.woocommerce-checkout .select2-container--default .select2-selection--single:focus,
body.woocommerce-checkout .select2-container--default .select2-selection--single:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

/* Select2 Dropdown Styling */
body.woocommerce-checkout .select2-container--default .select2-selection--single {
  height: auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 1px solid var(--checkout-border);
  background: var(--white, #FFFFFF);
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--black);
  padding-left: 0;
  line-height: 1.5;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--black) transparent transparent transparent;
}

body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--cta);
  color: var(--black);
}

/* Payment Section */
body.woocommerce-checkout #payment {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 16px;
}

body.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.woocommerce-checkout #payment ul.payment_methods li {
  background: var(--white, #FFFFFF);
  border: 1px solid var(--checkout-border);
  border-radius: var(--checkout-radius);
  padding: 14px 16px;
  transition: var(--checkout-transition);
}

body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked ~ label,
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method.active {
  background: var(--white, #FFFFFF);
  outline: 2px solid var(--cta);
  outline-offset: -2px;
}

body.woocommerce-checkout #payment ul.payment_methods li label {
  font-weight: 600;
  cursor: pointer;
  margin: 0;
}

body.woocommerce-checkout #payment .payment_box {
  background: var(--white, #FFFFFF);
  border: 1px solid var(--checkout-border);
  border-radius: var(--checkout-radius);
  padding: 14px 16px;
  margin-top: 12px;
}

/* Place Order Button */
body.woocommerce-checkout #place_order {
  width: 100%;
  padding: 16px 20px;
  background: var(--checkout-cta) !important;
  color: var(--white) !important;
  border: 1px solid transparent !important;
  border-radius: var(--checkout-radius);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  text-transform: none;
  box-shadow: 0 16px 30px rgba(var(--cta-rgb), 0.16);
}

body.woocommerce-checkout #place_order:hover {
  background: var(--checkout-cta-hover) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  filter: saturate(1.02);
  box-shadow: 0 18px 34px rgba(var(--cta-rgb), 0.2);
}

/* Terms and Conditions */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 16px;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text {
  font-size: 0.9rem;
  color: var(--checkout-text-muted);
  margin: 12px 0;
}

/* Responsive Design - Mobile First */
@media (max-width: 992px) {
  body.woocommerce-checkout .woocommerce {
    padding: 32px 3%;
  }

  body.woocommerce-checkout .jk-checkout-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "billing"
      "shipping"
      "review";
  }

  body.woocommerce-checkout .jk-checkout-review {
    position: static;
    top: auto;
  }

  body.woocommerce-checkout .jk-checkout-section {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  body.woocommerce-checkout .woocommerce {
    padding: 24px 4%;
  }

  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
  body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  body.woocommerce-checkout .jk-checkout-coupon-fields {
    grid-template-columns: 1fr;
  }

  body.woocommerce-checkout #order_review table.shop_table {
    font-size: 0.9rem;
  }

  body.woocommerce-checkout #order_review .product-name img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  body.woocommerce-checkout .woocommerce {
    padding: 20px 3%;
  }

  body.woocommerce-checkout .jk-checkout-section {
    padding: 16px;
  }

  body.woocommerce-checkout #place_order {
    padding: 14px 18px;
    font-size: 1rem;
  }
}
