/* Cart and checkout: classic WooCommerce markup in the Backeri demo's store layout. */
body.woocommerce-cart .backeri-store-page .post-content,
body.woocommerce-checkout .backeri-store-page .post-content {
  max-width: 100%;
  margin: 0;
}

.backeri-store-page .post-entry {
  border: 0;
  padding: 0;
  margin: 0;
}

.backeri-store-page .woocommerce {
  color: var(--text-color);
  line-height: 1.6;
}

.backeri-store-page .woocommerce-notices-wrapper,
.backeri-store-page .woocommerce-error,
.backeri-store-page .woocommerce-info,
.backeri-store-page .woocommerce-message {
  grid-column: 1 / -1;
}

.backeri-store-page .woocommerce-message,
.backeri-store-page .woocommerce-info,
.backeri-store-page .woocommerce-error {
  margin-bottom: 28px;
  border-radius: 10px;
  background: var(--white-color);
  border-top-color: var(--accent-color);
}

.backeri-store-page .woocommerce-message::before,
.backeri-store-page .woocommerce-info::before { color: var(--accent-color); }

.backeri-store-page .woocommerce a:not(.button):not(.checkout-button) { color: var(--primary-color); }
.backeri-store-page .woocommerce a:not(.button):not(.checkout-button):hover { color: var(--accent-color); }

.backeri-store-page .woocommerce .button,
.backeri-store-page .woocommerce button.button,
.backeri-store-page .woocommerce a.button,
.backeri-store-page .woocommerce #place_order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--accent-color);
  color: var(--white-color);
  font-family: var(--default-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  box-shadow: none;
  transition: background-color .25s ease;
}

.backeri-store-page .woocommerce .button:hover,
.backeri-store-page .woocommerce button.button:hover,
.backeri-store-page .woocommerce a.button:hover,
.backeri-store-page .woocommerce #place_order:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

.backeri-store-page .woocommerce button.button:disabled,
.backeri-store-page .woocommerce button.button:disabled[disabled] {
  background: var(--accent-color);
  color: var(--white-color);
  opacity: .55;
}

.backeri-store-page :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

/* Cart: line items beside the light totals panel, as in the Elementor demo. */
body.woocommerce-cart .backeri-store-page .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, 1fr);
  align-items: start;
  gap: 0 40px;
}

body.woocommerce-cart .backeri-store-page .woocommerce-cart-form { min-width: 0; }
body.woocommerce-cart .backeri-store-page .cart-collaterals { width: 100%; min-width: 0; }
body.woocommerce-cart .backeri-store-page .cart-collaterals .cart_totals {
  float: none;
  width: 100%;
  padding: 30px;
  border: 0;
  border-radius: 20px;
  background: var(--secondary-color);
}

body.woocommerce-cart .backeri-store-page .cart_totals > h2 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 600;
  text-transform: capitalize;
}

body.woocommerce-cart .backeri-store-page table.shop_table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
  background: transparent;
}

body.woocommerce-cart .backeri-store-page table.shop_table :is(th, td) {
  padding: 15px 10px;
  border: 0;
  border-bottom: 1px solid var(--divider-color);
  background: transparent;
  vertical-align: middle;
}

body.woocommerce-cart .backeri-store-page table.shop_table :is(th, td):first-child { padding-left: 0; }
body.woocommerce-cart .backeri-store-page table.shop_table :is(th, td):last-child { padding-right: 0; }
body.woocommerce-cart .backeri-store-page table.shop_table th {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 700;
}

body.woocommerce-cart .backeri-store-page table.cart img {
  width: 70px;
  max-width: none;
  border-radius: 10px;
}

