/* product_review/web.css — Review writing page styles */

.rev-wrap { max-width: 600px; margin: 50px auto; padding: 0 20px 60px; }

.rev-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 24px; }

.rev-card { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); margin-bottom: 20px; }

/* Product mini card */
.product-mini { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.product-mini img { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; }
.product-mini-name { font-weight: 700; margin: 0; }
.product-mini-link { font-size: 0.85rem; color: var(--primary-color); text-decoration: none; }

/* Star rating */
.star-group { display: flex; gap: 8px; margin: 12px 0; flex-direction: row-reverse; justify-content: flex-end; }
.star-group label { font-size: 2.2rem; cursor: pointer; color: #ddd; transition: color 0.15s; }
.star-group input[type=radio] { display: none; }
.star-group input:checked ~ label,
.star-group label:hover,
.star-group label:hover ~ label { color: #f59e0b; }

textarea.inp { width: 100%; padding: 14px; border: 1px solid #e0e0e0; border-radius: 10px; font-size: 0.95rem; resize: vertical; min-height: 120px; box-sizing: border-box; }
textarea.inp:focus { outline: none; border-color: var(--primary-color,#3498db); }

.btn-submit { background: var(--primary-color,#000); color: #fff; padding: 13px 32px; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 1rem; width: 100%; margin-top: 16px; }

.not-buyer { background: #FFF3CD; border: 1px solid #ffc107; border-radius: 10px; padding: 16px; color: #856404; font-size: 0.9rem; }

.rev-label { font-size: 0.82rem; font-weight: 700; color: #555; display: block; margin-bottom: 4px; }
.rev-label-mb { margin-bottom: 6px; }
.rating-text { font-size: 0.85rem; color: #888; margin-bottom: 16px; min-height: 18px; }

.rev-success { background: #D1FAE5; color: #065F46; padding: 16px; border-radius: 10px; text-align: center; font-weight: 700; }
.rev-already { background: #E6F1FB; color: #0C447C; padding: 16px; border-radius: 10px; text-align: center; font-weight: 600; }
.rev-error { background: #FEE2E2; color: #991B1B; padding: 12px; border-radius: 8px; margin-bottom: 16px; font-weight: 600; }
.rev-back { text-align: center; margin-top: 16px; }
.rev-back a { color: var(--primary-color); font-weight: 700; text-decoration: none; }

/* ===== Image / Video upload UI ===== */
.rev-media-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 6px 0 16px;
}
.rev-media-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 90px;
    height: 90px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    background: #f8fafc;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: border-color .15s, color .15s, background .15s;
}
.rev-media-tile:hover {
    border-color: var(--primary-color, #2563eb);
    color: var(--primary-color, #2563eb);
    background: #fff;
}
.rev-media-tile i { font-size: 1.4rem; }
.rev-img-previews,
.rev-vid-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.rev-thumb {
    width: 90px; height: 90px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid #e5e7eb;
}
.rev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rev-vid-preview video {
    max-width: 220px;
    max-height: 160px;
    border-radius: 12px;
    background: #000;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
    .rev-wrap { margin: 30px auto; padding: 0 14px 40px; }
    .rev-card { padding: 22px; }
    .rev-title { font-size: 1.4rem; }
    .product-mini img { width: 56px; height: 56px; }
    .star-group label { font-size: 1.8rem; }
    .rev-media-tile, .rev-thumb { width: 78px; height: 78px; }
    .rev-vid-preview video { max-width: 100%; }
}
