.optw {
  --optw-accent: #c1122f;
  --optw-accent-dark: #8e0d22;
  --optw-text: #1a1a1a;
  --optw-muted: #6b6b6b;
  --optw-border: #dcdcdc;
  --optw-grid: #ececec;
  --optw-surface: #f4f3f2;
  --optw-bg: #fff;
  --optw-success: #1f7a3d;
  --optw-radius: 8px;
  --optw-heading-font: "Anton", "Bebas Neue", Impact, "Arial Narrow Bold", sans-serif;

  color: var(--optw-text);
  font-family: inherit;
  /* fill the column; width is needed when the parent is a flex container (Elementor containers) */
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

.optw *,
.optw *::before,
.optw *::after {
  box-sizing: inherit;
}

/* header */
.optw .optw__title {
  margin: 0;
  color: var(--optw-accent);
  font-family: var(--optw-heading-font);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 400;
  line-height: 1.2;
}

.optw .optw__subtitle {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: #444;
}

/*
 * Theme reset: global rules like `.elementor-kit-842 button` (0,1,1) and Hello Elementor's
 * `input[type=email]` beat single class selectors, so every rule here is scoped under .optw
 * (0,2,0+) and the properties those globals set are reset before the component rules below.
 */
.optw .optw__spec,
.optw .optw__range,
.optw .optw__submit,
.optw .optw__input,
.optw .optw__embed-toggle,
.optw .optw__embed-copy,
.optw .optw__embed-code {
  -webkit-appearance: none;
  appearance: none;
  width: auto;
  margin: 0;
  padding: 0;
  font: inherit;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  text-shadow: none;
  white-space: normal;
  box-shadow: none;
}

/* buttons shared */
.optw .optw__spec,
.optw .optw__range {
  font: inherit;
  color: var(--optw-text);
  background: var(--optw-bg);
  border: 1px solid var(--optw-border);
  border-radius: var(--optw-radius);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.optw .optw__spec:hover:not(:disabled):not([aria-pressed="true"]),
.optw .optw__range:hover:not(:disabled):not([aria-pressed="true"]) {
  color: var(--optw-text);
  background: var(--optw-bg);
  border-color: var(--optw-accent);
}

.optw .optw__spec[aria-pressed="true"],
.optw .optw__range[aria-pressed="true"] {
  color: var(--optw-accent);
  border: 2px solid var(--optw-accent);
}

.optw .optw__spec:focus-visible,
.optw .optw__range:focus-visible,
.optw .optw__submit:focus-visible,
.optw .optw__input:focus-visible {
  outline: 2px solid var(--optw-accent);
  outline-offset: 2px;
}

.optw .optw__spec:disabled,
.optw .optw__range:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* specs */
.optw .optw__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.optw .optw__spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 78px;
  padding: 12px 8px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.optw .optw__spec-icon {
  max-width: 100%;
  height: auto;
}

.optw .optw__spec-icon-body {
  fill: var(--optw-accent);
}

.optw .optw__spec-icon-ribs {
  stroke: var(--optw-accent-dark);
  stroke-width: 1;
  opacity: 0.6;
}

.optw .optw__spec-icon-door {
  fill: var(--optw-accent-dark);
}

/* ranges */
.optw .optw__ranges {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.optw .optw__range {
  min-width: 62px;
  min-height: 44px;
  padding: 0 16px;
}

/* chart */
.optw .optw__chart {
  position: relative;
  min-height: 300px;
  margin-top: 12px;
}

.optw .optw__svg {
  display: block;
  overflow: visible;
  touch-action: pan-y;
}

.optw .optw__grid line {
  stroke: var(--optw-grid);
  stroke-width: 1;
}

.optw .optw__grid text,
.optw .optw__avg-label {
  fill: var(--optw-muted);
  font-size: 13px;
}

.optw .optw__avg-line {
  stroke: #9a9a9a;
  stroke-width: 1;
  stroke-dasharray: 5 4;
}

.optw .optw__line {
  fill: none;
  stroke: var(--optw-accent);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.optw .optw__dot,
.optw .optw__focus circle {
  fill: var(--optw-accent);
}

.optw .optw__focus {
  opacity: 0;
  pointer-events: none;
}

.optw .optw__focus.is-visible {
  opacity: 1;
}

.optw .optw__focus line {
  stroke: var(--optw-muted);
  stroke-width: 1;
}

.optw .optw__focus circle {
  stroke: var(--optw-bg);
  stroke-width: 2;
}

.optw .optw__overlay {
  fill: transparent;
  cursor: crosshair;
}

.optw .optw__tooltip {
  position: absolute;
  transform: translate(10px, -130%);
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--optw-text);
  color: #fff;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
}

.optw .optw__tooltip.is-flipped {
  transform: translate(calc(-100% - 10px), -130%);
}

.optw .optw__chart-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  margin: 0;
  padding: 16px;
  text-align: center;
  color: var(--optw-muted);
  background: var(--optw-surface);
  border-radius: var(--optw-radius);
}

.optw.is-loading .optw__chart-status {
  animation: optw-pulse 1.4s ease-in-out infinite;
}

.optw .optw__chart-status.is-error {
  color: var(--optw-accent);
}

@keyframes optw-pulse {
  50% {
    opacity: 0.55;
  }
}

/* stats */
.optw .optw__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
}

.optw .optw__stat {
  padding: 14px 16px;
  background: var(--optw-surface);
  border-radius: var(--optw-radius);
}

.optw .optw__stat dt {
  display: flex;
  flex-direction: column;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #444;
}

.optw .optw__stat dd {
  margin: 6px 0 0;
}

.optw .optw__stat-value {
  font-family: var(--optw-heading-font);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

/* embed */
.optw .optw__embed {
  margin-top: 12px;
}

.optw .optw__embed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--optw-text);
  background: var(--optw-bg);
  border: 1px solid var(--optw-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.optw .optw__embed-icon {
  flex-shrink: 0;
  color: var(--optw-accent);
}

.optw .optw__embed-chevron {
  flex-shrink: 0;
  color: var(--optw-muted);
  transition: transform 0.2s;
}

.optw .optw__embed-toggle:hover:not(:disabled),
.optw .optw__embed-toggle[aria-expanded="true"] {
  color: var(--optw-accent);
  background: #fdf2f4;
  border-color: var(--optw-accent);
}

.optw .optw__embed-toggle:hover:not(:disabled) .optw__embed-chevron,
.optw .optw__embed-toggle[aria-expanded="true"] .optw__embed-chevron {
  color: var(--optw-accent);
}

.optw .optw__embed-toggle[aria-expanded="true"] .optw__embed-chevron {
  transform: rotate(180deg);
}

.optw .optw__embed-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.optw .optw__embed-toggle:focus-visible,
.optw .optw__embed-copy:focus-visible,
.optw .optw__embed-code:focus-visible {
  outline: 2px solid var(--optw-accent);
  outline-offset: 2px;
}

.optw .optw__embed-panel {
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--optw-surface);
  border-radius: var(--optw-radius);
}

.optw .optw__embed-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  color: #444;
}