body.woocommerce-cart .backeri-store-page table.cart td.product-name a {
  color: var(--primary-color);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

body.woocommerce-cart .backeri-store-page table.cart td.product-name a:hover { color: var(--accent-color); }
body.woocommerce-cart .backeri-store-page table.cart .product-price,
body.woocommerce-cart .backeri-store-page table.cart .product-subtotal { color: var(--primary-color); font-weight: 600; }
body.woocommerce-cart .backeri-store-page table.cart .product-remove .remove { color: var(--accent-color); }
body.woocommerce-cart .backeri-store-page table.cart .product-remove .remove:hover { background: var(--accent-color); color: var(--white-color); }
body.woocommerce-cart .backeri-store-page table.cart .quantity .qty {
  width: 64px;
  min-height: 44px;
  padding: 6px;
  border: 1px solid var(--divider-color);
  border-radius: 10px;
  background: var(--white-color);
}

body.woocommerce-cart .backeri-store-page table.cart td.actions {
  padding-top: 22px;
  border-bottom: 0;
}

body.woocommerce-cart .backeri-store-page table.cart td.actions .coupon .input-text {
  width: 150px;
  min-width: 150px;
  min-height: 50px;
  margin-right: 10px;
  padding: 10px 12px;
  border: 1px solid var(--divider-color);
  border-radius: 10px;
  background: var(--white-color);
}

body.woocommerce-cart .backeri-store-page .cart_totals table.shop_table :is(th, td) {
  padding: 12px 0;
  border-top: 0;
  font-size: 15px;
}
body.woocommerce-cart .backeri-store-page .cart_totals table.shop_table td { text-align: right; color: var(--primary-color); }
body.woocommerce-cart .backeri-store-page .cart_totals .order-total :is(th, td) { border-bottom: 0; font-size: 18px; font-weight: 700; }
body.woocommerce-cart .backeri-store-page .cart_totals .wc-proceed-to-checkout { padding: 25px 0 0; }
body.woocommerce-cart .backeri-store-page .cart_totals .checkout-button { display: flex; width: 100%; margin: 0; font-size: 17px; }
body.woocommerce-cart .backeri-store-page .wc-empty-cart-message,
body.woocommerce-cart .backeri-store-page .return-to-shop { grid-column: 1 / -1; }

/* Checkout: wide billing form and compact order summary. */
body.woocommerce-checkout .backeri-store-page form.woocommerce-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  gap: 0 40px;
  align-items: start;
}

body.woocommerce-checkout .backeri-store-page #customer_details { grid-column: 1; grid-row: 1; min-width: 0; }
body.woocommerce-checkout .backeri-store-page #customer_details :is(.col-1, .col-2) {
  float: none;
  width: 100%;
  padding: 0;
}
body.woocommerce-checkout .backeri-store-page #customer_details .col-2 { margin-top: 32px; }
body.woocommerce-checkout .backeri-store-page #customer_details h3 {
  margin: 0 0 22px;
  font-size: 30px;
  font-weight: 600;
}
body.woocommerce-checkout .backeri-store-page #order_review_heading { display: none; }
body.woocommerce-checkout .backeri-store-page #order_review {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 30px;
  border-radius: 20px;
  background: var(--secondary-color);
}

body.woocommerce-checkout .backeri-store-page .woocommerce-form-coupon-toggle { margin-bottom: 26px; }
body.woocommerce-checkout .backeri-store-page .woocommerce-form-coupon {
  margin: -10px 0 30px;
  padding: 25px;
  border: 1px solid var(--divider-color);
  border-radius: 10px;
  background: var(--white-color);
}

body.woocommerce-checkout .backeri-store-page .woocommerce form .form-row { margin-bottom: 15px; }
body.woocommerce-checkout .backeri-store-page .woocommerce form .form-row label {
  margin-bottom: 5px;
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.5;
}
body.woocommerce-checkout .backeri-store-page .woocommerce form .form-row :is(input.input-text, textarea),
body.woocommerce-checkout .backeri-store-page .select2-container--default .select2-selection--single {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--divider-color);
  border-radius: 10px;
  background: var(--white-color);
  color: var(--primary-color);
  font-size: 14px;
  box-shadow: none;
}
body.woocommerce-checkout .backeri-store-page .woocommerce form .form-row textarea { min-height: 100px; }
body.woocommerce-checkout .backeri-store-page .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 26px; }
body.woocommerce-checkout .backeri-store-page .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }

