/* ===================================================================
   Brownstone Leasing — Cost Calculator Styles
   Colorado HB25-1090 Compliant · WCAG 2.1 AA
   =================================================================== */

/* --- Buckets --- */
.cc-bucket{border:1px solid #e0e0e0;border-radius:8px;margin-bottom:16px;overflow:hidden}
.cc-bucket-title{margin:0;font-size:15px}
.cc-collapse-btn{display:flex;align-items:center;gap:8px;width:100%;padding:14px 16px;background:#f7f7f7;border:none;cursor:pointer;font-size:15px;font-weight:700;color:#333;text-align:left;font-family:inherit}
.cc-collapse-btn:hover{background:#efefef}
.cc-collapse-btn:focus-visible{outline:2px solid #0066CC;outline-offset:-2px}
.cc-collapse-icon{display:inline-block;width:18px;text-align:center;font-size:14px;color:#666;flex-shrink:0}
.cc-bucket-content{padding:0 16px 16px 16px}

/* --- Section & Subsection Labels --- */
.cc-section{margin-top:14px}
.cc-section-label{font-size:11px;font-weight:700;color:#888;letter-spacing:.5px;text-transform:uppercase;margin-bottom:8px}
.cc-subsection{margin-bottom:6px}
.cc-subsection-label{font-size:13px;font-weight:600;color:#666;margin-bottom:4px;padding-left:4px}
.cc-subsection-items{padding-left:4px}

/* --- Fee Rows --- */
.cc-fee-row{display:flex;justify-content:space-between;align-items:flex-start;padding:6px 0;gap:12px}
.cc-fee-label-col{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px}
.cc-fee-label{font-size:14px;color:#333;display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}
.cc-fee-sublabel{width:100%;font-size:12px;color:#888;margin-top:-2px}
.cc-fee-amount-col{display:flex;align-items:center;gap:8px;flex-shrink:0}
.cc-fee-amount{font-size:14px;font-weight:600;color:#333;white-space:nowrap}

/* --- Optional Rows --- */
.cc-optional-row .cc-fee-label-col{display:flex;flex-wrap:wrap;align-items:center}
.cc-checkbox{width:18px;height:18px;accent-color:#0066CC;cursor:pointer;flex-shrink:0;margin:0}
.cc-optional-row label.cc-fee-label{cursor:pointer}
.cc-opt-sub{padding-left:24px}

/* --- Stepper --- */
.cc-stepper{display:flex;align-items:center;border:1px solid #ddd;border-radius:6px;overflow:hidden;flex-shrink:0}
.cc-stepper-btn{width:36px;height:36px;background:#f5f5f5;border:none;cursor:pointer;font-size:18px;font-weight:600;color:#333;display:flex;align-items:center;justify-content:center;font-family:inherit;transition:background .15s;-webkit-user-select:none;user-select:none}
.cc-stepper-btn:hover{background:#e8e8e8}
.cc-stepper-btn:focus-visible{outline:2px solid #0066CC;outline-offset:-2px}
.cc-stepper-val{min-width:28px;text-align:center;font-size:14px;font-weight:600;color:#333;padding:0 2px;background:#fff}

/* --- Info Button --- */
.cc-info-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:none;background:none;cursor:pointer;font-size:15px;color:#999;padding:0;line-height:1;border-radius:50%;transition:color .15s;vertical-align:middle}
.cc-info-btn:hover{color:#333}
.cc-info-btn:focus-visible{outline:2px solid #0066CC;outline-offset:1px}

/* --- Separator --- */
.cc-separator{height:1px;background:#e0e0e0;margin:12px 0}

/* --- Show More / Less --- */
.cc-show-more-wrap{padding:4px 0}
.cc-show-more-btn{background:none;border:none;color:#0066CC;font-size:13px;font-weight:600;cursor:pointer;padding:4px 0;font-family:inherit}
.cc-show-more-btn:hover{text-decoration:underline}
.cc-show-more-btn:focus-visible{outline:2px solid #0066CC;outline-offset:2px}

/* --- Totals --- */
.cc-total-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0 4px 0;border-top:2px solid #333;margin-top:12px}
.cc-total-label{font-size:15px;font-weight:700;color:#333}
.cc-total-value{font-size:15px;font-weight:700;color:#333;white-space:nowrap}

/* --- Mismatch --- */
.cc-mismatch{color:#CC0000;font-weight:700}

/* --- Hidden --- */
.cc-hidden-item{display:none!important}

/* --- Special Offer --- */
.cc-special-offer{background:rgba(0,102,204,.08);border-radius:8px;padding:12px 16px;margin-bottom:16px;font-size:14px;color:#333;line-height:1.4}

/* --- Disclaimer --- */
.cc-disclaimer{font-size:12px;color:#999;margin-top:12px;text-align:center}

/* --- Term Prompt --- */
.cc-term-prompt{text-align:center;padding:40px 20px;color:#666;font-size:15px}

/* --- Lease Term Table --- */
.cc-lease-terms-section{margin:20px 0}
.cc-lt-heading{font-size:18px;color:#333;margin-bottom:8px}
.cc-lt-note{font-size:14px;color:#666;margin-bottom:12px;line-height:1.4}
.cc-lt-note a{color:#0066CC;text-decoration:none}
.cc-lt-note a:hover{text-decoration:underline}
.cc-lt-table{width:100%;border-collapse:collapse;font-size:14px}
.cc-lt-table th{text-align:left;padding:10px 12px;font-size:12px;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:.3px;border-bottom:2px solid #ddd}
.cc-lt-table th:last-child{text-align:right}
.cc-term-row{cursor:pointer;transition:background .15s}
.cc-term-row td{padding:12px;border-bottom:1px solid #eee;color:#333}
.cc-term-row td:last-child{text-align:right}
.cc-term-row:hover{background:#f5f8ff}
.cc-term-row.cc-term-selected{background:#e8f0fe;border-left:3px solid #0066CC}
.cc-term-row.cc-term-selected td:first-child{padding-left:9px}

/* --- Inline CC Section --- */
#cc-inline-section{margin-top:20px;padding-top:16px;border-top:1px solid #eee}
.cc-inline-heading{font-size:18px;font-weight:700;color:#333;margin-bottom:12px}

/* === MOBILE (44px touch targets — WCAG AA) === */
@media(max-width:768px){
  .cc-stepper-btn{width:44px;height:44px;font-size:20px}
  .cc-stepper-val{min-width:32px;font-size:15px}
  .cc-checkbox{width:22px;height:22px}
  .cc-info-btn{min-width:44px;min-height:44px;font-size:17px}
  .cc-collapse-btn{min-height:48px;padding:12px 14px}
  .cc-show-more-btn{min-height:44px;padding:10px 0;font-size:14px}
  .cc-fee-row{padding:8px 0}
  .cc-bucket-content{padding:0 12px 12px 12px}
  .cc-lt-table th,.cc-term-row td{padding:10px 8px}
  .cc-term-row{min-height:44px}
}

/* === High Contrast === */
@media(forced-colors:active){
  .cc-mismatch{color:CanvasText;text-decoration:underline wavy}
}
