/* WooCommerce basket and checkout: classic shortcodes and modern blocks. */

body.pla-cart-page,
body.pla-checkout-page {
  background: #f4f6fa;
}

body.pla-cart-page .pla-main,
body.pla-checkout-page .pla-main {
  background:
    radial-gradient(circle at 5% 0%, rgba(77, 50, 194, .08), transparent 28rem),
    #f4f6fa;
}

body.pla-cart-page .pla-page,
body.pla-checkout-page .pla-page {
  width: min(calc(100% - 40px), var(--pla-content-width));
  max-width: var(--pla-content-width);
  padding: 38px 0 70px;
}

body.pla-cart-page .pla-page *,
body.pla-checkout-page .pla-page * {
  box-sizing: border-box;
}

.pla-commerce-page-header {
  position: relative;
  overflow: hidden;
  margin: 0 0 22px;
  padding: clamp(25px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 19px;
  background:
    radial-gradient(circle at 93% 8%, rgba(20, 183, 166, .4), transparent 15rem),
    linear-gradient(130deg, #24175d, #4d32c2 65%, #087f73);
  box-shadow: 0 20px 48px rgba(36, 23, 93, .16);
}

.pla-commerce-page-header span {
  display: block;
  margin-bottom: 7px;
  color: #b8ece8;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.pla-commerce-page-header h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

body.pla-cart-page .woocommerce,
body.pla-checkout-page .woocommerce,
body.pla-cart-page .wp-block-woocommerce-cart,
body.pla-checkout-page .wp-block-woocommerce-checkout {
  width: 100%;
  max-width: none;
  color: #172033;
  font-size: 15px;
  line-height: 1.6;
}

body.pla-cart-page .woocommerce::before,
body.pla-cart-page .woocommerce::after,
body.pla-checkout-page .woocommerce::before,
body.pla-checkout-page .woocommerce::after {
  display: none !important;
  content: none !important;
}

/* Shared notices. */
body.pla-cart-page .woocommerce-error,
body.pla-cart-page .woocommerce-info,
body.pla-cart-page .woocommerce-message,
body.pla-checkout-page .woocommerce-error,
body.pla-checkout-page .woocommerce-info,
body.pla-checkout-page .woocommerce-message {
  min-height: 58px;
  margin: 0 0 20px;
  padding: 17px 18px 17px 48px;
  border: 1px solid #bddfd9;
  border-top: 1px solid #bddfd9;
  border-radius: 12px;
  background: #eaf8f5;
  color: #245c55;
}

body.pla-cart-page .woocommerce-info,
body.pla-checkout-page .woocommerce-info {
  border-color: #d9d0fa;
  background: #f3efff;
  color: #4935a0;
}

body.pla-cart-page .woocommerce-error,
body.pla-checkout-page .woocommerce-error {
  border-color: #efc4d3;
  background: #fff0f5;
  color: #8b2850;
}

/* Classic basket. */
body.pla-cart-page .woocommerce-cart-form {
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid #dfe5ed;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, .07);
}

body.pla-cart-page table.shop_table,
body.pla-checkout-page table.shop_table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0;
  background: transparent;
}

body.pla-cart-page table.shop_table th,
body.pla-checkout-page table.shop_table th {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #ded8f6;
  background: #f3efff;
  color: #3b2a89;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
}

body.pla-cart-page table.shop_table td,
body.pla-checkout-page table.shop_table td {
  padding: 16px;
  border: 0;
  border-bottom: 1px solid #e7eaf0;
  color: #536076;
  vertical-align: middle;
}

body.pla-cart-page table.shop_table tr:last-child td,
body.pla-checkout-page table.shop_table tr:last-child td {
  border-bottom: 0;
}

body.pla-cart-page table.shop_table .product-thumbnail {
  width: 94px;
}

body.pla-cart-page table.shop_table .product-thumbnail img {
  display: block;
  width: 76px;
  height: 76px;
  padding: 5px;
  border: 1px solid #e1e5ec;
  border-radius: 10px;
  background: #fafbfc;
  object-fit: cover;
}

body.pla-cart-page table.shop_table .product-name a {
  color: #251761;
  font-weight: 850;
  text-decoration: none;
}

body.pla-cart-page table.shop_table .product-remove a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid #efc4d3;
  border-radius: 8px;
  background: #fff0f5;
  color: #a22959 !important;
  font-size: 1.1rem;
  line-height: 1;
}

body.pla-cart-page .quantity .qty {
  width: 76px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid #ccd5e2;
  border-radius: 9px;
  background: #ffffff;
  color: #172033;
  font: inherit;
  text-align: center;
}

body.pla-cart-page .shop_table .actions {
  padding: 16px;
  background: #fafbfc;
}

body.pla-cart-page .coupon {
  display: flex;
  align-items: center;
  gap: 9px;
}

body.pla-cart-page .coupon .input-text {
  width: min(240px, 100%) !important;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ccd5e2;
  border-radius: 9px;
  background: #ffffff;
  font: inherit;
}

body.pla-cart-page .cart-collaterals {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

body.pla-cart-page .cart-collaterals::before,
body.pla-cart-page .cart-collaterals::after {
  display: none !important;
  content: none !important;
}

body.pla-cart-page .cart_totals {
  float: none !important;
  width: min(100%, 480px) !important;
  margin: 0 !important;
  overflow: hidden;
  padding: 0 22px 22px;
  border: 1px solid #dfe5ed;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, .07);
}

body.pla-cart-page .cart_totals h2 {
  margin: 0 -22px 18px;
  padding: 17px 22px;
  border-bottom: 1px solid #ded8f6;
  background: #f3efff;
  color: #2f1c82;
  font-size: 1.2rem;
}

/* Shared WooCommerce buttons. */
body.pla-cart-page .woocommerce button.button,
body.pla-cart-page .woocommerce a.button,
body.pla-cart-page .wc-block-components-button,
body.pla-checkout-page .woocommerce button.button,
body.pla-checkout-page .woocommerce a.button,
body.pla-checkout-page .wc-block-components-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid #4d32c2;
  border-radius: 9px;
  background: #4d32c2;
  color: #ffffff;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(77, 50, 194, .18);
}

body.pla-cart-page .wc-proceed-to-checkout .checkout-button {
  width: 100%;
  min-height: 50px;
  margin: 15px 0 0;
  font-size: .92rem;
}

body.pla-cart-page .woocommerce button.button:hover,
body.pla-cart-page .woocommerce a.button:hover,
body.pla-cart-page .wc-block-components-button:hover,
body.pla-checkout-page .woocommerce button.button:hover,
body.pla-checkout-page .woocommerce a.button:hover,
body.pla-checkout-page .wc-block-components-button:hover {
  border-color: #2f1c82;
  background: #2f1c82;
  color: #ffffff;
}

/* Classic checkout. */
body.pla-checkout-page form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  align-items: start;
  gap: 0 22px;
}

