/* Cart, checkout and customer account share the same Borrelli design system. */
body.woocommerce-cart main,
body.woocommerce-checkout main,
body.woocommerce-account main {
  max-width: 1240px;
}

body.woocommerce-cart main > h1,
body.woocommerce-checkout main > h1,
body.woocommerce-account main > h1 {
  margin: 0 0 28px;
  color: var(--b-navy);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.035em;
}

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  color: var(--b-ink);
}

.wc-block-cart-items,
.wc-block-components-order-summary,
.wc-block-checkout__main > div,
.wc-block-checkout__sidebar {
  border-color: var(--b-line) !important;
}

.wc-block-cart-items {
  overflow: hidden;
  border: 1px solid var(--b-line) !important;
  border-radius: 10px;
  background: #fff;
}

.wc-block-cart-items thead {
  background: var(--b-navy);
  color: #fff;
}

.wc-block-cart-items th,
.wc-block-cart-items td {
  padding: 16px !important;
}

.wc-block-components-product-name {
  text-decoration: none;
}

.wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img {
  border-radius: 8px;
  background: var(--b-soft);
  object-fit: contain;
}

.wc-block-cart__sidebar,
.wc-block-checkout__sidebar {
  padding: 24px !important;
  border: 1px solid var(--b-line);
  border-radius: 10px;
  background: #f7f9fa;
}

.wc-block-cart__totals-title,
.wc-block-components-checkout-step__heading h2,
.wc-block-components-title {
  color: var(--b-navy);
  font-weight: 850 !important;
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  min-height: 52px;
  background: var(--b-orange) !important;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.wc-block-components-text-input input,
.wc-block-components-combobox-control input,
.wc-block-components-address-form select {
  min-height: 48px !important;
  border: 1px solid #ccd5dd !important;
  border-radius: 6px !important;
  background: #fff !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-combobox-control input:focus,
.wc-block-components-address-form select:focus {
  border-color: var(--b-orange) !important;
  box-shadow: 0 0 0 1px var(--b-orange) !important;
}

.wc-block-components-radio-control-accordion-option {
  margin-bottom: 10px;
  border: 1px solid var(--b-line) !important;
  border-radius: 8px;
  background: #fff;
}

.wc-block-components-radio-control__option-checked {
  border-color: var(--b-orange) !important;
}

.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
}

.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
  display: none;
}

.woocommerce-MyAccount-navigation {
  float: none !important;
  width: auto !important;
  overflow: hidden;
  align-self: start;
  border: 1px solid var(--b-line);
  border-radius: 10px;
  background: #fff;
}

.woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-MyAccount-navigation li + li {
  border-top: 1px solid var(--b-line);
}

.woocommerce-MyAccount-navigation a {
  display: block;
  padding: 14px 16px;
  color: var(--b-navy);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.woocommerce-MyAccount-navigation .is-active a,
.woocommerce-MyAccount-navigation a:hover {
  background: var(--b-navy);
  color: #fff;
}

.woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--b-line);
  border-radius: 10px;
  background: #fff;
}

.woocommerce-MyAccount-content a {
  color: var(--b-orange);
  font-weight: 750;
}

.woocommerce-MyAccount-content table,
.woocommerce-table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-MyAccount-content th,
.woocommerce-MyAccount-content td,
.woocommerce-table th,
.woocommerce-table td {
  padding: 12px;
  border-bottom: 1px solid var(--b-line);
  text-align: left;
}

@media (max-width: 780px) {
  body.woocommerce-cart main,
  body.woocommerce-checkout main,
  body.woocommerce-account main {
    padding-inline: 14px !important;
  }

  .wc-block-cart__sidebar,
  .wc-block-checkout__sidebar {
    padding: 18px !important;
  }

  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }

  .woocommerce-MyAccount-navigation ul {
    display: flex;
    overflow-x: auto;
  }

  .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
    border-top: 0 !important;
    border-right: 1px solid var(--b-line);
  }
}

