@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.ec-workspace, .ec-workspace *, .ec-store, .ec-store * {
    font-family: 'Inter',sans-serif !important;
}

.ec-workspace, .ec-store { --ec-ink: #102749; --ec-muted: #506786; --ec-line: #d9e4f3; color: var(--ec-ink); }
.ec-workspace.container-fluid { padding-inline: 0; }
.ec-workspace > .content { padding-top: 4px; }
.ec-workspace > .ec-workspace-hero.crm-dashboard-hero { min-height: 105px; padding-block: 15px; margin-bottom: 10px; }
.ec-workspace .widget-slot { padding: 8px 10px 10px; }
.ec-workspace .box-header { padding: 6px 10px 7px; }
.ec-workspace .box-header .box-title { color: var(--ec-ink); font-size: 15px; font-weight: 700; }
.ec-workspace .form-group { margin-bottom: 11px; }
.ec-workspace form .form-group > small { display: block; margin-top: 4px; color: var(--ec-muted); }
.ec-workspace .form-control { min-height: 32px; }
.ec-workspace .table > thead > tr > th { padding: 7px 9px; color: var(--ec-muted); background: #f6f9ff; font-size: 12px; }
.ec-workspace .table > tbody > tr > td { padding: 7px 9px; }
.ec-workspace :is(.ec-panel, .ec-dashboard-metrics > div) { padding: 12px 14px; }
.ec-workspace .ec-panel > header { margin-bottom: 10px; }
.ec-workspace .ec-dashboard-grid { align-items: start; }
.ec-workspace .ec-dashboard-metrics dd { margin-top: 4px; font-size: 22px; }
.ec-directory-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; gap: 12px; }
.ec-directory-list { display: grid; gap: 7px; }
.ec-directory-store {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 9px;
    padding: 9px;
    border: 1px solid var(--ec-line);
    border-radius: 9px;
    color: var(--ec-ink);
    background: #f8faff;
}
.ec-directory-store:hover { border-color: #a8bfdd; }
.ec-directory-store small { display: block; color: var(--ec-muted); overflow-wrap: anywhere; }
.ec-directory-store > .ec-icon { color: #255c9d; }
.ec-settings-appearance { display: grid; grid-template-columns: minmax(100px, 135px) minmax(125px, 330px); gap: 14px; }
.ec-settings-appearance label { display: block; }
.ec-settings-appearance input[type="color"] { display: block; width: 68px; height: 32px; padding: 3px; border: 1px solid var(--ec-line); border-radius: 6px; background: #fff; }
.ec-publication-setting { margin: 9px 0; padding: 8px 11px; border: 1px solid #d9e7fc; border-radius: 8px; background: #f3f7ff; }
.ec-publication-setting .checkbox { margin: 0 0 3px; }
.ec-publication-setting small { color: var(--ec-muted); }
@media (max-width: 767px) {
    .ec-directory-grid { grid-template-columns: minmax(0, 1fr); }
}
.ec-admin-form-actions { margin-top: 12px; }
.ec-workspace-hero__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-inline-start: auto; }
.ec-workspace .ec-preview-action.ec-preview-action--live { border-color: #ffc69f; color: #401900; background: #ffd9b7; }
.ec-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 128px;
    margin: 1rem;
    padding: clamp(1.2rem, 4vw, 2.3rem);
    border-radius: 18px;
    color: #fff;
    background: radial-gradient(ellipse at 90% 10%, #245db2, transparent 65%), linear-gradient(120deg, #081932, #173c76);
    box-shadow: 0 12px 30px #09265425;
}
.ec-hero h1 { margin: .4rem 0; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.035em; }
.ec-hero p { max-width: 55ch; margin: 0; color: #dce9ff; }
.ec-hero a, .ec-hero span { color: #bfd8ff; font-weight: 600; }
.ec-hero > .ec-icon { flex: 0 0 auto; width: clamp(2.5rem, 8vw, 5rem); height: auto; color: #8ebcf8; }
.ec-workspace .crm-dashboard-hero {
    box-sizing: border-box;
    min-height: 128px;
    margin: 16px 16px 12px;
    padding: 22px 26px;
    border-radius: 14px;
    background: radial-gradient(circle at 76% 25%, rgba(46, 107, 232, .45), transparent 30%),
        linear-gradient(125deg, #06172f, #092657 72%, #071b42);
    box-shadow: 0 9px 24px rgba(7, 28, 67, .14);
}
.ec-workspace .crm-dashboard-hero h1 { margin: 0 0 6px; color: #ffad25; font-size: 25px; font-weight: 600; letter-spacing: normal; }
.ec-workspace .crm-dashboard-hero p { max-width: 590px; color: #d4e1f6; font-size: 12px; }
.ec-workspace .crm-dashboard-hero .ec-workspace-hero__copy > a:first-child {
    display: block;
    margin-bottom: 5px;
    color: #a8c8ff;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ec-workspace-hero { position: relative; isolation: isolate; overflow: hidden; }
.ec-workspace-hero__copy, .ec-workspace-hero__actions { position: relative; z-index: 1; }
.ec-workspace-hero__art {
    position: absolute;
    z-index: 0;
    right: clamp(80px, 12vw, 215px);
    top: 50%;
    width: min(42%, 420px);
    transform: translateY(-50%);
    pointer-events: none;
    fill: none;
    stroke: #82b0fb;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .82;
}
.ec-workspace-hero__orbit { stroke: #5e98e2; stroke-dasharray: 4 7; opacity: .52; }
.ec-workspace-hero__accent { stroke: #ffae52; }
.ec-workspace .ec-preview-action {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid #a7bfe584;
    border-radius: 8px;
    color: #fff;
    background: #112c55d9;
    white-space: nowrap;
}
.ec-preview-action .ec-icon { width: 16px; height: 16px; }
.ec-store-create-actions { display: flex; justify-content: flex-end; }
@media (max-width: 767px) {
    .ec-workspace .crm-dashboard-hero { margin: 10px 8px; padding: 20px; }
    .ec-workspace .crm-dashboard-hero h1 { font-size: 21px; }
}
@media print {
    .ec-workspace .crm-dashboard-hero.no-print { display: none !important; }
}
.ec-icon { flex: none; vertical-align: middle; }
.ec-nav { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.ec-nav .btn, .ec-workspace .btn-primary, .ec-store button, .store-header a {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
}
.ec-nav .btn[aria-current="page"] { color: #b7450d; background: #fff0e7; border-color: #ffd7c2; }
.ec-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}
.ec-dashboard-metrics > div, .ec-panel {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--ec-line);
    border-radius: 12px;
    box-shadow: 0 5px 20px #0e34670a;
}
.ec-dashboard-metrics dt { display: flex; align-items: center; gap: 8px; color: var(--ec-muted); }
.ec-dashboard-metrics .ec-icon {
    box-sizing: content-box;
    padding: 6px;
    border-radius: 8px;
    color: #185cac;
    background: #eaf2ff;
}
.ec-dashboard-metrics > div:nth-child(2) .ec-icon { color: #ba4b13; background: #fff0e7; }
.ec-dashboard-metrics > div:nth-child(3) .ec-icon { color: #146546; background: #e7f6ee; }
.ec-dashboard-metrics dd { margin: 8px 0 0; color: var(--ec-ink); font-size: 25px; font-weight: 700; }
.ec-dashboard-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; }
.ec-panel { min-width: 0; }
.ec-panel > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.ec-panel > header h2 { margin: 0; color: var(--ec-ink); font-size: 16px; font-weight: 700; }
.ec-panel > header p { margin: 4px 0 0; color: var(--ec-muted); }
.ec-panel > header a { display: inline-flex; align-items: center; gap: 4px; }
.ec-panel > header a .ec-icon { width: 14px; height: 14px; }
.ec-store-details { margin: 0; }
.ec-store-details > div { display: flex; justify-content: space-between; gap: 15px; padding-block: 10px; border-bottom: 1px solid #edf2f7; }
.ec-store-details dt { flex-shrink: 0; color: var(--ec-muted); }
.ec-store-details dd { min-width: 0; margin: 0; text-align: right; overflow-wrap: anywhere; }
.ec-store-details small, .ec-data-table small { display: block; color: var(--ec-muted); font-weight: 400; }
.ec-panel-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; }
.ec-store-details + .ec-panel-actions, .ec-listing-editor form > .ec-panel-actions { margin-top: 14px; }
.ec-listing-actions { justify-content: space-between; margin-bottom: 12px; }
.ec-catalogue-filters {
    display: grid;
    grid-template-columns: minmax(200px, 2fr) repeat(2, minmax(110px, 1fr)) minmax(75px, .5fr) auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid var(--ec-line);
    border-radius: 10px;
    background: #f6f9ff;
}
.ec-catalogue-filters label { display: grid; gap: 5px; margin: 0; color: var(--ec-muted); }
.ec-data-table { margin: 0; }
.ec-data-table > thead { color: var(--ec-muted); background: #f6f9ff; }
.ec-data-table > tbody > tr > td { vertical-align: middle; }
.ec-data-table .ec-stock, .ec-data-table .ec-status { white-space: nowrap; }
.ec-product-cell { display: flex; align-items: center; gap: 9px; min-width: 160px; }
.ec-product-cell img, .ec-product-cell > span {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 7px;
    background: #eaf2ff;
    object-fit: cover;
}
.ec-product-cell > span { display: grid; place-items: center; color: #185cac; }
.ec-row-action { display: inline-flex; align-items: center; gap: 5px; }
.ec-row-action .ec-icon { width: 14px; height: 14px; }
.ec-status.is-published { color: #146546; background: #e7f6ee; }
.ec-catalogue-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ec-bulk-upload { margin-bottom: 14px; }
.ec-bulk-upload > summary { cursor: pointer; color: #154f95; font-weight: 700; }
.ec-bulk-upload > summary .ec-icon { margin-inline: 4px; width: 16px; height: 16px; }
.ec-bulk-upload__body { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ec-line); }
.ec-bulk-upload__body > p { color: var(--ec-muted); }
.ec-bulk-upload__body .ec-panel-actions { margin-top: 10px; }
.ec-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    color: var(--ec-muted);
}
.ec-data-table .ec-select-column { width: 36px; text-align: center; }
.ec-select-column input { width: 16px; height: 16px; accent-color: #c94d0b; }
.ec-workspace .ec-products-table { width: 100%; min-width: 790px; table-layout: fixed; }
.ec-catalogue .table-responsive { max-width: 100%; overflow-x: auto; }
.ec-products-table col.ec-select-column { width: 44px; }
.ec-products-table col.ec-sku-column { width: 95px; }
.ec-products-table col.ec-price-column { width: 124px; }
.ec-products-table col.ec-stock-column { width: 132px; }
.ec-products-table col.ec-state-column { width: 114px; }
.ec-products-table col.ec-edit-column { width: 86px; }
.ec-products-table :is(th, td) { overflow-wrap: anywhere; }
.ec-products-table .ec-product-cell { min-width: 0; }
.ec-products-table .ec-product-cell > div { min-width: 0; white-space: normal; }
.ec-products-table .ec-product-cell > .ec-product-thumb { position: relative; overflow: hidden; }
.ec-product-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ec-product-thumb img[hidden] { display: none; }
.ec-products-table .ec-select-column input { display: inline-block; margin: 0; vertical-align: middle; }
.ec-products-table .ec-sku { font-variant-numeric: tabular-nums; }
.ec-bulk-upload > summary > span, .ec-workspace :is(a, button).btn:has(> .ec-icon) { display: inline-flex; align-items: center; gap: 7px; }
.ec-workspace .btn > .ec-icon { flex: none; width: 15px; height: 15px; }
.ec-listing-form { display: grid; gap: 13px; }
.ec-listing-group { min-width: 0; margin: 0; padding: 11px 12px 12px; border: 1px solid var(--ec-line); border-radius: 10px; background: #f9fbfe; }
.ec-listing-group legend { width: auto; margin: 0; padding: 0 5px; border: 0; color: var(--ec-ink); font-size: 13px; font-weight: 700; }
.ec-listing-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 10px 13px; }
.ec-listing-fields--price { grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); }
.ec-listing-fields label { display: grid; gap: 4px; min-width: 0; margin: 0; }
.ec-listing-fields label > .form-control { margin-top: 0; }
.ec-listing-fields small { color: var(--ec-muted); }
.ec-listing-field--wide { grid-column: 1 / -1; }
.ec-listing-group .ec-upload { margin-block: 3px 0; }
.ec-listing-editor .ec-listing-form > .ec-panel-actions { margin-top: 0; padding-top: 10px; border-top: 1px solid var(--ec-line); }
.ec-notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding: 11px 13px; border: 1px solid; border-radius: 11px; font-size: .9em; }
.ec-notice > .ec-icon { flex: none; }
.ec-notice ul { margin: 3px 0 0; padding-inline-start: 1.1rem; }
.ec-notice--error { border-color: #f1c7c2; color: #842e29; background: #fff4f1; }
#toast-container .ec-toast-message { white-space: pre-line; }

/* Keep the catalogue independent of the application's list-table sizing rules. */
.ec-workspace table.ec-products-table { display: table; border-collapse: collapse; table-layout: fixed; min-width: 850px; }
.ec-workspace table.ec-products-table col { display: table-column; }
.ec-workspace table.ec-products-table :is(th, td) { box-sizing: border-box; display: table-cell; padding: 8px 10px; border-bottom: 1px solid #edf1f6; }
.ec-workspace table.ec-products-table :is(th, td).ec-select-column { width: 44px; max-width: 44px; padding-inline: 8px; }
.ec-workspace table.ec-products-table :is(th, td):nth-child(2) { width: auto; }
.ec-workspace table.ec-products-table .ec-product-cell strong { display: block; overflow-wrap: break-word; word-break: normal; line-height: 1.35; }
.ec-workspace table.ec-products-table th { color: var(--ec-muted); background: #f2f6fc; font-size: 12px; }
.ec-workspace table.ec-products-table tr:hover td { background: #fbfcff; }
.ec-products-table col.ec-price-column { width: 145px; }
.ec-card-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; align-items: start; }
.ec-card-pair > * { min-width: 0; }
.ec-card-pair > .ec-panel h2, .ec-directory-heading { display: flex; align-items: center; gap: 8px; }
.ec-card-pair .widget-slot code, .ec-code-wrap { overflow-wrap: anywhere; white-space: normal; }
.ec-connection-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); align-items: end; gap: 8px 12px; margin-bottom: 7px; }
.ec-connection-fields label { min-width: 0; }
.ec-shipping-carriers { margin-bottom: 13px; }
.ec-shipping-carriers header h2 { display: flex; align-items: center; gap: 6px; }
.ec-shipping-carriers ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0 0; list-style: none; }
.ec-shipping-carriers li { padding: 4px 8px; border-radius: 7px; color: var(--ec-ink); background: #eef4fc; }
.ec-code-wrap { display: block; margin-top: 6px; }
.ec-experience-pages { display: grid; gap: 7px; margin-block: 10px; }
.ec-experience-pages details { padding: 9px 11px; border: 1px solid var(--ec-line); border-radius: 9px; background: #f8faff; }
.ec-experience-pages summary { cursor: pointer; color: var(--ec-ink); font-weight: 700; }
.ec-experience-pages summary > .ec-icon, .ec-experience-pages summary > .ec-category-symbol { display: inline-grid; vertical-align: middle; margin-right: 5px; }
.ec-experience-pages details[open] summary { margin-bottom: 8px; }
.ec-category-symbol { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; }
.ec-category-symbol img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 7px; }
.ec-category-symbol img[hidden] { display: none; }
.ec-report-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; margin-bottom: 13px; }
.ec-workspace .ec-report-filters label { display: grid; min-width: min(100%, 145px); gap: 5px; margin: 0; }
.ec-workspace .ec-report-filters label > .form-control { margin: 0; }
.ec-report-filters > .ec-panel-actions { margin-inline-start: auto; }
.ec-report-panels .table-responsive { overflow-x: auto; }
.ec-report-panels .table { margin-bottom: 0; }
.ec-directory-grid { align-items: stretch; }
.ec-directory-panel { background: radial-gradient(ellipse at 18% 115%, #e0eeff, transparent 70%), #f8fbff; }
.ec-directory-heading { gap: 10px; }
.ec-directory-heading > span, .ec-directory-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #1c58a0; background: #e7f0fd; flex: none; }
.ec-directory-mark, #new-online-store .ec-directory-heading > span { color: #a44212; background: #ffefe2; }
.ec-directory-grid .ec-directory-store { background: white; padding: 10px; box-shadow: 0 5px 14px #0e34670a; }
.ec-directory-name { min-width: 0; overflow-wrap: break-word; }
.ec-directory-actions { display: flex; gap: 5px; }
.ec-directory-actions .btn { padding: 6px 8px; }
.ec-directory-input { position: relative; }
.ec-directory-input > .ec-icon { position: absolute; z-index: 1; top: 8px; left: 9px; width: 15px; height: 15px; pointer-events: none; color: var(--ec-muted); }
.ec-directory-input > input { padding-inline-start: 31px; }
@media (max-width: 960px) { .ec-card-pair { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
    .ec-directory-grid .ec-directory-store { grid-template-columns: auto minmax(0, 1fr) auto; }
    .ec-directory-actions { grid-column: 2 / -1; justify-content: flex-end; }
}
@media (max-width: 767px) {
    .ec-listing-fields, .ec-listing-fields--price { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
    .ec-listing-fields, .ec-listing-fields--price { grid-template-columns: minmax(0, 1fr); }
}
.ec-store-url { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.ec-brand-uploads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 12px 0; }
.ec-upload { margin-block: 8px; }
.ec-upload > label { display: block; }
.ec-upload small { display: block; color: var(--ec-muted); margin-top: 4px; }
.ec-upload__picker {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    overflow: hidden;
    border: 1px dashed #a8bbd6;
    border-radius: 8px;
    background: #f8fbff;
}
.ec-upload__picker:focus-within { outline: 2px solid #2864ab; outline-offset: 2px; }
.ec-upload__picker > [data-file-label] { padding-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-upload__browse { display: inline-flex; align-items: center; align-self: stretch; gap: 5px; padding: 0 12px; color: #fff; background: #c94d0b; white-space: nowrap; }
.ec-upload__browse .ec-icon { width: 15px; height: 15px; }
.ec-upload__picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ec-upload__preview { width: min(100%, 300px); height: 96px; margin-top: 8px; object-fit: contain; object-position: left; border-radius: 7px; }
.ec-preview-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px clamp(12px, 4vw, 28px);
    color: #142d52;
    background: #e8f1ff;
}
.ec-preview-bar a { color: #154f95; font-weight: 700; }
@media (max-width: 991px) {
    .ec-catalogue-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .ec-workspace-hero { flex-wrap: wrap; gap: 8px; }
    .ec-workspace-hero__art { right: -22px; width: 55%; opacity: .24; }
    .ec-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ec-dashboard-grid, .ec-brand-uploads { grid-template-columns: minmax(0, 1fr); }
}
.ec-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .75rem; margin: 0 0 1rem; }
.ec-kpis > div { padding: 1rem; border: 1px solid var(--ec-line); border-radius: 12px; background: #f6f9ff; }
.ec-kpis dt { color: var(--ec-muted); }
.ec-kpis dd { margin: .35rem 0 0; font-size: 1.5rem; font-weight: 700; }
.ec-status { display: inline-flex; padding: .18rem .55rem; border-radius: 999px; background: #eaf2ff; color: #153d78; font-weight: 600; }
.ec-store { background: #f3f6fc; }
.ec-store .store-header { border-bottom: 4px solid var(--store-brand); }
.ec-store .store-header a { text-decoration: none; }
.ec-store .ec-hero { margin: 0 0 1rem; }
.ec-store .store-card { border-color: var(--ec-line); box-shadow: 0 5px 18px #0e34670a; }
.ec-store .store-card img { border-radius: 10px; background: #f6f8fc; }
.ec-store .ec-dealer { margin-bottom: 1rem; }
.ec-store .ec-dealer summary { cursor: pointer; font-weight: 500; }
.ec-store-color-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .6rem; }
.ec-store-palette-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .9rem; align-items: start; }
.ec-palette-preview { min-width: 0; margin: 0; }
.ec-palette-preview figcaption { margin: 0 0 .4rem; color: var(--ec-muted); font-size: .77rem; font-weight: 600; }
.ec-palette-preview__frame { overflow: hidden; border: 1px solid var(--ec-line); border-radius: 12px; font-size: .8rem; box-shadow: 0 4px 12px #1027490b; }
.ec-palette-preview__header, .ec-palette-preview__search, .ec-palette-preview__nav { display: flex; align-items: center; gap: .45rem; }
.ec-palette-preview__header { padding: .45rem .55rem; background: var(--preview-secondary); color: var(--preview-on-secondary); }
.ec-palette-preview__header > span { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 7px; background: #fff; color: #162d45; }
.ec-palette-preview__header strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-palette-preview__page { display: grid; gap: .45rem; padding: .55rem; background: var(--preview-background); }
.ec-palette-preview__search { justify-content: space-between; padding: .26rem .34rem; border: 1px solid #e1e6de; border-radius: 8px; background: #fff; color: #52647b; }
.ec-palette-preview__search > span:first-child { display: flex; align-items: center; gap: .2rem; min-width: 0; font-size: .73rem; }
.ec-palette-preview__button { flex: none; padding: .24rem .45rem; border-radius: 5px; background: var(--preview-primary); color: var(--preview-on-primary); }
.ec-palette-preview__banner { display: grid; gap: .28rem; padding: .5rem .6rem; border-radius: 8px; background: radial-gradient(ellipse at 100% 20%, #ffffff12, transparent 60%), var(--preview-primary); color: var(--preview-on-primary); }
.ec-palette-preview__banner span { display: inline-flex; align-items: center; justify-self: start; gap: .18rem; padding: .15rem .32rem; border-radius: 4px; background: var(--preview-accent); color: var(--preview-on-accent); font-size: .73rem; font-weight: 500; }
.ec-palette-preview__nav { justify-content: space-around; padding: .38rem .25rem; background: #fff; color: #586071; }
.ec-palette-preview__nav > span { display: grid; justify-items: center; gap: .1rem; font-size: .68rem; }
.ec-palette-preview__selected > svg { fill: var(--preview-accent); color: var(--preview-on-accent); }
.ec-color-field { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.ec-color-native { width: 100%; height: 38px; padding: 3px; border: 1px solid var(--ec-line); border-radius: 8px; background: #fff; cursor: pointer; }
.ec-color-field [hidden], .ec-color-picker [hidden] { display: none !important; }
.ec-color-trigger { display: flex; align-items: center; gap: .45rem; padding: .35rem .48rem; min-width: 0; min-height: 40px; border: 1px solid #cbd8ea; border-radius: 9px; background: #fff; color: var(--ec-ink); text-align: left; }
.ec-color-trigger:hover { border-color: #87a4c8; background: #f9fbff; }
.ec-color-trigger > .ec-icon { width: 14px; height: 14px; margin-inline-start: auto; color: var(--ec-muted); }
.ec-color-swatch { display: block; flex: none; width: 24px; height: 24px; border: 1px solid #10274926; border-radius: 6px; background: var(--swatch-color, #fff); }
.ec-workspace .ec-color-code { font-family: ui-monospace, Consolas, monospace !important; letter-spacing: .025em; }
.ec-color-picker { position: fixed; inset: 0; width: min(25rem, calc(100% - 1.5rem)); max-width: none; max-height: calc(100% - 1.5rem); height: fit-content; margin: auto; padding: 0; overflow: auto; border: 1px solid var(--ec-line); border-radius: 16px; background: #fff; color: var(--ec-ink); box-shadow: 0 20px 65px #071b3d38; }
.ec-color-picker:not([open]) { display: none; }
.ec-color-picker::backdrop { background: #081d3e72; }
.ec-color-picker__header, .ec-color-picker__footer { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; }
.ec-color-picker__header { justify-content: space-between; border-bottom: 1px solid var(--ec-line); }
.ec-color-picker__header h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.ec-color-picker__close { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border: 1px solid var(--ec-line); border-radius: 8px; background: #fff; color: var(--ec-ink); font-size: 1.4rem; line-height: 1; }
.ec-color-picker__body { display: grid; gap: .8rem; padding: 1rem; }
.ec-color-plane { position: relative; touch-action: none; cursor: crosshair; height: clamp(6rem, 26dvh, 10.5rem); border: 1px solid #10274926; border-radius: 9px; background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent) hsl(var(--picker-hue, 0) 100% 50%); }
.ec-color-plane__marker { position: absolute; width: 16px; height: 16px; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #0009; transform: translate(-50%, -50%); pointer-events: none; }
.ec-color-hue { display: flex; align-items: center; gap: .75rem; margin: 0; }
.ec-color-hue__range { flex: 1; min-width: 0; height: .78rem; appearance: none; border: 0; border-radius: 20px; background: linear-gradient(to right, red, yellow, lime, cyan, blue, magenta, red); cursor: pointer; }
.ec-color-hue__range::-webkit-slider-thumb { appearance: none; width: 17px; height: 17px; border: 2px solid #fff; border-radius: 50%; background: transparent; box-shadow: 0 0 0 1px #1027499c; }
.ec-color-hue__range::-moz-range-thumb { width: 13px; height: 13px; border: 2px solid #fff; border-radius: 50%; background: transparent; box-shadow: 0 0 0 1px #1027499c; }
.ec-color-picker__value { display: flex; align-items: end; gap: .6rem; }
.ec-color-picker__value label { flex: 1; margin: 0; }
.ec-color-picker__value input { margin-top: .3rem; }
.ec-color-swatch--preview { width: 42px; height: 34px; border-radius: 8px; }
.ec-color-error { margin: -.4rem 0 0; color: #842e29; font-size: .8rem; }
.ec-color-presets { display: flex; flex-wrap: wrap; gap: .45rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.ec-color-presets legend { margin: 0 0 .45rem; padding: 0; border: 0; color: var(--ec-ink); font-size: inherit; font-weight: 700; }
.ec-color-presets button { width: 26px; height: 26px; padding: 0; border: 1px solid #1027492e; border-radius: 50%; background: var(--preset-color); }
.ec-color-presets button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #466a96; }
.ec-color-picker__footer { justify-content: flex-end; border-top: 1px solid var(--ec-line); background: #f8faff; }
.ec-color-trigger:focus-visible, .ec-color-picker :is(button, input):focus-visible { outline: 2px solid #255ea9; outline-offset: 3px; }
.ec-color-picker.has-palette-preview[open] { display: grid; width: min(44rem, calc(100% - 1.5rem)); grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-areas: "header header" "controls preview" "footer footer"; }
.ec-color-picker__header { grid-area: header; }
.ec-color-picker__body { grid-area: controls; }
.ec-color-picker__preview { grid-area: preview; min-width: 0; padding: 1rem; border-inline-start: 1px solid var(--ec-line); background: #f8faff; }
.ec-color-picker__footer { grid-area: footer; }
@media (max-width: 560px) {
    .ec-color-picker.has-palette-preview[open] { grid-template-columns: minmax(0, 1fr); grid-template-areas: "header" "preview" "controls" "footer"; }
    .ec-color-picker__preview { padding: .6rem .85rem; border-inline-start: 0; border-bottom: 1px solid var(--ec-line); }
    .ec-color-picker.has-palette-preview .ec-color-plane { height: clamp(4rem, 15dvh, 7rem); }
    .ec-color-picker.has-palette-preview .ec-palette-preview__banner { display: none; }
}
.ec-store .ec-dealer .store-fields { margin-top: .75rem; }
.ec-search { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin-bottom: 1rem; }
.ec-search label { flex: 1 1 16rem; }
.ec-search button { margin: 0; }
.ec-store :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #255ea9; outline-offset: 3px; }
.ec-stock { width: fit-content; padding: .2rem .65rem; border-radius: 999px; background: #e7f6ee; color: #145d3b; font-size: .875rem; font-weight: 600; }
.ec-stock.is-out { background: #fbe9e7; color: #8c241d; }
.ec-pay-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.ec-store .ec-pay-secondary { border: 1px solid #8395ae; background: #fff; color: var(--ec-ink); }
.ec-shop-links { display: flex; gap: 1rem; margin-bottom: 1rem; }
.ec-shop-links a { display: inline-flex; align-items: center; gap: .4rem; }
.ec-opt-in { margin-top: 1rem; }
