.labanda-product-detail {
  margin-block: 1.25rem 2rem;
}

.labanda-product-detail-image img {
  display: block;
  max-width: 100%;
  max-height: 27rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.labanda-product-detail h2 {
  margin-top: 0;
}

#main-wrapper #main #content .region-content .labanda-selected-sku {
  border-block: 1px solid #ccc;
  padding: 15px 0;
}

.labanda-purchase {
  padding: 12px 15px;
  background: #f2f2f2;
}

.labanda-purchase .field-name-commerce-price {
  margin-bottom: 8px;
  color: #000;
  font-size: 18px;
  font-weight: 600;
}

.labanda-purchase .commerce-add-to-cart {
  display: block;
  width: auto;
  margin: 0;
  text-align: left;
}

.labanda-purchase .commerce-add-to-cart > div {
  display: grid;
  grid-template-columns: max-content minmax(0, max-content);
  align-items: center;
  gap: 4px 10px;
}

.labanda-purchase .commerce-add-to-cart > div > .form-wrapper {
  grid-column: 1 / -1;
}

.labanda-purchase .form-item-line-item-fields-field-reference-no-und-0-value {
  max-width: 240px;
  margin-bottom: 6px;
}

.labanda-purchase form.commerce-add-to-cart .form-item-quantity {
  grid-column: 1;
}

.labanda-purchase .commerce-add-to-cart > div > .form-submit {
  grid-column: 2;
  justify-self: start;
  max-width: 100%;
  margin: 0;
  white-space: normal;
}

.labanda-purchase .commerce-add-to-cart > div > :is(.in-stock, .limited-stock, .out-of-stock) {
  grid-column: 2;
  grid-row: auto;
}

.labanda-purchase-login {
  display: inline-block;
  text-align: center;
}

.labanda-purchase-login > :is(.in-stock, .limited-stock, .out-of-stock) {
  margin-top: 4px;
}

.labanda-purchase-login > .in-stock {
  color: #2aba0d;
}

.labanda-purchase-login > .limited-stock {
  color: #f7ae00;
}

.labanda-purchase-login > .out-of-stock {
  color: #e12d0f;
}

.labanda-product-family,
.labanda-product-options {
  border-top: 1px solid #ccc;
  margin-top: 18px;
  padding-top: 12px;
}

.labanda-product-family {
  display: flow-root;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ccc;
}

.labanda-product-family img {
  max-width: 100%;
  height: auto;
}

.labanda-product-family h3,
.labanda-product-options h3 {
  margin-top: 0;
}

.labanda-product-options ul {
  list-style: none;
  padding: 0;
  border: 1px solid #ddd;
}

.labanda-product-options li + li {
  border-top: 1px solid #ddd;
}

.labanda-product-option {
  display: grid;
  grid-template-columns: 40px minmax(115px, 19%) minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  overflow-wrap: anywhere;
}

.labanda-product-option-priced {
  grid-template-columns: 40px minmax(115px, 19%) minmax(0, 1fr) max-content minmax(6em, max-content);
  column-gap: 12px;
}

.labanda-option-price {
  color: #333;
  text-align: right;
  white-space: nowrap;
}

.labanda-option-image img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.labanda-product-options li:nth-child(even) {
  background: #f2f2f2;
}

.labanda-product-option[aria-current="true"] {
  background: #eaf4fb;
  box-shadow: inset 3px 0 #0a5a8c;
  color: inherit;
}

.labanda-option-action {
  justify-self: end;
  white-space: nowrap;
}

.labanda-product-option[aria-current="true"] .labanda-option-action {
  padding: 2px 10px;
  border-radius: 999px;
  background: #074a79;
  color: #fff;
}

.labanda-product-option-priced[aria-current="true"] .labanda-option-action {
  justify-self: stretch;
  text-align: center;
}

.labanda-product-option:focus-visible {
  outline: 2px solid #0a5a8c;
  outline-offset: -2px;
}

@media screen and (max-width: 480px) {
  .labanda-product-option {
    grid-template-columns: 36px minmax(80px, 26%) minmax(0, 1fr) max-content;
    gap: 7px;
  }

  .labanda-product-option-priced {
    grid-template-columns: 36px minmax(0, 1fr) max-content minmax(6em, max-content);
    column-gap: 12px;
    row-gap: 2px;
  }

  .labanda-product-option-priced .labanda-option-image,
  .labanda-product-option-priced .labanda-option-price,
  .labanda-product-option-priced .labanda-option-action {
    grid-row: 1 / span 2;
  }

  .labanda-product-option-priced strong,
  .labanda-product-option-priced .labanda-option-title {
    grid-column: 2;
  }

  .labanda-product-option-priced .labanda-option-price {
    grid-column: 3;
  }

  .labanda-product-option-priced .labanda-option-action {
    grid-column: 4;
  }
}
