/* =========================================================
   Custom: product options (sizes) visibility
   - "Choose Size" button + note on product listings
   - Visible size names under option images (product page + popup)
   ========================================================= */

/* ---------- Product listings (category, search, modules) ---------- */
.product-thumb .product-options-note {
  font-size: 13px;
  font-weight: 600;
  color: #2a6ebb;
  margin: 4px 0;
  line-height: 1.3;
}

.product-thumb .product-options-note .fa {
  margin-right: 4px;
}

.product-thumb .cart-group-options {
  flex: 1 1 auto;
  width: 100%;
}

.product-thumb .button-group .btn-choose-option,
.product-thumb .button-group .btn-choose-option.btn-cart {
  width: 100% !important;
  min-width: 130px;
  max-width: none !important;
  padding: 0 14px !important;
  white-space: nowrap;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.product-thumb .button-group .btn-choose-option::before,
.product-thumb .button-group .btn-choose-option:before {
  display: none !important;
}

.product-thumb .button-group .btn-choose-option .btn-text {
  display: inline-block !important;
  font-weight: 600;
  text-transform: none;
}

/* ---------- Product page + "Available options" popup ---------- */
.product-options .option-choose-hint {
  display: block;
  font-size: 13px;
  font-weight: normal;
  color: #2a6ebb;
  margin: 2px 0 8px;
}

.product-info .product-options .push-option > div {
  gap: 8px;
  align-items: stretch !important;
}

.product-info .product-options .push-option .option-wrapper.push-option-image {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 118px;
  height: 100%;
  padding: 6px 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.1s ease, box-shadow 0.1s ease;
}

.product-info .product-options .push-option .option-wrapper.push-option-image:hover {
  border-color: #2a6ebb;
}

.product-info .product-options .push-option input:checked + .option-wrapper.push-option-image {
  border-color: #2a6ebb;
  box-shadow: 0 0 0 2px #2a6ebb;
}

.product-info .product-options .push-option .option-wrapper.push-option-image img {
  margin: 0 auto 4px;
}

/* the theme's own hidden label: replaced by .option-size-label */
.product-info .product-options .push-option .option-wrapper.push-option-image .option-value {
  display: none !important;
}

.product-info .product-options .option-size-label {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  font-size: 12px;
  line-height: 1.3;
  color: #333;
  white-space: normal;
  word-break: break-word;
}

.product-info .product-options .option-size-name {
  font-weight: 600;
}

.product-info .product-options .option-size-price {
  color: #2a6ebb;
  font-weight: 600;
  margin-top: 2px;
}

@media (max-width: 470px) {
  .product-info .product-options .push-option .option-wrapper.push-option-image {
    width: calc(50vw - 30px);
  }
}
