.market-dialog { position: fixed; width: 700px; max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: white; color: var(--graphite); box-shadow: 0 24px 80px #0002; }
.market-dialog[open] { display: flex; flex-direction: column; }
.market-dialog-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 25px; }
.market-dialog::backdrop { background: rgb(0 0 0 / 30%); backdrop-filter: blur(8px); animation: market-backdrop-in .2s ease-out; }
.market-dialog[open] { animation: market-dialog-in .2s ease-out; }
.market-dialog-close { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; padding: 0; min-width: 32px; min-height: 32px; background: #f5f5f5 !important; color: var(--graphite) !important; border-radius: 50% !important; font: 24px/1 Arial,sans-serif !important; cursor: pointer; }
.market-dialog > :not(.market-dialog-close) { min-width: 0; }
.market-dialog-progress { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 15px; min-height: 110px; margin: 0; padding: 30px; background: inherit; }
.market-dialog:has(> .market-dialog-progress):not(:has(.wizard)) { min-height: 160px; }
.market-dialog-progress::before {
  content: '';
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 50% 11%, currentColor 1.5px, transparent 2px),
    radial-gradient(circle at 84% 29%, currentColor 2px, transparent 2.5px),
    radial-gradient(circle at 88% 67%, currentColor 2.5px, transparent 3px),
    radial-gradient(circle at 58% 87%, currentColor 3px, transparent 3.5px),
    radial-gradient(circle at 22% 73%, currentColor 3.5px, transparent 4px),
    radial-gradient(circle at 13% 37%, currentColor 4px, transparent 4.5px);
  animation: market-loading 1s linear infinite;
}
.market-dialog-error { padding: 15px; border: 1px solid #b72e37; border-radius: 12px; line-height: 1.4; }
.market-dialog-wizard { width: 1000px; padding: 0; background: #1d1d1d; color: white; }
.market-dialog-wizard .market-dialog-body { padding: 0; }
.market-dialog-wizard .market-dialog-close { background: #ffffff12 !important; color: white !important; }
.market-dialog-wizard .wizard { --market-ink: #fff; --market-muted: #c2c2c2; --market-surface-inverse: #fff; --market-divider: #777; --market-tint: #ffffff0d; --market-error-text: #ffb7b7; --market-focus: #fff; margin: 0; padding: 30px 20px 20px; border: 0; border-radius: 16px; background: #1d1d1d; color: white; }
.market .market-dialog-wizard h1 { margin-right: 35px; font-size: 22px; font-weight: 400; }
.market-dialog-wizard :is(p,legend) { font-size: 16px; line-height: 1.3; }
.market-dialog-wizard .wizard :is(.eyebrow,#other-help,.wizard-reset span) { color: #c2c2c2; }
.market-dialog-wizard .wizard #id_codes { display: flex; flex-wrap: wrap; gap: 8px; }
.market-dialog-wizard .wizard #id_codes > div { min-width: 0; max-width: 100%; }
.market-dialog-wizard .wizard #id_codes label { position: relative; display: flex; align-items: center; border: 1px solid transparent; padding: 11px 15px; min-height: 44px; border-radius: 10px; background: #ffffff0d; font-weight: 400; line-height: 1.3; transition: background .18s, border-color .18s; }
.market-dialog-wizard .wizard #id_codes {
  --checkbox-border: #b2b1d1;
  --checkbox-surface: transparent;
  --checkbox-checked-border: #fff;
  --checkbox-fill: #1b1941;
}
.market-dialog-wizard .wizard #id_codes input { margin: 0; }
.market-dialog-wizard .wizard #id_codes input[type=radio] { appearance: none; width: 16px; height: 16px; min-width: 16px; flex: 0 0 16px; border: 1px solid #ffffff80; border-radius: 50%; background: transparent; cursor: pointer; }
.market-dialog-wizard .wizard #id_codes input[type=radio]:checked { background: white; border-color: white; }
.market-dialog-wizard .wizard #id_codes input[type=radio]:checked::before { content: ''; display: block; width: 6px; height: 6px; margin: 4px; border-radius: 50%; background: #5550d7; }
.market-dialog-wizard .wizard #id_codes label:has(input:checked) { background: #5550d7; color: white; }
.market-dialog-wizard .wizard input:is([type=checkbox],[type=radio]) { accent-color: white; }
.market-dialog-wizard .wizard :is(.wizard-actions button,form>button,.home-button) { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; background: #5550d7; padding: 14px 25px; color: white; font-size: 16px; }
.market-dialog-wizard .wizard .wizard-step-footer button { min-height: 50px; padding: 14px 25px; font-size: 16px; background: #5550d7; color: white; }
.market-dialog-wizard .wizard .wizard-step-footer .secondary { background: #ffffff0d; color: #fff; border: 1px solid #ffffff30; }
.market-dialog-wizard .wizard .secondary { background: #ffffff12; color: white; border: 1px solid #ffffff30; }
.market-dialog-wizard .wizard :is(.wizard-notice,.match-group,.general-request-callout) { background: #ffffff0d; color: white; border-color: #ffffff30; }
.market-dialog-wizard .wizard .solution-preview { --market-ink: #2a2a2a; --market-muted: #6b6b6b; --market-surface-inverse: #2a2a2a; --market-divider: #dedede; --market-tint: #f5f5f5; color: var(--graphite); }
.market-dialog-wizard .wizard textarea { background: #2a2a2a; color: white; border-color: #888; }
.market-dialog-wizard .wizard .match-differences { color: white; }
.market-dialog-wizard .wizard progress { accent-color: #9995ff; }
.market-dialog-wizard .wizard :is(a,button):focus-visible { outline-color: #fff; }
.market-dialog-wizard .wizard :is(.error,.errors,.error-summary) { color: #ffb7b7; }
body:has(.market-dialog[open]) { overflow: hidden; }
@keyframes market-dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes market-loading { to { transform: rotate(360deg); } }
@media (max-width:650px) { .market-dialog-body { padding: 20px 15px; } .market-dialog-wizard { padding: 0; } .market-dialog-wizard .wizard { padding: 25px 15px 15px; } }
@media (prefers-reduced-motion:reduce) { .market-dialog[open],.market-dialog-progress::before { animation: none; } }
.market-dialog .solution-price-panel { padding-top: 10px; background: transparent; }
.market-dialog .solution-price-panel h2 { font-size: 30px; margin-right: 25px; }
.market-dialog .solution-price-panel .price { font-size: 36px; margin: 25px 0 10px; }
.market-dialog .solution-price-panel .help { margin: 20px 0 0; line-height: 1.4; color: var(--market-muted); }
.market-dialog .solution-price-panel .solution-price-title { font-size: 18px; line-height: 1.3; }
.market-dialog .solution-price-panel .market-button { margin-top: 15px; }

.market .market-dialog-close { position: absolute; top: 10px; right: 10px; z-index: 5; width: 32px; height: 32px; min-height: 32px; padding: 0; line-height: 1; font-size: 24px; border-radius: 50%; }

.market-dialog-case { width: 900px; }
.market-dialog-wizard:has(.wizard-step) { height: min(620px,calc(100dvh - 32px)); }
.market-dialog-wizard:has(.wizard-step) .market-dialog-body { display: flex; flex: 1; overflow: hidden; scrollbar-gutter: auto; }
.market-dialog-wizard:has(.wizard-step) .wizard { display: flex; flex: 1; min-height: 0; padding: 0; }
.market-dialog-wizard .wizard-step { display: flex; flex-direction: column; min-height: 0; width: 100%; }
.market-dialog-wizard .wizard-step-heading { flex: 0 0 auto; max-height: 42%; overflow: auto; padding: 24px 48px 0 24px; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
.market-dialog-wizard .wizard-step-heading .eyebrow { font-size: 13px; margin-bottom: 12px; }
.market .market-dialog-wizard .wizard-step-heading h1 { margin: 0 0 14px; font-size: 24px; line-height: 1.15; }
.market-dialog-wizard .wizard-step-heading > p:last-child { font-size: 14px; margin-bottom: 16px; }
.market-dialog-wizard .wizard-scroll-region { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 24px 16px; }
.market-dialog-wizard .wizard-scroll-region .answer-form { margin: 0; }
.market-dialog-wizard .wizard-step-footer { flex: 0 0 auto; padding: 14px 24px 20px; background: #1d1d1d; border-top: 1px solid #ffffff14; }
.market-dialog-wizard .wizard-step-footer .wizard-actions { margin: 0; flex-direction: row; gap: 12px; }
.market-dialog-wizard .wizard-step-footer .wizard-actions button { width: auto; }
.market-dialog-wizard .wizard-reset { margin: 16px 0 0; padding-top: 0; border-top: 0; }
.market-dialog-wizard .wizard-reset button.secondary { min-height: 40px; padding: 10px 14px; font-size: 14px; background: #ffffff0d; color: white; border: 1px solid #ffffff30; }
.market-dialog-wizard .wizard-step-footer progress { appearance: none; display: block; width: 100%; height: 4px; margin: 0 0 14px; border: 0; border-radius: 4px; overflow: hidden; background: #ffffff16; }
.market-dialog-wizard progress::-webkit-progress-bar { background: #ffffff16; border-radius: 4px; }
.market-dialog-wizard progress::-webkit-progress-value { background: #9995ff; border-radius: 4px; transition: width .25s ease; }
.market-dialog-wizard progress::-moz-progress-bar { background: #9995ff; border-radius: 4px; }
.market-dialog { --scroll-track: #fff; --scroll-thumb: #a9a9ad; }
.market-dialog-wizard { --scroll-track: #1d1d1d; --scroll-thumb: #646469; color-scheme: dark; }
.market-dialog :is(.market-dialog-body,.wizard-scroll-region) { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--scroll-track); scrollbar-gutter: stable; }
.market-dialog :is(.market-dialog-body,.wizard-scroll-region)::-webkit-scrollbar { width: 6px; height: 6px; }
.market-dialog :is(.market-dialog-body,.wizard-scroll-region)::-webkit-scrollbar-track { background: var(--scroll-track); }
.market-dialog :is(.market-dialog-body,.wizard-scroll-region)::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 1px solid var(--scroll-track); border-radius: 10px; }
.market-dialog.is-closing::backdrop { animation: market-backdrop-out .16s ease-in forwards; }
@keyframes market-backdrop-out { to { background: transparent; backdrop-filter: blur(0); } }
@keyframes market-backdrop-in { from { background: transparent; backdrop-filter: blur(0); } }
@media (prefers-reduced-motion:reduce) { .market-dialog::backdrop { animation: none !important; } }
@media (max-width:650px) { .market-dialog-wizard .wizard-step-heading { padding: 20px 46px 0 18px; } .market .market-dialog-wizard .wizard-step-heading h1 { font-size: 20px; } .market-dialog-wizard .wizard-scroll-region { padding: 4px 18px 14px; } .market-dialog-wizard .wizard-step-footer { padding: 12px 18px 16px; } .market-dialog-wizard .wizard #id_codes label { font-size: 14px; } }
@media (max-height:540px) { .market-dialog-wizard .wizard-step-heading { padding-top: 14px; } .market .market-dialog-wizard .wizard-step-heading h1 { margin-bottom: 8px; font-size: 18px; } .market-dialog-wizard .wizard-step-heading > p:last-child { margin-bottom: 8px; font-size: 13px; } .market-dialog-wizard .wizard-step-footer { padding-block: 10px; } .market-dialog-wizard .wizard-step-footer progress { margin-bottom: 10px; } }

.market-dialog-wizard .wizard .catalog-region-query {
  background: var(--graphite); color: white;
}
.market-dialog-wizard .wizard .catalog-region-query input { color: white; }
.market-dialog-wizard .wizard .catalog-region-query input::placeholder { color: #ccc; opacity: 1; }
