/* 輪胎車主實測回報樣式，沿用各頁 :root 既有色彩變數 */

.tire-review-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.tire-review-summary {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
}
.tire-review-summary .pct {
  color: var(--white);
  font-weight: 700;
}
.tire-review-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tire-review-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--gray);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.tire-review-btn.active.rec {
  border-color: #4ade80;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}
.tire-review-btn.active.notrec {
  border-color: var(--red);
  color: var(--red);
  background: rgba(255, 60, 60, 0.08);
}
.tire-review-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
.tire-review-write {
  background: none;
  border: 1px solid var(--border);
  color: var(--gray);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.tire-review-write:hover,
.tire-review-btn:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
}
.tire-review-comments {
  margin-top: 10px;
}
.tire-review-comment {
  font-size: 13px;
  color: var(--gray);
  padding: 6px 0;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}
.tire-review-comment:first-child {
  border-top: none;
}
.tire-review-comment .author {
  color: var(--white);
  font-weight: 600;
}
.tire-review-comment .meta {
  color: var(--gray);
  font-size: 12px;
}
.tire-review-more {
  background: none;
  border: none;
  color: var(--red);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 0;
}

/* modal */
#tire-review-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 410;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#tire-review-modal.open {
  display: flex;
}
.tire-review-modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 440px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 24px;
}
.tire-review-modal-box h3 {
  color: var(--white);
  font-size: 18px;
  margin: 0 0 4px;
}
.tire-review-modal-box .tire-review-subtitle {
  color: var(--red);
  font-size: 13px;
  margin-bottom: 16px;
}
.tire-review-field {
  margin-bottom: 14px;
}
.tire-review-field label {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 5px;
}
.tire-review-field input[type="text"],
.tire-review-field input[type="number"],
.tire-review-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}
.tire-review-field textarea {
  resize: vertical;
  min-height: 60px;
}
.tire-review-field-hint {
  font-size: 11px;
  color: var(--gray);
  margin-top: 4px;
}
.tire-review-star-row {
  display: flex;
  gap: 4px;
}
.tire-review-star {
  font-size: 20px;
  color: var(--border);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.tire-review-star.on {
  color: #facc15;
}
.tire-review-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.tire-review-modal-actions button {
  flex: 1;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  background: none;
  color: var(--gray);
}
.tire-review-modal-actions .submit {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  font-weight: 700;
}
.tire-review-modal-actions button:disabled {
  opacity: 0.6;
  cursor: wait;
}
