/* Optional booking / warranty image upload */
.booking-images {
  margin: 0 0 1rem;
}

.booking-images__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.booking-images__hint {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.35;
}

.booking-images__count {
  font-size: 0.75rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.booking-images__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.booking-images__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.booking-images__thumb {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.booking-images__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.booking-images__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-images__add {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 60px;
  height: 60px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 0.65rem;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.booking-images__add i {
  font-size: 1rem;
}

.booking-images__add:hover {
  border-color: #94a3b8;
  color: #334155;
}

.booking-images__add.is-hidden {
  display: none;
}

.booking-images__error {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #dc2626;
}

/* Admin detail gallery */
.booking-customer-images {
  margin-top: 0.35rem;
}

.booking-customer-images__label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.booking-customer-images__strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.booking-customer-images__thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  padding: 0;
  background: #f8fafc;
  cursor: pointer;
}

.booking-customer-images__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.booking-customer-images__empty {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.booking-image-lightbox {
  position: fixed;
  inset: 0;
  /* Trên booking sheet (10060) và chat lightbox (10200) — tránh ảnh bị đè dưới sheet */
  z-index: var(--z-booking-customer-image-lightbox, var(--z-product-image-lightbox, 10250)) !important;
  background: rgba(15, 23, 42, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.booking-image-lightbox[hidden] {
  display: none !important;
}

.booking-image-lightbox__img {
  max-width: min(96vw, 960px);
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.booking-image-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
