:root {
  --bescot-ink: #252525;
  --bescot-muted: #6f6a64;
  --bescot-line: #ddd7cf;
  --bescot-soft: #f7f4ef;
  --bescot-accent: #7a5a42;
  --bescot-accent-dark: #4c3324;
  --bescot-success: #137a45;
  --bescot-error: #b42318;
  --bescot-warning: #9a6700;
}

.woocommerce,
.woocommerce-page {
  color: var(--bescot-ink);
}

.woocommerce-cart #sidebar,
.woocommerce-checkout #sidebar,
.woocommerce-account #sidebar,
.woocommerce-cart .sidebar,
.woocommerce-checkout .sidebar,
.woocommerce-account .sidebar,
.woocommerce-cart .widget-area,
.woocommerce-checkout .widget-area,
.woocommerce-account .widget-area {
  display: none !important;
}

.woocommerce-cart #left-area,
.woocommerce-checkout #left-area,
.woocommerce-account #left-area,
.woocommerce-cart #main-content .container #content-area,
.woocommerce-checkout #main-content .container #content-area,
.woocommerce-account #main-content .container #content-area {
  float: none !important;
  padding-right: 0 !important;
  width: 100% !important;
}

.woocommerce-cart #main-content .container::before,
.woocommerce-checkout #main-content .container::before,
.woocommerce-account #main-content .container::before {
  display: none !important;
}

.woocommerce-cart #main-content .container,
.woocommerce-checkout #main-content .container,
.woocommerce-account #main-content .container {
  max-width: 1180px;
  width: min(92%, 1180px);
}

.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content {
  font-family: inherit;
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce-page .woocommerce-breadcrumb {
  color: var(--bescot-muted);
}

.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
  border-top-color: var(--bescot-accent);
  background: var(--bescot-soft);
  color: var(--bescot-ink);
}

.woocommerce .woocommerce-error::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-message::before {
  color: var(--bescot-accent);
}

.woocommerce table.shop_table,
.woocommerce-page table.shop_table,
.woocommerce form.checkout,
.woocommerce form.login,
.woocommerce form.register {
  border-color: var(--bescot-line);
  border-radius: 8px;
}

.woocommerce form.checkout,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-review-order-table {
  background: #fff;
}

.woocommerce-checkout form.checkout {
  align-items: start;
  display: grid;
  gap: 28px 42px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  padding: 0;
}

.woocommerce-checkout form.checkout #customer_details,
.woocommerce-checkout form.checkout #order_review_heading,
.woocommerce-checkout form.checkout #order_review {
  min-width: 0;
}

.woocommerce-checkout form.checkout #customer_details {
  grid-column: 1;
}

.woocommerce-checkout form.checkout #order_review_heading,
.woocommerce-checkout form.checkout #order_review {
  grid-column: 2;
}

.woocommerce-checkout form.checkout #order_review_heading {
  margin: 0;
}

.woocommerce-checkout form.checkout #order_review {
  border: 1px solid var(--bescot-line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(37, 37, 37, 0.06);
  padding: 20px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-top-color: var(--bescot-line);
}

.woocommerce .cart_totals h2,
.woocommerce .woocommerce-billing-fields h3,
.woocommerce .woocommerce-shipping-fields h3,
.woocommerce #order_review_heading,
.woocommerce-account .woocommerce h2 {
  color: var(--bescot-ink);
  font-size: 24px;
  line-height: 1.25;
}

.woocommerce-cart h1,
.woocommerce-checkout h1,
.woocommerce-account h1,
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title,
.woocommerce-account .entry-title {
  color: var(--bescot-ink);
  line-height: 1.15;
}

.woocommerce form .form-row label {
  color: var(--bescot-ink);
  font-weight: 600;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
  min-height: 44px;
  border: 1px solid var(--bescot-line);
  border-radius: 6px;
  background: #fff;
  color: var(--bescot-ink);
}

.woocommerce form .form-row textarea {
  min-height: 96px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  border-color: var(--bescot-accent);
  border-radius: 6px;
  background: var(--bescot-accent);
  color: #fff;
  font-weight: 700;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  border-color: var(--bescot-accent-dark);
  background: var(--bescot-accent-dark);
  color: #fff;
}

.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] {
  background: #b9b0a7;
  border-color: #b9b0a7;
  color: #fff;
}

.woocommerce-checkout #payment {
  border: 1px solid var(--bescot-line);
  border-radius: 8px;
  background: var(--bescot-soft);
  overflow: hidden;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom-color: var(--bescot-line);
  padding: 0;
}

