/* ── 3-Column Layout: Settings | Preview | Summary ── */
.cc-calc-section { padding: .5rem 0 1.5rem; }
.cc-calc-section .calc-header { margin-bottom: .5rem; }
.cc-calc-section .calc-header h2 { font-size: clamp(1.1rem,1.8vw,1.4rem); }

.cc-3col {
  display: grid;
  grid-template-columns: 210px 1fr 260px;
  gap: .6rem;
  align-items: start;
}
@media (max-width: 960px) { .cc-3col { grid-template-columns: 200px 1fr; } .cc-3col .calc-summary { grid-column: 1/-1; order: -1; } }
@media (max-width: 640px) { .cc-3col { grid-template-columns: 1fr; } }

/* ── Left Panel (settings) ── */
.cc-settings {
  background: #eaf3e4;
  border: 1px solid #d0dcc8;
  border-radius: 8px;
  padding: .5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.cc-s-group {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.cc-s-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--forest);
}
.cc-s-group .calc-qty-wrap { height: 28px; }
.cc-s-group .calc-qty-btn { width: 24px; min-width: 24px; font-size: .8rem; }
.cc-s-group .calc-input { font-size: .75rem; }
.cc-s-group .calc-select { height: 28px; font-size: .75rem; padding: 0 1.6rem 0 .5rem; }
.cc-s-group .calc-select-wrap::after { right: 8px; border-left-width: 4px; border-right-width: 4px; border-top-width: 4px; }

/* Compact chips */
.cc-chip-group { display: flex; gap: .2rem; }
.cc-chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .25rem .3rem;
  background: var(--white);
  border: 1px solid #c0ccb8;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--forest);
  transition: border-color .16s, background .16s;
  user-select: none;
}
.cc-chip:hover { border-color: var(--forest-mid); }
.cc-chip.is-active {
  border-color: var(--forest);
  background: #ddecd2;
  box-shadow: 0 0 0 2px rgba(28,48,16,.1);
}

/* Leaves warning */
.cc-leaves-warn {
  color: var(--ip-red, #c0392b);
  font-size: .65rem;
  margin: 0;
  display: none;
}

/* ── Settings: Finishing (compact 2-col grid) ── */
.cc-s-divider { border: none; border-top: 1px solid #d0dcc8; margin: .2rem 0; }

.cc-finish-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .2rem;
}
.cc-finish-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .05rem;
  padding: .2rem .1rem .15rem;
  background: var(--white);
  border: 1px solid #c0ccb8;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color .14s, background .14s;
  user-select: none;
}
.cc-finish-tile:hover { border-color: var(--forest-mid); background: #f2f6ee; }
.cc-finish-tile.is-selected {
  border-color: var(--forest);
  background: #ddecd2;
  box-shadow: 0 0 0 2px rgba(28,48,16,.1);
}
.cc-finish-tile.is-disabled { opacity: .3; pointer-events: none; }

.cc-finish-img { width: 40px; height: auto; opacity: .7; transition: opacity .14s; }
.cc-finish-tile.is-selected .cc-finish-img { opacity: 1; }

.cc-finish-name {
  font-size: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: capitalize;
  color: var(--forest);
  text-align: center;
  line-height: 1.1;
}

/* ── Centre: Preview ── */
.cc-preview-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cc-preview-col .preview-panel {
  margin-bottom: 0;
  padding: .5rem;
  border-radius: 8px 8px 0 0;
}
.cc-preview-col .upload-zone { border-radius: 6px; }
.cc-preview-col .upload-zone-content { padding: .6rem .5rem; }
.cc-preview-col .upload-text { font-size: .75rem; margin: 0 0 .1rem; }
.cc-preview-col .upload-hint { font-size: .6rem; }

.cc-preview-controls {
  display: flex;
  gap: .5rem;
  padding: .35rem .6rem;
  background: #eaf3e4;
  border: 1px solid #d0dcc8;
  border-top: none;
  border-radius: 0 0 8px 8px;
  flex-wrap: wrap;
}
.cc-ctrl-group { display: flex; align-items: center; gap: .25rem; }
.cc-ctrl-label {
  font-family: var(--font-display);
  font-size: .5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--forest);
  white-space: nowrap;
}
.cc-btn-row { display: flex; gap: 1px; }
.cc-ctrl-btn {
  padding: .15rem .35rem;
  border: 1px solid #d0dcc8;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  font-size: .6rem;
  font-weight: 500;
  color: var(--forest);
  transition: background 120ms;
}
.cc-ctrl-btn:hover { background: #f2f6ee; }
.cc-ctrl-btn.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
  font-weight: 600;
}

/* ── Right: Summary (tighter) ── */
.cc-3col .calc-summary-inner { padding: .8rem; gap: .5rem; }
.cc-3col .calc-summary-label { font-size: .55rem; margin-bottom: .15rem; }
.cc-3col .calc-config-list li { font-size: .72rem; }
.cc-3col .calc-price-block { padding: .5rem 0; }
.cc-3col .calc-price { font-size: 1.8rem; }
.cc-3col .calc-cta { padding: .45rem .8rem; font-size: .75rem; }
.cc-3col .calc-disclaimer { font-size: .65rem; margin-top: .25rem; }
.cc-3col .calc-turnaround { font-size: .72rem; }
