/*
 * Markething Herba — data-driven variation cards (single product).
 *
 * Rendered by the Variation_Cards module inside the WooCommerce variations form,
 * replacing the native swatch pills. The module adds `mh-cards-active` to the
 * form via JS, which hides the native table + the duplicate variation price.
 * If the JS never runs the native swatches stay visible as a fallback.
 */

.single-product form.variations_form.mh-cards-active table.variations {
  display: none !important;
}
/*
 * Selected-variation price shown as the total, above the add-to-cart button and
 * below the variation cards. WooCommerce keeps it updated on selection (it stays
 * hidden until a variation is chosen).
 */
.single-product form.variations_form.mh-cards-active .woocommerce-variation-price {
  display: block;
  margin: 8px 0 18px;
}
.single-product form.variations_form.mh-cards-active .woocommerce-variation-price ins,
.single-product form.variations_form.mh-cards-active .woocommerce-variation-price ins .woocommerce-Price-amount,
.single-product form.variations_form.mh-cards-active .woocommerce-variation-price > .price > .woocommerce-Price-amount {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}
.single-product form.variations_form.mh-cards-active .mh-vprice-discount {
  color: rgb(193 57 49);
  font-weight: 700;
}

.mh-vcards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 30px;
}

.mh-vcard {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid #eee3ef;
  border-radius: 14px;
  padding: 10px 18px;
  cursor: pointer;
  transition: box-shadow .2s ease, border-color .18s ease, background-color .18s ease;
}
.mh-vcard:hover {
  box-shadow: 0 6px 20px rgba(74, 29, 58, .12);
}
.mh-vcard.is-selected {
  border-color: #bcb4ba;
  /* box-shadow: 0 0 0 1px #4b3447, 0 6px 20px rgba(74, 29, 58, .14); */
  background: #faf7f9;
}

.mh-vcard__radio {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cfc6cd;
  margin-top: 2px;
  position: relative;
}
.mh-vcard.is-selected .mh-vcard__radio {
  border-color: #4b3447;
  background: #4b3447;
}
.mh-vcard.is-selected .mh-vcard__radio::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

.mh-vcard__body {
  flex: 1 1 240px;
  min-width: 0;
}
.mh-vcard__right {
  flex: 0 0 auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-left: auto;
}

.mh-vcard__name {
  font-size: 16px;
  font-weight: 600;
  color: #2d202b;
  margin-bottom: 0;
}
.mh-vcard__disc {
  color: rgb(193 57 49);
  font-weight: 700;
  margin-left: 4px;
}

.mh-vcard__ribbon {
  display: inline-block;
  background: #2e9e4f;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
    margin: 8px 0;
}

.mh-vcard__desc {
  font-size: 13px;
  color: #8a8088;
  line-height: 1.45;
}

.mh-vcard__reg {
  font-size: 17px;
  color: #878787;
  text-decoration: line-through;
}
.mh-vcard__spec {
  font-size: 20px;
  font-weight: 700;
  color: rgb(193 57 49);
}
.mh-vcard__single {
  font-size: 20px;
  font-weight: 700;
  color: #2d202b;
}

@media (max-width: 480px) {
  .mh-vcard {
    padding: 14px 14px;
  }
  .mh-vcard__spec {
    font-size: 20px;
  }
  .mh-vcard__name {
    font-size: 15px;
  }
}