body.pla-checkout-page form.checkout #customer_details {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #dfe5ed;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, .07);
}

body.pla-checkout-page form.checkout #customer_details::before,
body.pla-checkout-page form.checkout #customer_details::after {
  display: none !important;
  content: none !important;
}

body.pla-checkout-page form.checkout #customer_details .col-1,
body.pla-checkout-page form.checkout #customer_details .col-2 {
  float: none !important;
  width: 100% !important;
}

body.pla-checkout-page form.checkout #customer_details .col-2 {
  margin-top: 25px;
  padding-top: 24px;
  border-top: 1px solid #e3e7ee;
}

body.pla-checkout-page form.checkout h3 {
  margin: 0 0 20px;
  color: #172033;
  font-size: 1.35rem;
  line-height: 1.2;
}

body.pla-checkout-page form.checkout #order_review_heading {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 17px 20px;
  border: 1px solid #dfe5ed;
  border-bottom: 1px solid #ded8f6;
  border-radius: 16px 16px 0 0;
  background: #f3efff;
  color: #2f1c82;
  font-size: 1.2rem;
}

body.pla-checkout-page form.checkout #order_review {
  grid-column: 2;
  grid-row: 2;
  overflow: hidden;
  padding: 0 20px 20px;
  border: 1px solid #dfe5ed;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, .07);
}

body.pla-checkout-page .woocommerce-billing-fields__field-wrapper,
body.pla-checkout-page .woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

body.pla-checkout-page .form-row {
  float: none !important;
  width: auto !important;
  margin: 0 0 16px;
  padding: 0;
}

body.pla-checkout-page .form-row-wide {
  grid-column: 1 / -1;
}

body.pla-checkout-page label {
  display: block;
  margin: 0 0 7px;
  color: #3e495d;
  font-size: .79rem;
  font-weight: 800;
}

body.pla-checkout-page input.input-text,
body.pla-checkout-page select,
body.pla-checkout-page textarea {
  width: 100%;
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid #ccd5e2;
  border-radius: 9px;
  background: #ffffff;
  color: #172033;
  font: inherit;
}

body.pla-checkout-page textarea {
  min-height: 110px;
  resize: vertical;
}

body.pla-checkout-page input:focus,
body.pla-checkout-page select:focus,
body.pla-checkout-page textarea:focus {
  border-color: #735bd3;
  outline: 3px solid rgba(77, 50, 194, .12);
}

