/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 0 40px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 28px;
  font-size: 2.4rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  opacity: .75;
}
.lightbox-close:hover { opacity: 1; }

/* 图片缩略图 */
.thumb-grid img.thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s, transform .15s;
  flex-shrink: 0;
}
.thumb-grid img.thumb:hover {
  border-color: #17a2b8;
  transform: scale(1.05);
}
.thumb-grid img.thumb-lg {
  width: 120px;
  height: 120px;

}

/* 捐品卡片高亮（从列表跳转过来时） */
.donation-item-card.highlighted {
  border: 2px solid #17a2b8;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, .2);
}

/* Cascader 组件 */
.zd-cascader-wrap .form-control[readonly],
.zd-cascader-wrap .zd-input__inner[readonly] {
  background-color: #fff;
}