/* Roof Calculator widget — original styles. All rules are scoped under .rc-root. */
.rc-root {
  --rc-primary: #1e3a5f;
  --rc-accent: #c17a3a;
  --rc-bg: #f6f4f0;
  --rc-surface: #ffffff;
  --rc-text: #1c1917;
  --rc-muted: #57534e;
  --rc-line: #e7e5e4;
  --rc-danger: #b42318;
  --rc-ok: #0f7b4a;
  --rc-btn-text: #ffffff;
  --rc-radius: 14px;
  --rc-font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --rc-shadow: 0 8px 30px rgba(28, 25, 23, 0.08);
  box-sizing: border-box;
  color: var(--rc-text);
  font-family: var(--rc-font);
  font-size: 16px;
  line-height: 1.5;
  max-width: 560px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
.rc-root *,
.rc-root *::before,
.rc-root *::after {
  box-sizing: border-box;
}
.rc-root button,
.rc-root input,
.rc-root select,
.rc-root textarea {
  font: inherit;
}
.rc-card {
  background: var(--rc-surface);
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius);
  box-shadow: var(--rc-shadow);
  overflow: hidden;
}
.rc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--rc-line);
}
.rc-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--rc-bg);
  flex: 0 0 auto;
}
.rc-logo-fallback {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--rc-primary);
  color: var(--rc-btn-text);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  flex: 0 0 auto;
}
.rc-header-text {
  min-width: 0;
  flex: 1;
}
.rc-company {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.rc-area {
  margin: 2px 0 0;
  color: var(--rc-muted);
  font-size: 0.85rem;
}
.rc-call {
  margin-left: auto;
  color: var(--rc-primary);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.92rem;
}
.rc-call:hover,
.rc-call:focus-visible {
  text-decoration: underline;
}
.rc-demo-badge {
  display: inline-block;
  margin: 0 18px 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f4e6d4;
  color: #7a4a12;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rc-progress-wrap {
  padding: 12px 18px 0;
}
.rc-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--rc-muted);
  margin-bottom: 6px;
}
.rc-progress {
  height: 6px;
  background: var(--rc-line);
  border-radius: 99px;
  overflow: hidden;
}
.rc-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--rc-primary);
  border-radius: inherit;
  transition: width 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
  .rc-progress > span { transition: none; }
}
.rc-body {
  padding: 16px 18px 18px;
}
.rc-root [hidden] {
  display: none !important;
}
.rc-step[hidden] {
  display: none !important;
}
.rc-step h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.rc-step h2:focus {
  outline: none;
}
.rc-help {
  margin: 0 0 16px;
  color: var(--rc-muted);
  font-size: 0.95rem;
}
.rc-field {
  margin-bottom: 12px;
}
.rc-field label,
.rc-legend {
  display: block;
  font-weight: 650;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.rc-field input[type="text"],
.rc-field input[type="tel"],
.rc-field input[type="email"],
.rc-field input[type="number"],
.rc-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--rc-text);
  min-height: 48px;
}
.rc-field input:focus-visible,
.rc-field select:focus-visible,
.rc-option:focus-visible,
.rc-btn:focus-visible,
.rc-linkbtn:focus-visible {
  outline: 3px solid var(--rc-primary);
  outline-offset: 2px;
}
.rc-options {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.rc-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  width: 100%;
  min-height: 48px;
  color: inherit;
}
.rc-option:hover {
  border-color: var(--rc-primary);
}
.rc-option[aria-checked="true"],
.rc-option.is-selected {
  border-color: var(--rc-primary);
  box-shadow: inset 0 0 0 1px var(--rc-primary);
  background: color-mix(in srgb, var(--rc-primary) 6%, #fff);
}
.rc-option input {
  margin-top: 3px;
  accent-color: var(--rc-primary);
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.rc-option-title {
  font-weight: 650;
  display: block;
}
.rc-option-note {
  display: block;
  color: var(--rc-muted);
  font-size: 0.85rem;
}
.rc-error {
  color: var(--rc-danger);
  font-size: 0.88rem;
  margin: 8px 0 0;
  min-height: 1.2em;
}
.rc-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.rc-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  min-height: 48px;
  font-weight: 700;
  cursor: pointer;
  background: var(--rc-primary);
  color: var(--rc-btn-text);
  flex: 1;
}
.rc-btn:hover {
  filter: brightness(1.05);
}
.rc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}
.rc-btn-secondary {
  background: transparent;
  color: var(--rc-text);
  border: 1px solid var(--rc-line);
  flex: 0 0 auto;
}
.rc-btn-accent {
  background: var(--rc-accent);
  color: var(--rc-btn-text);
}
.rc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--rc-muted);
}
.rc-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--rc-primary);
}
.rc-result {
  text-align: center;
}
.rc-range-label {
  margin: 0;
  color: var(--rc-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.rc-range {
  margin: 8px 0 6px;
  font-size: clamp(1.6rem, 6vw, 2.15rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--rc-primary);
  line-height: 1.15;
}
.rc-sample-flag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 700;
}
.rc-disclaimer {
  margin: 0 0 16px;
  color: var(--rc-muted);
  font-size: 0.88rem;
  text-align: left;
  background: var(--rc-bg);
  border-radius: 10px;
  padding: 12px 14px;
}
.rc-breakdown {
  text-align: left;
  font-size: 0.88rem;
  color: var(--rc-muted);
  margin: 0 0 16px;
  padding: 0;
}
.rc-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--rc-line);
}
.rc-footer {
  padding: 0 18px 16px;
  color: var(--rc-muted);
  font-size: 0.75rem;
}
.rc-out {
  padding: 8px 0 4px;
}
.rc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.rc-size-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
