.rmx-config {
  --rmx-ink: #1e293b;
  --rmx-muted: #475569;
  --rmx-accent: #fc361d;
  --rmx-accent-dark: #d92b16;
  --rmx-line: #d1d5db;
  --rmx-panel: #fff;
  --rmx-bg: #f0f5fa;
  --rmx-ok: #157347;
  --rmx-warn: #926300;
  --rmx-error: #cc1818;
  --rmx-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  color: var(--rmx-ink);
  font-family: inherit;
  line-height: 1.45;
  max-width: 1100px;
  width: 100%;
}
.rmx-config *,
.rmx-config *::before,
.rmx-config *::after { box-sizing: border-box; }
.rmx-config:not([data-rmx-ready]):empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rmx-line);
  border-radius: 4px;
  background: var(--rmx-panel);
  color: var(--rmx-muted);
}
.rmx-config:not([data-rmx-ready]):empty::before {
  content: "Loading configurator…";
  font-size: 0.92rem;
}
.rmx-config .rmx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 20px;
  align-items: start;
}
.rmx-config .rmx-card {
  background: var(--rmx-panel);
  border: 1px solid var(--rmx-line);
  border-radius: 4px;
  box-shadow: var(--rmx-shadow);
}
.rmx-config .rmx-form { padding: 4px 4px 12px; }
.rmx-config .rmx-group {
  padding: 16px 18px 8px;
  border-bottom: 1px solid var(--rmx-line);
}
.rmx-config .rmx-group:last-child { border-bottom: 0; }
.rmx-config .rmx-group h3 {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rmx-muted);
  font-weight: 700;
}
.rmx-config .rmx-field {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.rmx-config .rmx-field label {
  font-size: 0.92rem;
  color: var(--rmx-ink);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.rmx-config .rmx-help-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--rmx-accent);
  color: var(--rmx-accent);
  background: transparent;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.rmx-config .rmx-help-btn:hover,
.rmx-config .rmx-help-btn:focus-visible {
  background: var(--rmx-accent);
  color: #fff;
  outline: none;
}
.rmx-config .rmx-locked {
  font-size: 0.72rem;
  color: var(--rmx-warn);
}
.rmx-config select,
.rmx-config input[type="number"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  color: var(--rmx-ink);
  box-shadow: var(--rmx-shadow);
}
.rmx-config select:hover,
.rmx-config input[type="number"]:hover {
  border-color: #cbd5e1;
}
.rmx-config select:focus,
.rmx-config input[type="number"]:focus {
  outline: 2px solid rgba(252, 54, 29, 0.28);
  outline-offset: 1px;
  border-color: var(--rmx-accent);
}
.rmx-config select:disabled,
.rmx-config input:disabled {
  background: var(--rmx-bg);
  color: var(--rmx-muted);
  box-shadow: none;
}
.rmx-config[aria-busy="true"] select:disabled,
.rmx-config[aria-busy="true"] input:disabled {
  background: #fff;
  color: var(--rmx-ink);
  box-shadow: var(--rmx-shadow);
}
.rmx-config .rmx-result { padding: 16px; position: sticky; top: 12px; }
.rmx-config .rmx-product {
  margin: -16px -16px 16px;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--rmx-line);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.rmx-config .rmx-product[hidden] { display: none; }
.rmx-config .rmx-product img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.rmx-config .rmx-result h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rmx-ink);
}
.rmx-config button.rmx-pn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  border: 0;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  line-height: 1.35;
  padding: 12px;
  border-radius: 4px;
  background: var(--rmx-ink);
  color: #fff;
  cursor: pointer;
  word-break: break-word;
}
.rmx-config button.rmx-pn:hover { background: #0f172a; }
.rmx-config button.rmx-pn:focus-visible {
  outline: 2px solid rgba(252, 54, 29, 0.45);
  outline-offset: 2px;
}
.rmx-config button.rmx-pn.rmx-error { background: var(--rmx-error); cursor: default; }
.rmx-config[aria-busy="true"] button:disabled { cursor: wait; }
.rmx-config button.rmx-pn [data-rmx="partNumber"] {
  flex: 1 1 auto;
  min-width: 0;
}
.rmx-config .rmx-pn-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  opacity: 0.85;
}
.rmx-config .rmx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.rmx-config button.rmx-btn {
  border: 0;
  border-radius: 4px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  background: var(--rmx-accent);
  color: #fff;
  box-shadow: var(--rmx-shadow);
}
.rmx-config button.rmx-btn:hover { background: var(--rmx-accent-dark); }
.rmx-config button.rmx-btn:focus-visible {
  outline: 2px solid rgba(252, 54, 29, 0.45);
  outline-offset: 2px;
}
.rmx-config button.rmx-btn-secondary {
  background: var(--rmx-bg);
  color: var(--rmx-ink);
}
.rmx-config button.rmx-btn-secondary:hover { background: #e2e8f0; }
.rmx-config .rmx-status {
  min-height: 1.2em;
  margin: 0 0 10px;
  color: var(--rmx-ok);
  font-size: 0.85rem;
}
.rmx-config .rmx-hint {
  margin: 8px 0 0;
  color: var(--rmx-muted);
  font-size: 0.85rem;
}
.rmx-config .rmx-facts,
.rmx-config .rmx-notes,
.rmx-config .rmx-docs {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--rmx-muted);
  font-size: 0.88rem;
}
.rmx-config .rmx-docs a {
  color: var(--rmx-accent);
  text-decoration: none;
}
.rmx-config .rmx-docs a:hover,
.rmx-config .rmx-docs a:focus-visible {
  text-decoration: underline;
  outline: none;
}
.rmx-config .rmx-help-layer {
  position: fixed;
  inset: 0;
  background: rgba(30, 41, 59, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 99999;
}
.rmx-config .rmx-help-layer[hidden] { display: none; }
.rmx-config .rmx-help-card {
  background: #fff;
  border-radius: 4px;
  max-width: min(720px, 92vw);
  max-height: 90vh;
  overflow: auto;
  padding: 10px;
  box-shadow: var(--rmx-shadow);
}
.rmx-config .rmx-help-card img {
  display: block;
  max-width: 100%;
  height: auto;
}
.rmx-config .rmx-help-card .rmx-btn { margin-top: 8px; float: right; }
@media (max-width: 800px) {
  .rmx-config .rmx-layout,
  .rmx-config .rmx-field { grid-template-columns: 1fr; }
  .rmx-config .rmx-result { position: static; }
  .rmx-config .rmx-product {
    min-height: 120px;
    padding: 12px;
  }
  .rmx-config .rmx-product img { max-height: 140px; }
}
.contact-cf7-rotomation { scroll-margin-top: 88px; }
