/**
 * 2026 Casaba Hediyelik / Okul Hediyem
 * Müşteri Kişiselleştirme Kartı Stilleri (Sepet, Sipariş Onayı, Sipariş Geçmişi)
 */

.casaba-customer-customization-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #f97316;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 10px;
  margin-bottom: 8px;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.cust-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.cust-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cust-header-left .cust-icon {
  color: #f97316;
  display: flex;
  align-items: center;
}

.cust-header-left .cust-icon i {
  font-size: 18px;
}

.cust-header-left .cust-title {
  font-size: 13px;
  color: #1e293b;
  font-weight: 700;
}

.cust-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cust-opt-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cust-opt-badge.opt-standard {
  background: #e2e8f0;
  color: #475569;
}

.cust-opt-badge.opt-named {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}

.cust-opt-badge.opt-photo {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.cust-opt-badge.opt-photo-named {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.cust-qty-badge {
  font-size: 12px;
  font-weight: 700;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Bilgiler Izgarası */
.cust-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 12px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  padding: 10px 12px;
}

.cust-meta-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cust-meta-item.cust-meta-note {
  grid-column: 1 / -1;
  border-top: 1px dashed #f1f5f9;
  padding-top: 4px;
  margin-top: 2px;
}

.cust-meta-item .meta-label {
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.cust-meta-item .meta-val {
  color: #0f172a;
  font-weight: 600;
  word-break: break-word;
}

/* Kişi & Fotoğraf Listesi */
.cust-items-section {
  margin-top: 12px;
}

.cust-items-header {
  margin-bottom: 8px;
}

.cust-items-title {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.cust-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px 2px;
}

.cust-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cust-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.cust-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cust-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.cust-item-thumb img:hover {
  transform: scale(1.1);
}

.cust-thumb-placeholder {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cust-item-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cust-item-num {
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.cust-item-name {
  font-size: 11px;
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 115px;
  line-height: 1.2;
}

.cust-item-qty {
  font-size: 10px;
  color: #0284c7;
  font-weight: 600;
  margin-top: 3px;
  background: #f0f9ff;
  padding: 1px 6px;
  border-radius: 4px;
}
