.woobt-wrap {
  width: 100%;
  margin-top: 2rem;
}

div.type-product > .woobt-wrap {
  grid-column: 1 / -1;
}

.woobt-products {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid var(--ama-primary-200-color, #d5e0ea);
  border-radius: var(--border-radius-sm, 4px);
}

.woobt-products .woobt-product {
  display: grid;
  grid-template-columns: 1.5rem 4rem minmax(0, 1fr) 5.75rem 8rem;
  column-gap: 1rem;
  row-gap: 0.5rem;
  align-items: center;
  padding: 0.875rem 1.25rem;
  background-color: #fff;
  border: 0;
  border-bottom: 1px solid var(--ama-primary-200-color, #d5e0ea);
  border-radius: 0;
  transition: background-color 0.2s ease;
}

.woobt-products .woobt-product:hover {
  background-color: var(--ama-primary-100-color, #f4faf7);
}

.woobt-products .woobt-product.woobt-product-this {
  background-color: var(--ama-primary-100-color, #f4faf7);
  box-shadow: inset 3px 0 0 var(--ama-primary-color, #008d4f);
}

.woobt-products .woobt-product:last-child {
  border-bottom: 0;
}

.woobt-products .woobt-product.woobt-hide-this {
  display: none !important;
}

.woobt-products .woobt-product > div {
  min-width: 0;
}

.woobt-products .woobt-product div.woobt-choose {
  padding: 0;
}

.woobt-choose {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-left: 0;
}

.woobt-choose label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.woobt-choose input[type="checkbox"] {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  cursor: pointer;
  appearance: none;
}

.woobt-choose input[type="checkbox"]:checked + .checkmark {
  background-color: var(--ama-primary-color, #008d4f);
  border-color: var(--ama-primary-color, #008d4f);
}

.woobt-choose input[type="checkbox"]:checked + .checkmark::after {
  display: block;
}

.woobt-choose input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

.woobt-choose input[type="checkbox"]:disabled + .checkmark {
  opacity: 0.6;
}

.woobt-choose input[type="checkbox"] + .checkmark {
  display: block !important;
  padding-left: 0 !important;
}

.woobt-choose input[type="checkbox"] + .checkmark::before {
  content: none !important;
  display: none !important;
}

.woobt-choose input[type="checkbox"] + .checkmark::after {
  top: 45% !important;
  left: 50% !important;
  width: 0.35rem !important;
  height: 0.65rem !important;
  opacity: 1 !important;
  background-color: transparent !important;
}

.woobt-choose .checkmark {
  position: relative;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  pointer-events: none;
  background-color: #fff;
  border: 2px solid var(--ama-primary-200-color, #d5e0ea);
  border-radius: var(--border-radius-sm, 4px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.woobt-choose .checkmark::after {
  content: '';
  position: absolute;
  display: none;
  top: 45%;
  left: 50%;
  width: 0.35rem;
  height: 0.65rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.woobt-choose:hover .checkmark {
  border-color: var(--ama-primary-color, #008d4f);
}

.woobt-products .woobt-product .woobt-thumb {
  display: block;
  width: 4rem !important;
  min-width: 4rem !important;
  max-width: 4rem !important;
  height: 4rem !important;
  flex: 0 0 4rem !important;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
}

.woobt-products .woobt-product .woobt-thumb .woobt-img {
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 4rem !important;
  min-width: 4rem !important;
  max-width: 4rem !important;
  height: 4rem !important;
  aspect-ratio: 1 / 1;
  padding: 0.25rem !important;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid var(--ama-primary-200-color, #d5e0ea);
}

.woobt-products .woobt-product .woobt-thumb .woobt-img img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center;
}

.woobt-products .woobt-product .woobt-thumb a.woobt-img {
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.woobt-products .woobt-product .woobt-thumb a.woobt-img:hover {
  border-color: var(--ama-primary-color, #008d4f);
}

.woobt-title {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.woobt-title .woobt-title-inner {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere !important;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ama-body-color, #111);
  white-space: normal !important;
  word-break: break-word;
}

.woobt-title .woobt-title-inner a {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere !important;
  color: var(--ama-primary-color, #008d4f);
  text-decoration: none;
  white-space: normal !important;
  word-break: break-word;
  transition: color 0.2s ease;
}

.woobt-title .woobt-title-inner a:hover {
  color: var(--ama-secondary-color, #e4a300);
  text-decoration: underline;
}

.woobt-title .woobt-qty-num {
  color: var(--ama-body-color, #111);
  opacity: 0.7;
}

.woobt-title .woobt-availability .stock {
  margin: 0;
  font-size: var(--ama-sm-font-size, 0.875rem);
  line-height: 1.15;
}

.woobt-title .woobt-availability .stock.in-stock {
  color: #28a745;
}

.woobt-title .woobt-availability .stock.out-of-stock {
  color: #dc3545;
}

.woobt-title .woobt-description {
  color: var(--color-gray-medium, #777);
  font-size: var(--ama-sm-font-size, 0.875rem);
  line-height: 1.25;
}

body .woobt-products .woobt-product .woobt-price {
  grid-column: 5;
  justify-self: end;
  align-self: center;
  width: 7.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

body .woobt-products .woobt-product .woobt-price .wts-price-container {
  justify-content: flex-end;
  width: 100%;
  text-align: right;
}

body .woobt-products .woobt-product .woobt-price .wts-price-wrapper {
  display: block;
  width: 100%;
  flex: 0 0 auto !important;
  text-align: right;
}

body .woobt-products .woobt-product .woobt-price del,
body .woobt-products .woobt-product .woobt-price del .woocommerce-Price-amount {
  color: var(--color-gray-medium, #777);
  font-weight: 400;
}

body .woobt-products .woobt-product .woobt-price ins {
  color: var(--ama-body-color, #111);
  font-weight: 600;
  text-decoration: none;
}

body .woobt-products .woobt-product .woobt-price ins .woocommerce-Price-amount,
body .woobt-products .woobt-product .woobt-price .woocommerce-Price-amount {
  color: var(--ama-body-color, #111);
  font-weight: 600;
}

body .woobt-products .woobt-product .woobt-price .woobt-price-ori {
  font-size: 1rem;
  opacity: 0.8;
}

body .woobt-products .woobt-product .woobt-price .woobt-price-ori .wts-price-wrapper {
  text-align: right;
}

body .woobt-products .woobt-product .woobt-price .woobt-price-ori .wts-vat-text {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.15;
}

.woobt-products .woobt-product .woobt-quantity {
  grid-column: 4;
  justify-self: end;
  align-self: center;
}

.woobt-products .woobt-product .woobt-quantity div.quantity {
  display: grid;
  grid-template-columns: 1.75rem 1.75rem 1.75rem;
  align-items: center;
  justify-items: center;
  width: 5.75rem;
  height: 2rem;
  gap: 0;
  padding: 0.125rem;
  border-radius: 1rem;
}

.woobt-products .woobt-product .woobt-quantity div.quantity .button {
  display: block;
  width: 1.625rem;
  min-width: 0;
  height: 1.625rem;
  aspect-ratio: 1 / 1;
  padding: 0;
  color: var(--color-gray-medium, #777);
  background-color: transparent;
  border-radius: 50%;
}

.woobt-products .woobt-product .woobt-quantity div.quantity .button::before,
.woobt-products .woobt-product .woobt-quantity div.quantity .button::after {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.woobt-products .woobt-product .woobt-quantity div.quantity .button::before {
  width: 0.625rem;
  height: 2px;
}

.woobt-products .woobt-product .woobt-quantity div.quantity .button.plus::after {
  width: 2px;
  height: 0.625rem;
}

.woobt-products .woobt-product .woobt-quantity div.quantity .button:hover {
  color: #fff;
  background-color: var(--ama-primary-color, #008d4f);
}

.woobt-products .woobt-product .woobt-quantity div.quantity .qty {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  font-size: 0.9375rem;
  line-height: 1;
  text-align: center;
}

.woobt-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto auto;
  column-gap: 0.5rem;
  row-gap: 0.5rem;
  align-items: start;
  justify-items: end;
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ama-primary-200-color, #d5e0ea);
}

.woobt-summary .woobt-additional,
.woobt-summary .woobt-total {
  display: contents;
  width: auto;
  font-size: 1rem;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.woobt-summary .woobt-additional .ama-woobt-summary-label,
.woobt-summary .woobt-total .ama-woobt-summary-label {
  align-self: start;
  display: block;
  padding-top: 0;
  font-weight: 500;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.woobt-summary .woobt-additional .wts-price-container,
.woobt-summary .woobt-total .wts-price-container {
  align-self: start;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  line-height: 1.2;
}

.woobt-summary .woobt-additional .wts-price-wrapper,
.woobt-summary .woobt-total .wts-price-wrapper {
  display: block;
  width: auto;
  flex: 0 0 auto !important;
  line-height: 1.2;
  text-align: left;
}

.woobt-summary .woobt-additional .wts-price-wrapper:last-child,
.woobt-summary .woobt-total .wts-price-wrapper:last-child {
  margin-top: 0.25rem;
  line-height: 1.15;
}

.woobt-summary .woobt-additional .woocommerce-Price-amount,
.woobt-summary .woobt-total .woocommerce-Price-amount {
  color: var(--ama-body-color, #111);
  font-size: var(--ama-lg-font-size, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.woobt-summary .woobt-additional .wts-vat-text,
.woobt-summary .woobt-total .wts-vat-text {
  display: block;
  color: var(--color-gray-medium, #777);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.15;
}

.woobt-summary .woobt-additional .ama-woobt-summary-label {
  grid-column: 2;
  grid-row: 1;
}

.woobt-summary .woobt-additional .wts-price-container {
  grid-column: 3;
  grid-row: 1;
}

.woobt-summary .woobt-additional .wts-price-wrapper:last-child {
  display: none;
}

.woobt-summary .woobt-additional .woocommerce-Price-amount {
  font-size: 1rem;
  font-weight: 600;
}

.woobt-summary .woobt-total {
  font-weight: 700;
}

.woobt-summary .woobt-total .ama-woobt-summary-label {
  grid-column: 4;
  grid-row: 1;
  margin-left: 1.5rem;
  font-weight: 700;
}

.woobt-summary .woobt-total .wts-price-container {
  grid-column: 5;
  grid-row: 1;
}

.woobt-summary .woobt-total .woocommerce-Price-amount {
  font-size: var(--ama-lg-font-size, 1.25rem);
  font-weight: 700;
}

.woobt-summary .ama-woobt-summary-actions {
  grid-column: 6;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  margin-left: 1.5rem;
  text-align: right;
}

.woobt-summary .ama-woobt-summary-actions .ama-woobt-summary-atc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.5rem;
  line-height: 1.1;
  white-space: nowrap;
}

.woobt-summary .ama-woobt-summary-actions .ama-woobt-summary-atc.disabled,
.woobt-summary .ama-woobt-summary-actions .ama-woobt-summary-atc:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.woobt-summary .woobt-alert {
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: 0.5rem;
  color: var(--ama-red-color, #dc3545);
  font-size: var(--ama-sm-font-size, 0.875rem);
}

.woobt-summary .woobt-additional:empty,
.woobt-summary .woobt-total:empty,
.woobt-summary .ama-woobt-summary-actions:empty,
.woobt-summary .woobt-alert:empty {
  display: none;
}

@media (max-width: 767px) {
  .woobt-wrap-responsive {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .woobt-wrap-responsive .woobt-products {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    gap: 0.75rem;
    overflow: visible;
    background-color: transparent;
    border: 0;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product.woobt-hide-this {
    display: none !important;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product {
    position: relative;
    display: grid !important;
    grid-template-columns: 1.75rem 4.25rem minmax(0, 1fr);
    grid-template-areas:
      "choose thumb title"
      "price price quantity";
    column-gap: 0.75rem;
    row-gap: 1rem;
    align-items: center;
    padding: 0.875rem 0.875rem 1rem;
    overflow: hidden;
    text-align: left;
    background-color: #fff;
    border: 1px solid var(--ama-primary-200-color, #d5e0ea);
    border-radius: var(--border-radius-md, 8px);
  }

  .woobt-wrap-responsive .woobt-products .woobt-product:has(.woobt-checkbox:checked) {
    background-color: var(--ama-primary-100-color, #f4faf7);
    border-color: var(--ama-primary-color, #008d4f);
  }

  .woobt-wrap-responsive .woobt-products .woobt-product::after {
    content: '';
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: start;
    height: 1px;
    margin-top: -0.5rem;
    background-color: var(--ama-primary-200-color, #d5e0ea);
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-choose {
    grid-area: choose;
    align-self: start;
    width: 1.75rem !important;
    max-width: 1.75rem !important;
    height: 1.75rem !important;
    flex-basis: 1.75rem !important;
    padding: 0 !important;
    margin-right: 0;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-choose input[type="checkbox"],
  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-choose .checkmark {
    width: 1.75rem !important;
    height: 1.75rem !important;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-thumb {
    display: block;
    grid-area: thumb;
    align-self: center;
    width: 4.25rem !important;
    min-width: 4.25rem !important;
    max-width: 4.25rem !important;
    height: 4.25rem !important;
    flex-basis: 4.25rem !important;
    padding: 0 !important;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-thumb .woobt-img {
    width: 4.25rem !important;
    min-width: 4.25rem !important;
    max-width: 4.25rem !important;
    height: 4.25rem !important;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-thumb img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-title {
    grid-area: title;
    max-width: 100%;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-price {
    z-index: 1;
    grid-area: price;
    justify-self: start;
    align-self: center;
    width: auto !important;
    max-width: none !important;
    text-align: left;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-price .wts-price-container,
  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-price .wts-price-wrapper {
    justify-content: flex-start;
    text-align: left;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-quantity {
    z-index: 1;
    grid-area: quantity;
    justify-self: end;
    align-self: center;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-quantity div.quantity {
    grid-template-columns: 1.75rem 1.75rem 1.75rem;
    width: 5.75rem;
    height: 2rem;
    border-radius: 1rem;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-quantity div.quantity .button {
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-quantity div.quantity .qty {
    font-size: 0.9375rem;
  }

  .woobt-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
  }

  .woobt-summary .woobt-additional,
  .woobt-summary .woobt-total {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 0.5rem;
    align-items: start;
  }

  .woobt-summary .woobt-additional .ama-woobt-summary-label,
  .woobt-summary .woobt-additional .wts-price-container,
  .woobt-summary .woobt-total .ama-woobt-summary-label,
  .woobt-summary .woobt-total .wts-price-container {
    grid-row: auto;
    grid-column: auto;
    margin-left: 0;
  }

  .woobt-summary .woobt-additional {
    grid-column: 1;
    grid-row: 1;
  }

  .woobt-summary .woobt-total {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-width: 0;
  }

  .woobt-summary .ama-woobt-summary-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    margin-top: 0.25rem;
    margin-left: 0;
  }

  .woobt-summary .ama-woobt-summary-atc {
    width: 100%;
    min-width: 10rem;
  }
}

@media (max-width: 520px) {
  .woobt-wrap-responsive .woobt-products .woobt-product {
    grid-template-columns: 1.5rem 3.5rem minmax(0, 1fr) 5.75rem;
    grid-template-areas:
      "choose thumb title title"
      "price price price quantity";
    padding: 0.75rem;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-title {
    grid-area: title;
    width: 100%;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-thumb {
    grid-area: thumb;
    width: 3.5rem !important;
    min-width: 3.5rem !important;
    max-width: 3.5rem !important;
    height: 3.5rem !important;
    flex-basis: 3.5rem !important;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-thumb .woobt-img {
    width: 3.5rem !important;
    min-width: 3.5rem !important;
    max-width: 3.5rem !important;
    height: 3.5rem !important;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-quantity {
    grid-area: quantity;
    justify-self: end;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-price {
    grid-area: price;
    justify-self: start;
    font-size: 0.9375rem;
    text-align: left;
  }

  .woobt-wrap {
    padding: 0;
  }

  .woobt-summary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 0.75rem;
    row-gap: 0.75rem;
    justify-items: stretch;
  }

  .woobt-summary .woobt-additional,
  .woobt-summary .woobt-total {
    grid-template-columns: auto auto;
    column-gap: 0.5rem;
    font-size: 0.9375rem;
  }

  .woobt-summary .woobt-additional {
    grid-column: 1;
    justify-self: start;
  }

  .woobt-summary .woobt-additional .woocommerce-Price-amount {
    font-size: 0.9375rem;
  }

  .woobt-summary .woobt-total {
    grid-column: 2;
    justify-self: end;
  }

  .woobt-summary .woobt-total .wts-price-container {
    align-items: flex-end;
  }

  .woobt-summary .woobt-total .wts-price-wrapper {
    text-align: right;
  }

  .woobt-summary .woobt-total .woocommerce-Price-amount {
    font-size: 1rem;
  }

  .woobt-summary .woobt-total .wts-vat-text {
    font-size: 0.8125rem;
  }

  .woobt-summary .ama-woobt-summary-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }

  .woobt-summary .ama-woobt-summary-atc {
    width: 100%;
    min-width: 0;
  }
}
