/* vim: set ts=2 sw=2 sts=2 et: */

/**
 * Copyright (c) 2001-present X-Cart Holdings LLC. All rights reserved.
 * See https://www.x-cart.com/license-agreement.html for license details.
 */

.editable-attributes {
  margin: var(--rhythmic-unit) 0 0 0;
}

.editable-attributes .attribute-values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  row-gap: calc(1.5 * var(--rhythmic-unit));
}

.editable-attributes .title {
  margin: 0 0 calc(var(--rhythmic-unit) / 2) 0;
  font-size: var(--font-size-base);
  line-height: 1;
}

.editable-attributes .form-control--select select,
.editable-attributes .form-control--checkbox {
  margin-bottom: 0;
}

.checkbox-label-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox-label-container .checkbox-label {
  flex: 0 0 auto;
}

.checkbox-label-container .field__modifier {
  font-size: var(--font-size-small);
  line-height: var(--rhythmic-unit);
  font-weight: bold;
}

.product-attribute__blocks .product-attribute__out-of-stock,
.product-attribute__blocks .product-attribute__unavailable {
  text-decoration: line-through;
}

.product-attribute__blocks .product-attribute__out-of-stock,
.product-attribute__blocks .product-attribute__unavailable {
  &:not(.selected) {
    opacity: 0.2;
  }
}

.product-attribute__blocks .product-attribute__out-of-stock
.product-attribute__blocks .product-attribute__unavailable {
  &:hover {
    opacity: 1;
  }
}