.optw .optw__embed-code {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--optw-text);
  background: var(--optw-bg);
  border: 1px solid var(--optw-border);
  border-radius: var(--optw-radius);
  resize: vertical;
}

.optw .optw__embed-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.optw .optw__embed-copy {
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  background: var(--optw-accent);
  border: 1px solid var(--optw-accent);
  border-radius: var(--optw-radius);
  cursor: pointer;
}

.optw .optw__embed-copy:hover {
  background: var(--optw-accent-dark);
}

.optw .optw__embed-status {
  font-size: 0.8125rem;
  color: var(--optw-success);
}

/* form */
.optw .optw__zoho-frame {
  display: none;
}

.optw .screen-reader-text,
.optw .optw__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.optw .optw__form {
  position: relative;
  margin-top: 18px;
  padding: 22px 20px;
  background: var(--optw-surface);
  border-radius: 12px;
}

.optw .optw__form-title {
  margin: 0;
  color: var(--optw-accent);
  font-family: var(--optw-heading-font);
  font-size: 1.375rem;
  font-weight: 400;
}

.optw .optw__form-text {
  margin: 4px 0 0;
  font-size: 0.9375rem;
  color: #444;
}

.optw .optw__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.optw .optw__field {
  display: flex;
  flex-direction: column;
}

.optw .optw__input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  font: inherit;
  color: var(--optw-text);
  background: var(--optw-bg);
  border: 1px solid var(--optw-border);
  border-radius: var(--optw-radius);
}

.optw .optw__input:disabled {
  background: #fafafa;
  cursor: not-allowed;
}

.optw .optw__input[aria-invalid="true"] {
  border-color: var(--optw-accent);
}

.optw .optw__field-error {
  min-height: 1em;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--optw-accent);
}

.optw .optw__submit {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  font: inherit;
  color: #fff;
  background: var(--optw-accent);
  border: 1px solid var(--optw-accent);
  border-radius: var(--optw-radius);
  cursor: pointer;
  transition: background 0.15s;
}

.optw .optw__submit:hover:not(:disabled) {
  background: var(--optw-accent-dark);
}

.optw .optw__submit:disabled {
  color: var(--optw-text);
  background: var(--optw-surface);
  border-color: var(--optw-border);
  opacity: 1;
}

.optw .optw__form-message {
  margin: 12px 0 0;
  padding: 10px 14px;
  font-size: 0.875rem;
  border-radius: var(--optw-radius);
  background: var(--optw-bg);
}

.optw .optw__form-message.is-success {
  color: var(--optw-success);
  border-left: 3px solid var(--optw-success);
}

.optw .optw__form-message.is-error {
  color: var(--optw-accent);
  border-left: 3px solid var(--optw-accent);
}

/* mobile */
@media (max-width: 640px) {
  .optw .optw__specs {
    gap: 8px;
  }

  .optw .optw__spec {
    min-height: 68px;
    font-size: 0.8125rem;
  }

  .optw .optw__ranges {
    justify-content: stretch;
  }

  .optw .optw__range {
    flex: 1;
  }

  .optw .optw__chart,
  .optw .optw__chart-status {
    min-height: 240px;
  }

  .optw .optw__stats,
  .optw .optw__fields {
    grid-template-columns: 1fr;
  }

  .optw .optw__stats {
    gap: 10px;
  }

  .optw .optw__form {
    padding: 18px 16px;
  }
}

/* standalone embed page (iframe on third-party sites) */
.optw-embed {
  margin: 0;
  padding: 12px 16px 8px;
  color: #1a1a1a;
  background: #fff;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.optw-embed__brand {
  margin-bottom: 10px;
}

.optw-embed__brand a {
  display: inline-block;
  color: #c1122f;
  font-weight: 700;
  text-decoration: none;
}

.optw-embed__brand img {
  display: block;
  width: auto;
  height: 28px;
}

.optw-embed__credit {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  text-align: right;
}

.optw-embed__credit a {
  color: #6b6b6b;
}

/* keep the stats in one row so the fixed iframe height fits on phones */
.optw-embed .optw .optw__stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 640px) {
  .optw-embed .optw .optw__stat {
    padding: 10px;
  }

  .optw-embed .optw .optw__stat-value {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .optw *,
  .optw *::before,
  .optw *::after {
    animation: none !important;
    transition: none !important;
  }
}
