/* V2.6.9 design tokens: override these variables from Appearance > Custom Frontend CSS or theme CSS. */
:root{
  --router256-accent:#a00000;
  --router256-radius:18px;
  --router256-card-radius:var(--router256-radius);
  --router256-card-min-height:315px;
  --router256-card-padding:24px;
  --router256-card-shadow:0 10px 30px rgba(90,0,0,.23);
  --router256-card-title-size:clamp(1.25rem,2.2vw,1.6rem);
  --router256-card-meta-size:.86rem;
  --router256-card-headline-size:1.18rem;
  --router256-chip-font-size:.84rem;
  --router256-chip-radius:999px;
  --router256-chip-padding:8px 11px;
  --router256-modal-radius:18px;
  --router256-modal-title-size:clamp(1.28rem,2.2vw,1.55rem);
  --router256-modal-intro-size:1.05rem;
  --router256-step-title-size:1.32rem;
  --router256-step-copy-size:1.06rem;
  --router256-step-kicker-size:.82rem;
  --router256-field-label-size:1.02rem;
  --router256-field-label-weight:850;
  --router256-input-height:56px;
  --router256-input-font-size:1.03rem;
  --router256-input-radius:10px;
  --router256-input-border:#cbd5e1;
  --router256-input-bg:#f8fafc;
  --router256-base-field-gap-y:26px;
  --router256-base-field-gap-x:16px;
  --router256-dynamic-question-gap:26px;
}

