@charset "UTF-8";
/**
 * Mircato Pro - Premium Cart & Checkout Styles (SCSS Entry Point)
 * 
 * Strict decomposition of original CSS.
 * Do not modify selector specificity here.
 */
/* ==========================================================================
   1. GLOBAL CONTAINER & LAYOUT
   ========================================================================== */
body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wp-block-woocommerce-cart.alignwide {
  max-width: 1300px;
  margin: 60px auto;
  padding: 0 40px;
  box-sizing: border-box;
  width: 100%;
  font-family: "Outfit", "Inter", system-ui, sans-serif;
  /* Override Block Variables for Cart */
  --wp--preset--font-family--body: 'Outfit', 'Inter', system-ui, sans-serif;
  --wp--preset--font-size--small: 14px;
}

/* Flex container for sidebar layout */
body.woocommerce-cart .wc-block-components-sidebar-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

/* ==========================================================================
   2. LEFT PANEL - CART ITEMS (Clean Table)
   ========================================================================== */
body.woocommerce-cart .wc-block-cart__main {
  flex: 1 1 700px;
  min-width: 0;
  padding: 0;
  background: transparent;
}

body.woocommerce-cart table.wc-block-cart-items {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
}

/* ==========================================================================
   12. PREMIUM CHECKOUT - TWO-COLUMN LAYOUT
   ========================================================================== */
/* Desktop: Two-column grid layout */
@media (min-width: 1024px) {
  /* Main checkout wrapper */
  body.woocommerce-checkout .wp-block-woocommerce-checkout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
  }
  /* The actual grid container - this wraps main + sidebar */
  body.woocommerce-checkout .wp-block-woocommerce-checkout > .wc-block-components-main {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: start;
  }
  /* Sidebar styling */
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    background: #ffffff;
    border: 2px solid #3c4b64;
    border-radius: 0;
    padding: 32px;
  }
  /* Terms when moved into sidebar */
  body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-checkout__terms {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
  }
  /* Actions when moved into sidebar */
  body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-checkout__actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  /* Place Order button in sidebar - full width */
  body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-place-order-button {
    width: 100%;
    margin-top: 0;
  }
  /* Return to cart link in sidebar */
  body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-return-to-cart-button {
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
  }
  body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-return-to-cart-button:hover {
    color: #000;
  }
}
/* Mobile: Stack vertically */
@media (max-width: 1023px) {
  body.woocommerce-checkout .wp-block-woocommerce-checkout {
    padding: 20px;
  }
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    margin-top: 32px;
  }
}
/* ==========================================================================
   3. TABLE HEADER - VISUAL COLUMNS
   ========================================================================== */
body.woocommerce-cart .wc-block-cart-items thead {
  display: table-header-group;
  border-bottom: 1px solid #e5e5e5;
  /* Light Divider */
}

body.woocommerce-cart .wc-block-cart-items thead th {
  padding: 0 10px 25px 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #111;
  /* Deep Black Header */
  text-align: left;
  letter-spacing: 0.05em;
  vertical-align: bottom;
}

/* Specific Header Widths matching GRID */
body.woocommerce-cart .wc-block-cart-items thead th:first-child {
  width: 150px;
  /* Widened for padding */
  padding-left: 50px;
  box-sizing: border-box;
}

body.woocommerce-cart .wc-block-cart-items thead th:last-child {
  width: 100px;
  text-align: right;
  color: #111;
  font-size: 0;
  /* Hide "Total" text */
  position: relative;
  overflow: visible;
}

/* Re-inject clean "SUBTOTAL" label */
body.woocommerce-cart .wc-block-cart-items thead th:last-child::before {
  content: "SUBTOTAL";
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  visibility: visible;
  position: absolute;
  right: 0;
  bottom: 16px;
  display: block;
}

/* Middle Column (Product Details) */
body.woocommerce-cart .wc-block-cart-items thead th:nth-child(2) {
  position: relative;
  overflow: visible;
}

/* Inject "PRICE" label */
body.woocommerce-cart .wc-block-cart-items thead th:nth-child(2)::before {
  content: "PRICE";
  position: absolute;
  right: 160px;
  /* Qty(140) + Gap(20) */
  bottom: 16px;
  width: 120px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  pointer-events: none;
}

