/* Home heating costs (legacy WP Coder 120), restyled to the site tokens. Scoped to this app only. */
.gsc-appbox[data-app="home-heating"] { container-type: inline-size; color: #0D1934; font-size: 16px; line-height: 1.5; }
.gsc-appbox[data-app="home-heating"] p { margin: 0; }
.gsc-appbox[data-app="home-heating"] [hidden] { display: none !important; }

.gsc-appbox[data-app="home-heating"] .ghcc-panel { margin: 0 0 18px; }
.gsc-appbox[data-app="home-heating"] .ghcc-panel-heading { display: flex; align-items: center; gap: 8px; font: 700 17px/1.3 "Rubik", "Alef", Arial, sans-serif; color: #162B59; margin: 0 0 12px; padding: 0 0 8px; border-bottom: 1px solid #D8E4DF; }
.gsc-appbox[data-app="home-heating"] .ghcc-ico { font-size: 18px; line-height: 1; }

.gsc-appbox[data-app="home-heating"] .ghcc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.gsc-appbox[data-app="home-heating"] .ghcc-field-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gsc-appbox[data-app="home-heating"] .ghcc-field-label { font-size: 15px; font-weight: 500; color: #0D1934; }
.gsc-appbox[data-app="home-heating"] .ghcc-req { color: #B3261E; }
.gsc-appbox[data-app="home-heating"] .ghcc-field-hint { font-size: 13px; color: #4E5D6E; line-height: 1.4; }

.gsc-appbox[data-app="home-heating"] .ghcc-input,
.gsc-appbox[data-app="home-heating"] .ghcc-select { width: 100%; min-height: 48px; margin: 0; padding: 0 12px; border: 1.5px solid #D8E4DF; border-radius: 12px; background: #fff; color: #0D1934; font: 400 16px/1.3 "Rubik", Arial, sans-serif; -webkit-appearance: none; appearance: none; }
.gsc-appbox[data-app="home-heating"] .ghcc-num { direction: ltr; text-align: right; font-weight: 500; font-size: 17px; font-variant-numeric: tabular-nums; }
.gsc-appbox[data-app="home-heating"] .ghcc-num::placeholder { color: #7A8796; font-weight: 400; }
.gsc-appbox[data-app="home-heating"] .ghcc-select { padding-left: 34px; text-overflow: ellipsis; cursor: pointer; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' width='16' height='16'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' fill='none' stroke='%23162B59' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: left 10px center; background-size: 16px 16px; background-repeat: no-repeat; }
.gsc-appbox[data-app="home-heating"] .ghcc-input:focus,
.gsc-appbox[data-app="home-heating"] .ghcc-select:focus { border-color: #2B7F6A; box-shadow: 0 0 0 3px rgba(43, 127, 106, .18); }
.gsc-appbox[data-app="home-heating"] .ghcc-input[aria-invalid="true"],
.gsc-appbox[data-app="home-heating"] .ghcc-select[aria-invalid="true"] { border-color: #B3261E; }
.gsc-appbox[data-app="home-heating"] .ghcc-field-err-msg { display: none; font-size: 14px; font-weight: 500; color: #B3261E; }
.gsc-appbox[data-app="home-heating"] .ghcc-field-err-msg.ghcc-show { display: block; }
.gsc-appbox[data-app="home-heating"] .ghcc-field-err-msg.ghcc-show::before { content: "! "; font-weight: 700; }

.gsc-appbox[data-app="home-heating"] .ghcc-slider-row { display: flex; align-items: center; gap: 10px; }
.gsc-appbox[data-app="home-heating"] .ghcc-slider { flex: 1 1 auto; min-width: 0; min-height: 44px; margin: 0; accent-color: #2B7F6A; cursor: pointer; }
.gsc-appbox[data-app="home-heating"] .ghcc-slider-val { min-width: 46px; text-align: center; font-weight: 700; font-size: 15px; color: #1F6F5C; background: #F3F8F6; border: 1px solid #D8E4DF; border-radius: 8px; padding: 3px 8px; unicode-bidi: isolate; flex: none; }

.gsc-appbox[data-app="home-heating"] .ghcc-gas-row { margin: 14px 0 0; max-width: 320px; }

.gsc-appbox[data-app="home-heating"] .ghcc-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.gsc-appbox[data-app="home-heating"] .ghcc-legend { padding: 0; margin: 0 0 10px; font-size: 14px; color: #4E5D6E; }
.gsc-appbox[data-app="home-heating"] .ghcc-systems-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gsc-appbox[data-app="home-heating"] .ghcc-sys-label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1.5px solid #D8E4DF; border-radius: 12px; background: #fff; cursor: pointer; font-size: 15px; line-height: 1.35; color: #0D1934; user-select: none; }
.gsc-appbox[data-app="home-heating"] .ghcc-sys-label:hover { border-color: #2B7F6A; }
.gsc-appbox[data-app="home-heating"] .ghcc-sys-label:has(input:checked) { border-color: #2B7F6A; background: #F3F8F6; font-weight: 700; color: #1F6F5C; }
.gsc-appbox[data-app="home-heating"] .ghcc-sys-label { position: relative; }
.gsc-appbox[data-app="home-heating"] .ghcc-sys-cb { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.gsc-appbox[data-app="home-heating"] .ghcc-box { position: relative; flex: none; width: 22px; height: 22px; border: 2px solid #4E5D6E; border-radius: 6px; background: #fff; }
.gsc-appbox[data-app="home-heating"] .ghcc-sys-cb:checked + .ghcc-box { background: #2B7F6A; border-color: #2B7F6A; }
.gsc-appbox[data-app="home-heating"] .ghcc-sys-cb:checked + .ghcc-box::after { content: ""; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.gsc-appbox[data-app="home-heating"] .ghcc-sys-label:has(.ghcc-sys-cb:focus-visible) { outline: 3px solid #162B59; outline-offset: 2px; }
.gsc-appbox[data-app="home-heating"] .ghcc-fs + .ghcc-field-err-msg { margin-top: 8px; }

.gsc-appbox[data-app="home-heating"] .ghcc-btn-row { display: flex; justify-content: center; margin: 4px 0 0; }
.gsc-appbox[data-app="home-heating"] .ghcc-btn-row.is-start { justify-content: flex-start; margin-top: 14px; }
.gsc-appbox[data-app="home-heating"] .ghcc-btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 10px 20px; border: 0; border-radius: 12px; background: #2B7F6A; color: #fff; font: 700 17px/1.2 "Rubik", Arial, sans-serif; cursor: pointer; }
.gsc-appbox[data-app="home-heating"] .ghcc-btn-primary:hover { background: #1F6F5C; }
.gsc-appbox[data-app="home-heating"] .ghcc-btn-outline { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 18px; border: 2px solid #162B59; border-radius: 12px; background: #fff; color: #162B59; font: 500 16px/1.2 "Rubik", Arial, sans-serif; cursor: pointer; }
.gsc-appbox[data-app="home-heating"] .ghcc-btn-outline:hover { background: #F3F8F6; }

.gsc-appbox[data-app="home-heating"] .ghcc-results-wrap:focus { outline: none; }
.gsc-appbox[data-app="home-heating"] .ghcc-summary-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.gsc-appbox[data-app="home-heating"] .ghcc-summary-card { background: #F3F8F6; border: 1px solid #D8E4DF; border-radius: 12px; padding: 14px 12px; text-align: center; }
.gsc-appbox[data-app="home-heating"] .ghcc-sum-label { font-size: 14px; color: #4E5D6E; margin: 0 0 4px; }
.gsc-appbox[data-app="home-heating"] .ghcc-sum-which { margin: 0 0 10px; font-size: 15px; font-weight: 500; color: #162B59; }
.gsc-appbox[data-app="home-heating"] .ghcc-sum-amount { font: 700 34px/1.1 "Alef", "Rubik", Arial, sans-serif; color: #1F6F5C; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.gsc-appbox[data-app="home-heating"] .ghcc-sum-unit { font-size: 13px; color: #4E5D6E; margin: 4px 0 0; }

.gsc-appbox[data-app="home-heating"] .ghcc-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #D8E4DF; border-radius: 12px; }
.gsc-appbox[data-app="home-heating"] .ghcc-table-scroll:focus-visible { outline: 3px solid #162B59; outline-offset: 2px; }
.gsc-appbox[data-app="home-heating"] .ghcc-comp-table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 14px; margin: 0; }
.gsc-appbox[data-app="home-heating"] .ghcc-section-sub-title { caption-side: top; text-align: right; font-size: 15px; font-weight: 700; color: #162B59; padding: 10px 12px 8px; }
.gsc-appbox[data-app="home-heating"] .ghcc-comp-table th,
.gsc-appbox[data-app="home-heating"] .ghcc-comp-table td { padding: 9px 12px; border: 0; border-top: 1px solid #D8E4DF; text-align: right; vertical-align: middle; }
.gsc-appbox[data-app="home-heating"] .ghcc-comp-table thead th { background: #162B59; color: #fff; font-weight: 500; white-space: nowrap; border-top: 0; }
.gsc-appbox[data-app="home-heating"] .ghcc-comp-table tbody th { font-weight: 500; color: #0D1934; min-width: 140px; }
.gsc-appbox[data-app="home-heating"] .ghcc-comp-table td { white-space: nowrap; }
.gsc-appbox[data-app="home-heating"] .ghcc-comp-table td.ghcc-money { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.gsc-appbox[data-app="home-heating"] .ghcc-comp-table tbody tr:nth-child(even) > * { background: #F7FAF9; }
.gsc-appbox[data-app="home-heating"] .ghcc-comp-table tr.ghcc-row-best > * { background: #E3F1EC; font-weight: 700; }
.gsc-appbox[data-app="home-heating"] .ghcc-comp-table tr.ghcc-row-best > th { box-shadow: inset -4px 0 0 #2B7F6A; }
.gsc-appbox[data-app="home-heating"] .ghcc-badge-best { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #2B7F6A; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; vertical-align: middle; }

.gsc-appbox[data-app="home-heating"] .ghcc-savings-box { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0 0; padding: 14px; background: #F3F8F6; border: 1px solid #D8E4DF; border-right: 4px solid #2B7F6A; border-radius: 12px; }
.gsc-appbox[data-app="home-heating"] .ghcc-savings-icon { font-size: 22px; line-height: 1.2; flex: none; }
.gsc-appbox[data-app="home-heating"] .ghcc-savings-title { font-size: 16px; font-weight: 700; color: #1F6F5C; margin: 0 0 4px; }
.gsc-appbox[data-app="home-heating"] .ghcc-savings-body { font-size: 15px; color: #2A3A52; line-height: 1.6; }
.gsc-appbox[data-app="home-heating"] .ghcc-disclaimer { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: #4E5D6E; }

@container (max-width: 520px) {
  .gsc-appbox[data-app="home-heating"] .ghcc-grid-2 { grid-template-columns: 1fr; }
}
@container (max-width: 400px) {
  .gsc-appbox[data-app="home-heating"] .ghcc-systems-grid { grid-template-columns: 1fr; }
  .gsc-appbox[data-app="home-heating"] .ghcc-sum-amount { font-size: 28px; }
}
@container (max-width: 260px) {
  .gsc-appbox[data-app="home-heating"] .ghcc-summary-row { grid-template-columns: 1fr; }
}