body.pla-checkout-page #payment {
  margin-top: 17px;
  border: 1px solid #e0e5ed;
  border-radius: 12px;
  background: #f8f9fc;
}

body.pla-checkout-page #payment ul.payment_methods {
  padding: 18px;
  border-bottom-color: #e0e5ed;
}

body.pla-checkout-page #payment div.form-row {
  display: block;
  padding: 18px;
}

body.pla-checkout-page #place_order {
  width: 100%;
  min-height: 50px;
  font-size: .92rem;
}

/* Modern WooCommerce Cart and Checkout blocks. */
body.pla-cart-page .wc-block-components-sidebar-layout,
body.pla-checkout-page .wc-block-components-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  align-items: start;
  gap: 22px;
  width: 100%;
}

body.pla-cart-page .wc-block-components-main,
body.pla-checkout-page .wc-block-components-main,
body.pla-cart-page .wc-block-components-sidebar,
body.pla-checkout-page .wc-block-components-sidebar {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}

body.pla-cart-page .wc-block-components-main,
body.pla-checkout-page .wc-block-components-main {
  padding: clamp(20px, 3vw, 32px) !important;
  border: 1px solid #dfe5ed;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, .07);
}

body.pla-cart-page .wc-block-components-sidebar,
body.pla-checkout-page .wc-block-components-sidebar {
  padding: 22px !important;
  border: 1px solid #dfe5ed;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, .07);
}

body.pla-cart-page .wc-block-cart-items,
body.pla-checkout-page .wc-block-components-order-summary {
  border: 0 !important;
}

body.pla-cart-page .wc-block-cart-items__row {
  border-bottom: 1px solid #e6eaf0;
}

body.pla-cart-page .wc-block-cart-item__image img,
body.pla-checkout-page .wc-block-components-order-summary-item__image img {
  border: 1px solid #e1e5ec;
  border-radius: 10px;
  background: #fafbfc;
}

body.pla-cart-page .wc-block-components-product-name,
body.pla-checkout-page .wc-block-components-product-name {
  color: #251761;
  font-weight: 850;
  text-decoration: none;
}

body.pla-cart-page .wc-block-components-totals-wrapper,
body.pla-checkout-page .wc-block-components-totals-wrapper {
  border-top-color: #e1e5ec;
}

body.pla-checkout-page .wc-block-components-checkout-step {
  margin: 0 0 16px;
  padding: 19px;
  border: 1px solid #e1e5ec;
  border-radius: 12px;
  background: #fafbfc;
}

body.pla-checkout-page .wc-block-components-text-input input,
body.pla-checkout-page .wc-block-components-combobox .wc-block-components-combobox-control input {
  border-color: #ccd5e2 !important;
  border-radius: 9px !important;
  background: #ffffff !important;
}

body.pla-cart-page .wc-block-cart__submit-button,
body.pla-checkout-page .wc-block-components-checkout-place-order-button {
  width: 100%;
  min-height: 52px;
}

@media (max-width: 900px) {
  body.pla-checkout-page form.checkout,
  body.pla-cart-page .wc-block-components-sidebar-layout,
  body.pla-checkout-page .wc-block-components-sidebar-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.pla-checkout-page form.checkout #customer_details,
  body.pla-checkout-page form.checkout #order_review_heading,
  body.pla-checkout-page form.checkout #order_review {
    grid-column: 1;
    grid-row: auto;
  }

  body.pla-checkout-page form.checkout #order_review_heading {
    margin-top: 2px;
  }
}

@media (max-width: 620px) {
  body.pla-cart-page .pla-page,
  body.pla-checkout-page .pla-page {
    width: min(calc(100% - 20px), var(--pla-content-width));
    padding: 22px 0 42px;
  }

  .pla-commerce-page-header {
    margin-bottom: 14px;
    border-radius: 15px;
  }

  body.pla-cart-page .shop_table .actions,
  body.pla-cart-page .coupon {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.pla-cart-page .coupon .input-text,
  body.pla-cart-page .shop_table .actions .button {
    width: 100% !important;
  }

  body.pla-cart-page .shop_table .actions > .button {
    margin-top: 9px;
  }

  body.pla-checkout-page .woocommerce-billing-fields__field-wrapper,
  body.pla-checkout-page .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  body.pla-checkout-page .form-row,
  body.pla-checkout-page .form-row-wide {
    grid-column: 1;
  }

  body.pla-cart-page .wc-block-components-main,
  body.pla-checkout-page .wc-block-components-main,
  body.pla-cart-page .wc-block-components-sidebar,
  body.pla-checkout-page .wc-block-components-sidebar {
    padding: 17px !important;
    border-radius: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pla-cart-page *,
  body.pla-checkout-page * {
    scroll-behavior: auto !important;
  }
}
