/* Shared design for checkout and the fallback cart. */
.checkout-section {
  padding: 120px 0 80px;
}

.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 28px;
  color: #45364f;
  font-size: 14px;
  font-weight: 600;
}

.checkout-back span {
  font-size: 22px;
}

.checkout-back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.checkout-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 760px;
  margin-bottom: 48px;
}

.checkout-heading h1 {
  color: #45364f;
  font-size: 48px;
  font-weight: 700;
  line-height: 110%;
  letter-spacing: -0.02em;
}

.checkout-heading > p {
  color: #6b606f;
  font-size: 16px;
  line-height: 160%;
}

.checkout-page .woocommerce {
  width: 100%;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.checkout-card {
  min-width: 0;
  padding: 36px;
  border: 1px solid #45364f26;
  border-radius: 16px;
  background: #fff;
}

.checkout-summary {
  background: #f2edf4;
}

.checkout-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
}

.checkout-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #45364f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.checkout-card-heading h2,
.checkout-empty h2 {
  color: #45364f;
  font-size: 26px;
  font-weight: 700;
  line-height: 125%;
  letter-spacing: -0.02em;
}

.checkout-card-heading p {
  margin-top: 8px;
  color: #6b606f;
  font-size: 14px;
  line-height: 150%;
}

.checkout-page .woocommerce form .form-row {
  float: none;
  width: 100%;
  padding: 0;
  margin: 0 0 22px;
}

.checkout-page .woocommerce form .form-row label {
  display: block;
  margin-bottom: 9px;
  color: #45364f;
  font-size: 14px;
  font-weight: 700;
  line-height: 150%;
}

.checkout-page .woocommerce form .form-row .required {
  color: #45364f;
  text-decoration: none;
}

.checkout-page .woocommerce-input-wrapper {
  display: block;
}

.checkout-page .woocommerce form .form-row .input-text {
  width: 100%;
  min-height: 54px;
  padding: 15px 18px;
  border: 1px solid #45364f33;
  border-radius: 10px;
  outline: none;
  background: #fcfaf7;
  color: #202020;
  font: inherit;
  font-size: 16px;
  line-height: 140%;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}

.checkout-page .woocommerce form .form-row .input-text::placeholder {
  color: #847b88;
  opacity: 1;
}

.checkout-page .woocommerce form .form-row .input-text:focus {
  border-color: #45364f;
  box-shadow: 0 0 0 3px #45364f14;
}

.checkout-page .woocommerce form .form-row.woocommerce-invalid .input-text {
  border-color: #a33b4c;
}

.checkout-page .woocommerce form .form-row.woocommerce-invalid label {
  color: #a33b4c;
}

.checkout-email-note {
  color: #6b606f;
  font-size: 13px;
  line-height: 160%;
}

.checkout-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f2edf4;
  color: #45364f;
}

.checkout-lock svg {
  width: 24px;
  height: 24px;
}

.checkout-page .woocommerce table.shop_table {
  width: 100%;
  margin: 0 0 26px;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
  color: #45364f;
  font-size: 14px;
  line-height: 150%;
}

.checkout-page .woocommerce table.shop_table th,
.checkout-page .woocommerce table.shop_table td {
  padding: 16px 0;
  border-top: 1px solid #45364f26;
  background: transparent;
  overflow-wrap: anywhere;
}

.checkout-page .woocommerce table.shop_table thead th {
  padding-top: 0;
  border-top: 0;
  color: #6b606f;
  font-size: 12px;
  font-weight: 600;
}

.checkout-page .woocommerce table.shop_table th:first-child,
.checkout-page .woocommerce table.shop_table td:first-child {
  padding-right: 18px;
}

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

.checkout-page .woocommerce table.shop_table .cart_item .product-name {
  font-size: 18px;
  font-weight: 700;
}

.checkout-page .woocommerce table.shop_table .product-quantity {
  color: #6b606f;
  font-size: 13px;
  font-weight: 400;
}

.checkout-page .woocommerce table.shop_table .order-total th,
.checkout-page .woocommerce table.shop_table .order-total td {
  padding-top: 22px;
  font-size: 24px;
  font-weight: 700;
}

.checkout-page .woocommerce #payment {
  padding-top: 26px;
  border-top: 1px solid #45364f26;
  border-radius: 0;
  background: transparent;
}

.checkout-payment-heading,
.checkout-payment-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-payment-heading {
  justify-content: space-between;
  flex-wrap: wrap;
}

.checkout-lock {
  background: #fff;
}

.checkout-payment-brand h3 {
  margin-bottom: 3px;
  color: #6b606f;
  font-size: 12px;
  font-weight: 500;
}

.checkout-payment-brand p {
  color: #45364f;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.checkout-payment-badge {
  padding: 8px 12px;
  border-radius: 24px;
  background: #fff;
  color: #45364f;
  font-size: 11px;
  font-weight: 600;
}

.checkout-payment-description {
  margin: 16px 0;
  color: #6b606f;
  font-size: 14px;
  line-height: 160%;
}

.checkout-page .woocommerce #payment ul.payment_methods {
  padding: 0;
  border: 0;
  font-size: 14px;
  line-height: 160%;
}

.checkout-page .woocommerce #payment ul.payment_methods li {
  margin: 0 0 18px;
}

.checkout-page .woocommerce #payment ul.payment_methods li input {
  accent-color: #45364f;
}

.checkout-page .woocommerce #payment ul.payment_methods li img {
  width: auto;
  max-width: 120px;
  max-height: 28px;
}

