/* VH Product Option Modal + Exact Price Unified Clean 1.5.3 */
#button-cart {
  position: relative;
  overflow: visible !important;
}

#button-cart .vh-cart-price {
  display: none !important;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font: inherit;
  font-weight: 800;
  line-height: inherit;
  white-space: nowrap;
}

#button-cart.vh-has-selected-price .vh-cart-price {
  display: inline-flex !important;
}

#button-cart.vh-has-selected-price .vh-cart-price::before {
  content: "|";
  display: inline-block;
  margin: 0 8px;
  color: currentColor;
  font-weight: 500;
  opacity: .82;
}

#button-cart.vh-exact-price-loading .vh-cart-price {
  opacity: .65;
}

.vh-option-sheet {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
}

.vh-option-sheet.vh-open {
  display: block;
}

.vh-option-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .56);
}

.vh-option-sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 620px);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #fff;
  box-shadow: 0 -16px 40px rgba(17, 24, 39, .20);
  opacity: 0;
  transform: translateX(-50%) translateY(18px);
  transition: transform .2s ease, opacity .2s ease;
}

.vh-option-sheet.vh-open .vh-option-sheet-panel {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.vh-option-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #eef1f4;
}

.vh-option-sheet-product {
  display: flex;
  min-width: 0;
  gap: 10px;
}

.vh-option-sheet-copy {
  min-width: 0;
}

.vh-option-sheet-thumb {
  width: 58px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid #edf0f3;
  border-radius: 8px;
}

.vh-option-sheet-brand {
  color: #1f2937;
  font-size: 12px;
  font-weight: 800;
}

.vh-option-sheet-title {
  display: -webkit-box;
  max-width: 440px;
  margin-top: 2px;
  overflow: hidden;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vh-option-sheet-price {
  margin-top: 6px;
  color: #f27700;
  font-size: 14px;
  font-weight: 800;
}

.vh-option-sheet-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f4f6f8;
  color: #6b7280;
  font-size: 25px;
  line-height: 34px;
  cursor: pointer;
}

.vh-option-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 16px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.vh-option-sheet .vh-modal-product-options {
  margin: 0;
}

.vh-option-sheet .options-title,
.vh-option-sheet .option-price,
.vh-option-sheet .vh-select-box-price {
  display: none !important;
}

.vh-option-sheet .form-group {
  margin-bottom: 14px;
}

.vh-option-sheet .control-label {
  display: block;
  margin-bottom: 6px;
  color: #333;
  font-size: 12.5px;
  font-weight: 700;
}

.vh-option-sheet .product-option-radio > div[id*="input-option"],
.vh-option-sheet .product-option-checkbox > div[id*="input-option"],
.vh-option-sheet .vh-select-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(46px, auto);
  align-content: start;
  align-items: stretch;
  gap: 8px;
}

.vh-select-boxes {
  display: none;
}

.vh-option-sheet .product-option-select.vh-select-boxes-ready > select {
  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;
}

.vh-option-sheet .vh-select-box,
.vh-option-sheet .radio label,
.vh-option-sheet .checkbox label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  box-sizing: border-box;
  padding: 8px 6px;
  border: 1.5px solid #dcdcdc;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}

.vh-option-sheet .vh-select-box {
  flex-direction: column;
  gap: 3px;
}

.vh-option-sheet .vh-select-box:active,
.vh-option-sheet .radio label:active,
.vh-option-sheet .checkbox label:active {
  transform: scale(.97);
}

.vh-option-sheet .radio,
.vh-option-sheet .checkbox {
  margin: 0;
}

.vh-option-sheet .radio input,
.vh-option-sheet .checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vh-option-sheet .vh-select-box-name,
.vh-option-sheet .radio label .option-value,
.vh-option-sheet .checkbox label .option-value {
  width: 100%;
  color: #222 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  text-align: center;
  overflow-wrap: anywhere;
}

.vh-option-sheet .vh-choice-active,
.vh-option-sheet .vh-select-box.vh-choice-active {
  border-color: #2f9e44 !important;
  background: #f1faf3 !important;
  color: #222 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.vh-option-sheet .vh-choice-active .vh-select-box-name,
.vh-option-sheet .vh-choice-active .option-value {
  color: #222 !important;
  font-weight: 700 !important;
}

.vh-option-sheet .vh-select-box:disabled {
  opacity: .4;
  text-decoration: line-through;
  cursor: not-allowed;
}

body.vh-option-sheet-lock {
  overflow: hidden;
}

@media (min-width: 768px) {
  .vh-option-sheet-panel {
    top: 50%;
    bottom: auto;
    border-radius: 12px;
    transform: translate(-50%, calc(-50% + 18px));
  }

  .vh-option-sheet.vh-open .vh-option-sheet-panel {
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 420px) {
  #button-cart.vh-has-selected-price .vh-cart-price::before {
    margin: 0 6px;
  }

  .vh-option-sheet .product-option-radio > div[id*="input-option"],
  .vh-option-sheet .product-option-checkbox > div[id*="input-option"],
  .vh-option-sheet .vh-select-boxes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .vh-option-sheet .vh-select-box,
  .vh-option-sheet .radio label,
  .vh-option-sheet .checkbox label {
    min-height: 44px;
    padding: 7px 5px;
    font-size: 13px;
  }
}


#button-cart.vh-price-fallback .vh-cart-price { opacity: .92; }
#button-cart[data-vh-option-price-state="loading"] .vh-cart-price { opacity: .72; }


/* Free shipping badge retained from the previous layered package. */
#button-cart .vh-free-shipping-badge {
  display: block !important;
  position: absolute !important;
  z-index: 20;
  top: 0;
  right: 10px;
  padding: 4px 10px;
  border: 0;
  border-radius: 7px 7px 0 7px;
  background: #ef7a11;
  box-shadow: 0 2px 6px rgba(17, 24, 39, .18);
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(calc(-50% + 3px));
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

#button-cart .vh-free-shipping-badge::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -7px;
  width: 0;
  height: 0;
  border-top: 7px solid #b4560a;
  border-left: 8px solid transparent;
}

#button-cart.vh-free-shipping-qualified .vh-free-shipping-badge {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(-50%);
}

@media (max-width: 767px) {
  #button-cart .vh-free-shipping-badge {
    right: -4px;
    padding: 3px 9px;
    font-size: 10.5px;
  }
}