body.woocommerce-checkout .backeri-store-page table.woocommerce-checkout-review-order-table {
  width: 100%;
  margin: 0 0 20px;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
  background: transparent;
}
body.woocommerce-checkout .backeri-store-page table.woocommerce-checkout-review-order-table :is(th, td) {
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--divider-color);
  background: transparent;
  color: var(--primary-color);
  font-size: 15px;
  line-height: 1.5;
}
body.woocommerce-checkout .backeri-store-page table.woocommerce-checkout-review-order-table :is(th, td):last-child { text-align: right; }
body.woocommerce-checkout .backeri-store-page table.woocommerce-checkout-review-order-table th { font-weight: 600; }
body.woocommerce-checkout .backeri-store-page table.woocommerce-checkout-review-order-table .order-total :is(th, td) { font-size: 18px; font-weight: 700; }
body.woocommerce-checkout .backeri-store-page #payment { background: transparent; border-radius: 0; }
body.woocommerce-checkout .backeri-store-page #payment ul.payment_methods {
  padding: 16px 0;
  border-bottom: 1px solid var(--divider-color);
  background: transparent;
}
body.woocommerce-checkout .backeri-store-page #payment ul.payment_methods li { margin: 0; padding: 0; }
body.woocommerce-checkout .backeri-store-page #payment ul.payment_methods li::before { display: none; }
body.woocommerce-checkout .backeri-store-page #payment ul.payment_methods li label { font-size: 15px; font-weight: 600; }
body.woocommerce-checkout .backeri-store-page #payment div.payment_box {
  padding: 16px;
  border-radius: 10px;
  background: var(--white-color);
  color: var(--text-color);
}
body.woocommerce-checkout .backeri-store-page #payment div.payment_box::before { border-bottom-color: var(--white-color); }
body.woocommerce-checkout .backeri-store-page #payment .place-order { padding: 18px 0 0; }
body.woocommerce-checkout .backeri-store-page #payment #place_order { float: none; width: 100%; margin-top: 15px; font-size: 17px; }
body.woocommerce-checkout .backeri-store-page .woocommerce-privacy-policy-text { font-size: 14px; line-height: 1.6; }
body.woocommerce-checkout .backeri-store-page .woocommerce-privacy-policy-text p { margin-bottom: 10px; }

@media (max-width: 991px) {
  body.woocommerce-cart .backeri-store-page .woocommerce,
  body.woocommerce-checkout .backeri-store-page form.woocommerce-checkout { grid-template-columns: 1fr; gap: 30px; }
  body.woocommerce-checkout .backeri-store-page #customer_details,
  body.woocommerce-checkout .backeri-store-page #order_review { grid-column: 1; grid-row: auto; }
  body.woocommerce-cart .backeri-store-page .cart-collaterals { grid-column: 1; }
}

@media (max-width: 767px) {
  .backeri-store-page .page-single-post { padding: 60px 0; }
  body.woocommerce-cart .backeri-store-page .cart-collaterals .cart_totals,
  body.woocommerce-checkout .backeri-store-page #order_review { padding: 24px; }
  body.woocommerce-cart .backeri-store-page table.cart td.actions .coupon { display: flex; flex-wrap: wrap; gap: 10px; }
  body.woocommerce-cart .backeri-store-page table.cart td.actions .coupon .input-text { flex: 1 1 150px; width: auto; margin: 0; }
  body.woocommerce-cart .backeri-store-page table.cart tr.cart_item { position: relative; }
  body.woocommerce-cart .backeri-store-page table.cart tr.cart_item td.product-thumbnail {
    display: block !important;
    text-align: left !important;
  }
  body.woocommerce-cart .backeri-store-page table.cart tr.cart_item td.product-thumbnail::before { display: none; }
  body.woocommerce-cart .backeri-store-page table.cart tr.cart_item td.product-remove {
    position: absolute;
    top: 12px;
    right: 0;
    width: auto;
    border: 0;
  }
  body.woocommerce-checkout .backeri-store-page #customer_details h3 { font-size: 24px; }
}
/* Center the remove glyph within its circular control. */
body.woocommerce-cart .backeri-store-page table.cart .product-remove a.remove {
  display:inline-flex;align-items:center;justify-content:center;
  width:24px;height:24px;padding:0;margin:0;line-height:1;
  font-size:0;vertical-align:middle;border-radius:50%;
}
body.woocommerce-cart .backeri-store-page table.cart .product-remove a.remove::before {
  content:'';display:block;flex:none;width:12px;height:12px;
  background:linear-gradient(45deg,transparent 42%,currentColor 42%,currentColor 58%,transparent 58%),linear-gradient(-45deg,transparent 42%,currentColor 42%,currentColor 58%,transparent 58%);
}

body.woocommerce-cart .woocommerce ul#shipping_method li label,
body.woocommerce-checkout .woocommerce ul#shipping_method li label {font-size:14px;line-height:1.5;}

body.woocommerce-checkout #billing_country_field,body.woocommerce-checkout #billing_city_field{display:none;}

body.woocommerce-checkout .backeri-store-page .woocommerce-NoticeGroup-checkout {
  grid-column: 1 / -1;
}

body.woocommerce-checkout .backeri-store-page .woocommerce-error {
  position: relative;
  padding: 12px 16px 12px 44px;
}

body.woocommerce-checkout .backeri-store-page .woocommerce-error::before {
  position: absolute;
  top: 12px;
  left: 16px;
  line-height: 1.6;
}

body.woocommerce-cart .backeri-store-page .woocommerce-shipping-destination { display: none; }
