/* Loaded only for the opt-in chart wizard; the plot retains its saved website styling. */
body.wpdt-c .wdt-editor-refresh #wdt-chart-wizard-body {padding:24px!important;}
body.wpdt-c .wdt-editor-refresh .chart-wizard-breadcrumb {display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0 0 24px;background:none;}
body.wpdt-c .wdt-editor-refresh .chart-wizard-breadcrumb li {padding:0;margin:0;}
body.wpdt-c .wdt-editor-refresh .chart-wizard-breadcrumb li::before {display:none;}
body.wpdt-c .wdt-editor-refresh .chart-wizard-breadcrumb button {border:0;border-radius:12px;padding:10px 14px;background:var(--wdt-color-field);color:var(--wdt-color-muted);font:500 13px/1.4 Geist,sans-serif;cursor:pointer;}
body.wpdt-c .wdt-editor-refresh .chart-wizard-breadcrumb button[aria-current=step] {background:var(--wdt-color-action);color:var(--wdt-color-surface);box-shadow:0 0 24px #629dff30;}
body.wpdt-c .wdt-editor-refresh .chart-wizard-breadcrumb button:disabled:not([aria-current=step]) {opacity:.5;cursor:default;}
body.wpdt-c .wdt-editor-refresh .chart-wizard-breadcrumb button:focus-visible {outline:2px solid var(--wdt-color-action);outline-offset:3px;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-navigation {display:flex;align-items:center;gap:10px;margin:0!important;padding:20px 24px!important;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-navigation::before,body.wpdt-c .wdt-editor-refresh .wdt-chart-navigation::after {display:none;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-navigation .wdt-documentation {order:0;margin-right:auto;}
body.wpdt-c .wdt-editor-refresh #wdt-chart-wizard-previous-step {order:1;}
body.wpdt-c .wdt-editor-refresh #wdt-chart-wizard-next-step,body.wpdt-c .wdt-editor-refresh #finishButton {order:2;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-navigation .btn {float:none!important;margin:0!important;}
/* Navigation keeps its place while the step height changes */
body.wpdt-c .wdt-editor-refresh .card.wdt-chart-wizard {display:flex;flex-direction:column;min-height:calc(100vh - 110px);}
body.wpdt-c .wdt-editor-refresh .card.wdt-chart-wizard > .card-body {flex:1 0 auto;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-navigation {position:sticky;bottom:0;z-index:5;background:var(--wdt-color-surface);border-radius:0 0 22px 22px;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-navigation #wdt-chart-wizard-next-step[style*="none"] {display:inline-block!important;visibility:hidden;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-navigation:has(#finishButton:not([style*="none"])) #wdt-chart-wizard-next-step {display:none!important;}
body.wpdt-c .wdt-editor-refresh .chart-wizard-step :is(.data-source,.wdt-chart-column-picker-container,.chart-options-container,#chart-container-tabs,.tab-content) {background:transparent!important;color:var(--wdt-color-text);}
body.wpdt-c .wdt-editor-refresh .chart-wizard-step.step2 .data-source {width:100%;max-width:850px;padding:24px;background:linear-gradient(125deg,#8059ef12,#52d9e212),var(--wdt-color-surface)!important;border-radius:18px;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-column-picker-container {display:flex;gap:18px;padding:0;margin:0 0 24px;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-column-picker-container > .card {flex:1;min-width:0;width:auto;margin:0;background:var(--wdt-color-field)!important;box-shadow:none;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-column-picker-container :is(.card-header,.card-body) {background:transparent!important;padding:18px!important;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-column-picker-container .card-header {display:flex;align-items:center;justify-content:space-between;gap:12px;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-column-picker-container .card-header h2 {font-size:15px;margin:0;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-column-picker-container .chart-column-block {border:0;border-radius:10px;padding:12px 14px;margin:0 0 8px;cursor:pointer;background:var(--wdt-color-surface);color:var(--wdt-color-text);}
body.wpdt-c .wdt-editor-refresh .wdt-chart-column-picker-container .chart-column-block::after {content:'+';float:right;color:var(--wdt-color-action);}
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard-chosen-columns-container .chart-column-block::after {content:'−';}
body.wpdt-c .wdt-editor-refresh .chart-column-block:is(:hover,:focus-visible) {outline:2px solid var(--wdt-color-action);outline-offset:1px;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-column-hint {margin-bottom:16px;color:var(--wdt-color-muted);}
body.wpdt-c .wdt-editor-refresh #wdt-chart-settings-and-preview {display:flex;align-items:flex-start;gap:24px;margin:0;}
body.wpdt-c .wdt-editor-refresh #wdt-chart-settings-and-preview > :first-child {width:38%;padding:20px;border-radius:18px;background:var(--wdt-color-field)!important;}
body.wpdt-c .wdt-editor-refresh #wdt-chart-settings-and-preview > :last-child {width:62%;min-width:0;padding:0;}
body.wpdt-c .wdt-editor-refresh #chart-container-tabs > div {width:100%;float:none;padding:0;background:transparent!important;}
body.wpdt-c .wdt-editor-refresh #chart-container-tabs .tab-nav {display:flex;gap:4px;flex-wrap:wrap;width:100%;margin-bottom:18px;}
body.wpdt-c .wdt-editor-refresh #chart-container-tabs .tab-nav li {width:auto!important;border:0!important;}
body.wpdt-c .wdt-editor-refresh #chart-container-tabs .tab-nav a {border:0!important;padding:8px 10px;}
body.wpdt-c .wdt-editor-refresh #chart-container-tabs .chart-options-container {width:100%;padding:0;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard-chart-selecter-block .card {cursor:pointer;transition:box-shadow .18s;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard-chart-selecter-block .card:is(:hover,:focus-visible) {outline:2px solid var(--wdt-color-action);box-shadow:0 0 24px #629dff30;}
@media(max-width:1000px) {body.wpdt-c .wdt-editor-refresh #wdt-chart-settings-and-preview {flex-direction:column;} body.wpdt-c .wdt-editor-refresh #wdt-chart-settings-and-preview > :is(:first-child,:last-child) {width:100%;}}
@media(max-width:650px) {body.wpdt-c .wdt-editor-refresh .wdt-chart-column-picker-container {flex-direction:column;} body.wpdt-c .wdt-editor-refresh .wdt-chart-navigation {flex-wrap:wrap;}}
body.wpdt-c .wdt-editor-refresh #chart-container-tabs .tab-nav,body.wpdt-c .wdt-editor-refresh #chart-container-tabs .tab-nav > li {background:transparent!important;box-shadow:none!important;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-column-picker-container .picker_column {display:flex;flex-direction:column;justify-content:center;gap:8px;width:38px;padding:0;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-column-picker-container .picker_column .btn {position:static;margin:0;width:36px;height:36px;padding:0;color:var(--wdt-color-action);}
body.wpdt-c .wdt-editor-refresh .wdt-chart-column-picker-container .card-body {min-height:170px;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-column-picker-container :is(.picker_column,.select-all-columns,.deselect-all-columns) {display:none!important;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-column-picker-container .wdt-chart-bulk-columns {position:static;width:auto;height:auto;padding:8px 12px;flex-shrink:0;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-column-picker-container .wdt-chart-bulk-columns::before {display:none;}
body.wpdt-c .wdt-editor-refresh #chart-container-tabs .chart-options-container {max-height:65vh;overflow:auto;padding-right:8px;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-navigation .wdt-documentation {margin-right:auto!important;}

body.wpdt-c .wdt-editor-refresh .chart-wizard-step {min-width:0!important;width:100%;}

/* Keep the native plot in its layout column instead of freezing it over controls. */
body.wpdt-c .wdt-editor-refresh .chart-preview-container {position:relative!important;top:auto!important;right:auto!important;width:100%!important;max-width:100%;}
body.wpdt-c .wdt-editor-refresh .chart-series-block,body.wpdt-c .wdt-editor-refresh .chart-series-block > .title {background:var(--wdt-color-surface)!important;color:var(--wdt-color-text)!important;border:0!important;border-radius:14px;}
body.wpdt-c .wdt-editor-refresh .chart-series-block {padding:16px!important;margin-bottom:14px;}
body.wpdt-c .wdt-editor-refresh .chart-series-block > .title {padding:0 0 12px!important;font-weight:600;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-navigation .btn {border-radius:var(--wdt-radius-pill)!important;min-height:var(--wdt-control-height);padding:var(--wdt-control-padding)!important;display:inline-flex;align-items:center;justify-content:center;gap:8px;font:var(--wdt-control-font);border:0;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-navigation .btn i {position:static;margin:0!important;}
body.wpdt-c .wdt-editor-refresh #wdt-backend-close-modal :is(.modal-header,.modal-footer) {border:0!important;}
body.wpdt-c .wdt-editor-refresh #wdt-backend-close-modal hr {display:none;}
body.wpdt-c .wdt-editor-refresh #wdt-backend-close-modal .modal-footer {display:flex;justify-content:flex-end;gap:10px;padding:20px 24px;}
body.wpdt-c .wdt-editor-refresh #wdt-backend-close-modal .btn {border-radius:var(--wdt-radius-pill)!important;min-height:var(--wdt-control-height);padding:var(--wdt-control-padding)!important;font:var(--wdt-control-font);}
body.wpdt-c .wdt-editor-refresh #wdt-backend-close-modal .modal-dialog {margin:12vh auto 24px;max-width:560px;width:calc(100% - 32px);}
body.wpdt-c .wdt-editor-refresh #wdt-backend-close-modal .modal-content {border-radius:22px!important;overflow:hidden;box-shadow:0 20px 70px #0005;}
body.wpdt-c .wdt-editor-refresh #wdt-backend-close-modal .modal-title {font:500 21px/1.35 'Space Grotesk',sans-serif;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard h4.c-title-color:not(.title) {font:var(--wdt-field-label-font);}

/* Chart types are selectable cards, with the same typography as table templates. */
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard .wdt-chart-wizard-chart-selecter-block .card { display:flex; flex-direction:column; padding:14px; border-radius:18px; background:linear-gradient(135deg,#805aeb13,#42d5da0b),var(--wdt-color-field) !important; box-shadow:0 8px 24px #09132512; transition:box-shadow .18s,transform .18s; }
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard .wdt-chart-wizard-chart-selecter-block .card :is(.card-header,.card-body) { border:0 !important; background:transparent !important; padding:0 !important; width:100%; opacity:1 !important; }
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard .wdt-chart-wizard-chart-selecter-block .card-header { border-radius:12px; overflow:hidden; }
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard .wdt-chart-wizard-chart-selecter-block .card-body h4 { font:500 15px/1.4 'Space Grotesk',sans-serif; letter-spacing:-.25px; margin:14px 0 2px; text-align:left; background:transparent !important; }
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard .wdt-chart-wizard-chart-selecter-block .card:is(:hover,.selected,:focus-visible) { box-shadow:0 0 0 2px var(--wdt-color-action),0 8px 28px #639bff25; transform:translateY(-2px); }
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard-chart-selecter-block .wdt-chart-wizard-overlay { display:none; }
@media(prefers-reduced-motion:reduce){body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard-chart-selecter-block .card {transition:none;transform:none!important;}}
/* Documentation stays left; Previous / Next / Save sit together on the right */
body.wpdt-c .wdt-editor-refresh .wdt-chart-navigation .btn.wdt-documentation {margin-right:auto!important;}