.router256-provider-loop{
  margin:28px 0;
  font-family:inherit;
}
.router256-loop-head{display:flex;gap:14px;align-items:center;margin-bottom:16px}
.router256-loop-icon{width:58px;height:58px;object-fit:contain;background:transparent!important}
.router256-loop-emoji{font-size:42px;line-height:1}
.router256-loop-head h2{margin:0;font-size:clamp(1.8rem,3vw,2.5rem);line-height:1.05;letter-spacing:-.02em}
.router256-loop-head p{margin:6px 0 0;color:#4b5563;font-size:1.05rem}
.router256-carousel-wrap{position:relative}
.router256-card-track{display:grid;gap:16px}
.router256-display-carousel .router256-card-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 10px 18px 4px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.router256-display-grid .router256-card-track{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.router256-display-list .router256-card-track{grid-template-columns:1fr}
.router256-provider-card{min-height:var(--router256-card-min-height);border-radius:var(--router256-card-radius);background:var(--router256-card-bg,#111827) center/cover no-repeat;color:#fff;box-shadow:var(--router256-card-shadow);overflow:hidden;scroll-snap-align:start;position:relative}
.router256-display-carousel .router256-provider-card{flex:0 0 min(88vw,430px)}
.router256-card-inner{min-height:var(--router256-card-min-height);display:flex;flex-direction:column;justify-content:flex-end;padding:var(--router256-card-padding);background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.45) 48%,rgba(0,0,0,.82));box-sizing:border-box}
.router256-card-top{display:flex;align-items:center;gap:16px;margin-bottom:auto}
.router256-provider-logo{width:76px;height:76px;object-fit:contain;background:transparent!important;background-color:transparent!important;border-radius:0;padding:0!important;box-shadow:none!important;border:0!important;flex:0 0 auto}
.router256-card-top h3{margin:0;font-size:var(--router256-card-title-size);line-height:1.1;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.58)}
.router256-card-top span{display:block;font-size:.8rem;color:#fbbf24;margin-top:4px}
.router256-card-chips{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 0}
.router256-card-chips > span{display:inline-flex;align-items:center;border:1px solid rgba(255,255,255,.32);background:rgba(255,255,255,.12);color:#fff;border-radius:var(--router256-chip-radius);padding:var(--router256-chip-padding);font-size:var(--router256-chip-font-size);font-weight:800;line-height:1;backdrop-filter:blur(2px)}
.router256-card-headline{font-size:var(--router256-card-headline-size);line-height:1.18;margin:16px 0 18px;text-shadow:0 1px 2px rgba(0,0,0,.58)}
.router256-open-modal,.router256-open-direct{width:100%;min-height:48px;border:0;background:var(--router256-accent);color:#fff;border-radius:10px;padding:16px 18px;font-size:1.12rem;font-weight:900;cursor:pointer;box-shadow:0 0 14px rgba(160,0,0,.42);display:flex;align-items:center;justify-content:center;text-decoration:none;text-align:center}
.router256-open-modal:hover,.router256-open-direct:hover{filter:brightness(1.07)}
.router256-open-modal:focus-visible,.router256-open-direct:focus-visible,.router256-carousel-controls button:focus-visible{outline:3px solid rgba(59,130,246,.78);outline-offset:3px}
.router256-carousel-controls{display:flex;align-items:center;justify-content:center;gap:13px;margin:8px 0 0}
.router256-carousel-controls button{width:40px;height:40px;border-radius:999px;border:1px solid #d1d5db;background:#fff;color:#111827;font-size:28px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.router256-carousel-dots{display:flex;gap:7px;align-items:center}
.router256-carousel-dots span{width:7px;height:7px;border-radius:99px;background:#cbd5e1;display:block;transition:.2s ease}
.router256-carousel-dots span.is-active{width:18px;background:var(--router256-accent)}
.router256-empty,.router256-loop-notice{padding:18px;border:1px solid #d7dce6;border-radius:12px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.router256-empty strong{display:block;color:#111827;font-size:1rem;margin-bottom:4px}
.router256-empty p{margin:0;color:#4b5563}
.router256-modal{display:none;position:fixed;inset:0;z-index:999999}
.router256-modal.is-open{display:block}
.router256-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.68);backdrop-filter:blur(2px)}
.router256-modal-panel{position:relative;z-index:1;width:min(94vw,560px);max-height:94vh;overflow:auto;background:#fff;border-radius:var(--router256-modal-radius);box-shadow:0 22px 70px rgba(15,23,42,.35);margin:3vh auto;color:#111827}
.router256-modal-panel:focus{outline:none}
.router256-modal-head{position:relative;display:flex;gap:14px;align-items:center;background:#111827;color:#fff;padding:22px 48px 20px 22px;border-radius:var(--router256-modal-radius) var(--router256-modal-radius) 0 0}
.router256-modal-logo{width:72px;height:72px;object-fit:contain;background:transparent!important;background-color:transparent!important;border-radius:0;padding:0!important;display:none;flex:0 0 auto;box-shadow:none!important;border:0!important}
.router256-modal-logo.has-logo{display:block}
.router256-modal-head h3{margin:0;color:#fff;font-size:var(--router256-modal-title-size);line-height:1.12}
.router256-modal-head p{margin:5px 0 0;color:#cbd5e1;font-size:var(--router256-modal-intro-size);line-height:1.3}
.router256-close{position:absolute;right:12px;top:8px;background:transparent;border:0;color:#fff;font-size:32px;line-height:1;cursor:pointer}
.router256-progress{height:5px;background:#e5e7eb;overflow:hidden}
.router256-progress span{display:block;height:100%;background:var(--router256-accent);transition:width .22s ease}
.router256-form{padding:22px;display:block}
.router256-step{display:none}
.router256-step.is-active{display:block}
.router256-step-kicker{text-transform:uppercase;letter-spacing:.08em;font-size:var(--router256-step-kicker-size);color:#6b7280;font-weight:900;margin-bottom:6px}
.router256-step h4{margin:0 0 4px;font-size:var(--router256-step-title-size);color:#111827;line-height:1.15}
.router256-step-copy{margin:0 0 16px;color:#4b5563;font-size:var(--router256-step-copy-size);line-height:1.35}
.router256-base-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.router256-field{display:grid;gap:6px;font-size:.88rem;font-weight:800;color:#111827}
.router256-field input,.router256-field select,.router256-field textarea,.router256-dynamic-questions input,.router256-dynamic-questions select,.router256-dynamic-questions textarea{border:1px solid var(--router256-input-border);border-radius:var(--router256-input-radius);background:var(--router256-input-bg);color:#111827;padding:12px;font:inherit;width:100%;box-sizing:border-box;min-height:44px}
.router256-field input:focus,.router256-field select:focus,.router256-field textarea:focus,.router256-dynamic-questions input:focus,.router256-dynamic-questions select:focus,.router256-dynamic-questions textarea:focus{outline:3px solid rgba(59,130,246,.20);border-color:#3b82f6;background:#fff}
.router256-field input.is-invalid,.router256-field select.is-invalid,.router256-field textarea.is-invalid,.router256-dynamic-questions input.is-invalid,.router256-dynamic-questions select.is-invalid,.router256-dynamic-questions textarea.is-invalid,.router256-consent input.is-invalid{border-color:#b91c1c;background:#fff7f7}
.router256-field-error{font-style:normal;color:#b91c1c;font-size:.78rem;min-height:0;font-weight:800}
.router256-dynamic-questions{display:grid;gap:14px;margin-top:14px}
.router256-dynamic-questions textarea,.router256-field textarea{min-height:105px;resize:vertical}
.router256-consent{display:flex;gap:9px;font-size:.84rem;line-height:1.35;color:#374151;margin-top:14px;align-items:flex-start}
.router256-consent input{margin-top:3px;min-width:16px}
.router256-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.router256-actions button,.router256-confirmation button{border:0;border-radius:9px;padding:12px 16px;min-height:44px;font-weight:900;cursor:pointer}
.router256-actions button[type=submit],.router256-next,.router256-confirmation button{background:var(--router256-accent);color:#fff}
.router256-actions button[type=button]:not(.router256-next){background:#eef2f7;color:#111827}
.router256-status{text-align:center;font-size:.93rem;min-height:20px;margin-top:10px}
.router256-status.is-error{color:#b91c1c}
.router256-status.is-success{color:#047857}
.router256-confirmation{padding:28px 24px;text-align:center}
.router256-confirmation img{width:86px;height:86px;object-fit:contain;background:transparent!important;margin:0 auto 12px;display:block}
.router256-confirmation h4{margin:0 0 8px;font-size:1.35rem;color:#111827;line-height:1.15}
.router256-confirmation p{margin:0 auto 18px;color:#4b5563;line-height:1.45;max-width:410px}

.router256-confirm-actions{display:grid;gap:12px;max-width:430px;margin:0 auto 18px}
.router256-confirm-action{display:grid;gap:8px}
.router256-confirm-action-link{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 16px;border-radius:10px;font-weight:900;text-decoration:none;line-height:1.2}
.router256-confirm-action--primary .router256-confirm-action-link{background:var(--router256-accent);color:#fff}
.router256-confirm-action--secondary .router256-confirm-action-link{background:#eef2f7;color:#111827;border:1px solid #dbe2ea}
.router256-phone-fallback{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;color:#374151;font-size:.9rem}
.router256-phone-fallback span{font-weight:800}
.router256-copy-phone{border:1px solid #cbd5e1!important;background:#fff!important;color:#111827!important;border-radius:8px!important;padding:7px 10px!important;min-height:36px!important;font-size:.82rem!important}
.router256-confirm-done{background:#eef2f7!important;color:#111827!important}
.router256-inline-confirmation .router256-confirm-actions{margin:14px 0 0;max-width:none}
.router256-honey{position:absolute!important;left:-99999px!important;opacity:0!important}
.router256-modal-open{overflow:hidden}
@media(max-width:620px){
  .router256-base-fields{grid-template-columns:1fr}
  .router256-modal-head{align-items:flex-start}
  .router256-provider-card,.router256-card-inner{min-height:292px}
  .router256-card-inner{padding:20px}
  .router256-provider-logo{width:64px;height:64px}
  .router256-modal-logo{width:62px;height:62px}
  .router256-actions{flex-direction:column-reverse}
  .router256-actions button{width:100%}
}

/* v2.4 chip icon styling */
.router256-card-chips .router256-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(255,255,255,.28);
  color:#fff;
  border-radius:999px;
  padding:6px 9px;
  font-size:.78rem;
  font-weight:850;
  line-height:1;
  backdrop-filter:blur(2px);
}
.router256-chip-icon{
  width:14px;
  height:14px;
  flex:0 0 auto;
  color:currentColor;
}
.router256-chip--action{background:rgba(37,99,235,.88)}
.router256-chip--offer{background:rgba(202,138,4,.90)}
.router256-chip--status{background:rgba(22,163,74,.88)}
.router256-chip--location{background:rgba(15,23,42,.72)}
.router256-chip--urgency{background:rgba(185,28,28,.90)}
.router256-chip--service{background:rgba(79,70,229,.88)}
.router256-chip--custom{background:rgba(255,255,255,.12)}

/* V2.6 inline profile/off-canvas router form */
.router256-inline-form-wrap {
  width: 100%;
  max-width: 680px;
  color: #172033;
}
.router256-inline-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.router256-inline-head h3 {
  margin: 0 0 5px;
  font-size: 22px;
  line-height: 1.15;
}
.router256-inline-head p {
  margin: 0;
  color: #5b6575;
  line-height: 1.45;
}
.router256-inline-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: transparent;
  border-radius: 10px;
  flex: 0 0 auto;
}
.router256-inline-section {
  margin: 0 0 18px;
}
.router256-inline-section h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #111827;
}
.router256-inline-form .router256-actions {
  justify-content: flex-start;
}
.router256-inline-form .router256-actions button[type="submit"] {
  width: 100%;
}
.router256-inline-confirmation {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
  border-radius: 14px;
  padding: 16px;
}
.router256-inline-confirmation h4 {
  margin: 0 0 6px;
}
.router256-inline-confirmation p {
  margin: 0;
}

/* V2.6.2: keep chips visually attached to cards during carousel movement only. */
.router256-display-carousel .router256-card-chips,
.router256-display-carousel .router256-card-chips .router256-chip,
.router256-display-carousel .router256-card-chips .router256-chip *,
.router256-display-carousel .router256-card-chips > span,
.router256-display-carousel .router256-card-chips > span * {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  will-change: auto !important;
}
.router256-display-carousel .router256-card-chips .router256-chip,
.router256-display-carousel .router256-card-chips > span {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.router256-debug{
  margin:18px 0 0;
  border:1px solid #f59e0b;
  background:#fffbeb;
  color:#111827;
  border-radius:12px;
  padding:12px;
  font-size:13px;
}
.router256-debug summary{cursor:pointer;font-weight:900;color:#92400e}
.router256-debug-scroll{overflow:auto;margin-top:10px}
.router256-debug table{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden}
.router256-debug th,.router256-debug td{border-bottom:1px solid #fde68a;padding:8px;text-align:left;vertical-align:top;white-space:nowrap}
.router256-debug th{font-size:11px;text-transform:uppercase;letter-spacing:.05em;background:#fef3c7;color:#78350f}
.router256-debug tr.included td{background:#f0fdf4}
.router256-debug tr.limited td{background:#eff6ff}
.router256-debug tr.excluded td{background:#fff7ed}
.router256-debug code{background:#f3f4f6;border-radius:4px;padding:1px 4px}
@media(max-width:620px){
  .router256-carousel-controls button{width:44px;height:44px}
}

/* V2.6.4: modal readability, schema control fallback, and tighter field rhythm */
.router256-card-top h3 {
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.018em;
}
.router256-card-meta-line,
.router256-card-top span,
.router256-provider-card small {
  display: block;
  margin-top: 5px;
  font-size: var(--router256-card-meta-size) !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  color: #ffd166 !important;
  opacity: 1 !important;
  max-width: 94%;
}
.router256-card-headline {
  font-size: var(--router256-card-headline-size);
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.42);
}
.router256-card-chips .router256-chip {
  font-size: var(--router256-chip-font-size);
  font-weight: 900;
  padding: var(--router256-chip-padding);
  min-height: 31px;
}
.router256-chip-icon {
  width: 15px;
  height: 15px;
}
.router256-modal-head h3 {
  font-size: var(--router256-modal-title-size);
  line-height: 1.12;
  font-weight: 850;
}
.router256-modal-head p {
  font-size: var(--router256-modal-intro-size);
  line-height: 1.38;
  color: #e5e7eb;
  max-width: 430px;
}
.router256-form {
  padding: 22px 22px 20px;
}
.router256-step h4 {
  font-size: 1.22rem;
  line-height: 1.18;
  margin-bottom: 5px;
}
.router256-step-copy {
  font-size: var(--router256-step-copy-size);
  line-height: 1.42;
  margin-bottom: 14px;
  color: #4b5563;
}
.router256-base-fields {
  gap: var(--router256-base-field-gap-y) var(--router256-base-field-gap-x);
}
.router256-field,
.router256-question {
  display: grid;
  gap: 7px;
  margin: 0;
  min-width: 0;
}
.router256-field > span,
.router256-question-label {
  display: block;
  font-size: var(--router256-field-label-size);
  line-height: 1.35;
  font-weight: var(--router256-field-label-weight);
  color: #1f2937;
  margin: 0;
}
.router256-dynamic-questions {
  display: grid;
  gap: var(--router256-dynamic-question-gap);
  margin-top: 14px;
}
.router256-field input,
.router256-field select,
.router256-field textarea,
.router256-dynamic-questions input,
.router256-dynamic-questions select,
.router256-dynamic-questions textarea {
  max-width: 100%;
  min-width: 0;
  min-height: var(--router256-input-height);
  padding: 12px 14px;
  font-size: var(--router256-input-font-size);
  line-height: 1.35;
  font-weight: 600;
}
.router256-field textarea,
.router256-dynamic-questions textarea {
  min-height: 96px;
}
.router256-dynamic-questions select {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.router256-dynamic-questions option {
  font-size: 1rem;
  line-height: 1.4;
}
.router256-choice-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.router256-choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f8fafc;
  color: #111827;
  font-size: .98rem;
  line-height: 1.35;
  font-weight: 650;
  cursor: pointer;
}
.router256-choice input {
  width: auto !important;
  min-height: auto !important;
  margin: 2px 0 0;
  flex: 0 0 auto;
}
.router256-choice span {
  min-width: 0;
  white-space: normal;
}
.router256-consent {
  font-size: .94rem;
  line-height: 1.42;
}
@media (max-width: 760px) {
  .router256-modal-panel {
    width: min(96vw, 560px);
  }
  .router256-base-fields {
    grid-template-columns: 1fr;
  }
  .router256-form {
    padding: 20px 18px;
  }
}

/* V2.6.5: dynamic question visibility and tighter modal rhythm */
.router256-modal-head p,
.router256-step-copy {
  font-size: 1.04rem !important;
  line-height: 1.42 !important;
}

.router256-step-kicker {
  font-size: .76rem !important;
  letter-spacing: .09em !important;
  margin-bottom: 7px !important;
}

.router256-form {
  padding: 20px 22px 18px !important;
}

.router256-base-fields {
  gap: 10px 14px !important;
}

.router256-dynamic-questions {
  gap: 12px !important;
  margin-top: 16px !important;
}

.router256-field,
.router256-question {
  gap: 5px !important;
  margin-bottom: 0 !important;
}

.router256-field > span,
.router256-question-label {
  font-size: var(--router256-field-label-size) !important;
  line-height: 1.28 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

/* Hard target the actual schema-generated controls so they cannot appear invisible until focus. */
.router256-question > input,
.router256-question > select,
.router256-question > textarea,
.router256-question-control,
.router256-dynamic-questions .router256-question-control {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 50px !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  visibility: visible !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  border-radius: var(--router256-input-radius) !important;
  padding: 12px 14px !important;
  font-size: 1rem !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
}

.router256-question > input:focus,
.router256-question > select:focus,
.router256-question > textarea:focus,
.router256-question-control:focus {
  outline: 3px solid rgba(59,130,246,.22) !important;
  border-color: #3b82f6 !important;
  background: #fff !important;
}

.router256-question-control--textarea,
.router256-question > textarea {
  min-height: 96px !important;
  resize: vertical !important;
}

.router256-question-control--file {
  padding-top: 11px !important;
}

.router256-choice-group.router256-question-control {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: grid !important;
  gap: 8px !important;
}

.router256-choice {
  margin: 0 !important;
}

.router256-question > select,
.router256-question-control--select {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.router256-question > select option,
.router256-question-control--select option {
  white-space: normal !important;
  max-width: 100% !important;
}

@media (max-width: 760px) {
  .router256-modal-panel {
    width: min(96vw, 560px) !important;
  }
  .router256-form {
    padding: 18px 16px !important;
  }
  .router256-base-fields,
  .router256-dynamic-questions {
    gap: 11px !important;
  }
}


/* V2.6.6: keep dynamic schema question titles visible and independent from field-control CSS. */
.router256-dynamic-questions .router256-question-label,
.router256-dynamic-questions .router256-question-title,
.router256-question > .router256-question-label,
.router256-question > [data-router256-question-label="1"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  color: #0f172a !important;
  font-size: 1.05rem !important;
  line-height: 1.32 !important;
  font-weight: var(--router256-field-label-weight) !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
}

.router256-question {
  display: block !important;
}

.router256-question .router256-question-control,
.router256-question > input,
.router256-question > select,
.router256-question > textarea {
  margin-top: 0 !important;
}


/* V2.6.7: dynamic question rhythm hardening.
   Prevent schema controls from visually overlapping the next question label. */
.router256-dynamic-questions {
  display: block !important;
  gap: 0 !important;
  margin-top: 18px !important;
}

.router256-dynamic-questions .router256-question,
.router256-question {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: auto !important;
  row-gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 var(--router256-dynamic-question-gap) 0 !important;
  padding: 0 !important;
  position: relative !important;
  overflow: visible !important;
  clear: both !important;
  isolation: isolate !important;
  box-sizing: border-box !important;
}

.router256-dynamic-questions .router256-question:last-child,
.router256-question:last-child {
  margin-bottom: 0 !important;
}

.router256-dynamic-questions .router256-question-title,
.router256-question > .router256-question-title,
.router256-question > .router256-question-label,
.router256-question > [data-router256-question-label="1"] {
  display: block !important;
  width: 100% !important;
  position: relative !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.router256-dynamic-questions .router256-question-control,
.router256-question .router256-question-control,
.router256-question > input:not([type="hidden"]),
.router256-question > select,
.router256-question > textarea {
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.router256-question > input[type="hidden"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.router256-field-error {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* V2.6.8: modal rhythm, base-field label spacing, and safer popup heading. */
.router256-modal-head {
  gap: 18px !important;
  padding: 24px 56px 22px 26px !important;
  align-items: center !important;
}
.router256-modal-head h3 {
  font-size: var(--router256-modal-title-size) !important;
  line-height: 1.16 !important;
  font-weight: 900 !important;
  letter-spacing: -.015em !important;
  overflow-wrap: anywhere !important;
}
.router256-modal-head p {
  font-size: var(--router256-modal-intro-size) !important;
  line-height: 1.42 !important;
  max-width: 460px !important;
}
.router256-step-kicker {
  font-size: var(--router256-step-kicker-size) !important;
  line-height: 1.25 !important;
  margin-bottom: 12px !important;
}
.router256-step h4 {
  font-size: var(--router256-step-title-size) !important;
  line-height: 1.2 !important;
  font-weight: var(--router256-field-label-weight) !important;
  margin: 0 0 8px !important;
}
.router256-step-copy {
  font-size: var(--router256-step-copy-size) !important;
  line-height: 1.45 !important;
  margin: 0 0 22px !important;
}
.router256-base-fields {
  gap: var(--router256-base-field-gap-y) var(--router256-base-field-gap-x) !important;
  align-items: start !important;
}
.router256-field {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  row-gap: 10px !important;
  min-width: 0 !important;
  overflow: visible !important;
}
.router256-field > span {
  display: block !important;
  position: static !important;
  font-size: var(--router256-field-label-size) !important;
  line-height: 1.32 !important;
  font-weight: var(--router256-field-label-weight) !important;
  color: #0f172a !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
}
.router256-field input,
.router256-field select,
.router256-field textarea {
  display: block !important;
  position: relative !important;
  min-height: var(--router256-input-height) !important;
  font-size: var(--router256-input-font-size) !important;
  line-height: 1.35 !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  float: none !important;
  clear: both !important;
}
.router256-dynamic-questions {
  margin-top: 30px !important;
}
@media (max-width: 620px) {
  .router256-modal-head {
    padding: 22px 50px 20px 20px !important;
    gap: 13px !important;
  }
  .router256-modal-logo {
    width: 58px !important;
    height: 58px !important;
  }
  .router256-base-fields {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* V2.7.0: Appearance Builder token bridge. These selectors intentionally map the new admin controls to frontend variables. */
.router256-provider-card { min-height: var(--router256-card-min-height); border-radius: var(--router256-card-radius); }
.router256-card-inner { min-height: var(--router256-card-min-height); padding: var(--router256-card-padding); }
.router256-card-top h3 { font-size: var(--router256-card-title-size); }
.router256-card-top span,
.router256-card-meta-line,
.router256-provider-meta,
.router256-meta-line { font-size: var(--router256-card-meta-size); }
.router256-card-headline { font-size: var(--router256-card-headline-size); }
.router256-card-chips > span,
.router256-chip { font-size: var(--router256-chip-font-size); padding: var(--router256-chip-padding); }
.router256-open-modal,
.router256-open-direct { min-height: var(--router256-button-height); font-size: var(--router256-button-font-size); }
.router256-modal-head h3 { font-size: var(--router256-modal-title-size); }
.router256-modal-head p { font-size: var(--router256-modal-intro-size); }
.router256-step h4 { font-size: var(--router256-step-title-size); }
.router256-step-copy { font-size: var(--router256-step-copy-size); }
.router256-field > span,
.router256-question-title,
.router256-question-label { font-size: var(--router256-field-label-size); }
.router256-field input,
.router256-field select,
.router256-field textarea,
.router256-question-control,
.router256-dynamic-questions input,
.router256-dynamic-questions select,
.router256-dynamic-questions textarea { min-height: var(--router256-input-height); font-size: var(--router256-input-font-size); border-radius: var(--router256-input-radius); }
.router256-base-fields { gap: var(--router256-base-field-gap-y) var(--router256-base-field-gap-x); }
.router256-dynamic-questions .router256-question,
.router256-question { margin-bottom: var(--router256-dynamic-question-gap); }

/* V2.7.1 two-step inline form flow */
.router256-inline-progress{
  height:5px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
  margin:0 0 18px;
}
.router256-inline-progress span{
  display:block;
  height:100%;
  width:50%;
  background:var(--router256-accent);
  transition:width .22s ease;
}
.router256-inline-step{display:none}
.router256-inline-step.is-active{display:block}
.router256-inline-step .router256-dynamic-questions{margin-top:var(--router256-dynamic-question-gap)}
.router256-inline-next{background:var(--router256-accent)!important;color:#fff!important}
.router256-inline-back{background:#eef2f7!important;color:#111827!important}
.router256-inline-form .router256-actions .router256-inline-next,
.router256-inline-form .router256-actions button[type="submit"]{
  width:100%;
}
.router256-choice-group.is-invalid{
  border-color:#b91c1c!important;
  background:#fff7f7!important;
}

/* V2.7.7 plugin-owned router trigger button styling */
.router256-router-button-wrap {
  width: 100%;
  max-width: 100%;
  display: block;
}
.router256-router-button-wrap .router256-router-button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}
.router256-router-button--auto,
.router256-router-button--compact {
  width: auto;
}
.router256-router-button--compact {
  min-height: 44px;
  padding: 11px 16px;
  font-size: clamp(12px, 1.4vw, 16px);
}
.router256-router-button--standard {
  min-height: 52px;
}
.router256-router-button--large {
  min-height: 64px;
  font-size: clamp(16px, 2vw, 22px);
}
.router256-router-button--wide,
.router256-router-button--full {
  width: 100%;
}
.router256-router-button-wrap[data-router256-button-align="center"] {
  display: flex;
  justify-content: center;
}
.router256-router-button-wrap[data-router256-button-align="right"] {
  display: flex;
  justify-content: flex-end;
}
.router256-router-button-wrap[data-router256-button-align="left"] {
  display: flex;
  justify-content: flex-start;
}
@media(max-width:620px){
  .router256-router-button-wrap .router256-router-button {
    width: 100%;
  }
}