/* My account and order received: same look as cart and checkout */
body.woocommerce-account,body.woocommerce-order-received{background:#f4f6f8}
body.woocommerce-account header.wp-block-template-part,body.woocommerce-order-received header.wp-block-template-part{background:#fff}
body.woocommerce-account main>h1{font-weight:900}
body.woocommerce-account .woocommerce-MyAccount-navigation,body.woocommerce-account .woocommerce-MyAccount-content{border-radius:14px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
body.woocommerce-account .woocommerce-MyAccount-navigation li+li{border-top:1px solid var(--b-line)}
body.woocommerce-account .woocommerce-MyAccount-navigation a{font-size:14px}
body.woocommerce-account .woocommerce-MyAccount-content{font-size:15px;line-height:1.6}
body.woocommerce-account .woocommerce-MyAccount-content .button,body.woocommerce-account .woocommerce-Button{border-radius:8px!important;background:var(--b-orange)!important;color:#fff!important;font-weight:800}
body.woocommerce-order-received main{max-width:1000px!important;margin-inline:auto;padding:44px 20px 80px!important}
body.woocommerce-order-received main>h1{text-align:center;color:var(--b-navy);font-weight:900}
body.woocommerce-order-received .wc-block-order-confirmation-status{padding:28px;border:1px solid var(--b-line);border-radius:14px;background:#fff;text-align:center}
body.woocommerce-order-received .wc-block-order-confirmation-status h1,body.woocommerce-order-received .wc-block-order-confirmation-status p:first-child{color:var(--b-navy);font-weight:900}
body.woocommerce-order-received .wc-block-order-confirmation-summary,body.woocommerce-order-received .wc-block-order-confirmation-totals-wrapper,body.woocommerce-order-received .wc-block-order-confirmation-downloads-wrapper,body.woocommerce-order-received .wc-block-order-confirmation-shipping-wrapper,body.woocommerce-order-received .wc-block-order-confirmation-billing-wrapper,body.woocommerce-order-received .wc-block-order-confirmation-additional-information,body.woocommerce-order-received .woocommerce-order{margin-top:18px!important;padding:24px;border:1px solid var(--b-line);border-radius:14px;background:#fff}
body.woocommerce-order-received .wc-block-order-confirmation-summary-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:0;padding:0;list-style:none}
body.woocommerce-order-received .wc-block-order-confirmation-summary-list-item__key{display:block;color:#64748b;font-size:12px;text-transform:uppercase;letter-spacing:.06em}
body.woocommerce-order-received .wc-block-order-confirmation-summary-list-item__value{color:var(--b-navy);font-size:16px;font-weight:800}
body.woocommerce-order-received h2,body.woocommerce-order-received h3{color:var(--b-navy);font-weight:850}
body.woocommerce-order-received table{width:100%;border-collapse:collapse}
body.woocommerce-order-received th,body.woocommerce-order-received td{padding:10px 0;border-bottom:1px solid var(--b-line);text-align:left}
body.woocommerce-order-received tfoot tr:last-child th,body.woocommerce-order-received tfoot tr:last-child td{font-size:18px;font-weight:900;color:var(--b-navy)}

/* Search results and 404 */
.b-search-page .wp-block-query-title{color:var(--b-navy);font-weight:900}
.b-empty-state h1{color:var(--b-navy);font-weight:900}
.b-empty-state .wp-block-search{max-width:640px;margin:22px auto 10px}
.b-empty-state .wp-block-search__input{min-height:50px;border:1px solid #cbd5e1;border-radius:8px 0 0 8px;padding:0 16px;font-size:15px}
.b-empty-state .wp-block-search__button{min-height:50px;border-radius:0 8px 8px 0;background:var(--b-orange);color:#fff;font-weight:800;padding:0 22px;margin:0}
.b-empty-state h2{margin-top:56px;color:var(--b-navy);font-weight:900}
