/* ===== RATING PAGE ===== */
/* File: public/assets/css/RatingPage.css */

/* ── Wrapper halaman ───────────────────────────────────────────── */
.rating-page-wrapper {
  background: #f5f5f5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Mobile sticky header ──────────────────────────────────────── */
.dp-berinilai-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: white;
  border-bottom: 1px solid #eee;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ── Wrapper konten utama ──────────────────────────────────────── */
.dp-berinilai-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 16px 100px; /* 16px kiri-kanan agar card tidak mepet, bottom buat tombol fixed */
}
@media (min-width: 992px) {
  .dp-berinilai-wrapper {
    padding: 28px 0 60px;
  }
}

/* ── 1 Card utama ──────────────────────────────────────────────── */
.dp-rating-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #eee;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  padding: 20px 16px;
  overflow: hidden;
}
@media (min-width: 992px) {
  .dp-rating-card {
    padding: 24px;
  }
}

/* ── Baris produk di dalam card ────────────────────────────────── */
.dp-rating-product-row {
  display: flex;
  align-items: center;
}

/* ── Divider tipis di dalam card ───────────────────────────────── */
.dp-rating-divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 16px 0;
}

/* ── Section bintang ───────────────────────────────────────────── */
.dp-rating-star-section {
  text-align: center;
}

.dp-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
}

/* ── Textarea ulasan ───────────────────────────────────────────── */
.dp-rating-textarea {
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  font-size: 0.88rem;
  padding: 12px 14px;
  resize: none;
  transition: border-color 0.2s;
  width: 100%;
}
.dp-rating-textarea:focus {
  border-color: #ff5200;
  box-shadow: 0 0 0 3px rgba(255, 82, 0, 0.1);
  outline: none;
}

/* ── Preview foto yang diupload ────────────────────────────────── */
.dp-photo-preview {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #eee;
  flex-shrink: 0;
}
.dp-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tombol hapus foto */
.dp-photo-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}
.dp-photo-remove:hover {
  background: rgba(220, 38, 38, 0.85);
}

/* ── Tombol upload foto ────────────────────────────────────────── */
.dp-upload-box {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1.5px dashed #ccc;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #aaa;
  gap: 2px;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.dp-upload-box:hover {
  border-color: #ff5200;
  background: #fff5f0;
  color: #ff5200;
}

/* ── Tombol fixed bawah (mobile only) ──────────────────────────── */
.dp-rating-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #eee;
  padding: 12px 16px;
  z-index: 1030;
}
