/* Console additions: theme customizer, presets and the public comparison table. */

/* --- theme customizer ---------------------------------------------------- */

.cz-wrap {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.cz-side {
  background: #fff;
  border: 1px solid #e2e8e0;
  border-radius: 10px;
  overflow: hidden;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
}
.cz-side-head {
  padding: 16px 18px;
  border-bottom: 1px solid #edf0ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cz-side-head b {
  font-size: 13px;
}
.cz-side-body {
  overflow-y: auto;
  padding: 0 0 24px;
}
.cz-tabs {
  display: flex;
  border-bottom: 1px solid #edf0ed;
}
.cz-tabs button {
  flex: 1;
  border: 0;
  background: none;
  padding: 13px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6d7a6e;
  border-bottom: 2px solid transparent;
}
.cz-tabs button.is-active {
  color: #17372f;
  border-bottom-color: #17372f;
}
.cz-group {
  border-bottom: 1px solid #edf0ed;
}
.cz-group > summary {
  cursor: pointer;
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #51604f;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.cz-group > summary::-webkit-details-marker {
  display: none;
}
.cz-group > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 15px;
  color: #8b968b;
}
.cz-group[open] > summary::after {
  content: "–";
}
.cz-fields {
  padding: 4px 18px 20px;
  display: grid;
  gap: 13px;
}
.cz-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #455347;
}
.cz-field-highlight {
  font-weight: 500;
  color: #7d8a7e;
  font-size: 11px;
}
.cz-field input,
.cz-field select,
.cz-field textarea {
  width: 100%;
  border: 1px solid #d5ded4;
  background: #fff;
  padding: 10px 11px;
  border-radius: 6px;
  font-size: 13px;
  color: #26372b;
  font-weight: 400;
}
.cz-field textarea {
  resize: vertical;
  min-height: 74px;
  font-family: ui-monospace, "DM Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
}
.cz-field-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cz-field-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.cz-color {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cz-color input[type="color"] {
  width: 44px;
  height: 34px;
  padding: 2px;
  border-radius: 6px;
  cursor: pointer;
}
.cz-color input[type="text"] {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.cz-range {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cz-range input[type="range"] {
  flex: 1;
  padding: 0;
}
.cz-range output {
  min-width: 54px;
  text-align: right;
  font-size: 12px;
  color: #5d6b5f;
  font-weight: 500;
}
.cz-media {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.cz-media-thumb {
  width: 62px;
  height: 74px;
  flex: none;
  border: 1px solid #d5ded4;
  border-radius: 6px;
  background: #f4f6f2 center/cover no-repeat;
}
.cz-media-fields {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}
.cz-hint {
  font-size: 11px;
  color: #8b968b;
  font-weight: 400;
  line-height: 1.5;
}

.cz-sections {
  padding: 14px 14px 0;
  display: grid;
  gap: 8px;
}
.cz-section {
  border: 1px solid #e2e8e0;
  border-radius: 8px;
  background: #fbfcf9;
  overflow: hidden;
}
.cz-section.is-hidden {
  opacity: 0.55;
}
.cz-section-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px 10px 12px;
}
.cz-section-head > b {
  flex: 1;
  font-size: 12.5px;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cz-section-head button {
  border: 0;
  background: none;
  color: #6d7a6e;
  font-size: 12px;
  padding: 4px 5px;
  border-radius: 4px;
  line-height: 1;
}
.cz-section-head button:hover {
  background: #e8eee5;
  color: #17372f;
}
.cz-section-body {
  padding: 4px 12px 16px;
  display: grid;
  gap: 13px;
  border-top: 1px solid #edf0ed;
  background: #fff;
}
.cz-blocks {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.cz-block {
  border: 1px solid #e6ebe4;
  border-radius: 7px;
  background: #fafbf8;
  padding: 10px;
  display: grid;
  gap: 11px;
}
.cz-block-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cz-block-head b {
  flex: 1;
  font-size: 12px;
}
.cz-block-head button {
  border: 0;
  background: none;
  padding: 3px 5px;
  font-size: 12px;
  color: #6d7a6e;
  border-radius: 4px;
}
.cz-block-head button:hover {
  background: #e8eee5;
  color: #17372f;
}
.cz-add {
  width: 100%;
  border: 1px dashed #c3d2c0;
  background: none;
  color: #46704b;
  border-radius: 7px;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
}
.cz-add:hover {
  background: #f2f7ee;
}
.cz-add-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.cz-add-row select {
  flex: 1;
  border: 1px solid #d5ded4;
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
  background: #fff;
}
.cz-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 16px;
}
.cz-preset {
  border: 1px solid #e2e8e0;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  text-align: left;
  display: grid;
  gap: 8px;
}
.cz-preset:hover {
  border-color: #9bb894;
}
.cz-preset.is-current {
  border-color: #17372f;
  box-shadow: inset 0 0 0 1px #17372f;
}
.cz-preset b {
  font-size: 12.5px;
}
.cz-preset small {
  font-size: 11px;
  color: #7d8a7e;
  line-height: 1.45;
  font-weight: 400;
}
.cz-swatches {
  display: flex;
  gap: 4px;
}
.cz-swatches i {
  width: 18px;
  height: 18px;
  border-radius: 99px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.cz-preview {
  border: 1px solid #e2e8e0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  position: sticky;
  top: 20px;
}
.cz-preview-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf0ed;
  background: #fbfcf9;
  font-size: 12px;
  color: #6d7a6e;
}
.cz-preview-bar b {
  color: #26372b;
  margin-right: auto;
}
.cz-preview-bar button {
  border: 1px solid #d5ded4;
  background: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
}
.cz-preview-frame {
  width: 100%;
  height: calc(100vh - 190px);
  border: 0;
  display: block;
  background: #fff;
}
.cz-preview-frame.is-narrow {
  width: 420px;
  max-width: 100%;
  margin: 0 auto;
  border-inline: 1px solid #edf0ed;
}
.cz-status {
  font-size: 11px;
  color: #7d8a7e;
}
.cz-status.is-dirty {
  color: #a8721c;
}
@media (max-width: 1100px) {
  .cz-wrap {
    grid-template-columns: 1fr;
  }
  .cz-side,
  .cz-preview {
    position: static;
    max-height: none;
  }
  .cz-preview-frame {
    height: 70vh;
  }
}

/* --- media controls ------------------------------------------------------ */

.media-control {
  display: grid;
  gap: 8px;
}
.media-control input[type="text"],
.media-control textarea {
  width: 100%;
  border: 1px solid #d5ded4;
  background: #fff;
  padding: 11px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #26372b;
  font-family: ui-monospace, "DM Mono", monospace;
}
.media-control textarea {
  resize: vertical;
  min-height: 74px;
  line-height: 1.6;
}
.media-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.media-actions button {
  border: 1px solid #d5ded4;
  background: #fff;
  border-radius: 6px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 600;
  color: #3f513f;
  margin: 0;
  cursor: pointer;
}
.media-actions button:hover {
  background: #f2f7ee;
  border-color: #9bb894;
}
.cz-media-fields .media-actions button {
  border: 1px dashed #c3d2c0;
  color: #46704b;
}
.variant-image-row .media-control {
  margin-top: 2px;
}

/* --- plan features & comparison ----------------------------------------- */

.feature-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.feature-list li::before {
  content: "✓";
  color: #3d6746;
  font-weight: 700;
}
.feature-list li button {
  margin-left: auto;
  border: 0;
  background: none;
  color: #9a6a5a;
  font-size: 12px;
}

.cmp-scroll {
  overflow-x: auto;
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 820px;
}
.cmp-table th,
.cmp-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid #e8ece6;
  vertical-align: top;
}
.cmp-table thead th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #74816f;
  border-bottom: 2px solid #dfe5dd;
}
.cmp-table thead th.is-ours {
  color: #17372f;
}
.cmp-table tbody th {
  font-weight: 600;
  color: #26372b;
  padding-top: 24px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #74816f;
  border-bottom: 0;
}
.cmp-table td.is-ours {
  background: #f1f7ec;
  font-weight: 600;
  color: #24513a;
}
.cmp-table td.is-muted {
  color: #7d8a7e;
}
.cmp-note {
  display: block;
  font-size: 11px;
  color: #8b968b;
  margin-top: 4px;
  font-weight: 400;
}

/* --- public comparison page --------------------------------------------- */

.cmp-hero {
  padding: 90px 5vw 60px;
  background: radial-gradient(circle at 88% 0%, #deebc2, transparent 40%), #f5f7ee;
}
.cmp-hero h1 {
  font: 500 clamp(46px, 6vw, 92px)/0.98 Fraunces, serif;
  letter-spacing: -0.06em;
  margin: 18px 0;
  max-width: 16ch;
}
.cmp-hero p {
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.65;
  color: #536158;
}
.cmp-price-row {
  display: flex;
  gap: 44px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.cmp-price-row div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cmp-price-row b {
  font: 500 38px Fraunces, serif;
}
.cmp-price-row span {
  font-size: 12px;
  color: #657166;
}
.cmp-body {
  padding: 20px 5vw 100px;
}
.cmp-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 860px;
}
.cmp-body th,
.cmp-body td {
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid #e2e7df;
  vertical-align: top;
}
.cmp-body thead th {
  font: 600 11px 'DM Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6c7a6a;
}
.cmp-body thead th.ours {
  background: #17372f;
  color: #d9ecc0;
}
.cmp-body td.ours {
  background: #f1f7ec;
  font-weight: 600;
  color: #24513a;
}
.cmp-body td.muted {
  color: #7d8a7e;
}
.cmp-body tbody th {
  display: table-cell;
  font: 600 11px 'DM Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6c7a6a;
  padding-top: 30px;
}
.cmp-scroll-x {
  overflow-x: auto;
}
.cmp-disclaimers {
  margin-top: 34px;
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #6d7a6d;
  max-width: 90ch;
}
.cmp-cta {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
