/* ==========================================================================
   Cart, checkout and account pages (WooCommerce classic templates) dressed
   in the storefront's type, colours, fields and buttons.
   ========================================================================== */

.page-width--shop {
  max-width: 120rem;
}

.page-width--shop .main-page-title {
  font-size: calc(var(--font-heading-scale) * 2.25rem);
  text-align: center;
}

@media screen and (min-width: 750px) {
  .page-width--shop .main-page-title {
    font-size: calc(var(--font-heading-scale) * 3rem);
  }
}

.woocommerce {
  font-size: 1.5rem;
}

.woocommerce h2,
.woocommerce h3 {
  font-size: calc(var(--font-heading-scale) * 1.7rem);
  margin: 0 0 1.5rem;
}

.woocommerce a {
  color: rgb(var(--color-link));
  text-underline-offset: 0.3rem;
}

/* Fields */
.woocommerce form .form-row label {
  font-size: 1.3rem;
  line-height: 1.5;
  letter-spacing: 0.04rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single,
.woocommerce .quantity .qty,
.woocommerce-cart table.cart td.actions .coupon .input-text {
  height: 4.5rem;
  padding: 0 1.5rem;
  border: var(--inputs-border-width) solid rgba(var(--color-foreground), var(--inputs-border-opacity));
  border-radius: var(--inputs-radius);
  background: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  font-family: var(--font-body-family);
  font-size: 1.6rem;
  box-shadow: none;
}

.woocommerce form .form-row textarea {
  height: 10rem;
  padding: 1.2rem 1.5rem;
}

.woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 4.3rem;
  padding-left: 0;
}

.woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
  height: 4.3rem;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  outline: 0;
  border-color: rgb(var(--color-foreground));
  box-shadow: 0 0 0 0.1rem rgb(var(--color-foreground));
}

.woocommerce .quantity .qty {
  width: 8rem;
  padding: 0 0.5rem;
  text-align: center;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
  width: 18rem;
  margin-right: 1rem;
}

/* Buttons */
.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 {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 4.9rem;
  padding: 0 3rem;
  border: var(--buttons-border-width) solid transparent;
  border-radius: var(--buttons-radius);
  background-color: rgb(var(--color-button));
  color: rgb(var(--color-button-text));
  font-family: var(--font-body-family);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  line-height: 1.2;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: rgb(var(--color-button));
  color: rgb(var(--color-button-text));
  box-shadow: 0 0 0 1px rgb(var(--color-button));
}

.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] {
  padding: 0 3rem;
  color: rgb(var(--color-button-text));
  opacity: 0.5;
}

.woocommerce #payment #place_order,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  width: 100%;
  font-size: 1.8rem;
  margin-bottom: 0;
}

/* Tables */
.woocommerce table.shop_table {
  border: 0.1rem solid rgba(var(--color-foreground), 0.1);
  border-radius: var(--media-radius);
  font-size: 1.5rem;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 1.5rem;
  border-color: rgba(var(--color-foreground), 0.08);
}

.woocommerce table.shop_table th {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.woocommerce-cart table.cart img {
  width: 8rem;
  border-radius: 0.4rem;
}

.woocommerce-cart table.cart .product-name a {
  color: rgb(var(--color-foreground));
  font-weight: 700;
  text-decoration: none;
}

.woocommerce a.remove {
  color: rgb(var(--color-foreground)) !important;
}

.woocommerce a.remove:hover {
  background: rgb(var(--color-base-accent-1));
  color: #fff !important;
}

.woocommerce del {
  color: rgba(var(--color-base-accent-1), 0.9);
}

.woocommerce ins {
  text-decoration: none;
  font-weight: 700;
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
  width: 100%;
  max-width: 48rem;
  float: right;
}

/* Checkout layout */
.woocommerce-checkout #payment {
  background: rgba(var(--color-foreground), 0.04);
  border-radius: var(--text-boxes-radius);
}

.woocommerce-checkout #payment div.payment_box {
  background-color: rgb(var(--color-background));
  color: rgba(var(--color-foreground), var(--alpha-text));
  border-radius: var(--inputs-radius);
}

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

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom-color: rgba(var(--color-foreground), 0.08);
}

@media screen and (min-width: 990px) {
  .woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    column-gap: 5rem;
    align-items: start;
  }

  .woocommerce-checkout form.checkout > .woocommerce-NoticeGroup,
  .woocommerce-checkout form.checkout > .woocommerce-form-coupon-toggle {
    grid-column: 1 / -1;
  }

  .woocommerce-checkout form.checkout #customer_details {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
  }

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

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

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: rgb(var(--color-base-accent-1));
  background-color: rgba(var(--color-foreground), 0.04);
  color: rgba(var(--color-foreground), var(--alpha-text));
  border-radius: var(--inputs-radius);
  font-size: 1.4rem;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: rgb(var(--color-base-accent-1));
}

.woocommerce-error {
  border-top-color: rgb(200, 30, 30);
}

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

.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 0.9rem 0;
  color: rgb(var(--color-foreground));
  text-decoration: none;
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.08);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  color: rgb(var(--color-link));
  font-weight: 700;
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon {
  border-color: rgba(var(--color-foreground), 0.1);
  border-radius: var(--text-boxes-radius);
}

.cart-empty.woocommerce-info {
  text-align: center;
}

.return-to-shop {
  text-align: center;
}