/* Inject "QUANTITY" label */
body.woocommerce-cart .wc-block-cart-items thead th:nth-child(2)::after {
  content: "QUANTITY";
  position: absolute;
  right: 0;
  bottom: 16px;
  width: 140px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  pointer-events: none;
}

/* ==========================================================================
   4. CART ITEM ROWS - RELATIVE CONTEXT
   ========================================================================== */
body.woocommerce-cart .wc-block-cart-items tbody {
  display: table-row-group;
}

body.woocommerce-cart .wc-block-cart-items__row {
  display: table-row;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* Softer divider */
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.woocommerce-cart .wc-block-cart-items__row:hover {
  background: rgba(0, 0, 0, 0.015);
}

body.woocommerce-cart .wc-block-cart-items__row td {
  position: static;
  /* Changed from relative to static so remove link sees the ROW as parent */
  padding: 32px 0;
  vertical-align: middle;
  /* Force all cells to center vertically */
}

/* ==========================================================================
   5. REMOVE LINK - ABSOLUTE POSITIONING (Far Left)
   ========================================================================== */
body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__remove-link {
  position: absolute;
  left: -130px;
  /* Pull back into Image Column (150px - 20px) */
  /* Positioned relative to the WRAPPER now */
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 1px solid #dcdcdc;
  border-radius: 50%;
  color: #999;
  /* Force color to override any link defaults */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  z-index: 20;
  transition: all 0.2s ease;
  visibility: hidden;
  /* Hide the text content */
  text-decoration: none;
  line-height: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__remove-link::before {
  content: "×";
  font-size: 18px;
  line-height: 1;
  font-family: Arial, sans-serif;
  font-weight: 300;
  margin-top: -1px;
  visibility: visible;
  /* Show only the X icon */
}

/* Ensure the text is really hidden */
body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__remove-link > span {
  display: none;
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
  border-color: #000;
  color: #000;
}

body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__remove-link::before {
  content: "×";
  font-size: 18px;
  line-height: 1;
  font-family: Arial, sans-serif;
  font-weight: 300;
  margin-top: -1px;
}

body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__remove-link svg {
  display: none;
}

/* ==========================================================================
   6. IMAGE CELL (Column 1)
   ========================================================================== */
body.woocommerce-cart td.wc-block-cart-item__image {
  width: 150px;
  padding-right: 20px;
  padding-left: 50px;
}

body.woocommerce-cart .wc-block-cart-item__image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
  mix-blend-mode: multiply;
}

/* ==========================================================================
   7. PRODUCT CELL - GRID LAYOUT (Cols 2, 3, 4)
   ========================================================================== */
body.woocommerce-cart td.wc-block-cart-item__product {
  width: auto;
}

body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__wrap {
  display: grid;
  grid-template-columns: 1fr 120px 140px;
  align-items: center;
  /* Restore Grid Center */
  column-gap: 20px;
  width: 100%;
  position: relative;
  /* Anchor for absolute badge */
}

/* Badge Styling - Moved under Price; Position Absolute to prevent layout shift */
body.woocommerce-cart .wc-block-components-product-badge {
  position: absolute;
  top: 50%;
  margin-top: 18px;
  /* Positioned below the price text center */
  white-space: nowrap;
  z-index: 10;
  grid-column: 2;
  /* Anchored to Price Column */
}

body.woocommerce-cart .wc-block-components-product-name {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  display: flex;
  align-items: center;
  min-height: 20px;
}

body.woocommerce-cart .wc-block-components-product-name a {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

body.woocommerce-cart .wc-block-components-product-name a:hover {
  text-decoration: underline;
}

body.woocommerce-cart .wc-block-components-product-metadata {
  grid-column: 1;
  grid-row: 1;
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  align-self: end;
  display: none;
}

body.woocommerce-cart .wc-block-components-product-metadata__description,
body.woocommerce-cart .wc-block-components-product-description,
body.woocommerce-cart .wc-block-components-product-summary {
  display: none;
}

body.woocommerce-cart .wc-block-cart-item__prices {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #000;
  font-size: 16px;
  margin: 0;
}

body.woocommerce-cart .wc-block-cart-item__quantity {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  margin: 0;
  position: static;
}

body.woocommerce-cart .wc-block-components-quantity-selector {
  display: inline-flex;
  border: 1px solid #eee;
  border-radius: 12px;
  height: 42px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

body.woocommerce-cart .wc-block-components-quantity-selector button {
  width: 32px;
  height: 100%;
  background: #fff;
  border: none;
  border-right: 1px solid #ddd;
  cursor: pointer;
  color: #666;
  font-size: 16px;
  font-weight: 300;
  transition: all 0.2s;
}

body.woocommerce-cart .wc-block-components-quantity-selector button:last-child {
  border-right: none;
  border-left: 1px solid #ddd;
}

body.woocommerce-cart .wc-block-components-quantity-selector button:hover {
  background: #f5f5f5;
  color: #000;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector button:focus,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector button:active {
  outline: none;
  box-shadow: none;
  background: #f0f0f0;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector input:focus {
  outline: none;
  box-shadow: none;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector input {
  width: 40px;
  height: 100%;
  border: none;
  text-align: center;
  font-weight: 600;
  color: #111;
  margin: 0;
  appearance: textfield;
}

/* ==========================================================================
   8. TOTAL CELL (Col 5)
   ========================================================================== */
body.woocommerce-cart .wc-block-cart-items td.wc-block-cart-item__total {
  width: 100px;
  font-weight: 700;
  color: #111;
  font-size: 17px;
  white-space: nowrap;
  display: table-cell;
  vertical-align: middle;
  padding-bottom: 32px;
  text-align: right;
  /* Ensure subtotal is right-aligned */
}

body.woocommerce-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
  /* Anchor for absolute badge */
}

/* Specific override for the badge in the total column to flow below price without shifting it */
body.woocommerce-cart td.wc-block-cart-item__total .wc-block-components-product-badge {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  display: inline-flex;
}

/* ==========================================================================
   9. EMPTY CART & RETURN TO SHOP PANE
   ========================================================================== */
/* Stylize the default Empty Cart Block */
.wp-block-woocommerce-empty-cart-block {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 30px;
  margin-bottom: 50px;
}

/* Empty Cart Icon (The sad face) */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__icon {
  font-size: 50px;
  /* Scaled down for elegance */
  margin-bottom: 20px;
  opacity: 0.7;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 22px;
  /* More sophisticated size */
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

/* Premium Return to Shop Button - Injected via PHP */
.mircato-continue-shopping-php {
  margin-top: 20px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Unified Premium Action Buttons (Cart, Wishlist & Checkout) - Sophisticated Midnight Obsidian */
body.woocommerce-cart .wp-block-woocommerce-cart .mircato-continue-shopping-php .premium-return-btn,
body.woocommerce-cart .wp-block-woocommerce-cart .mircato-continue-shopping-php a,
body.woocommerce-cart .wp-block-woocommerce-filled-cart-block .premium-return-btn,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .premium-return-btn,
.mircato-wishlist-page .mircato-wishlist-footer .premium-return-btn,
.mircato-wishlist-page .mircato-wishlist-empty-wrapper .premium-return-btn,
body.woocommerce-cart .wc-block-cart__empty-cart__return-to-shop a,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-button__link,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .woocommerce-message .button,
body.woocommerce-cart .mircato-continue-shopping a,
body.woocommerce-checkout #place_order,
body.woocommerce-checkout #payment #place_order,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-checkout__proceed-to-checkout,
body.woocommerce-checkout .wc-block-components-totals-coupon__button,
body.woocommerce-checkout .wc-block-components-button,
body.woocommerce-cart .wc-block-components-totals-coupon__button,
body.woocommerce-cart .wc-block-components-button,
body.woocommerce-cart .checkout-button,
body.woocommerce-cart .return-to-shop a,
.widget_shopping_cart .checkout,
.woocommerce-mini-cart__buttons .checkout,
body.woocommerce-cart .wc-block-cart__proceed-to-checkout-button a,
body.woocommerce-cart .wc-block-cart__submit-button {
  background: linear-gradient(135deg, var(--mp-color-primary, #1e293b) 0%, var(--mp-color-primary-dark, #000000) 100%);
  /* Sophisticated Midnight */
  color: #ffffff;
  padding: 18px 60px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: none;
  cursor: pointer;
  width: auto;
  min-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

/* Force Center the container */
body.woocommerce-checkout .form-row.place-order,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__actions,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__actions {
  text-align: center;
  float: none;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1px 0;
}

body.woocommerce-cart .wp-block-woocommerce-cart .mircato-continue-shopping-php .premium-return-btn:hover,
body.woocommerce-cart .wp-block-woocommerce-cart .mircato-continue-shopping-php a:hover,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .premium-return-btn:hover,
.mircato-wishlist-page .mircato-wishlist-footer .premium-return-btn:hover,
.mircato-wishlist-page .mircato-wishlist-empty-wrapper .premium-return-btn:hover,
body.woocommerce-cart .wc-block-cart__empty-cart__return-to-shop a:hover,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-button__link:hover,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .woocommerce-message .button:hover,
body.woocommerce-cart .mircato-continue-shopping a:hover,
body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout #payment #place_order:hover,
body.woocommerce-checkout #payment #place_order:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout .wc-block-components-totals-coupon__button:hover,
body.woocommerce-checkout .wc-block-components-button:hover,
body.woocommerce-cart .wc-block-components-totals-coupon__button:hover,
body.woocommerce-cart .wc-block-components-button:hover,
body.woocommerce-cart .checkout-button:hover,
body.woocommerce-cart .return-to-shop a:hover,
.widget_shopping_cart .checkout:hover,
.woocommerce-mini-cart__buttons .checkout:hover,
body.woocommerce-cart .wc-block-cart__proceed-to-checkout-button a:hover,
body.woocommerce-cart .wc-block-cart__submit-button:hover {
  background: linear-gradient(135deg, var(--mp-color-accent, #334155) 0%, var(--mp-color-primary, #1a1a1a) 100%);
  /* Satin Silver-Midnight Shine */
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

/* ==========================================================================
   9. RETURN TO SHOP BUTTON
   ========================================================================== */
.mircato-continue-shopping {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   10. RIGHT PANEL - SIDEBAR
   ========================================================================== */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  min-width: 380px;
  /* Fixed width for sidebar */
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  /* Glass shadow */
  position: sticky;
  top: 100px;
}

/* ==========================================================================
   13. CHECKOUT FORM FIELDS & INPUTS
   ========================================================================== */
/* Global container */
body.woocommerce-checkout .wp-block-woocommerce-checkout {
  font-family: inherit;
}

/* Form fields - premium 3D styling */
/* Form fields - premium 3D styling */
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type=email],
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type=number],
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type=password],
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type=tel],
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type=text],
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type=url],
body.woocommerce-checkout .wc-block-components-text-input input[type=email],
body.woocommerce-checkout .wc-block-components-text-input input[type=number],
body.woocommerce-checkout .wc-block-components-text-input input[type=password],
body.woocommerce-checkout .wc-block-components-text-input input[type=tel],
body.woocommerce-checkout .wc-block-components-text-input input[type=text],
body.woocommerce-checkout .wc-block-components-text-input input[type=url] {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  /* Softer corners */
  padding: 18px 16px 6px 16px;
  /* Adjusted optimized padding */
  font-size: 14px;
  background: #ffffff;
  color: #333;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  /* Very subtle depth */
  min-height: 52px;
  /* Slightly more compact */
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-combobox-control input:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus {
  border-color: #000000;
  /* Sharp focus */
  outline: none;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Dropdown styling */
body.woocommerce-checkout .wc-blocks-components-select {
  position: relative;
  display: block;
  width: 100%;
}

body.woocommerce-checkout .wc-blocks-components-select__select {
  font-weight: 600;
  color: #111;
  padding-top: 18px;
  /* Matched to input */
  padding-bottom: 6px;
  /* Matched to input */
  padding-right: 48px;
  padding-left: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  background: linear-gradient(to bottom, #ffffff, #fcfcfc);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 52px;
  /* Ensure match */
}

body.woocommerce-checkout .wc-blocks-components-select__select:hover {
  background: linear-gradient(to bottom, #fcfcfc, #f7f7f7);
  border-color: #ccc;
}

body.woocommerce-checkout .wc-blocks-components-select svg.wc-blocks-components-select__expand {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  fill: #666;
  pointer-events: none;
  transition: fill 0.2s ease;
}

body.woocommerce-checkout .wc-blocks-components-select:focus-within svg.wc-blocks-components-select__expand {
  fill: #000;
}

/* Form spacing - TIGHTENED for Premium Feel */
/* Form spacing - TIGHTENED for Premium Feel */
body.woocommerce-checkout .wc-block-checkout__contact-fields,
body.woocommerce-checkout .wc-block-checkout__shipping-address-fields,
body.woocommerce-checkout .wc-block-components-address-form,
body.woocommerce-checkout .wc-block-components-text-input,
body.woocommerce-checkout .wc-block-components-combobox-control,
body.woocommerce-checkout .wc-block-components-checkbox,
body.woocommerce-checkout .wc-blocks-components-select {
  margin-bottom: 16px;
  /* Standard field spacing */
  margin-top: 0;
}

/* Specific Gap Fix: Reduce bottom margin on the elements that often precede titles */
body.woocommerce-checkout .wc-block-checkout__guest-checkout-notice,
body.woocommerce-checkout .wc-block-components-address-form__address_2-toggle,
body.woocommerce-checkout .wc-block-components-checkbox {
  margin-bottom: 8px;
  /* Tighter spacing before the next section */
}

body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form {
  margin-bottom: 0;
}

body.woocommerce-checkout .wc-block-components-checkout-step > div:last-child {
  margin-bottom: 0;
}

/* Section headings - Premium Typography - TIGHTENED */
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #111;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  /* Reduced from 12px */
  margin-bottom: 16px;
  /* Reduced from 24px */
  margin-top: 0;
  /* REMOVED top margin completely to close gaps */
  display: block;
  width: 100%;
}

/* ==========================================================================
   14. ORDER SUMMARY SIDEBAR
   ========================================================================== */
/* Product rows - Centered Alignment */
body.woocommerce-checkout .wc-block-components-order-summary-item {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  /* Changed from flex-start to center */
  justify-content: space-between;
  gap: 12px;
}

/* Product image wrapper */
body.woocommerce-checkout .wc-block-components-order-summary-item__image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
}

/* Hide the quantity badge that overlays the image - using high specificity */
body.woocommerce-checkout .wc-block-components-order-summary-item__image .wc-block-components-quantity-selector {
  display: none;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image .wc-block-components-order-summary-item__quantity {
  display: none;
}

/* Product details wrapper */
body.woocommerce-checkout .wc-block-components-order-summary-item__description {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Product name with quantity inline */
body.woocommerce-checkout .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-order-summary-item__title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin-bottom: 2px;
  display: inline-block;
}

/* Hide the description paragraph (Lorem ipsum) using direct child selector */
body.woocommerce-checkout .wc-block-components-order-summary-item__description > p {
  display: none;
}

/* Hide any unit price that appears inside the description block (Rs 25 that repeats) */
body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-price {
  display: none;
}

/* Product metadata (variations like size, color) */
body.woocommerce-checkout .wc-block-components-product-metadata {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

body.woocommerce-checkout .wc-block-components-product-metadata .wc-block-components-product-metadata__description {
  display: inline;
}

/* Quantity inline after product name - Style the Moved Element */
body.woocommerce-checkout .wc-block-components-product-name .wc-block-components-order-summary-item__quantity {
  display: inline;
  white-space: nowrap;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #666;
  font-weight: 400;
  font-size: 14px;
  padding: 0;
  margin: 0 0 0 5px;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  line-height: inherit;
  position: static;
  vertical-align: baseline;
  float: none;
}

body.woocommerce-checkout .wc-block-components-product-name .wc-block-components-order-summary-item__quantity::before {
  content: "× ";
  margin-right: 2px;
}

/* Price column - The Total Price */
body.woocommerce-checkout .wc-block-components-order-summary-item__total-price {
  flex-shrink: 0;
  font-weight: 600;
  color: #333;
}

/* Sidebar Heading - Matched to Tighter Table Header */
body.woocommerce-cart .wc-block-cart__sidebar h2,
body.woocommerce-cart .wc-block-components-totals-wrapper > h2,
body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-panel__title,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary .wc-block-components-title {
  font-size: 16px;
  /* Slightly smaller for sidebar */
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding-bottom: 10px;
  /* Reduced from 16px */
  margin-bottom: 16px;
  /* Reduced from 24px */
  margin-top: 0;
  /* Removed top margin */
  color: #111;
  border-bottom: 1px solid #e5e5e5;
}

body.woocommerce-cart .wc-block-components-totals-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
}

/* Remove border from the last item to avoid double lines with footer/wrapper */
body.woocommerce-cart .wc-block-components-totals-item:last-child {
  border-bottom: none;
}

body.woocommerce-cart .wc-block-components-totals-item__value {
  color: #000;
  font-weight: 600;
}

/* Totals Section */
/* Totals Section */
body.woocommerce-checkout .wc-block-components-totals-item {
  padding: 16px 12px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #444;
}

/* Label styling */
body.woocommerce-checkout .wc-block-components-totals-item__label {
  font-weight: 500;
}

/* Value styling */
body.woocommerce-checkout .wc-block-components-totals-item__value {
  text-align: right;
  font-weight: 600;
  color: #111;
}

/* 
   Last subtotal item: remove border to avoid double lines.
   We act on the last-of-type to catch the item right before the total wrapper.
*/
body.woocommerce-checkout .wc-block-components-totals-item:last-of-type {
  border-bottom: none;
}

/* 
   FIX: The Total Wrapper (Container)
   This element has a default border/padding that creates the "strange box" double border effect.
   We reset it here so only our custom .wc-block-components-totals-footer-item styles show.
*/
body.woocommerce-checkout .wc-block-components-totals-wrapper {
  border-top: none;
  padding: 0;
  margin: 0;
}

/* The Grand Total Row (Inner Item) */
body.woocommerce-checkout .wc-block-components-totals-footer-item {
  border-top: 1px solid #e5e5e5;
  margin-top: 0;
  padding: 20px 12px 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Total Label */
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

/* Total Value */
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

/* Coupon section spacing alignment */
/* Target ANY wc-block-components-panel in the checkout sidebar area */
body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-panel,
body.woocommerce-checkout .wc-block-components-main .wc-block-components-panel,
body.woocommerce-checkout .wc-block-components-checkout-coupon-form {
  padding-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
  width: 100%;
  display: block;
  clear: both;
}

/* Coupon toggle button styling */
body.woocommerce-checkout .wc-block-components-panel__button {
  color: #111;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
}

body.woocommerce-checkout .wc-block-components-panel__button:hover {
  color: #444;
  /* Subtle hover change */
  text-decoration: none;
}

.wc-block-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-panel,
.wc-block-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-coupon,
.wc-block-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-item {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ==========================================================================
   16. RADIO BUTTONS & CHECKBOXES
   ========================================================================== */
/* Checkboxes */
body.woocommerce-checkout .wc-block-components-checkbox__input {
  border-radius: 4px;
  border: 1px solid #dcdcdc;
  background: linear-gradient(to bottom, #ffffff, #fcfcfc);
}

/* Radio options container */
/* Radio options container - TIGHTER */
body.woocommerce-checkout .wc-block-components-radio-control__option {
  padding: 12px 16px 12px 48px;
  /* Reduced top/bottom padding from 16px */
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  margin-bottom: 8px;
  /* Reduced margin from 12px */
  background: linear-gradient(to bottom, #ffffff, #fcfcfc);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), inset 0 1px 0 #fff;
  cursor: pointer;
}

body.woocommerce-checkout .wc-block-components-radio-control__option:hover {
  background: linear-gradient(to bottom, #fcfcfc, #f7f7f7);
  border-color: #ccc;
}

body.woocommerce-checkout .wc-block-components-radio-control__option:has(input:checked) {
  border-color: #3c4b64;
  background-color: #fff;
  box-shadow: 0 0 0 1px #3c4b64, 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Radio button styling */
body.woocommerce-checkout .wc-block-components-radio-control__input {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #dcdcdc;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.woocommerce-checkout .wc-block-components-radio-control__input::after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: var(--mp-color-text-main, #111111);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.woocommerce-checkout .wc-block-components-radio-control__input:checked {
  border-color: var(--mp-color-text-main, #111111);
  background: #ffffff;
}

body.woocommerce-checkout .wc-block-components-radio-control__input:checked::after {
  opacity: 1;
  transform: scale(1);
}

/* Hide Return to Cart Link */
body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button,
body.woocommerce-checkout .wc-block-checkout__actions .wc-block-components-button--link,
body.woocommerce-checkout .return-to-cart-link,
body.woocommerce-checkout .wc-block-components-checkout-return-to-cart {
  display: none;
}

/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__wrap {
    display: block;
  }
  body.woocommerce-cart .wc-block-cart-items thead {
    display: none;
  }
  body.woocommerce-cart .wc-block-cart-items__row td {
    padding: 16px 0;
  }
  body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__remove-link {
    position: absolute;
    top: 10px;
    left: auto;
    right: 0;
    transform: none;
    border: none;
    width: auto;
    height: auto;
    font-size: 12px;
  }
}
