/**
 * Schoolyard Icknield Walk basket, checkout and account styling.
 */

/* Full-width WooCommerce pages */

.woocommerce-cart.right-sidebar .content-area,
.woocommerce-cart.left-sidebar .content-area,
.woocommerce-checkout.right-sidebar .content-area,
.woocommerce-checkout.left-sidebar .content-area,
.woocommerce-account.right-sidebar .content-area,
.woocommerce-account.left-sidebar .content-area,
.woocommerce-cart .content-area,
.woocommerce-checkout .content-area,
.woocommerce-account .content-area {
  float: none;
  width: 100%;
  margin-right: 0;
}

.woocommerce-cart .widget-area,
.woocommerce-checkout .widget-area,
.woocommerce-account .widget-area {
  display: none;
}

/* Basket and checkout page headings */

.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title,
.woocommerce-account .entry-title {
  color: #2b2a29;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
}

/* Notices */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 16px;
  line-height: 1.5;
}

/* Cart table */

.woocommerce-cart table.cart,
.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td,
.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td,
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
  padding: 1rem;
  color: #2b2a29;
  font-size: 16px;
  line-height: 1.4;
  vertical-align: middle;
  border-bottom: 1px solid #eeeeee;
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.shop_table th,
.woocommerce-checkout table.shop_table th {
  font-weight: 700;
  background: #f7f7f7;
}

.woocommerce-cart table.cart tr:last-child td,
.woocommerce-cart table.shop_table tr:last-child td,
.woocommerce-checkout table.shop_table tr:last-child td {
  border-bottom: none;
}

/* Product details in basket */

.woocommerce-cart table.cart .product-name a {
  color: #2b2a29;
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-cart table.cart .product-name a:hover {
  color: #6f6b68;
}

.woocommerce-cart table.cart .product-thumbnail img {
  max-width: 80px;
  height: auto;
}

/* Quantity fields */

.woocommerce .quantity .qty,
.woocommerce-cart table.cart input.qty {
  width: 5rem;
  min-height: 42px;
  padding: 0.5rem;
  border: 1px solid #cccccc;
  border-radius: 6px;
  color: #2b2a29;
  font-size: 16px;
  text-align: center;
}

/* Coupon and cart action row */

.woocommerce-cart table.cart td.actions {
  padding: 1rem;
  background: #fafafa;
}

.woocommerce-cart table.cart td.actions .coupon {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.woocommerce-cart table.cart td.actions .coupon input.input-text {
  width: 220px;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cccccc;
  border-radius: 6px;
  color: #2b2a29;
  font-size: 16px;
}

/* Cart totals full-width below basket */

.woocommerce-cart .cart-collaterals {
  width: 100%;
  clear: both;
  margin-top: 2rem;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-sizing: border-box;
}

.woocommerce-cart .cart_totals h2 {
  color: #2b2a29;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
  text-align: left;
}

.woocommerce-cart .cart_totals table {
  width: 100%;
  margin-bottom: 1.5rem;
  border: none;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
  text-align: left;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eeeeee;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
  text-align: left;
  padding: 0;
}

/* Checkout layout cards */

.woocommerce-checkout form.checkout {
  display: block;
}

.woocommerce-checkout .col2-set,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.5rem;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.woocommerce-checkout .col2-set {
  width: 100%;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  float: none;
  width: 100%;
  margin: 0 0 1.5rem;
}

.woocommerce-checkout .col2-set .col-2 {
  margin-bottom: 0;
}

.woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading {
  color: #2b2a29;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

/* Forms */

.woocommerce form .form-row {
  margin-bottom: 1rem;
}

.woocommerce form .form-row label {
  color: #2b2a29;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .form-row .select2-container .select2-selection {
  min-height: 44px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  color: #2b2a29;
  font-size: 16px;
  line-height: 1.4;
  padding: 0.55rem 0.75rem;
  background: #ffffff;
  box-sizing: border-box;
}

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

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: #6f6b68;
  outline: none;
  box-shadow: none;
}

/* Payment section */

.woocommerce-checkout #payment {
  background: #ffffff;
  border-radius: 8px;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid #eeeeee;
  padding: 1rem;
}

.woocommerce-checkout #payment div.form-row {
  padding: 1rem;
}

.woocommerce-checkout #payment .payment_box {
  background: #f7f7f7;
  color: #2b2a29;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.5;
}

/* Buttons */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order {
  background: #6f6b68;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  padding: 0.85rem 1.25rem;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout #place_order:hover {
  background: #2b2a29;
  color: #ffffff;
  text-decoration: none;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order {
  display: inline-block;
  width: auto;
  min-width: 260px;
}

/* Return to shop button hidden because it links to the wrong destination */

.return-to-shop {
  display: none;
}

/* Account page basic structure */

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

.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin-bottom: 0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  color: #2b2a29;
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  color: #6f6b68;
}

/* Responsive cart/checkout */

@media screen and (max-width: 768px) {
  .woocommerce-cart .entry-title,
  .woocommerce-checkout .entry-title,
  .woocommerce-account .entry-title {
    font-size: 36px;
  }

  .woocommerce-cart table.cart th,
  .woocommerce-cart table.cart td,
  .woocommerce-cart table.shop_table th,
  .woocommerce-cart table.shop_table td,
  .woocommerce-checkout table.shop_table th,
  .woocommerce-checkout table.shop_table td {
    padding: 0.75rem;
    font-size: 15px;
  }

  .woocommerce-cart table.cart td.actions .coupon {
    display: block;
  }

  .woocommerce-cart table.cart td.actions .coupon input.input-text,
  .woocommerce-cart table.cart td.actions .coupon .button {
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
  .woocommerce-checkout #place_order {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .woocommerce-checkout .col2-set,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review,
  .woocommerce-cart .cart-collaterals .cart_totals {
    padding: 1rem;
  }
}
