/* mm-variant-buttons.css
   Vizuální tlačítka pro výběr velikosti / oz / A1 atd. v detailu produktu Shoptet.
   Původní select zůstává v DOM jako fallback, jen se vizuálně schová.
*/

.mm-variant-original-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mm-variant-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}

.mm-variant-button {
  min-width: 44px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #222;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.mm-variant-button:hover {
  border-color: #b40000;
  color: #b40000;
}

.mm-variant-button.is-active {
  border-color: #c40000;
  background: #c40000;
  color: #fff;
}

.mm-variant-button.is-unavailable {
  color: #999;
  border-color: #e2e2e2;
  background: #f7f7f7;
  text-decoration: none;
  opacity: 1;
}

.mm-variant-button.is-unavailable:hover {
  color: #777;
  border-color: #cfcfcf;
  background: #f2f2f2;
}

.mm-variant-button.is-unavailable.is-active {
  border-color: #b40000;
  background: #fff5f5;
  color: #b40000;
  text-decoration: none;
}

@media (max-width: 767px) {
  .mm-variant-buttons {
    gap: 7px;
  }

  .mm-variant-button {
    min-width: 42px;
    min-height: 38px;
    padding: 8px 11px;
    font-size: 13px;
  }
}
