/* Comparison is a task-focused surface, consistent with the Didar catalog. */
.comparison-page .compare-heading {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.comparison-page .compare-heading h1 { margin: 0 0 3px; font-size: clamp(22px, 2.4vw, 29px); }
.comparison-page .compare-heading p { margin: 0; color: #687787; font-size: 13px; }
.compare-question-panel {
  background: #fff; border: 1px solid #d8e2e9; border-radius: 16px;
  padding: 18px 22px 16px; box-shadow: 0 4px 16px #203d5006; margin-bottom: 20px;
}
.compare-question-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 12px; }
.compare-question-icon {
  flex: 0 0 42px; height: 42px; display: grid; place-items: center;
  background: #eaf1f5; color: #24465b; border-radius: 11px;
}
.compare-question-icon svg { width: 22px; height: 22px; }
.compare-question-heading h2 { font-size: 17px; margin: 0 0 3px; color: #243c50; }
.compare-question-heading p { color: #667788; font-size: 12px; margin: 0; line-height: 1.85; }
.compare-optional { margin-inline-start: auto; color: #72808c; background: #f2f5f7; border-radius: 6px; padding: 3px 9px; font-size: 11px; white-space: nowrap; }
.compare-question-form textarea {
  display: block; width: 100%; min-height: 72px; resize: vertical;
  border: 1px solid #b8cad7; border-radius: 10px; background: #f9fbfc;
  padding: 14px 16px; color: #243c50; line-height: 1.9; font-size: 14px;
}
.compare-question-form textarea:focus { background: #fff; border-color: #42687f; outline: 2px solid #d0e0e9; outline-offset: 1px; }
.compare-question-form textarea::placeholder { color: #7b8994; }
.compare-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 13px; flex-wrap: wrap; }
.compare-suggestions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: #758290; font-size: 11px; }
.compare-suggestion { background: #f6f8fa; border: 1px solid #dce4e9; color: #40576a; border-radius: 999px; padding: 4px 11px; font-size: 11px; }
.compare-suggestion:hover { border-color: #7893a3; background: #eaf1f5; }
.compare-question-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-inline-start: auto; }
.compare-question-actions .button { min-height: 42px; font-size: 12px; border-radius: 9px; white-space: nowrap; }
.compare-submit { display: inline-flex; align-items: center; gap: 10px; }
.compare-results-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.compare-results-header h2 { margin: 0 0 2px; font-size: 17px; }
.compare-results-header p { color: #77838f; font-size: 12px; margin: 0; }
.compare-difference-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #475f71; cursor: pointer; }
.compare-difference-toggle input { width: 16px; height: 16px; margin: 0; accent-color: #294b62; }
.compare-selected-criteria { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding-bottom: 12px; }
.compare-selected-criteria span { border: 1px solid #d8e5e9; background: #edf5f6; color: #285564; border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 550; }
.compare-selected-criteria small { color: #80643a; font-size: 11px; flex-basis: 100%; }
.compare-table-panel { border: 1px solid #dce4e9; border-radius: 14px; box-shadow: none; }
.compare-table-panel .comparison-table { margin: 0; width: 100%; }
.compare-table-panel .comparison-table th[scope="row"] { color: #40586a; font-weight: 600; }
.compare-table-panel .comparison-table th, .compare-table-panel .comparison-table td { padding: 12px 14px; }
.compare-table-panel .comparison-table thead th { vertical-align: top; background: #fbfcfd; padding: 14px; }
.compare-table-panel .comparison-table .compare-product { text-align: center; align-items: center; gap: 6px; }
.compare-table-panel .comparison-table .product-visual { width: 140px; height: 96px; flex: 0 0 96px; margin: 0 auto; }
.compare-table-panel .comparison-table .product-render { width: 130px; height: 90px; }
.compare-table-panel .compare-product strong { line-height: 1.8; font-size: 13px; min-height: 0; }
.compare-table-panel .comparison-table .is-different td { background: #f0f5f8; }
.compare-table-panel .comparison-table .is-different th { background: #e7eff4; }
.compare-submit:disabled { opacity: .65; cursor: wait; }
.compare-unknown { color: #84919b; font-size: 12px; }
.compare-question-empty { border: 1px solid #dce4e9; border-radius: 14px; background: #fff; padding: 25px; text-align: center; }
.compare-question-empty h2 { font-size: 17px; margin: 0 0 5px; }
.compare-question-empty p { color: #687787; margin: 0 0 14px; font-size: 13px; }
.compare-scroll-hint { display: none; }
@media (max-width: 760px) {
  .comparison-page .compare-heading { margin-bottom: 16px; align-items: flex-start; }
  .compare-question-panel { padding: 15px; margin-bottom: 20px; border-radius: 13px; }
  .compare-question-heading { gap: 9px; }
  .compare-question-icon { flex-basis: 34px; height: 34px; border-radius: 9px; }
  .compare-question-icon svg { width: 19px; height: 19px; }
  .compare-question-heading h2 { font-size: 15px; }
  .compare-question-heading p { font-size: 11px; }
  .compare-question-form textarea { font-size: 13px; padding: 11px; min-height: 72px; }
  .compare-form-footer { align-items: stretch; gap: 13px; flex-direction: column; }
  .compare-question-actions { margin: 0; width: 100%; }
  .compare-question-actions .button { flex: 1 1 auto; justify-content: center; }
  .compare-results-header h2 { font-size: 15px; }
  .compare-scroll-hint { display: block; color: #687787; font-size: 11px; margin: 0 0 7px; }
  .compare-table-panel .comparison-table { min-width: calc(96px + var(--compare-count, 2) * 140px); }
  .compare-table-panel .comparison-table th:first-child { min-width: 96px; width: 96px; }
  .compare-table-panel .comparison-table th:not(:first-child) { min-width: 140px; }
  .compare-table-panel .comparison-table .product-visual { width: 112px; height: 85px; flex-basis: 85px; }
  .compare-table-panel .comparison-table .product-render { width: 110px; height: 80px; }
  .compare-table-panel .comparison-table th, .compare-table-panel .comparison-table td { padding: 10px; }
  .compare-table-panel .compare-product strong { font-size: 11px; }
}
