:host {
  display: block;
}

.wrap {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04);
}

.header {
  margin-bottom: 1.75rem;
}

.kwh-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}

.energy-label {
  font-size: clamp(1.02rem, calc(1.03rem + -0.02vw), 1.01rem);
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
  color: oklch(55.4% 0.046 257.417 / 1);
  font-weight: 700;
  padding-bottom: 0.35rem;
  font-family: 'Mont','DM Sans',system-ui,sans-serif; 
}

.energy-value {
  font-size: clamp(1.50rem, calc(0.95rem + 2.45vw), 2.88rem);
  font-weight: 700;
  color: oklch(59.6% 0.145 163.225 / 1);
  line-height: 1;
  font-family: inherit;
}

.energy-unit {
  font-size: 1.4rem;
  font-weight: 700;
  color: oklch(59.6% 0.145 163.225 / 0.5);
}

.kwh-slider {
  width: 100%;
  accent-color: #0f172c;
  cursor: pointer;
  display: block;
}

.energy-range {
  font-size: clamp(1.02rem, calc(1.03rem + -0.02vw), 1.01rem);
  color: oklch(27.9% 0.041 260.031 / 1);
  margin-top: 0.4rem;
  text-align: right;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.row {
  display: grid;
  grid-template-columns: 9rem 1fr minmax(max-content, 240px);
  align-items: center;
  gap: 0.875rem;
}

.row-label {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.label-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.tw-name {
  display: inline-block;
  font-family: 'Mont', 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: inherit;
  line-height: 1.5;
  letter-spacing: 0.0615rem;
  text-transform: uppercase;
  white-space: nowrap;
  width: fit-content;
  align-items: center;
  gap: 0.125rem;
}

.time-sub {
  font-size: clamp(1.02rem, calc(1.03rem + -0.02vw), 1.01rem);
  color: oklch(44.6% 0.043 257.281);
  padding-left: 1.25rem;
  margin-top: 0.05rem;	
  grid-column: 1 / -1;
}

.bar-track {
  height: 14px;
  background: #f1f5f9;
  border-radius: 7px;
  overflow: hidden;
  flex: 1;
}

.bar-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.22s ease;
}

.cost {
  font-weight: 700;
  font-size: clamp(1.50rem, calc(0.95rem + 2.45vw), 2.88rem);
  text-align: right;
  font-family: inherit;
  white-space: nowrap;
  line-height: 1;
  color: oklch(0.424 0.199 265.638);
}

.note {
  font-size: clamp(1.02rem, calc(1.03rem + -0.02vw), 1.01rem);
  margin-top: 1.25rem;
  padding: 0.7rem 1rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12;
  line-height: 1.5;
}

input[type='range'] {
  appearance: none;
  border-radius: 0.5rem;
  background-color: #f1f5f9;
  height: 1rem;
}

input[type='range']::-ms-track {
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
  appearance: none;
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-radius: 0.5rem;
  border-style: none;
  background-color: #f1f5f9;
  height: 1rem;
  cursor: pointer;
  padding: 0;
}

input[type='range']::-moz-range-track {
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
  appearance: none;
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-radius: 0.5rem;
  border-style: none;
  background-color: #f1f5f9;
  height: 1rem;
  cursor: pointer;
  padding: 0;
}

input[type='range']::-webkit-slider-runnable-track {
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
  appearance: none;
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-radius: 0.5rem;
  border-style: none;
  background-color: #f1f5f9;
  height: 1rem;
  cursor: pointer;
  padding: 0;
}

input[type='range']::-ms-thumb {
  cursor: ew-resize;
  appearance: none;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.25rem;
  border-radius: 9999px;
  background-color: #0f172c;
  border-color: #0f172c;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

input[type='range']::-moz-range-thumb {
  cursor: ew-resize;
  appearance: none;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.25rem;
  border-radius: 9999px;
  background-color: #0f172c;
  border-color: #0f172c;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

input[type='range']::-webkit-slider-thumb {
  cursor: ew-resize;
  appearance: none;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.25rem;
  border-radius: 9999px;
  background-color: #0f172c;
  border-color: #0f172c;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

input[type='range']::-ms-fill-lower {
  border-radius: 0.25rem;
  background-color: #dbeafe;
}

input[type='range']::-ms-fill-upper {
  border-radius: 0.25rem;
  background-color: #dbeafe;
  background-color: #f1f5f9;
}

@media (max-width: 520px) {
  .row {
    grid-template-columns: 7.5rem 1fr 4.5rem;
    gap: 0.5rem;
  }
  .energy-value {
    
  }
}
