@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) {
  /* Wrapper containment */
  html body.woocommerce-checkout .wp-block-woocommerce-checkout {
    padding: 20px 15px;
    overflow-x: hidden;
    width: 100%;
  }
  /* FORENSIC FIX 1: sidebar-layout has a hardcoded ~450px width even with is-small class.
     Force it to 100% of the parent wrapper. */
  html body.woocommerce-checkout .wc-block-components-sidebar-layout,
  html body.woocommerce-checkout .wc-block-components-sidebar-layout.is-small {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    float: none;
    transform: none;
    position: relative;
    overflow: visible;
  }
  /* Force main content and sidebar to be full-width blocks */
  html body.woocommerce-checkout .wc-block-components-main,
  html body.woocommerce-checkout .wc-block-checkout__sidebar,
  html body.woocommerce-checkout .wc-block-components-sidebar {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    float: none;
    transform: none;
    position: relative;
  }
  html body.woocommerce-checkout .wc-block-checkout__sidebar {
    margin-top: 30px;
    padding: 20px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #eee;
  }
  /* FORENSIC FIX 2: .wc-block-checkout__actions is display:flex flex-direction:row
     — this pushes the Place Order button to the right of the screen. Force it to column. */
  html body.woocommerce-checkout .wc-block-checkout__actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  /* Target the Header OFFSET specifically */
  html body.woocommerce-checkout .wc-block-checkout__sidebar-header,
  html body.woocommerce-checkout .wc-block-checkout__sidebar-header h2,
  html body.woocommerce-checkout .wc-block-checkout__sidebar .components-heading {
    margin-left: 0;
    padding-left: 0;
    text-align: left;
    width: 100%;
    position: relative;
    left: 0;
    transform: none;
  }
  /* Force the Place Order button to be full width and centered */
  html body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0;
    min-height: 50px;
  }
}
/* ==========================================================================
   ORDER RECEIVED (THANK YOU) & VIEW ORDER PAGE
   ========================================================================== */
.woocommerce-order {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}
.woocommerce-order * {
  box-sizing: border-box;
}

/* Thank You Message */
.woocommerce-order .woocommerce-thankyou-order-received {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #1a1a1a;
  padding: 30px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}

/* Order Overview (Order number, date, total, etc.) */
.woocommerce-order-overview {
  list-style: none;
  padding: 30px;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.woocommerce-order-overview li {
  text-align: center;
  padding: 10px;
  border-right: 1px solid #f0f0f0;
}
.woocommerce-order-overview li:last-child {
  border-right: none;
}
.woocommerce-order-overview li strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 5px;
}

/* Order Details Section */
.woocommerce-order-details {
  margin-bottom: 40px;
}

.woocommerce-order-details h2,
.woocommerce-customer-details h2,
.woocommerce-order-details__title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

