/* Readable light cart and checkout surfaces. */
html,
body.woocommerce-cart,
body.woocommerce-checkout {
  color-scheme: light;
  background: #f9f7f4 !important;
  color: #20222b;
}

body.woocommerce-cart > main,
body.woocommerce-checkout > main,
body.woocommerce-cart #main,
body.woocommerce-checkout #main,
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
  background: #f9f7f4;
  color: #20222b;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

body.woocommerce-cart > main,
body.woocommerce-checkout > main {
  padding: 2.5rem max(1.25rem, calc((100% - 80rem) / 2));
}

body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title,
body.woocommerce-cart .woocommerce h1,
body.woocommerce-cart .woocommerce h2,
body.woocommerce-cart .woocommerce h3,
body.woocommerce-checkout .woocommerce h1,
body.woocommerce-checkout .woocommerce h2,
body.woocommerce-checkout .woocommerce h3 {
  color: #20222b;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
}

body.woocommerce-cart .woocommerce a:not(.button),
body.woocommerce-checkout .woocommerce a:not(.button) { color: #9c5427; }

body.woocommerce-cart table.shop_table,
body.woocommerce-checkout table.shop_table,
body.woocommerce-cart .cart_totals,
body.woocommerce-checkout .woocommerce-checkout-review-order,
body.woocommerce-checkout #payment {
  background: #fdfcfb;
  color: #20222b;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-checkout table.shop_table th {
  background: #eeece7;
  color: #20222b;
}

body.woocommerce-cart table.shop_table td,
body.woocommerce-checkout table.shop_table td,
body.woocommerce-cart table.shop_table td a,
body.woocommerce-checkout table.shop_table td a,
body.woocommerce-cart .cart_totals th,
body.woocommerce-cart .cart_totals td,
body.woocommerce-checkout .woocommerce-checkout-review-order th,
body.woocommerce-checkout .woocommerce-checkout-review-order td,
body.woocommerce-checkout #payment,
body.woocommerce-checkout #payment label,
body.woocommerce-checkout #payment p { color: #20222b; }

body.woocommerce-cart input,
body.woocommerce-cart select,
body.woocommerce-cart textarea,
body.woocommerce-checkout input,
body.woocommerce-checkout select,
body.woocommerce-checkout textarea,
body.woocommerce-checkout .select2-selection {
  background: #fff !important;
  color: #20222b !important;
  border: 1px solid #d6d1c7 !important;
}

body.woocommerce-cart input::placeholder,
body.woocommerce-checkout input::placeholder,
body.woocommerce-checkout textarea::placeholder {
  color: #6c6f79;
  opacity: 1;
}

body.woocommerce-checkout #payment .payment_box {
  background: #eeece7;
  color: #20222b;
}
body.woocommerce-checkout #payment .payment_box::before { border-bottom-color: #eeece7; }

body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message {
  background: #fdfcfb;
  color: #20222b;
}

@media (max-width: 700px) {
  body.woocommerce-cart > main,
  body.woocommerce-checkout > main { padding: 1.5rem 1rem; }
}

/* Polished Shopify-inspired checkout */
body.woocommerce-checkout > main,
body.woocommerce-cart > main {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-header,
body.woocommerce-cart .entry-header { display: none; }

body.woocommerce-checkout .woocommerce,
body.woocommerce-cart .woocommerce {
  display: flow-root;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

body.woocommerce-checkout > main,
body.woocommerce-cart > main { display: flow-root; }
body.woocommerce-checkout .pd-footer,
body.woocommerce-cart .pd-footer { clear: both; }

body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout .woocommerce-form-login-toggle { margin-bottom: 1rem; }

body.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: 0;
  align-items: start;
  overflow: hidden;
  border: 1px solid #e2dfda;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(32, 34, 43, .08);
}

body.woocommerce-checkout form.checkout > #customer_details {
  grid-column: 1;
  grid-row: 1 / span 2;
}
body.woocommerce-checkout form.checkout > #order_review_heading {
  grid-column: 2;
  grid-row: 1;
}
body.woocommerce-checkout form.checkout > #order_review {
  grid-column: 2;
  grid-row: 2;
}

body.woocommerce-checkout #customer_details {
  width: auto;
  float: none;
  padding: 44px 48px 52px;
  background: #fff;
}

body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
  width: 100%;
  float: none;
}

body.woocommerce-checkout #order_review_heading {
  width: auto;
  float: none;
  margin: 0;
  padding: 44px 44px 18px;
  background: #f4f4f2;
  border-left: 1px solid #e2dfda;
  font-size: 1.45rem;
  letter-spacing: 0;
  text-transform: none;
}

body.woocommerce-checkout #order_review {
  width: auto;
  float: none;
  margin: 0;
  padding: 0 44px 48px;
  background: #f4f4f2;
  border-left: 1px solid #e2dfda;
}

body.woocommerce-checkout #customer_details h3 {
  margin: 0 0 22px;
  padding: 0;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -.02em;
  text-transform: none;
}

body.woocommerce-checkout .form-row { margin: 0 0 12px; }
body.woocommerce-checkout .form-row-first,
body.woocommerce-checkout .form-row-last { width: 100%; float: none; }
body.woocommerce-checkout .form-row label {
  display: block;
  margin: 0 0 7px;
  color: #4f535d;
  font-size: .77rem;
  font-weight: 650;
}

body.woocommerce-checkout .input-text,
body.woocommerce-checkout select,
body.woocommerce-checkout .select2-container .select2-selection--single {
  min-height: 50px;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-size: .9rem;
  padding: 0 14px;
  transition: border-color .18s, box-shadow .18s;
}