.woocommerce-checkout #payment ul.payment_methods li {
  background: #fff;
  border-bottom: 1px solid var(--bescot-line);
  margin: 0;
  padding: 16px;
}

.woocommerce-checkout #payment ul.payment_methods li:last-child {
  border-bottom: 0;
}

.woocommerce-checkout #payment ul.payment_methods label {
  color: var(--bescot-ink);
  font-weight: 700;
}

.woocommerce-checkout #payment ul.payment_methods input[type="radio"] {
  margin-right: 8px;
}

.woocommerce-checkout #payment div.payment_box {
  background: #fff;
  border: 1px solid var(--bescot-line);
  border-radius: 8px;
  color: var(--bescot-ink);
  margin: 12px 0 0;
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: var(--bescot-line);
}

.woocommerce-checkout #place_order,
.woocommerce-cart .checkout-button {
  font-size: 16px;
  min-height: 52px;
  width: 100%;
}

.woocommerce-cart .cart-collaterals .cross-sells,
.woocommerce-cart .cart-collaterals .cart_totals {
  border: 1px solid var(--bescot-line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(37, 37, 37, 0.04);
  padding: 20px;
}

.woocommerce-cart .cart-collaterals {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
}

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

.woocommerce-cart .cart-collaterals .cross-sells,
.woocommerce-cart .cart-collaterals .cart_totals {
  float: none;
  width: auto;
}

.woocommerce-cart table.cart img {
  border-radius: 6px;
  width: 82px;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  color: var(--bescot-muted);
  font-size: 14px;
  line-height: 1.5;
}

.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  background: var(--bescot-accent) !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.wc-block-components-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background: var(--bescot-accent-dark) !important;
}

.wc-block-components-sidebar,
.wp-block-woocommerce-checkout-order-summary-block {
  border-color: var(--bescot-line) !important;
}

.bescot-price-suffix {
  color: var(--bescot-muted);
  font-size: 0.76em;
  font-weight: 600;
  white-space: nowrap;
}

.bescot-ac-payment-box {
  max-width: 720px;
  margin: 28px auto;
  padding: 28px;
  border: 1px solid var(--bescot-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(37, 37, 37, 0.08);
}

.bescot-ac-payment-box h2 {
  margin: 8px 0 10px;
  color: var(--bescot-ink);
  font-size: 28px;
  line-height: 1.2;
}

.bescot-ac-lock {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--bescot-line);
  border-radius: 999px;
  color: var(--bescot-accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bescot-ac-summary {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) 1fr;
  gap: 10px 18px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--bescot-line);
  border-radius: 8px;
  background: var(--bescot-soft);
}

.bescot-ac-summary dt {
  color: var(--bescot-muted);
  font-weight: 700;
}

.bescot-ac-summary dd {
  margin: 0;
  color: var(--bescot-ink);
  font-weight: 700;
  text-align: right;
}

.bescot-ac-pay-button {
  width: 100%;
  min-height: 52px;
}

.bescot-ac-pay-button.is-loading {
  cursor: wait;
  opacity: 0.75;
}

.bescot-ac-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--bescot-muted);
  font-weight: 700;
}

.bescot-ac-status.is-info {
  color: var(--bescot-accent-dark);
}

.bescot-ac-status.is-success {
  color: var(--bescot-success);
}

.bescot-ac-status.is-error {
  color: var(--bescot-error);
}

.bescot-ac-status.is-warning {
  color: var(--bescot-warning);
}

.bescot-ac-fallback-link {
  margin: 10px 0 0;
  text-align: center;
}

.bescot-ac-fallback-link a {
  color: var(--bescot-accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bescot-ac-fineprint {
  margin: 10px 0 0;
  color: var(--bescot-muted);
  font-size: 14px;
}

.bescot-ac-thankyou {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--bescot-line);
  border-radius: 8px;
  background: var(--bescot-soft);
}

.bescot-ac-thankyou h2 {
  margin-top: 0;
}

.bescot-ac-thankyou ul {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .bescot-ac-payment-box {
    padding: 20px;
  }

  .bescot-ac-payment-box h2 {
    font-size: 23px;
  }

  .bescot-ac-summary {
    grid-template-columns: 1fr;
  }

  .bescot-ac-summary dd {
    text-align: left;
  }
}

@media (max-width: 980px) {
  .woocommerce-checkout form.checkout,
  .woocommerce-cart .cart-collaterals {
    display: block;
  }

  .woocommerce-checkout form.checkout #order_review_heading {
    margin-top: 28px;
  }

  .woocommerce-checkout form.checkout #order_review,
  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce-cart .cart-collaterals .cross-sells {
    margin-top: 18px;
  }
}