/* Order Details Table */
.woocommerce-table--order-details,
.woocommerce-order .shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.woocommerce-table--order-details thead,
.woocommerce-order .shop_table thead {
  background: #f8f9fa;
}
.woocommerce-table--order-details thead th,
.woocommerce-order .shop_table thead th {
  padding: 15px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  text-align: left;
  border-bottom: 2px solid #eee;
}
.woocommerce-table--order-details thead th:last-child,
.woocommerce-order .shop_table thead th:last-child {
  text-align: right;
}
.woocommerce-table--order-details tbody td,
.woocommerce-order .shop_table tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 15px;
  color: #333;
  vertical-align: middle;
}
.woocommerce-table--order-details tbody td:last-child,
.woocommerce-order .shop_table tbody td:last-child {
  text-align: right;
  font-weight: 600;
}
.woocommerce-table--order-details,
.woocommerce-order .shop_table {
  /* Product Name cell — flex container so image, name, qty and meta stay inline */
}
.woocommerce-table--order-details tbody td.product-name,
.woocommerce-order .shop_table tbody td.product-name {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  text-align: left;
}
.woocommerce-table--order-details tbody td.product-name .mircato-order-item-img,
.woocommerce-order .shop_table tbody td.product-name .mircato-order-item-img {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid #eee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  display: inline-block;
  vertical-align: middle;
}
.woocommerce-table--order-details tbody td.product-name .mircato-order-item-img img,
.woocommerce-order .shop_table tbody td.product-name .mircato-order-item-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block !important;
}
.woocommerce-table--order-details tbody td.product-name .mircato-order-item-text,
.woocommerce-order .shop_table tbody td.product-name .mircato-order-item-text {
  display: inline-block;
  vertical-align: middle;
}
.woocommerce-table--order-details tbody td.product-name .mircato-order-item-text a,
.woocommerce-order .shop_table tbody td.product-name .mircato-order-item-text a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.2px;
  transition: color 0.2s ease;
}
.woocommerce-table--order-details tbody td.product-name .mircato-order-item-text a:hover,
.woocommerce-order .shop_table tbody td.product-name .mircato-order-item-text a:hover {
  color: var(--mp-color-primary, #6366f1);
}
.woocommerce-table--order-details tbody td.product-name .product-quantity,
.woocommerce-order .shop_table tbody td.product-name .product-quantity {
  font-weight: 500;
  color: #999;
  font-size: 15px;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
  margin-left: -4px; /* tighten next to name */
}
.woocommerce-table--order-details tbody td.product-name .wc-item-meta,
.woocommerce-order .shop_table tbody td.product-name .wc-item-meta {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: 13px;
  color: #888;
  flex-basis: 100%;
  margin-left: 78px; /* align under text, past the 64px image + gap */
}
.woocommerce-table--order-details tbody td.product-name .wc-item-meta li,
.woocommerce-order .shop_table tbody td.product-name .wc-item-meta li {
  margin-bottom: 2px;
}
.woocommerce-table--order-details tbody td.product-name .wc-item-meta li strong, .woocommerce-table--order-details tbody td.product-name .wc-item-meta li p,
.woocommerce-order .shop_table tbody td.product-name .wc-item-meta li strong,
.woocommerce-order .shop_table tbody td.product-name .wc-item-meta li p {
  display: inline;
}
.woocommerce-table--order-details tfoot th,
.woocommerce-order .shop_table tfoot th {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.woocommerce-table--order-details tfoot td,
.woocommerce-order .shop_table tfoot td {
  padding: 14px 20px;
  text-align: right;
  font-weight: 600;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order .shop_table tfoot tr:last-child th {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  border-top: 2px solid #1a1a1a;
  border-bottom: none;
  padding-top: 20px;
}
.woocommerce-table--order-details tfoot tr:last-child td,
.woocommerce-order .shop_table tfoot tr:last-child td {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  border-top: 2px solid #1a1a1a;
  border-bottom: none;
  padding-top: 20px;
}

/* Customer Details Section */
.woocommerce-customer-details {
  margin-top: 40px;
  display: block !important;
  visibility: visible !important;
}
.woocommerce-customer-details address {
  font-style: normal;
  color: #555;
  line-height: 1.8;
  font-size: 15px;
  display: block;
  white-space: normal;
  word-wrap: break-word;
}
.woocommerce-customer-details address p {
  margin: 0 0 5px;
}
.woocommerce-customer-details address br + br {
  display: none;
}
.woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-customer-details .woocommerce-customer-details--email {
  margin: 10px 0 0;
  color: #555;
  font-size: 14px;
  display: block;
}
.woocommerce-customer-details .woocommerce-customer-details--phone::before,
.woocommerce-customer-details .woocommerce-customer-details--email::before {
  margin-right: 6px;
  opacity: 0.7;
}

.woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

/* If only billing address exists (no shipping), let it span full width gracefully */
.woocommerce-columns--addresses:has(> .col-1:only-child),
.woocommerce-columns--addresses:has(> .woocommerce-column--billing-address:only-child) {
  grid-template-columns: 1fr;
}

.woocommerce-column--billing-address,
.woocommerce-column--shipping-address,
.woocommerce-columns--addresses .col-1,
.woocommerce-columns--addresses .col-2 {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  min-width: 0;
  width: auto;
  float: none;
}
.woocommerce-column--billing-address h2,
.woocommerce-column--billing-address h3,
.woocommerce-column--shipping-address h2,
.woocommerce-column--shipping-address h3,
.woocommerce-columns--addresses .col-1 h2,
.woocommerce-columns--addresses .col-1 h3,
.woocommerce-columns--addresses .col-2 h2,
.woocommerce-columns--addresses .col-2 h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.woocommerce-column--billing-address address,
.woocommerce-column--shipping-address address,
.woocommerce-columns--addresses .col-1 address,
.woocommerce-columns--addresses .col-2 address {
  font-style: normal;
  color: #555;
  line-height: 1.7;
  font-size: 14px;
  display: block;
  width: 100%;
}
.woocommerce-column--billing-address address p,
.woocommerce-column--shipping-address address p,
.woocommerce-columns--addresses .col-1 address p,
.woocommerce-columns--addresses .col-2 address p {
  margin: 0 0 6px;
}

/* Order Again Button */
.woocommerce-order .order-again .button {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 30px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.woocommerce-order .order-again .button:hover {
  background: var(--mp-color-primary, #6366f1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Order Status Note */
.woocommerce-order p.woocommerce-notice,
.woocommerce-order .woocommerce-notice--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 15px 20px;
  border-radius: 8px;
  color: #166534;
  font-weight: 500;
  margin-bottom: 20px;
}

/* Tablet */
@media (max-width: 900px) {
  .woocommerce-columns--addresses {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
/* Mobile Responsive */
@media (max-width: 768px) {
  .woocommerce-order {
    padding: 20px 12px;
  }
  .woocommerce-order .woocommerce-thankyou-order-received {
    font-size: 18px;
    padding: 20px 16px;
    line-height: 1.4;
  }
  .woocommerce-order-overview {
    grid-template-columns: 1fr 1fr;
    padding: 18px;
    gap: 12px;
    font-size: 13px;
  }
  .woocommerce-order-overview li {
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #888;
    word-wrap: break-word;
  }
  .woocommerce-order-overview li strong {
    font-size: 15px;
    margin-top: 4px;
    text-transform: none;
    letter-spacing: 0;
    color: #1a1a1a;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }
  .woocommerce-order-overview li:last-child, .woocommerce-order-overview li:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }
  .woocommerce-order-details h2,
  .woocommerce-customer-details h2,
  .woocommerce-order-details__title {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  .woocommerce-column--billing-address,
  .woocommerce-column--shipping-address,
  .woocommerce-columns--addresses .col-1,
  .woocommerce-columns--addresses .col-2 {
    padding: 20px;
  }
  .woocommerce-table--order-details {
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
  }
  .woocommerce-table--order-details thead {
    display: none !important;
  }
  .woocommerce-table--order-details tbody tr {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center !important;
    padding: 14px 12px !important;
    border-bottom: 1px solid #f0f0f0;
    gap: 16px;
  }
  .woocommerce-table--order-details tbody tr:last-child {
    border-bottom: none;
  }
  .woocommerce-table--order-details tbody td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    width: auto !important;
    text-align: left;
  }
  .woocommerce-table--order-details tbody td::before {
    display: none !important; /* Hide labels — handled by our custom layout */
  }
  .woocommerce-table--order-details tbody td.product-name {
    flex: 1 1 auto !important;
    min-width: 0;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
  }
  .woocommerce-table--order-details tbody td.product-name .mircato-order-item-img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 8px !important;
    margin-right: 4px;
  }
  .woocommerce-table--order-details tbody td.product-name .mircato-order-item-text a {
    font-size: 14px !important;
    line-height: 1.3;
  }
  .woocommerce-table--order-details tbody td.product-name .product-quantity {
    font-size: 13px !important;
    margin-left: 0;
  }
  .woocommerce-table--order-details tbody td.product-name .wc-item-meta {
    margin-left: 62px; /* line up under text past the 52px image */
    font-size: 12px;
  }
  .woocommerce-table--order-details tbody td.product-total {
    flex: 0 0 auto !important;
    display: block !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-left: 12px; /* clear gap from quantity */
    padding-left: 8px !important;
    white-space: nowrap;
    text-align: right;
  }
  .woocommerce-table--order-details tfoot tr {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid #f0f0f0;
  }
  .woocommerce-table--order-details tfoot tr th, .woocommerce-table--order-details tfoot tr td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    width: auto !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .woocommerce-table--order-details tfoot tr th {
    text-align: left !important;
    font-size: 13px !important;
    color: #666 !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .woocommerce-table--order-details tfoot tr td {
    text-align: right !important;
    font-size: 15px !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
  }
  .woocommerce-table--order-details tfoot tr.order-total, .woocommerce-table--order-details tfoot tr:last-child {
    padding: 20px !important;
    background: #fbfbfb !important;
    border-top: 2px solid #1a1a1a !important;
    border-bottom: none !important;
  }
  .woocommerce-table--order-details tfoot tr.order-total th, .woocommerce-table--order-details tfoot tr:last-child th {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    text-transform: none !important;
  }
  .woocommerce-table--order-details tfoot tr.order-total td, .woocommerce-table--order-details tfoot tr:last-child td {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
  }
}
/* Extra Small Mobile */
@media (max-width: 480px) {
  .woocommerce-order-overview {
    grid-template-columns: 1fr !important;
  }
  .woocommerce-order-overview li {
    border-right: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-align: left !important;
    padding: 12px 4px !important;
  }
  .woocommerce-order-overview li strong {
    display: inline-block !important;
    margin-top: 2px !important;
  }
  .woocommerce-order .woocommerce-thankyou-order-received {
    font-size: 16px;
    padding: 18px 14px;
  }
  .woocommerce-column--billing-address,
  .woocommerce-column--shipping-address,
  .woocommerce-columns--addresses .col-1,
  .woocommerce-columns--addresses .col-2 {
    padding: 18px 16px;
  }
  .woocommerce-order .order-again .button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }
}
/* ==========================================================================
   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;
  row-gap: 4px;
  width: 100%;
  position: relative;
}

/* Badge Styling - Prevent overlap by using grid auto-placement instead of absolute */
body.woocommerce-cart .wc-block-components-product-badge {
  position: relative;
  top: auto;
  margin-top: 0;
  white-space: normal;
  z-index: 10;
  grid-column: 2;
  display: inline-flex;
  align-self: start;
  width: max-content;
  max-width: 100%;
}

body.woocommerce-cart .wc-block-components-product-name {
  grid-column: 1;
  grid-row: 1/span 4;
  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;
  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/span 4;
  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: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 600px) {
  body.woocommerce-checkout .wc-block-components-order-summary-item {
    flex-wrap: wrap !important;
    gap: 15px !important;
  }
}
/* Product image wrapper */
body.woocommerce-checkout .wc-block-components-order-summary-item__image {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

@media (max-width: 480px) {
  body.woocommerce-checkout .wc-block-components-order-summary-item__image {
    width: 50px;
    height: 50px;
  }
}
/* 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;
  padding-right: 10px;
}

@media (max-width: 480px) {
  body.woocommerce-checkout .wc-block-components-order-summary-item__description {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
}
/* 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) {
  /* Prevent overall horizontal scroll — enforce at HTML + BODY level */
  html,
  html body.woocommerce-checkout,
  html body.woocommerce-cart {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative !important;
  }
  /* Global Menu Clamp to prevent horizontal stretch */
  .site-footer .widget_nav_menu ul,
  .site-footer .footer-menu ul,
  .site-footer .mircato-builder-menu ul {
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .footer-row-inner {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  /* 1. Global Flex Architecture for Cart Rows */
  html body.woocommerce-cart table.wc-block-cart-items,
  html body.woocommerce-cart table.wc-block-cart-items tbody {
    display: block !important;
    width: 100% !important;
  }
  html body.woocommerce-cart .wc-block-cart-items thead {
    display: none !important;
  }
  /* Row as a Flex Container */
  html body.woocommerce-cart .wc-block-cart-items__row {
    display: flex !important;
    flex-wrap: wrap !important;
    position: relative !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: transparent !important;
    gap: 0 !important;
  }
  /* 2. Column Split (Image Left, Details Right) */
  /* LEFT: Image Column */
  html body.woocommerce-cart td.wc-block-cart-item__image {
    display: flex !important;
    flex: 0 0 90px !important; /* Fixed width for image */
    padding: 0 12px 0 0 !important;
    border: none !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  html body.woocommerce-cart .wc-block-cart-item__image img {
    width: 75px !important;
    height: 75px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin: 0 !important;
  }
  /* RIGHT: Product Details Column (STRICT LEFT ALIGN) */
  html body.woocommerce-cart td.wc-block-cart-item__product {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important; /* Take remaining space */
    min-width: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: relative !important;
    align-items: flex-start !important; /* Force children left */
    text-align: left !important;
  }
  /* Target the inner wrap to remove grid/extra gaps */
  html body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0 !important;
    gap: 4px !important; /* Tight spacing */
    width: 100% !important;
    margin: 0 !important;
  }
  /* Name Adjustment */
  html body.woocommerce-cart .wc-block-components-product-name {
    margin: 0 !important;
    padding: 0 30px 0 0 !important; /* Make room for X button */
    width: 100% !important;
    text-align: left !important;
  }
  html body.woocommerce-cart .wc-block-components-product-name a {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111 !important;
    line-height: 1.2 !important;
    display: block !important;
  }
  /* Price and Badge - Inline Flow, Left Aligned */
  html body.woocommerce-cart .wc-block-cart-item__prices {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Force Left */
    gap: 6px !important;
    margin: 0 !important;
    font-size: 14px !important;
    width: 100% !important;
  }
  html body.woocommerce-cart .wc-block-components-product-badge {
    position: static !important;
    display: inline-flex !important;
    margin: 0 !important;
    transform: none !important;
    font-size: 10px !important;
    padding: 2px 5px !important;
  }
  /* Quantity - Force Left, kill all auto margins */
  html body.woocommerce-cart .wc-block-cart-item__quantity {
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    width: 100% !important;
    border: none !important;
    display: flex !important;
    justify-content: flex-start !important;
  }
  html body.woocommerce-cart .wc-block-components-quantity-selector {
    height: 36px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 100px !important;
    background: #f8f8f8 !important;
    width: 110px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
  }
  /* Target Buttons (+ / -) */
  html body.woocommerce-cart .wc-block-components-quantity-selector__button {
    width: 32px !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    color: #111 !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
  }
  html body.woocommerce-cart .wc-block-components-quantity-selector__button:hover {
    background: #eee !important;
  }
  /* Target Input */
  html body.woocommerce-cart .wc-block-components-quantity-selector__input {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111 !important;
    width: auto !important;
    box-shadow: none !important;
  }
  /* Kill standard SVG/Icon clutter if needed */
  html body.woocommerce-cart .wc-block-components-quantity-selector__button svg {
    width: 12px !important;
    height: 12px !important;
    fill: #555 !important;
  }
  /* Subtotal Cell - Forced Inline below Details */
  html body.woocommerce-cart td.wc-block-cart-item__total {
    display: flex !important;
    flex-direction: column !important; /* Allow badge if we wanted it, but we'll hide it */
    width: 100% !important;
    flex: 0 0 100% !important;
    text-align: left !important;
    justify-content: flex-start !important;
    padding: 8px 0 0 0 !important;
    margin-top: 5px !important;
    border: none !important;
    border-top: 1px dotted rgba(0, 0, 0, 0.1) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111 !important;
  }
  /* Hide Redundant Badge in Subtotal Cell on Mobile */
  html body.woocommerce-cart td.wc-block-cart-item__total .wc-block-components-product-badge {
    display: none !important;
  }
  /* 3. The "Remove" Button (X) */
  html body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__remove-link {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    visibility: visible !important;
    /* Premium Look */
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    background: #fdfdfd !important;
    border: 1px solid #ddd !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 50 !important;
    /* Aggressive Text Hiding */
    font-size: 0 !important;
    color: transparent !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
  }
  html body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__remove-link::before {
    content: "×" !important;
    font-size: 16px !important;
    line-height: 1 !important;
    color: #999 !important;
    font-family: Arial, sans-serif !important;
    visibility: visible !important;
    text-indent: 0 !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }
  /* Kill extra spacing from block defaults */
  html body.woocommerce-cart .wc-block-cart-items .wc-block-cart-item__remove-link * {
    display: none !important;
  }
  /* 4. Cart Layout — Fully Contained, Professional Design */
  /* Root overflow guard */
  html body.woocommerce-cart .wp-block-woocommerce-cart {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  /* Kill all default sidebar layout flex behavior */
  html body.woocommerce-cart .wc-block-components-sidebar-layout {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  html body.woocommerce-cart .wc-block-cart__main,
  html body.woocommerce-cart .wc-block-cart__sidebar {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  /* Cart Items Wrapper */
  html body.woocommerce-cart .wc-block-cart-items {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 16px !important;
    margin: 0 0 8px 0 !important;
  }
  /* Return to Shop — Hidden on Mobile */
  html body.woocommerce-cart a.button.empty-cart-button,
  html body.woocommerce-cart .empty-cart-button {
    display: none !important;
  }
  /* Totals Section Container — Reduced width via increased side padding */
  html body.woocommerce-cart .wc-block-cart__totals {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 24px !important; /* Increased from 20px to 24px for safe area */
    margin: 0 !important;
    overflow: visible !important;
  }
  /* Enforce sidebar width explicitly */
  html body.woocommerce-cart .wc-block-cart__sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important; /* Kill any high default min-width */
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  /* Totals — ALL wrappers form ONE unified card */
  html body.woocommerce-cart .wc-block-components-totals-wrapper {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  /* Unified card on the outer totals block — Reduced width */
  html body.woocommerce-cart .wc-block-cart__totals-fields {
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 4px 16px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    margin: 0 0 12px 0 !important;
  }
  /* Coupon rows */
  html body.woocommerce-cart .wc-block-components-totals-coupon {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Coupon input field */
  html body.woocommerce-cart .wc-block-components-totals-coupon input[type=text],
  html body.woocommerce-cart .wc-block-components-form-token-field-wrapper input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 48px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    margin-bottom: 10px !important;
    display: block !important;
  }
  /* Coupon Apply Button — Dark theme to match */
  html body.woocommerce-cart .wc-block-components-totals-coupon__button,
  html body.woocommerce-cart .wc-block-components-totals-coupon button.wc-block-components-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 10px !important;
    background: #0f172a !important;
    background-image: none !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  /* Totals Rows — compact with gap */
  html body.woocommerce-cart .wc-block-components-totals-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding: 11px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 13px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    gap: 12px !important; /* Added gap to prevent text overlap */
  }
  html body.woocommerce-cart .wc-block-components-totals-item:last-of-type {
    border-bottom: none !important;
  }
  html body.woocommerce-cart .wc-block-components-totals-item__label {
    font-weight: 500 !important;
    color: #64748b !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
    line-height: 1.3 !important;
  }
  html body.woocommerce-cart .wc-block-components-totals-item__value {
    font-weight: 700 !important;
    color: #0f172a !important;
    text-align: right !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
  /* Hide empty shipping description note */
  html body.woocommerce-cart .wc-block-components-totals-shipping__via,
  html body.woocommerce-cart .wc-block-components-totals-shipping .wc-block-components-totals-item__description {
    display: none !important;
  }
  /* Collapse shipping item inner content that causes empty space */
  html body.woocommerce-cart .wc-block-components-totals-shipping__package {
    display: none !important;
  }
  /* Estimated Total — Clean separator row, explicit flex with gap */
  html body.woocommerce-cart .wc-block-components-totals-footer-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 14px 0 0 0 !important;
    border-top: 2px solid #0f172a !important;
    border-bottom: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 12px !important; /* Added gap to prevent overlap */
  }
  html body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }
  html body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
  }
  /* Proceed to Checkout Button */
  html body.woocommerce-cart .wc-block-components-button.wc-block-cart__submit-button,
  html body.woocommerce-cart a.wc-block-cart__submit-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 54px !important;
    min-height: 54px !important;
    border-radius: 12px !important;
    background: #0f172a !important;
    background-image: none !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.22) !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 20px 0 0 0 !important;
    cursor: pointer !important;
  }
  html body.woocommerce-cart .wc-block-components-button.wc-block-cart__submit-button:hover {
    background: #1e293b !important;
    transform: translateY(-1px) !important;
  }
  html body.woocommerce-cart .wc-block-cart__submit-button span {
    color: #ffffff !important;
    font-weight: 800 !important;
  }
  html body.woocommerce-cart .wc-block-cart__submit {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 4px !important; /* Added minor internal padding to prevent edge touching */
    margin: 0 !important;
    display: block !important;
    overflow: visible !important;
  }
  /* Hide Saver badges in cart on mobile */
  html body.woocommerce-cart td.wc-block-cart-item__total .wc-block-components-product-badge {
    display: none !important;
  }
}
/* ==========================================================================
   CHECKOUT STEPS COMPACT MODE (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
  .mircato-checkout-steps-wrapper,
  .mircato-checkout-steps {
    margin-bottom: 20px !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
  }
  ul.mircato-checkout-steps {
    display: inline-flex !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    padding: 6px 12px !important;
    border-radius: 60px !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-bottom: 3px solid #ddd !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  .mircato-checkout-steps li {
    padding: 6px 10px !important;
    flex: 0 1 auto !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    border-radius: 40px !important;
    color: #999 !important;
  }
  /* Compact Mode: Hide labels for non-active steps */
  .mircato-checkout-steps li:not(.active) .step-label,
  .mircato-checkout-steps li:not(.active) span:nth-child(2),
  .mircato-checkout-steps li:not(.active) span:last-child,
  .mircato-checkout-steps li:not(.active) .step-link span:nth-child(2) {
    display: none !important;
  }
  /* Hide text nodes for pure compact look */
  .mircato-checkout-steps li:not(.active) {
    font-size: 0 !important;
  }
  .mircato-checkout-steps .step-number,
  .mircato-checkout-steps li span:first-child {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    background: #f0f0f0 !important;
    color: #777 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    margin-right: 0 !important;
  }
  .mircato-checkout-steps li.active {
    background: #000 !important;
    color: #fff !important;
    padding: 8px 16px !important;
  }
  .mircato-checkout-steps li.active .step-number,
  .mircato-checkout-steps li.active span:first-child {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    margin-right: 8px !important;
  }
  .mircato-checkout-steps li.active .step-label {
    display: inline-block !important;
    font-size: 11px !important;
  }
  .mircato-checkout-steps li.completed .step-number,
  .mircato-checkout-steps li.completed span:first-child {
    background: #28a745 !important;
    color: #fff !important;
  }
}
/* ==========================================================================
   CHECKOUT & CART SIDEBAR STACKING (Mobile)
   ========================================================================== */
@media (max-width: 1023px) {
  /* SURGICAL OVERRIDE: Double-chained selector for absolute specificity */
  html body.woocommerce-checkout .wc-block-components-sidebar-layout,
  html body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-cart__main,
  html body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-cart__sidebar,
  html body.woocommerce-checkout .wc-block-components-main,
  html body.woocommerce-checkout .wc-block-checkout__sidebar,
  html body.woocommerce-checkout .wc-block-components-sidebar,
  html body.woocommerce-checkout .wc-block-components-checkout-step__container {
    display: block !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    flex: 1 1 auto !important;
    position: relative !important;
    float: none !important;
  }
  /* Target the Header OFFSET Specifically (CRITICAL FIX) */
  html body.woocommerce-checkout .wp-block-woocommerce-checkout h2,
  html body.woocommerce-checkout .wp-block-woocommerce-checkout h3,
  html body.woocommerce-checkout .wc-block-checkout__sidebar-header,
  html body.woocommerce-checkout .wc-block-checkout__sidebar-header h2,
  html body.woocommerce-checkout .wc-block-components-title,
  html body.woocommerce-checkout .wc-block-checkout__sidebar-header-title {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    transform: none !important;
    text-align: left !important;
    width: 100% !important;
    left: 0 !important;
    position: relative !important;
  }
  /* SAFE BLOCK CLAMP: Only target known overflow culprits (NOT grid cells or form inputs) */
  html body.woocommerce-checkout .wc-block-components-sidebar-layout,
  html body.woocommerce-checkout .wc-block-checkout__sidebar,
  html body.woocommerce-checkout .wc-block-components-main,
  html body.woocommerce-checkout .wc-block-components-sidebar {
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }
  /* Prevent summary text breaking (e.g. "Beani e") */
  html body.woocommerce-checkout .wc-block-components-order-summary-item__description,
  html body.woocommerce-checkout .wc-block-components-order-summary-item__content,
  html body.woocommerce-checkout .wc-block-components-product-name,
  html body.woocommerce-checkout .wc-block-components-product-name__name {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
  }
  html body.woocommerce-checkout .wc-block-components-order-summary-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
  }
  /* Align Order Summary totals so they don't wrap currency */
  html body.woocommerce-checkout .wc-block-components-order-summary-item__total-price-and-shipping-status {
    margin-left: auto !important;
    text-align: right !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  /* Place Order Button - Full Width on Mobile */
  html body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
    width: 100% !important;
    margin: 20px 0 !important;
    display: block !important;
  }
}