body.woocommerce-checkout textarea.input-text {
  min-height: 104px;
  padding-top: 13px;
  resize: vertical;
}

body.woocommerce-checkout .input-text:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout .select2-container--focus .select2-selection--single {
  border-color: #20222b !important;
  box-shadow: 0 0 0 1px #20222b !important;
  outline: 0;
}

body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 48px;
  padding-left: 0;
  color: #20222b;
}
body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow { height: 48px; }

body.woocommerce-checkout .woocommerce-shipping-fields { margin-top: 28px; }
body.woocommerce-checkout .woocommerce-additional-fields { margin-top: 20px; }

body.woocommerce-checkout #order_review table.shop_table {
  border: 0;
  background: transparent;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 28px;
}

body.woocommerce-checkout #order_review table.shop_table th,
body.woocommerce-checkout #order_review table.shop_table td {
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #dddcd8;
  background: transparent;
  font-size: .86rem;
  vertical-align: middle;
}

body.woocommerce-checkout #order_review table.shop_table td:last-child,
body.woocommerce-checkout #order_review table.shop_table th:last-child { text-align: right; }

body.woocommerce-checkout #order_review .product-name { font-weight: 650; }
body.woocommerce-checkout #order_review .product-name img {
  width: 58px;
  height: 58px;
  margin-right: 14px;
  border: 1px solid #dddcd8;
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
}

body.woocommerce-checkout #order_review tr.order-total th,
body.woocommerce-checkout #order_review tr.order-total td {
  border-bottom: 0;
  padding-top: 22px;
  font-size: 1rem;
}
body.woocommerce-checkout #order_review tr.order-total strong { font-size: 1.35rem; }

body.woocommerce-checkout #payment {
  margin-top: 18px;
  padding: 0;
  border: 1px solid #d9d7d2;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

body.woocommerce-checkout #payment ul.payment_methods { padding: 0; border: 0; }
body.woocommerce-checkout #payment li.wc_payment_method > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  margin: 0;
  padding: 15px 18px;
  border-bottom: 1px solid #e2dfda;
  font-weight: 750;
}
body.woocommerce-checkout #payment li.wc_payment_method > label img { max-height: 24px; width: auto; }

body.woocommerce-checkout #payment .payment_box {
  margin: 0 !important;
  padding: 18px !important;
  border: 0;
  background: #faf9f7;
}
body.woocommerce-checkout #payment .payment_box::before { display: none; }
body.woocommerce-checkout #payment .payment-country-select {
  width: 100%;
  margin: 0 0 16px;
}

body.woocommerce-checkout #payment .payment-group-title {
  margin: 14px 0 9px;
  color: #60636b;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.woocommerce-checkout #payment .payment-group-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
body.woocommerce-checkout #payment .payment-group-title { grid-column: 1 / -1; }
body.woocommerce-checkout #payment .paysera-payment-method { margin: 0; }
body.woocommerce-checkout #payment .paysera-payment-method-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid #dedbd5;
  border-radius: 9px;
  background: #fff;
  font-size: .75rem;
  cursor: pointer;
}
body.woocommerce-checkout #payment .paysera-image img { max-width: 48px; max-height: 22px; }

body.woocommerce-checkout #payment .place-order { padding: 20px 18px 18px; }
body.woocommerce-checkout #place_order {
  width: 100%;
  min-height: 54px;
  border-radius: 9px;
  font-size: .85rem;
}

/* Cart in the same visual language */
body.woocommerce-cart .woocommerce-cart-form {
  width: calc(66% - 14px);
  padding: 12px 26px 18px;
  border: 1px solid #e2dfda;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(32, 34, 43, .06);
}

body.woocommerce-cart .cart-collaterals {
  width: calc(34% - 14px);
  margin-left: 28px;
}
body.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100%;
  padding: 26px;
  border: 1px solid #e2dfda;
  border-radius: 16px;
  background: #f4f4f2;
  box-shadow: 0 18px 45px rgba(32, 34, 43, .06);
}

body.woocommerce-cart table.shop_table { border: 0; background: transparent; }
body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td {
  padding-top: 18px;
  padding-bottom: 18px;
  border-color: #e7e4df;
  background: transparent;
}
body.woocommerce-cart table.shop_table .product-thumbnail img {
  width: 76px;
  border: 1px solid #e2dfda;
  border-radius: 12px;
}
body.woocommerce-cart input.qty { min-height: 42px; border-radius: 9px !important; }
body.woocommerce-cart .checkout-button {
  min-height: 54px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 9px !important;
}

@media (max-width: 900px) {
  body.woocommerce-checkout form.checkout { grid-template-columns: 1fr; border-radius: 14px; }
  body.woocommerce-checkout form.checkout > #customer_details,
  body.woocommerce-checkout form.checkout > #order_review_heading,
  body.woocommerce-checkout form.checkout > #order_review {
    grid-column: 1;
    grid-row: auto;
  }
  body.woocommerce-checkout #customer_details { padding: 28px 22px 34px; }
  body.woocommerce-checkout #order_review_heading {
    padding: 30px 22px 14px;
    border-left: 0;
    border-top: 1px solid #e2dfda;
  }
  body.woocommerce-checkout #order_review { padding: 0 22px 30px; border-left: 0; }
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals { width: 100%; margin: 0 0 20px; }
}

@media (max-width: 520px) {
  body.woocommerce-checkout #payment .payment-group-wrapper { grid-template-columns: 1fr; }
  body.woocommerce-cart .woocommerce-cart-form { padding: 8px 14px 14px; }
  body.woocommerce-cart .cart-collaterals .cart_totals { padding: 20px; }
}