.checkout-page .woocommerce #payment div.payment_box {
  padding: 16px;
  border-radius: 10px;
  background: #fff;
  color: #45364f;
  font-size: 14px;
  line-height: 160%;
}

.checkout-page .woocommerce #payment div.payment_box::before {
  border-bottom-color: #fff;
}

.checkout-page .woocommerce #payment div.place-order {
  padding: 0;
  margin: 0;
}

.checkout-page .woocommerce-privacy-policy-text,
.checkout-page .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 20px;
  color: #6b606f;
  font-size: 12px;
  line-height: 170%;
}

.checkout-page .woocommerce a {
  color: #45364f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-page .woocommerce #place_order,
.checkout-page .woocommerce .button,
.checkout-page .woocommerce .checkout-home-button,
.checkout-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  float: none;
  min-height: 56px;
  padding: 18px 28px;
  border: 1px solid #45364f;
  border-radius: 36px;
  background: #45364f;
  color: #fff;
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 140%;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.checkout-page .woocommerce #place_order {
  width: 100%;
  margin: 0;
}

.checkout-page .woocommerce #place_order:hover,
.checkout-page .woocommerce .button:hover,
.checkout-page .woocommerce .checkout-home-button:hover,
.checkout-home-button:hover {
  background: #5a4667;
  color: #fff;
}

.checkout-page .woocommerce #place_order:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.checkout-page :is(a, button, input):focus-visible {
  outline: 2px solid #45364f;
  outline-offset: 4px;
}

.checkout-page .woocommerce-error,
.checkout-page .woocommerce-info,
.checkout-page .woocommerce-message {
  padding: 18px 20px 18px 48px;
  margin-bottom: 24px;
  border: 1px solid #45364f26;
  border-radius: 10px;
  background: #fff;
  color: #45364f;
  font-size: 14px;
  line-height: 160%;
  list-style: none;
}

.checkout-page :is(.woocommerce-error, .woocommerce-info, .woocommerce-message)::before {
  top: 18px;
  left: 20px;
  color: #45364f;
}

.checkout-page .woocommerce-error {
  border-color: #a33b4c55;
  color: #8c2f40;
}

.checkout-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 64px 28px;
  border: 1px solid #45364f26;
  border-radius: 16px;
  background: #f2edf4;
  text-align: center;
}

.checkout-empty > p {
  max-width: 480px;
  color: #6b606f;
  font-size: 16px;
  line-height: 160%;
}

.checkout-page .woocommerce-order {
  padding: 32px;
  border: 1px solid #45364f26;
  border-radius: 16px;
  line-height: 160%;
}

.cart-product {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px 0;
  border-top: 1px solid #45364f26;
  border-bottom: 1px solid #45364f26;
  color: #45364f;
}

.cart-product-image img {
  display: block;
  width: 88px;
  height: 108px;
  border-radius: 10px;
  object-fit: contain;
  background: #f2edf4;
}

.cart-product-details h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 130%;
}

.cart-product-details p,
.cart-product-quantity {
  display: block;
  margin-top: 8px;
  color: #6b606f;
  font-size: 13px;
  line-height: 150%;
}

.cart-product-price {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.cart-page .woocommerce .cart-collaterals .cart_totals {
  float: none;
  width: 100%;
}

.cart-page .cart_totals h2 {
  margin-bottom: 28px;
  color: #45364f;
  font-size: 26px;
  font-weight: 700;
  line-height: 125%;
}

.cart-page .woocommerce .wc-proceed-to-checkout {
  padding: 0;
}

.cart-page .woocommerce .wc-proceed-to-checkout .checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin: 0 0 20px;
  padding: 16px 24px;
  border: 1px solid #45364f;
  border-radius: 100px;
  background: #45364f;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 150%;
  text-align: center;
  text-decoration: none;
}

.cart-page .woocommerce .wc-proceed-to-checkout .checkout-button:hover {
  background: #302537;
}

.cart-page .woocommerce .wc-proceed-to-checkout .checkout-button:focus-visible {
  outline: 3px solid #45364f66;
  outline-offset: 3px;
}

@media only screen and (max-width: 1024px) {
  .checkout-section {
    padding: 100px 0 60px;
  }

  .checkout-heading h1 {
    font-size: 40px;
  }

  .checkout-layout {
    gap: 24px;
  }

  .checkout-card {
    padding: 28px;
  }
}

@media only screen and (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-heading {
    margin-bottom: 32px;
  }
}

@media only screen and (max-width: 480px) {
  .cart-product {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
  }

  .cart-product-image img {
    width: 64px;
    height: 80px;
  }

  .cart-product-price {
    grid-column: 2;
  }

  .checkout-section {
    padding: 90px 0 40px;
  }

  .checkout-back {
    margin-bottom: 20px;
  }

  .checkout-heading {
    gap: 16px;
  }

  .checkout-heading h1 {
    font-size: 28px;
  }

  .checkout-heading > p {
    font-size: 14px;
  }

  .checkout-card {
    padding: 24px 20px;
  }

  .checkout-card-heading {
    gap: 12px;
    margin-bottom: 24px;
  }

  .checkout-card-heading h2,
  .checkout-empty h2 {
    font-size: 22px;
  }

  .checkout-card-heading p {
    font-size: 13px;
  }

  .checkout-page .woocommerce table.shop_table .order-total th,
  .checkout-page .woocommerce table.shop_table .order-total td {
    font-size: 22px;
  }

  .checkout-empty {
    padding: 40px 20px;
  }

  .checkout-page .woocommerce-order {
    padding: 24px 20px;
  }

  .checkout-page .woocommerce ul.order_details li {
    float: none;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
  }
}
