﻿/*
!* Market checkout/order styling. Loaded only on cart/order pages. *!

.market-order__section,
.market-checkout-step {
  border-radius: var(--market-radius);
}

.market-order__section {
  overflow: hidden;
}

.market-order__section-head {
  padding: 1.25rem 1.25rem .5rem;
}

.market-order__section-body {
  padding: 1rem 1.25rem 1.25rem;
}

.market-order__form {
  position: sticky;
  top: 88px;
}

.market-order :is(.wa-order-cart-wrapper, .wa-order-form-wrapper) {
  max-width: 100%;
  font-size: .9375rem;
}

.market-order .wa-order-cart-wrapper :is(.wa-cart-body, .wa-cart-content),
.market-order .wa-order-form-wrapper :is(.wa-form-body, .wa-form-content) {
  padding: 0;
}

.market-order .wa-products {
  display: grid;
  gap: 0;
}

.market-order .wa-product {
  border: 0;
  border-bottom: 1px solid var(--bs-border-color);
  padding: 1rem 0;
}

.market-order .wa-product:first-child {
  padding-top: 0;
}

.market-order .wa-product-body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 150px 92px;
  gap: .85rem;
  align-items: start;
}

.market-order .wa-column-image img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: .5rem;
  border: 1px solid var(--bs-border-color);
}

.market-order .wa-details {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  align-items: baseline;
}

.market-order .wa-name {
  color: var(--bs-link-color);
  font-weight: 600;
  line-height: 1.35;
}

.market-order .wa-name:hover {
  color: var(--bs-link-hover-color);
}

.market-order :is(.wa-sku, .wa-weight, .wa-product-price, .wa-section-footer, .wa-required-text) {
  color: var(--bs-secondary-color);
  font-size: .875rem;
}

.market-order .wa-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.market-order .wa-action {
  color: var(--bs-secondary-color);
  cursor: pointer;
  font-size: .8125rem;
}

.market-order .wa-action:hover {
  color: var(--bs-danger);
}

.market-order .wa-quantity-cart-section .wa-section-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}

.market-order .wa-quantity-cart-section .wa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bs-secondary-color);
  line-height: 1;
}

.market-order .wa-quantity-cart-section .wa-button:hover {
  color: var(--bs-dark);
}

.market-order .wa-quantity-cart-section .wa-field-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.market-order .wa-quantity-cart-section .wa-field {
  width: 4rem;
  height: 2.35rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .375rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  text-align: center;
  font-size: 1rem;
}

.market-order .wa-quantity-cart-section .wa-unit {
  position: absolute;
  top: -1.15rem;
  right: .35rem;
  color: var(--bs-secondary-color);
  font-size: .75rem;
}

.market-order .wa-product-fractional-prices {
  text-align: center;
  margin-top: .25rem;
}

.market-order .wa-column-price {
  text-align: right;
}

.market-order .wa-price-total {
  color: var(--bs-body-color);
  font-weight: 700;
  white-space: nowrap;
}

.market-order .wa-cart-details {
  border-top: 1px solid var(--bs-border-color);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.market-order .wa-cart-details :is(.wa-price-total, .wa-price-discount, .wa-weight-section) {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  color: var(--bs-secondary-color);
}

.market-order .wa-cart-details .wa-price-total {
  color: var(--bs-body-color);
  font-size: 1.25rem;
}

.market-order .wa-step-section {
  border-bottom: 1px solid var(--bs-border-color);
  padding: 1.25rem 0;
}

.market-order .wa-step-section:first-child {
  padding-top: 0;
}

.market-order .wa-step-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.market-order .wa-section-header {
  margin-bottom: .875rem;
}

.market-order .wa-header {
  margin: 0;
  color: var(--bs-body-color);
  font-size: 1.25rem;
  font-weight: 700;
}

.market-order .wa-fields-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.market-order .wa-field-wrapper {
  display: grid;
  gap: .35rem;
  min-width: 0;
}

.market-order .wa-label {
  color: var(--bs-secondary-color);
  font-size: .875rem;
}

.market-order :is(.wa-input, .wa-select, .wa-textarea, .wa-field, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, select) {
  width: 100%;
  min-height: 2.35rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .375rem;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  font: inherit;
  padding: .45rem .65rem;
}

.market-order :is(.wa-input, .wa-select, .wa-textarea, .wa-field, input, textarea, select):focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .18);
  outline: 0;
}

.market-order :is(.wa-error, .wa-input.wa-error, .wa-select.wa-error, .wa-field.wa-error) {
  border-color: var(--bs-danger) !important;
}

.market-order .wa-error-text {
  color: var(--bs-danger);
  font-size: .875rem;
}

.market-order .wa-required {
  color: var(--bs-warning);
  margin-left: .125rem;
}

.market-order .wa-required-text {
  margin-bottom: 1rem;
  line-height: 1.45;
}

.market-order .s-styled-select {
  position: relative;
  display: block;
  max-width: 100%;
}

.market-order .s-styled-select select {
  appearance: none;
  padding-right: 2rem;
}

.market-order .s-styled-select .s-icon {
  position: absolute;
  top: 50%;
  right: .75rem;
  width: .45rem;
  height: .45rem;
  border: solid var(--bs-secondary-color);
  border-width: 0 1px 1px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.market-order .wa-total-section {
  display: grid;
  gap: .65rem;
  border-top: 1px solid var(--bs-border-color);
  margin-top: 1rem;
  padding-top: 1rem;
}

.market-order .wa-total-section .wa-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: baseline;
}

.market-order .wa-total-section .wa-item-total {
  color: var(--bs-body-color);
  font-weight: 700;
}

.market-order .wa-total-section .wa-item-total .wa-price {
  font-size: 1.5rem;
}

.market-order .wa-actions-section {
  margin-top: 1.25rem;
}

.market-order .wa-button,
.market-order button.wa-button,
.market-order .wa-submit-button {
  border: 1px solid var(--bs-dark);
  border-radius: 0;
  background: var(--bs-dark);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  padding: .75rem 1rem;
  text-decoration: none;
}

.market-order .wa-button:hover,
.market-order button.wa-button:hover,
.market-order .wa-submit-button:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.market-order .wa-button.gray,
.market-order .wa-button.transparent {
  background: transparent;
  color: var(--bs-body-color);
}

.market-order .wa-delivery-types-section .wa-types-list,
.market-order .wa-methods-list {
  display: grid;
  gap: .75rem;
}

.market-order :is(.wa-type-wrapper, .wa-method-wrapper, .wa-delivery-variant) {
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  background: var(--bs-body-bg);
  padding: .85rem;
}

.market-order :is(.wa-type-wrapper, .wa-method-wrapper, .wa-delivery-variant).is-active {
  border-color: var(--bs-dark);
  box-shadow: 0 0 0 .16rem rgba(33, 37, 41, .12);
}

.market-order .s-checkbox,
.market-order .s-radio {
  display: inline-flex;
  vertical-align: middle;
}

.market-order .s-checkbox input,
.market-order .s-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.market-order .s-checkbox input + span,
.market-order .s-radio input + span {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
}

.market-order .s-checkbox input + span {
  border-radius: .25rem;
}

.market-order .s-radio input + span {
  border-radius: 50%;
}

.market-order .s-checkbox input:checked + span,
.market-order .s-radio input:checked + span {
  border-color: var(--bs-dark);
  background: var(--bs-dark);
  box-shadow: inset 0 0 0 .2rem var(--bs-body-bg);
}

.market-order .ui-autocomplete,
body > .ui-autocomplete {
  z-index: 1080;
  max-height: 18rem;
  overflow: auto;
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  background: var(--bs-body-bg);
  box-shadow: var(--market-shadow);
  padding: .35rem;
}

.market-order .ui-menu-item-wrapper,
body > .ui-autocomplete .ui-menu-item-wrapper {
  border-radius: .35rem;
  padding: .45rem .6rem;
}

.market-order .ui-state-active,
body > .ui-autocomplete .ui-state-active {
  border: 0;
  background: var(--bs-dark);
  color: #fff;
}

.market-checkout-step.is-upcoming {
  opacity: .72;
}

@media (max-width: 1199.98px) {
  .market-order__form {
    position: static;
  }

  .market-order .wa-product-body {
    grid-template-columns: 52px minmax(0, 1fr) 132px 82px;
  }
}

@media (max-width: 767.98px) {
  .market-order__section-head {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .market-order .wa-product-body {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .market-order .wa-column-quantity,
  .market-order .wa-column-price {
    grid-column: 2;
    text-align: left;
  }

  .market-order .wa-quantity-cart-section .wa-section-body {
    justify-content: flex-start;
  }

  .market-order .wa-fields-group {
    grid-template-columns: 1fr;
  }
}

*/
