/* Main lock notice box shown above cart/checkout/mini-cart. */
.tlv-lot-price-lock-box {
  direction: rtl; /* Persian/RTL layout. */
  text-align: right; /* Align text to the right for Persian. */
  margin: 0 0 18px; /* Space below the notice. */
  padding: 16px 18px; /* Inner spacing. */
  border: 1px solid rgba(198, 146, 39, 0.32); /* Soft gold border. */
  border-radius: 12px; /* Rounded Woodmart-friendly card corners. */
  background: linear-gradient(135deg, rgba(255,250,237,.96), rgba(255,255,255,.98)); /* Light gold/white background. */
  box-shadow: 0 6px 18px rgba(0,0,0,.045); /* Subtle card depth. */
  color: #34302a; /* Readable dark text. */
}

/* Title of the lock notice. */
.tlv-lot-price-lock-box__title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #7a530c;
}

/* Row containing locked total and countdown. */
.tlv-lot-price-lock-box__body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  margin-bottom: 8px;
}

/* Countdown pill. Direction is LTR so HH:mm:ss stays readable. */
.tlv-lot-price-lock-countdown {
  display: inline-block;
  min-width: 92px;
  direction: ltr;
  text-align: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(122,83,12,.08);
  color: #6d4a08;
}

/* Helper text under the main lock info. */
.tlv-lot-price-lock-box__hint {
  font-size: 13px;
  opacity: .82;
  line-height: 1.9;
}

/* Container for item/lot breakdown shown when debug is enabled. */
.tlv-lot-price-lock-lots {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(122,83,12,.22);
}

.tlv-lot-price-lock-lots__title {
  font-weight: 700;
  margin-bottom: 8px;
}

/* One locked lot row: product name, locked price, added time. */
.tlv-lot-price-lock-lot {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,.045);
  font-size: 13px;
}

.tlv-lot-price-lock-lot:last-child {
  border-bottom: 0;
}

/* The time is displayed LTR to avoid broken number ordering inside RTL text. */
.tlv-lot-price-lock-lot small {
  opacity: .7;
  direction: ltr;
  text-align: left;
}

/* Smaller version for mini-cart. */
.tlv-lot-price-lock-box--mini {
  padding: 12px;
  margin: 10px;
  font-size: 13px;
}

.tlv-lot-price-lock-box--mini .tlv-lot-price-lock-box__body {
  display: block;
}

/* Visual state when frontend countdown reaches zero. */
.tlv-lot-price-lock-box--expired {
  border-color: rgba(180, 60, 60, .35);
  background: #fff7f7;
}

/* WooCommerce variation/meta rows for locked price/time. */
.woocommerce-cart-form .variation-قیمتثبت‌شده,
.woocommerce-cart-form .variation-زمانثبتقیمت {
  font-size: 12px;
}

/* Mobile layout: stack lot info vertically to prevent cramped columns. */
@media (max-width: 768px) {
  .tlv-lot-price-lock-lot {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .tlv-lot-price-lock-box__body {
    display: block;
  }
  .tlv-lot-price-lock-box__body span {
    display: block;
    margin-bottom: 6px;
  }
}
