.sl-artwork-checker {
    --slac-bg: #f6f6f6;
    --slac-panel: #ffffff;
    --slac-text: #222222;
    --slac-muted: #666666;
    --slac-border: #e2e2e2;
    --slac-accent: #7c4dff;
    --slac-good: #1f8f4d;
    --slac-warn: #c98200;
    --slac-bad: #c93636;
    color: var(--slac-text);
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 16px;
    box-sizing: border-box;
}

.sl-artwork-checker,
.sl-artwork-checker * { box-sizing: border-box; }

.sl-artwork-checker button,
.sl-artwork-checker input,
.sl-artwork-checker select {
    font: inherit;
}

.sl-artwork-checker button {
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.slac-hero {
    background: linear-gradient(135deg, #f7f4ff, #ffffff);
    border: 1px solid var(--slac-border);
    border-radius: 22px;
    padding: 34px;
    margin-bottom: 22px;
    text-align: center;
}

.slac-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ede7ff;
    color: #4b2bb8;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 12px;
}

.slac-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.slac-hero p {
    max-width: 760px;
    margin: 0 auto 16px;
    color: var(--slac-muted);
    font-size: 18px;
    line-height: 1.5;
}

.slac-privacy-note {
    display: inline-block;
    max-width: 760px;
    background: #ffffff;
    border: 1px solid var(--slac-border);
    border-radius: 14px;
    padding: 12px 16px;
    color: #444444;
    font-size: 14px;
    line-height: 1.45;
}

.slac-tool {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 22px;
    align-items: start;
}

.slac-panel {
    background: var(--slac-panel);
    border: 1px solid var(--slac-border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.slac-controls {
    position: sticky;
    top: 20px;
}

.slac-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.slac-step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--slac-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    line-height: 1;
}

.slac-step h2,
.slac-preview-heading h2 {
    margin: 0 0 4px;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: 0;
}

.slac-step p,
.slac-preview-heading p {
    margin: 0;
    color: var(--slac-muted);
    font-size: 14px;
    line-height: 1.4;
}

.slac-upload-box {
    position: relative;
    border: 2px dashed #d3c8ff;
    background: #faf8ff;
    border-radius: 18px;
    padding: 26px 18px;
    text-align: center;
    cursor: pointer;
    transition: 0.18s ease;
    margin-bottom: 14px;
}

.slac-upload-box:hover,
.slac-upload-box.drag-over {
    background: #f2edff;
    border-color: var(--slac-accent);
    transform: translateY(-1px);
}

.slac-file-input { display: none !important; }

.slac-upload-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: var(--slac-accent);
    color: #ffffff;
    font-size: 34px;
    line-height: 48px;
    font-weight: 300;
}

.slac-upload-box strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.slac-upload-box span {
    color: var(--slac-muted);
    font-size: 14px;
}

.slac-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 12px;
    cursor: pointer;
    color: #333333;
    font-size: 14px;
    font-weight: 600;
}

.slac-toggle > input {
    display: none !important;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.slac-toggle-ui {
    width: 46px;
    height: 26px;
    background: #dddddd;
    border-radius: 999px;
    position: relative;
    transition: 0.2s ease;
    flex: 0 0 auto;
}

.slac-toggle-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    transition: 0.2s ease;
}

.slac-toggle input:checked + .slac-toggle-ui { background: var(--slac-accent); }
.slac-toggle input:checked + .slac-toggle-ui::after { transform: translateX(20px); }
.slac-toggle-label { line-height: 1.35; }

.slac-file-info {
    background: var(--slac-bg);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--slac-muted);
    font-size: 14px;
    line-height: 1.4;
}

.slac-panel hr {
    border: 0;
    border-top: 1px solid var(--slac-border);
    margin: 22px 0;
}

.slac-section-title,
.slac-label-title {
    display: block;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}

.slac-shape-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.slac-shape-btn,
.slac-cutline-btn,
.slac-remove-mode-btn,
.slac-position-btn,
.slac-nudge-btn,
.slac-scale-step-btn,
.slac-download-btn,
.slac-svg-btn,
.slac-order-btn,
.slac-custom-size-toggle,
.slac-custom-colour-btn {
    border: 1px solid var(--slac-border);
    background: #ffffff;
    color: var(--slac-text);
    border-radius: 12px;
    padding: 12px 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s ease;
    font-size: 14px;
    line-height: 1.25;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    word-break: normal;
}

.slac-shape-btn:hover,
.slac-cutline-btn:hover,
.slac-remove-mode-btn:hover,
.slac-position-btn:hover,
.slac-nudge-btn:hover,
.slac-scale-step-btn:hover,
.slac-custom-size-toggle:hover,
.slac-custom-colour-btn:hover {
    border-color: var(--slac-accent);
}

.slac-shape-btn.active,
.slac-cutline-btn.active,
.slac-remove-mode-btn.active,
.slac-custom-size-toggle.active,
.slac-custom-colour-btn.active {
    background: #f1ecff;
    border-color: var(--slac-accent);
    color: #4b2bb8;
}

.slac-shape-btn[data-shape="custom"] {
    font-size: 14px;
}

.slac-sizing-block { margin-bottom: 8px; }

.slac-label-block {
    display: block;
    margin-bottom: 14px;
}

.slac-size-select,
.slac-background-hex,
.slac-background-picker {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--slac-border);
    border-radius: 16px;
    background: #ffffff;
    color: var(--slac-text);
    padding: 12px 14px;
    box-shadow: none !important;
    outline: none;
}

.slac-custom-size-toggle,
.slac-custom-colour-btn {
    width: 100%;
    margin-bottom: 12px;
}
.slac-cutline-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 14px;
}

.slac-cutline-btn {
    min-height: 44px;
}

.slac-position-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.slac-position-btn {
    min-height: 42px;
    padding: 10px 14px;
    flex: 1;
}

.slac-nudge-grid {
    display: grid;
    grid-template-columns: repeat(3, 38px);
    gap: 5px;
}

.slac-nudge-btn,
.slac-scale-step-btn {
    width: 38px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    font-weight: 800;
}


.slac-custom-size-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 6px;
}

.slac-custom-size-fields.is-hidden,
.slac-background-controls.is-hidden,
.slac-remove-mode-wrap.is-hidden,
.slac-custom-colour-controls.is-hidden,
.slac-number-input.is-hidden,
.slac-range-label.is-hidden { display: none; }

.slac-number-input,
.slac-range-label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 16px;
}

.slac-input-suffix {
    display: flex;
    align-items: center;
    margin-top: 8px;
    border: 1px solid var(--slac-border);
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.slac-input-suffix input {
    width: 100%;
    border: 0 !important;
    outline: none;
    padding: 12px 10px 12px 12px;
    min-height: 44px;
    background: #ffffff;
    color: var(--slac-text);
    box-shadow: none !important;
}

.slac-input-suffix span {
    padding: 0 12px;
    color: var(--slac-muted);
    font-size: 13px;
    font-weight: 700;
}

.slac-size-help,
.slac-muted-note {
    margin: 0 0 16px;
    color: var(--slac-muted);
    font-size: 13px;
    line-height: 1.4;
}

.slac-range-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.slac-range-top em {
    font-style: normal;
    color: #4b2bb8;
    background: #f1ecff;
    border-radius: 999px;
    padding: 4px 9px;
    font-weight: 800;
    font-size: 12px;
    white-space: nowrap;
}

.slac-range-label input[type="range"] {
    width: 100%;
    accent-color: var(--slac-accent);
    cursor: pointer;
}

.slac-background-controls { margin: 6px 0 14px; }

.slac-custom-colour-controls {
    margin-top: 4px;
}

.slac-background-picker {
    padding: 4px;
    height: 48px;
    cursor: pointer;
}

.slac-colour-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.slac-swatch {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px var(--slac-border);
    cursor: pointer;
    padding: 0;
    min-height: 32px;
}

.slac-swatch.active { box-shadow: 0 0 0 2px var(--slac-accent); }

.slac-swatch-none {
    width: auto;
    min-width: 62px;
    padding: 0 12px;
    background: #ffffff;
    color: var(--slac-text);
    font-size: 13px;
    font-weight: 700;
}

.slac-preview-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.slac-preview-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 999px;
    padding: 7px 11px;
    background: #fff1f8;
    color: #b81d68;
    font-weight: 800;
    font-size: 12px;
}

.slac-canvas-wrap {
    background:
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    background-color: #fafafa;
    border: 1px solid var(--slac-border);
    border-radius: 18px;
    overflow: hidden;
    touch-action: none;
}

.slac-preview-canvas {
    display: block;
    width: 100%;
    height: auto;
    touch-action: none;
    cursor: grab;
}

.slac-preview-canvas:active { cursor: grabbing; }

.slac-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.slac-result-card {
    background: var(--slac-bg);
    border-radius: 14px;
    padding: 13px;
    min-height: 78px;
}

.slac-result-card strong {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.slac-result-card span {
    display: block;
    color: var(--slac-muted);
    font-size: 14px;
    line-height: 1.35;
}

.slac-quality-text.good { color: var(--slac-good); font-weight: 800; }
.slac-quality-text.warn { color: var(--slac-warn); font-weight: 800; }
.slac-quality-text.bad { color: var(--slac-bad); font-weight: 800; }

.slac-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
    align-items: stretch;
}

.slac-download-btn,
.slac-svg-btn,
.slac-order-btn {
    width: 100%;
    padding: 15px 16px;
    font-size: 15px;
    min-height: 52px;
}

.slac-download-btn,
.slac-svg-btn { background: #ffffff; }

.slac-download-btn:disabled,
.slac-svg-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.slac-order-btn {
    background: var(--slac-accent);
    color: #ffffff;
    border-color: var(--slac-accent);
}

.slac-order-btn:hover { filter: brightness(0.96); }

.slac-small-print {
    margin: 14px 0 0;
    color: var(--slac-muted);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 980px) {
    .slac-tool { grid-template-columns: 1fr; }
    .slac-controls { position: relative; top: auto; }
}

@media (max-width: 760px) {
    .slac-actions { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .sl-artwork-checker { padding-left: 12px; padding-right: 12px; }
    .slac-hero { padding: 24px 18px; }
    .slac-panel { padding: 17px; border-radius: 18px; }
    .slac-results { grid-template-columns: 1fr; }
    .slac-preview-heading { flex-direction: column; }
    .slac-shape-grid { grid-template-columns: 1fr 1fr; }
    .slac-custom-size-fields { grid-template-columns: 1fr; }
}

/* v0.9 refinements */
.slac-background-controls {
    background: #fafafa;
    border: 1px solid var(--slac-border);
    border-radius: 16px;
    padding: 14px;
}

.slac-custom-colour-controls {
    background: #ffffff;
    border: 1px solid var(--slac-border);
    border-radius: 14px;
    padding: 12px;
    margin-top: 10px;
}

.slac-background-picker {
    border-radius: 14px;
    padding: 3px;
    height: 54px;
    border: 1px solid var(--slac-border);
    background: #ffffff;
}

.slac-background-hex {
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.slac-colour-swatches {
    gap: 10px;
}

.slac-swatch {
    width: 34px;
    height: 34px;
    min-height: 34px;
    box-shadow: 0 0 0 1px var(--slac-border), 0 4px 12px rgba(0,0,0,.08);
}

.slac-swatch.active {
    box-shadow: 0 0 0 3px var(--slac-accent), 0 5px 14px rgba(124,77,255,.18);
}

.slac-position-controls {
    background: #fafafa;
    border: 1px solid var(--slac-border);
    border-radius: 16px;
    padding: 12px;
    margin-top: 14px;
}

.slac-position-btn {
    background: #f1ecff;
    border-color: #d8ccff;
    color: #4b2bb8;
    font-weight: 800;
}

.slac-nudge-grid {
    background: #ffffff;
    border: 1px solid var(--slac-border);
    border-radius: 14px;
    padding: 7px;
    grid-template-columns: repeat(3, 36px);
}

.slac-nudge-btn {
    width: 36px;
    height: 34px;
    min-height: 34px;
    border-radius: 10px;
    background: #ffffff;
    color: #4b2bb8;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.slac-results {
    align-items: stretch;
}

.slac-result-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 12px;
    border: 1px solid #eeeeee;
    background: linear-gradient(180deg, #ffffff, #f7f7f7);
    box-shadow: 0 4px 14px rgba(0,0,0,.035);
}

.slac-result-card strong {
    margin-bottom: 7px;
    font-size: 12px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.slac-result-card span {
    font-size: 14px;
}

.slac-custom-offset-wrap .slac-range-top em,
.slac-remove-strength-wrap .slac-range-top em {
    background: #eaf7ff;
    color: #005f90;
}

@media (max-width: 640px) {
    .slac-position-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .slac-nudge-grid {
        justify-content: center;
        margin: 0 auto;
    }
}

/* v0.10 polish */
.slac-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 12px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .01em;
}

.slac-section-title::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--slac-accent);
    box-shadow: 0 0 0 5px #f1ecff;
}

.slac-pre-background-toggle {
    margin-top: 0;
    margin-bottom: 14px;
}

.slac-size-select,
.slac-custom-size-toggle,
.slac-cutline-btn,
.slac-shape-btn,
.slac-position-btn,
.slac-nudge-btn,
.slac-scale-step-btn,
.slac-download-btn,
.slac-svg-btn,
.slac-order-btn {
    box-shadow: 0 2px 8px rgba(0,0,0,.025);
}

.slac-range-label {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    padding: 12px;
}

.slac-scale-wrap,
.slac-border-range-wrap,
.slac-smoothing-wrap,
.slac-corner-radius-wrap {
    background: #fbfbfb;
}

.slac-range-label input[type="range"] {
    height: 6px;
}

.slac-background-controls {
    background: linear-gradient(180deg, #ffffff, #fafafa);
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.035);
}

.slac-custom-colour-btn {
    min-height: 46px;
    border-radius: 12px;
    font-weight: 800;
    margin: 2px 0 12px;
}

.slac-custom-colour-controls {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    padding: 14px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 4px 16px rgba(0,0,0,.035);
}

.slac-colour-card-heading {
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 10px;
}

.slac-picker-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.slac-picker-tile,
.slac-hex-tile {
    display: block;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    padding: 12px;
}

.slac-background-picker {
    width: 100%;
    height: 52px;
    border: 0;
    padding: 0;
    border-radius: 12px;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
}

.slac-background-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.slac-background-picker::-webkit-color-swatch {
    border: 1px solid #dddddd;
    border-radius: 12px;
}

.slac-hex-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 50px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.slac-hex-input-wrap > span {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 12px;
    background: #f1ecff;
    color: #4b2bb8;
    font-weight: 900;
}

.slac-hex-input-wrap input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    min-height: 50px;
    padding: 0 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: #ffffff;
}

.slac-results {
    gap: 14px;
}

.slac-result-card {
    border-radius: 16px;
    min-height: 88px;
}

.slac-result-card strong {
    color: #222222;
}

.slac-quality-text.good,
.slac-quality-text.warn,
.slac-quality-text.bad {
    max-width: 170px;
}

@media (min-width: 560px) {
    .slac-picker-row {
        grid-template-columns: 1fr 1.25fr;
    }
}

/* v0.11.0 tidy-up */
.slac-canvas-wrap {
    aspect-ratio: 1 / 1;
}

.slac-preview-canvas {
    aspect-ratio: 1 / 1;
}

.slac-finished-size-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px auto 0;
    padding: 11px 16px;
    width: fit-content;
    max-width: 100%;
    background: #f7f4ff;
    border: 1px solid #ded4ff;
    border-radius: 999px;
    color: #4b2bb8;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.slac-finished-size-box strong {
    font-weight: 900;
}

.slac-position-controls.is-hidden {
    display: none !important;
}

.slac-result-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #eeeeee;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0,0,0,.035);
}

.slac-result-card strong {
    margin-bottom: 7px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.slac-range-top em {
    font-family: inherit !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
    min-width: 48px;
    text-align: center;
}

.slac-size-select {
    border-radius: 16px !important;
    appearance: auto;
}

.slac-section-title input,
.slac-cutline-buttons input,
.slac-toggle > input {
    display: none !important;
}

.slac-custom-colour-controls {
    background: #ffffff;
    border: 1px solid #e9e9e9;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.035);
}

.slac-picker-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.slac-picker-tile,
.slac-hex-tile {
    display: block;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    padding: 12px;
}

.slac-background-picker {
    height: 52px;
    padding: 6px !important;
    border-radius: 14px !important;
    background: #fff !important;
}

.slac-hex-input-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--slac-border);
    border-radius: 14px;
    overflow: hidden;
}

.slac-hex-input-wrap > span {
    padding: 0 12px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    background: #f7f7f7;
    color: #777;
    font-weight: 800;
    border-right: 1px solid #eeeeee;
}

.slac-background-hex {
    border: 0 !important;
    border-radius: 0 !important;
    min-height: 48px;
}

/* v0.12.0 sizing and control refinements */
.slac-label-block.is-hidden,
.slac-custom-size-toggle.is-hidden {
    display: none !important;
}

.slac-size-select-wrap {
    max-width: 300px;
}

.slac-size-select {
    max-width: 300px;
    width: 100%;
    border-radius: 16px !important;
    padding: 10px 42px 10px 14px !important;
    min-height: 44px;
    background-position: right 16px center;
}

.slac-sizing-block .slac-corner-radius-wrap {
    margin-top: 14px;
    margin-bottom: 8px;
}

.slac-custom-min-note {
    display: block;
    margin-top: 7px;
    color: var(--slac-muted);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
}


/* v0.13 background removal mode + preview smoothing tidy */
.slac-remove-mode-wrap {
    margin: 8px 0 14px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 12px;
}

.slac-mini-help {
    color: var(--slac-muted);
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 9px;
}

.slac-remove-mode-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.slac-remove-mode-btn {
    min-height: 40px;
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 13px;
}


/* v0.14.1 sizing row tidy */
.slac-sizing-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(155px, 0.72fr);
    gap: 10px;
    align-items: end;
}

.slac-sizing-block .slac-size-select-wrap {
    max-width: none;
    margin-bottom: 0;
}

.slac-sizing-block .slac-size-select {
    max-width: none;
    width: 100%;
}

.slac-sizing-block > .slac-custom-size-toggle {
    width: 100%;
    min-height: 44px;
    margin: 0;
    white-space: nowrap;
}

.slac-sizing-block .slac-custom-size-fields,
.slac-sizing-block .slac-corner-radius-wrap {
    grid-column: 1 / -1;
}

.slac-sizing-block .slac-corner-radius-wrap {
    margin-top: 4px;
}

@media (max-width: 520px) {
    .slac-sizing-block {
        grid-template-columns: 1fr;
    }

    .slac-sizing-block > .slac-custom-size-toggle {
        white-space: normal;
    }
}

.slac-swatch-white{position:relative;}
.slac-swatch-white::after{content:"";position:absolute;inset:4px;border-radius:999px;border:1px solid #d8d8d8;}


/* v0.16.0 sizing row + zero background default tidy */
.slac-sizing-block {
    grid-template-columns: minmax(0, 1fr) 132px !important;
    gap: 8px !important;
}

.slac-sizing-block .slac-size-select-wrap {
    min-width: 0;
}

.slac-sizing-block .slac-size-select {
    min-height: 42px !important;
    height: 42px !important;
    font-size: 14px !important;
    padding: 8px 38px 8px 14px !important;
    border-radius: 14px !important;
}

.slac-sizing-block > .slac-custom-size-toggle {
    min-height: 42px !important;
    height: 42px !important;
    padding: 8px 8px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
}

@media (max-width: 370px) {
    .slac-sizing-block {
        grid-template-columns: 1fr !important;
    }
}


/* v0.16.3 preview sizing + cut-line controls */
.slac-preview-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px auto 0;
}

.slac-preview-meta-row .slac-finished-size-box {
    margin: 0;
}

.slac-cutline-buttons-preview {
    display: inline-grid;
    grid-template-columns: repeat(3, auto);
    gap: 6px;
    margin: 0;
    width: auto;
}

.slac-cutline-buttons-preview .slac-cutline-btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 999px;
}

.slac-quality-text {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.slac-quality-label {
    display: block;
    font-weight: 900;
    line-height: 1.2;
}

.slac-quality-dpi {
    display: block;
    color: inherit;
    opacity: .9;
    font-weight: 800;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .slac-preview-meta-row {
        align-items: stretch;
    }

    .slac-preview-meta-row .slac-finished-size-box,
    .slac-cutline-buttons-preview {
        width: 100%;
    }

    .slac-cutline-buttons-preview {
        grid-template-columns: repeat(3, 1fr);
    }
}

.slac-scale-step-btn {
    color: #4b2bb8;
    background: #f7f3ff;
    border-color: #ded4ff;
}

/* v0.16.6 clearer cut-line controls */
.slac-cutline-preview-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.slac-cutline-preview-label {
    font-size: 13px;
    font-weight: 800;
    color: #4b2bb8;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .slac-cutline-preview-control {
        width: 100%;
    }
}

/* v0.16.7 colour swatches */
.slac-swatch {
    background: var(--slac-swatch-colour, #ffffff) !important;
    border-color: #ffffff !important;
    outline: none !important;
    transform: none !important;
}

.slac-swatch:hover,
.slac-swatch:focus,
.slac-swatch:active {
    background: var(--slac-swatch-colour, #ffffff) !important;
    border-color: #ffffff !important;
    transform: none !important;
    filter: none !important;
}

.slac-swatch.active,
.slac-swatch.active:hover,
.slac-swatch.active:focus {
    box-shadow: 0 0 0 2px var(--slac-accent) !important;
}

.slac-swatch-rainbow,
.slac-swatch-rainbow:hover,
.slac-swatch-rainbow:focus,
.slac-swatch-rainbow:active {
    background: conic-gradient(#ff004c, #ff8a00, #ffe600, #35d957, #00c2ff, #5b5cff, #d633ff, #ff004c) !important;
    color: #ffffff !important;
    position: relative;
}

.slac-swatch-rainbow span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #4b2bb8;
    font-weight: 900;
    font-size: 15px;
    line-height: 1;
}

/* v0.16.9 smart align controls */
.slac-position-main-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
}

.slac-smart-align-btn {
    background: #f7f3ff;
    border-color: #ded4ff;
    color: #4b2bb8;
}

@media (max-width: 640px) {
    .slac-position-main-buttons {
        grid-template-columns: 1fr;
    }
}

/* v0.17.6 preview smoothing control */
.slac-preview-smoothing-row {
    display: flex;
    justify-content: center;
    margin: 10px auto 0;
}

.slac-preview-smoothing-control {
    width: min(420px, 100%);
    margin: 0;
}

.slac-preview-smoothing-control.is-hidden {
    display: none !important;
}

/* v0.17.11 full-width preview smoothing */
.slac-preview-smoothing-row {
    width: 100%;
    display: block;
    margin: 12px 0 0;
}

.slac-preview-smoothing-control {
    width: 100% !important;
    max-width: none !important;
    margin: 0;
}

/* v0.17.13 print quality colours */
.slac-quality-text.good,
.slac-quality-text.good .slac-quality-label,
.slac-quality-text.good .slac-quality-dpi {
    color: #16a34a !important;
}

.slac-quality-text.warn,
.slac-quality-text.warn .slac-quality-label,
.slac-quality-text.warn .slac-quality-dpi {
    color: #d99a00 !important;
}

.slac-quality-text.bad,
.slac-quality-text.bad .slac-quality-label,
.slac-quality-text.bad .slac-quality-dpi {
    color: #dc2626 !important;
}

/* v0.17.14 keep uploaded file name contained */
.slac-file-info {
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    line-height: 1.35;
}

/* v0.17.29 cut file order attachment */
.slac-order-btn.is-loading {
    opacity: .7;
    cursor: wait;
}

.slac-attached-cutfile-notice {
    margin: 0 0 22px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #f5efff;
    border: 2px solid #5a2bd6;
    color: #2b166d;
    line-height: 1.45;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 10px 26px rgba(90, 43, 214, .12);
}

.slac-attached-cutfile-notice strong {
    display: block;
    margin: 0 0 6px;
    color: #4b20c6;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .01em;
}

.slac-attached-cutfile-notice-error {
    background: #fff4f4;
    border-color: #d92929;
    color: #a21d1d;
}

.slac-attached-cutfile-notice-error strong {
    color: #a21d1d;
}


/* v0.17.33 backup download choice modal */
.slac-choice-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 12, 28, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.slac-choice-modal {
    width: min(460px, 100%);
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
    color: #242033;
    text-align: center;
}

.slac-choice-modal h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    color: #241049;
    text-align: center;
    letter-spacing: normal;
    text-transform: none;
}

.slac-choice-modal p {
    margin: 0 auto 20px;
    max-width: 360px;
    font-size: 15px;
    line-height: 1.5;
    color: #575067;
    text-align: center;
    letter-spacing: normal;
    text-transform: none;
}

.slac-choice-actions {
    display: grid;
    gap: 10px;
}

.slac-choice-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 13px 16px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.18;
    cursor: pointer;
    text-align: center !important;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    letter-spacing: .02em !important;
    text-transform: none !important;
}

.slac-choice-download {
    background: #5a2bd6;
    color: #ffffff;
}

.slac-choice-proceed {
    background: #f1edf8;
    color: #3b245f;
}

.slac-choice-btn:focus {
    outline: 3px solid rgba(90, 43, 214, .24);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .slac-choice-modal {
        padding: 22px 18px;
    }

    .slac-choice-btn {
        font-size: 13px;
        padding: 12px 14px;
    }
}

/* v0.17.35 hide normal product uploader when cutline artwork is attached */
body.slac-has-attached-cutfile .wapf-field-container.imguploadsheets,
body.slac-has-attached-cutfile .wapf-field-container.field-a743adf,
body.slac-has-attached-cutfile .wapf-field-container[for="a743adf"] {
    display: none !important;
}

/* v0.17.36 attached artwork shape/size details */
.slac-attached-cutfile-details {
    display: block;
    margin-top: 10px;
    font-weight: 800;
    color: inherit;
}

/* v0.17.37 product notice shape/size reminder */
.slac-attached-cutfile-details {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 10px;
}

.slac-attached-cutfile-details span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(91, 43, 214, .12);
    color: #3b1cb5;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.slac-attached-cutfile-details b {
    font-weight: 900;
}

.slac-attached-cutfile-copy {
    display: block;
}

/* v0.17.38 make backup modal secondary option look clickable */
.slac-choice-proceed {
    position: relative;
    z-index: 0;
    overflow: hidden;
    background: #ffffff !important;
    color: #35106f !important;
    border: 2px solid transparent !important;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(90deg, #ff4fa3, #ff9a00, #ffee00, #00d26a, #00b3ff, #7c4dff, #ff4fa3) border-box !important;
    box-shadow: 0 5px 14px rgba(90, 43, 214, .12);
}

.slac-choice-proceed:hover,
.slac-choice-proceed:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(90, 43, 214, .18);
}

.slac-choice-download:hover,
.slac-choice-download:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(90, 43, 214, .22);
}

/* v0.17.39 product attached notice formatting fix */
.slac-attached-cutfile-title {
    display: block !important;
}

.slac-attached-cutfile-details {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    margin: 12px 0 12px !important;
    width: 100%;
}

.slac-attached-cutfile-detail {
    display: block !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    background: rgba(91, 43, 214, .10) !important;
    color: #35106f !important;
    line-height: 1.25 !important;
}

.slac-attached-cutfile-detail span {
    display: block !important;
    margin: 0 0 2px !important;
    color: #5b2bd6 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

.slac-attached-cutfile-detail strong {
    display: block !important;
    margin: 0 !important;
    color: #2b166d !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.slac-attached-cutfile-copy {
    display: block !important;
    margin-top: 0 !important;
}

@media (max-width: 480px) {
    .slac-attached-cutfile-details {
        grid-template-columns: 1fr;
    }
}

/* v0.17.41 make the main order CTA more noticeable */
.slac-order-btn {
    position: relative;
    border: 0 !important;
    background: linear-gradient(135deg, #7c3cff 0%, #5a2bd6 48%, #3f1faa 100%) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    letter-spacing: .01em !important;
    line-height: 1.2 !important;
    min-height: 58px !important;
    padding: 16px 20px !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 26px rgba(90, 43, 214, .26) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .14);
}

.slac-order-btn::after {
    content: "→";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-size: 18px;
    line-height: 1;
    transform: translateY(-1px);
}

.slac-order-btn:hover,
.slac-order-btn:focus {
    filter: none !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(90, 43, 214, .34) !important;
}

.slac-order-btn:disabled {
    background: #ded8ea !important;
    color: #8b81a0 !important;
    box-shadow: none !important;
    text-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.slac-order-btn:disabled::after {
    opacity: .45;
}

/* v0.17.42 order processing popup */
.slac-processing-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(15, 12, 28, .46);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.slac-processing-modal {
    width: min(420px, 100%);
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
    color: #241049;
    text-align: center;
}

.slac-processing-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 4px solid #eee7ff;
    border-top-color: #5a2bd6;
    animation: slac-spin .8s linear infinite;
}

.slac-processing-modal h3 {
    margin: 0 0 8px;
    color: #241049;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: normal;
    text-transform: none;
}

.slac-processing-modal p {
    margin: 0 auto;
    max-width: 330px;
    color: #575067;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
}

@keyframes slac-spin {
    to { transform: rotate(360deg); }
}

/* v0.17.44 swap backup modal button emphasis */
.slac-choice-download {
    position: relative;
    z-index: 0;
    overflow: hidden;
    background: #ffffff !important;
    color: #35106f !important;
    border: 2px solid transparent !important;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(90deg, #ff4fa3, #ff9a00, #ffee00, #00d26a, #00b3ff, #7c4dff, #ff4fa3) border-box !important;
    box-shadow: 0 5px 14px rgba(90, 43, 214, .12) !important;
}

.slac-choice-proceed {
    background: #5a2bd6 !important;
    color: #ffffff !important;
    border: 2px solid #5a2bd6 !important;
    box-shadow: 0 8px 20px rgba(90, 43, 214, .22) !important;
}

.slac-choice-download:hover,
.slac-choice-download:focus,
.slac-choice-proceed:hover,
.slac-choice-proceed:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(90, 43, 214, .24) !important;
}

/* v0.17.45 final backup modal button colours - prevents grey flash */
.slac-choice-modal .slac-choice-btn.slac-choice-backup,
.slac-choice-modal .slac-choice-btn.slac-choice-download {
    position: relative !important;
    z-index: 0 !important;
    overflow: hidden !important;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(90deg, #ff4fa3, #ff9a00, #ffee00, #00d26a, #00b3ff, #7c4dff, #ff4fa3) border-box !important;
    color: #35106f !important;
    border: 2px solid transparent !important;
    box-shadow: 0 5px 14px rgba(90, 43, 214, .12) !important;
}

.slac-choice-modal .slac-choice-btn.slac-choice-order-only,
.slac-choice-modal .slac-choice-btn.slac-choice-proceed {
    background: #5a2bd6 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 2px solid #5a2bd6 !important;
    box-shadow: 0 8px 20px rgba(90, 43, 214, .22) !important;
}

.slac-choice-modal .slac-choice-btn.slac-choice-order-only:hover,
.slac-choice-modal .slac-choice-btn.slac-choice-order-only:focus,
.slac-choice-modal .slac-choice-btn.slac-choice-proceed:hover,
.slac-choice-modal .slac-choice-btn.slac-choice-proceed:focus {
    background: #4b20c6 !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: #4b20c6 !important;
}

/* v0.17.46 backup modal back button */
.slac-choice-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 2px auto 0;
    padding: 6px 10px;
    border: 0;
    background: transparent;
    color: #6f6387;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    letter-spacing: normal;
    text-transform: none;
}

.slac-choice-back:hover,
.slac-choice-back:focus {
    color: #4b20c6;
    outline: none;
}

/* v0.17.47 upload processing bar */
.slac-upload-processing {
    margin: 10px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7f3ff;
    border: 1px solid #d8cbff;
    color: #2b166d;
}

.slac-upload-processing.is-hidden {
    display: none !important;
}

.slac-upload-processing strong {
    display: block;
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 900;
    color: #4b20c6;
}

.slac-upload-processing span {
    display: block;
    margin: 0 0 9px;
    font-size: 13px;
    line-height: 1.35;
    color: #5f5477;
}

.slac-upload-processing-bar {
    position: relative;
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: #e7defd;
}

.slac-upload-processing-bar i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 38%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff4fa3, #ff9a00, #ffee00, #00d26a, #00b3ff, #7c4dff);
    animation: slac-upload-progress 1s ease-in-out infinite;
}

.slac-upload-box.is-processing {
    border-color: #7c3cff !important;
    box-shadow: 0 10px 22px rgba(90, 43, 214, .12);
}

@keyframes slac-upload-progress {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(280%); }
}

/* v0.17.47 boxed back-to-calculator button */
.slac-choice-back {
    width: auto !important;
    min-height: 34px !important;
    margin: 4px auto 0 !important;
    padding: 8px 14px !important;
    border: 1px solid #d8cbff !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #4b20c6 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    text-underline-offset: 0 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    box-shadow: 0 4px 12px rgba(90, 43, 214, .08);
}

.slac-choice-back:hover,
.slac-choice-back:focus {
    color: #ffffff !important;
    background: #5a2bd6 !important;
    border-color: #5a2bd6 !important;
    outline: 3px solid rgba(90, 43, 214, .18);
    outline-offset: 2px;
}

/* v0.17.48 upload size limit note */
.slac-upload-limit {
    display: block;
    margin-top: 5px;
    color: #7a7289;
    font-size: 12px;
    line-height: 1.25;
    font-style: normal;
    font-weight: 800;
}

.slac-upload-box:hover .slac-upload-limit,
.slac-upload-box.drag-over .slac-upload-limit,
.slac-upload-box.is-processing .slac-upload-limit {
    color: #5a2bd6;
}

/* v0.17.49 cleaner upload size limit text */
.slac-upload-box .slac-upload-limit {
    display: block !important;
    margin: 7px 0 0 !important;
    color: #6f6387 !important;
    font-family: inherit !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-style: normal !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.slac-upload-box:hover .slac-upload-limit,
.slac-upload-box.drag-over .slac-upload-limit,
.slac-upload-box.is-processing .slac-upload-limit {
    color: #5a2bd6 !important;
}

/* v0.17.50 stop option buttons flashing grey on click/tap */
.slac-tool button.slac-shape-btn,
.slac-tool button.slac-cutline-btn,
.slac-tool button.slac-remove-mode-btn,
.slac-tool button.slac-position-btn,
.slac-tool button.slac-nudge-btn,
.slac-tool button.slac-scale-step-btn,
.slac-tool button.slac-custom-size-toggle,
.slac-tool button.slac-custom-colour-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    box-shadow: none;
}

.slac-tool button.slac-shape-btn:active,
.slac-tool button.slac-cutline-btn:active,
.slac-tool button.slac-remove-mode-btn:active,
.slac-tool button.slac-position-btn:active,
.slac-tool button.slac-nudge-btn:active,
.slac-tool button.slac-scale-step-btn:active,
.slac-tool button.slac-custom-size-toggle:active,
.slac-tool button.slac-custom-colour-btn:active {
    background: #f1ecff !important;
    border-color: var(--slac-accent) !important;
    color: #4b2bb8 !important;
    transform: none !important;
}

.slac-tool button.slac-shape-btn.active,
.slac-tool button.slac-cutline-btn.active,
.slac-tool button.slac-remove-mode-btn.active,
.slac-tool button.slac-custom-size-toggle.active,
.slac-tool button.slac-custom-colour-btn.active,
.slac-tool button.slac-shape-btn.active:hover,
.slac-tool button.slac-cutline-btn.active:hover,
.slac-tool button.slac-remove-mode-btn.active:hover,
.slac-tool button.slac-custom-size-toggle.active:hover,
.slac-tool button.slac-custom-colour-btn.active:hover,
.slac-tool button.slac-shape-btn.active:focus,
.slac-tool button.slac-cutline-btn.active:focus,
.slac-tool button.slac-remove-mode-btn.active:focus,
.slac-tool button.slac-custom-size-toggle.active:focus,
.slac-tool button.slac-custom-colour-btn.active:focus,
.slac-tool button.slac-shape-btn.active:active,
.slac-tool button.slac-cutline-btn.active:active,
.slac-tool button.slac-remove-mode-btn.active:active,
.slac-tool button.slac-custom-size-toggle.active:active,
.slac-tool button.slac-custom-colour-btn.active:active {
    background: #f1ecff !important;
    border-color: var(--slac-accent) !important;
    color: #4b2bb8 !important;
}

.slac-tool button.slac-shape-btn:focus,
.slac-tool button.slac-cutline-btn:focus,
.slac-tool button.slac-remove-mode-btn:focus,
.slac-tool button.slac-position-btn:focus,
.slac-tool button.slac-nudge-btn:focus,
.slac-tool button.slac-scale-step-btn:focus,
.slac-tool button.slac-custom-size-toggle:focus,
.slac-tool button.slac-custom-colour-btn:focus {
    outline: 3px solid rgba(90, 43, 214, .16) !important;
    outline-offset: 2px !important;
}

/* v0.17.51 consistent action button sizing */
.slac-actions .slac-download-btn,
.slac-actions .slac-svg-btn,
.slac-actions .slac-order-btn {
    min-height: 58px !important;
    padding: 16px 20px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    letter-spacing: .01em !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.slac-actions .slac-download-btn,
.slac-actions .slac-svg-btn {
    border: 1px solid #d8cbff !important;
    background: #ffffff !important;
    color: #35106f !important;
    box-shadow: 0 8px 18px rgba(90, 43, 214, .10) !important;
}

.slac-actions .slac-download-btn:hover,
.slac-actions .slac-svg-btn:hover,
.slac-actions .slac-download-btn:focus,
.slac-actions .slac-svg-btn:focus {
    border-color: #5a2bd6 !important;
    color: #4b20c6 !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(90, 43, 214, .16) !important;
}

.slac-actions .slac-download-btn:disabled,
.slac-actions .slac-svg-btn:disabled {
    transform: none !important;
    box-shadow: none !important;
    opacity: .5 !important;
}

/* v0.17.51 make back-to-calculator match the modal button shape */
.slac-choice-modal .slac-choice-back {
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    border: 1px solid #d8cbff !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #4b20c6 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    box-shadow: 0 5px 14px rgba(90, 43, 214, .08) !important;
}

.slac-choice-modal .slac-choice-back:hover,
.slac-choice-modal .slac-choice-back:focus {
    color: #4b20c6 !important;
    background: #f7f3ff !important;
    border-color: #5a2bd6 !important;
    outline: 3px solid rgba(90, 43, 214, .16) !important;
    outline-offset: 2px !important;
}

/* v0.17.52 remove purple shadows from the main action buttons */
.slac-actions .slac-download-btn,
.slac-actions .slac-svg-btn,
.slac-actions .slac-order-btn,
.slac-actions .slac-download-btn:hover,
.slac-actions .slac-svg-btn:hover,
.slac-actions .slac-order-btn:hover,
.slac-actions .slac-download-btn:focus,
.slac-actions .slac-svg-btn:focus,
.slac-actions .slac-order-btn:focus,
.slac-actions .slac-download-btn:disabled,
.slac-actions .slac-svg-btn:disabled,
.slac-actions .slac-order-btn:disabled {
    box-shadow: none !important;
    text-shadow: none !important;
}

/* v0.17.52 make back-to-calculator small again, but still boxed */
.slac-choice-modal .slac-choice-back {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 34px !important;
    margin: 4px auto 0 !important;
    padding: 8px 14px !important;
    border: 1px solid #d8cbff !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #4b20c6 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
}

.slac-choice-modal .slac-choice-back:hover,
.slac-choice-modal .slac-choice-back:focus {
    color: #4b20c6 !important;
    background: #f7f3ff !important;
    border-color: #5a2bd6 !important;
    box-shadow: none !important;
}

/* v0.17.53 remove odd offset outline from modal buttons */
.slac-choice-modal .slac-choice-btn,
.slac-choice-modal .slac-choice-btn:hover,
.slac-choice-modal .slac-choice-btn:focus,
.slac-choice-modal .slac-choice-btn:focus-visible,
.slac-choice-modal .slac-choice-btn:active {
    outline: none !important;
}

.slac-choice-modal .slac-choice-btn.slac-choice-order-only,
.slac-choice-modal .slac-choice-btn.slac-choice-proceed,
.slac-choice-modal .slac-choice-btn.slac-choice-order-only:hover,
.slac-choice-modal .slac-choice-btn.slac-choice-proceed:hover,
.slac-choice-modal .slac-choice-btn.slac-choice-order-only:focus,
.slac-choice-modal .slac-choice-btn.slac-choice-proceed:focus,
.slac-choice-modal .slac-choice-btn.slac-choice-order-only:focus-visible,
.slac-choice-modal .slac-choice-btn.slac-choice-proceed:focus-visible,
.slac-choice-modal .slac-choice-btn.slac-choice-order-only:active,
.slac-choice-modal .slac-choice-btn.slac-choice-proceed:active {
    background: #5a2bd6 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 2px solid #5a2bd6 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
}

.slac-choice-modal .slac-choice-btn.slac-choice-backup,
.slac-choice-modal .slac-choice-btn.slac-choice-download,
.slac-choice-modal .slac-choice-btn.slac-choice-backup:hover,
.slac-choice-modal .slac-choice-btn.slac-choice-download:hover,
.slac-choice-modal .slac-choice-btn.slac-choice-backup:focus,
.slac-choice-modal .slac-choice-btn.slac-choice-download:focus,
.slac-choice-modal .slac-choice-btn.slac-choice-backup:focus-visible,
.slac-choice-modal .slac-choice-btn.slac-choice-download:focus-visible,
.slac-choice-modal .slac-choice-btn.slac-choice-backup:active,
.slac-choice-modal .slac-choice-btn.slac-choice-download:active {
    box-shadow: none !important;
    outline: none !important;
}

/* v0.17.54 remove odd offset outline from Back to calculator */
.slac-choice-modal .slac-choice-back,
.slac-choice-modal .slac-choice-back:hover,
.slac-choice-modal .slac-choice-back:focus,
.slac-choice-modal .slac-choice-back:focus-visible,
.slac-choice-modal .slac-choice-back:active {
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
}

.slac-choice-modal .slac-choice-back:hover,
.slac-choice-modal .slac-choice-back:focus,
.slac-choice-modal .slac-choice-back:focus-visible,
.slac-choice-modal .slac-choice-back:active {
    color: #4b20c6 !important;
    background: #f7f3ff !important;
    border-color: #5a2bd6 !important;
}

/* v0.17.55 nicer hover states for calculator controls - stop theme orange */
.sl-artwork-checker .slac-tool button.slac-shape-btn,
.sl-artwork-checker .slac-tool button.slac-cutline-btn,
.sl-artwork-checker .slac-tool button.slac-remove-mode-btn,
.sl-artwork-checker .slac-tool button.slac-position-btn,
.sl-artwork-checker .slac-tool button.slac-nudge-btn,
.sl-artwork-checker .slac-tool button.slac-scale-step-btn,
.sl-artwork-checker .slac-tool button.slac-custom-size-toggle,
.sl-artwork-checker .slac-tool button.slac-custom-colour-btn {
    background-image: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.sl-artwork-checker .slac-tool button.slac-shape-btn:hover,
.sl-artwork-checker .slac-tool button.slac-cutline-btn:hover,
.sl-artwork-checker .slac-tool button.slac-remove-mode-btn:hover,
.sl-artwork-checker .slac-tool button.slac-position-btn:hover,
.sl-artwork-checker .slac-tool button.slac-nudge-btn:hover,
.sl-artwork-checker .slac-tool button.slac-scale-step-btn:hover,
.sl-artwork-checker .slac-tool button.slac-custom-size-toggle:hover,
.sl-artwork-checker .slac-tool button.slac-custom-colour-btn:hover {
    background: #f7f3ff !important;
    border-color: #5a2bd6 !important;
    color: #4b20c6 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: translateY(-1px);
}

.sl-artwork-checker .slac-tool button.slac-shape-btn:focus,
.sl-artwork-checker .slac-tool button.slac-cutline-btn:focus,
.sl-artwork-checker .slac-tool button.slac-remove-mode-btn:focus,
.sl-artwork-checker .slac-tool button.slac-position-btn:focus,
.sl-artwork-checker .slac-tool button.slac-nudge-btn:focus,
.sl-artwork-checker .slac-tool button.slac-scale-step-btn:focus,
.sl-artwork-checker .slac-tool button.slac-custom-size-toggle:focus,
.sl-artwork-checker .slac-tool button.slac-custom-colour-btn:focus,
.sl-artwork-checker .slac-tool button.slac-shape-btn:focus-visible,
.sl-artwork-checker .slac-tool button.slac-cutline-btn:focus-visible,
.sl-artwork-checker .slac-tool button.slac-remove-mode-btn:focus-visible,
.sl-artwork-checker .slac-tool button.slac-position-btn:focus-visible,
.sl-artwork-checker .slac-tool button.slac-nudge-btn:focus-visible,
.sl-artwork-checker .slac-tool button.slac-scale-step-btn:focus-visible,
.sl-artwork-checker .slac-tool button.slac-custom-size-toggle:focus-visible,
.sl-artwork-checker .slac-tool button.slac-custom-colour-btn:focus-visible {
    background: #f7f3ff !important;
    border-color: #5a2bd6 !important;
    color: #4b20c6 !important;
    outline: 2px solid rgba(90, 43, 214, .18) !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.sl-artwork-checker .slac-tool button.slac-shape-btn.active,
.sl-artwork-checker .slac-tool button.slac-cutline-btn.active,
.sl-artwork-checker .slac-tool button.slac-remove-mode-btn.active,
.sl-artwork-checker .slac-tool button.slac-custom-size-toggle.active,
.sl-artwork-checker .slac-tool button.slac-custom-colour-btn.active,
.sl-artwork-checker .slac-tool button.slac-shape-btn.active:hover,
.sl-artwork-checker .slac-tool button.slac-cutline-btn.active:hover,
.sl-artwork-checker .slac-tool button.slac-remove-mode-btn.active:hover,
.sl-artwork-checker .slac-tool button.slac-custom-size-toggle.active:hover,
.sl-artwork-checker .slac-tool button.slac-custom-colour-btn.active:hover,
.sl-artwork-checker .slac-tool button.slac-shape-btn.active:focus,
.sl-artwork-checker .slac-tool button.slac-cutline-btn.active:focus,
.sl-artwork-checker .slac-tool button.slac-remove-mode-btn.active:focus,
.sl-artwork-checker .slac-tool button.slac-custom-size-toggle.active:focus,
.sl-artwork-checker .slac-tool button.slac-custom-colour-btn.active:focus {
    background: #f1ecff !important;
    border-color: #5a2bd6 !important;
    color: #4b20c6 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Colour swatches, including white/custom, should not inherit orange hover either */
.sl-artwork-checker .slac-swatch,
.sl-artwork-checker .slac-swatch:hover,
.sl-artwork-checker .slac-swatch:focus,
.sl-artwork-checker .slac-swatch:focus-visible,
.sl-artwork-checker .slac-swatch:active {
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.sl-artwork-checker .slac-swatch:hover,
.sl-artwork-checker .slac-swatch:focus,
.sl-artwork-checker .slac-swatch:focus-visible {
    border-color: #5a2bd6 !important;
    outline: 2px solid rgba(90, 43, 214, .18) !important;
    outline-offset: 2px !important;
}

.sl-artwork-checker .slac-swatch.active,
.sl-artwork-checker .slac-swatch.active:hover,
.sl-artwork-checker .slac-swatch.active:focus {
    border-color: #5a2bd6 !important;
    outline: 2px solid rgba(90, 43, 214, .22) !important;
    outline-offset: 2px !important;
}

/* v0.17.64 move colour choice directly under background size */
.slac-background-controls > .slac-label-title:first-of-type {
    margin-top: 0;
}

.slac-background-controls .slac-colour-swatches {
    margin-bottom: 16px;
}

.slac-background-controls .slac-custom-colour-controls {
    margin-bottom: 16px;
}

/* v0.17.65 remove file type card and spread out result boxes */
.slac-results {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.slac-result-card {
    min-height: 90px !important;
    padding: 16px !important;
}

.slac-result-card strong {
    font-size: 14px !important;
    margin-bottom: 8px !important;
}

.slac-result-card span {
    font-size: 15px !important;
    line-height: 1.4 !important;
}

.slac-quality-label,
.slac-quality-dpi {
    display: block;
}

@media (max-width: 520px) {
    .slac-results {
        grid-template-columns: 1fr !important;
    }
}

/* v0.17.66 compact upload box after artwork is uploaded */
.slac-upload-box.has-file {
    min-height: 0 !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    row-gap: 1px !important;
    align-items: center !important;
    text-align: left !important;
}

.slac-upload-box.has-file .slac-upload-icon {
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    grid-row: 1 / span 3 !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

.slac-upload-box.has-file strong {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
}

.slac-upload-box.has-file > span:not(.slac-upload-limit) {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
}

.slac-upload-box.has-file .slac-upload-limit {
    margin: 2px 0 0 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
}

.sl-artwork-checker.slac-has-artwork .slac-file-info {
    margin-top: 8px !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
}

/* v0.17.67 compress print quality / artwork size result boxes */
.slac-results {
    gap: 12px !important;
    margin-top: 12px !important;
}

.slac-result-card {
    min-height: 0 !important;
    padding: 11px 14px !important;
    border-radius: 12px !important;
}

.slac-result-card strong {
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
    letter-spacing: .03em !important;
}

.slac-result-card span {
    font-size: 14px !important;
    line-height: 1.25 !important;
}

.slac-quality-label,
.slac-quality-dpi {
    line-height: 1.25 !important;
}

/* v0.17.68 centre upload plus icon and compact section 2 after upload */
.slac-upload-icon,
.slac-upload-box.has-file .slac-upload-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-align: center !important;
}

.slac-upload-box.has-file .slac-upload-icon {
    font-size: 25px !important;
    padding-bottom: 2px !important;
}

.sl-artwork-checker.slac-has-artwork .slac-panel hr {
    margin: 16px 0 !important;
}

.sl-artwork-checker.slac-has-artwork .slac-step {
    gap: 10px !important;
    margin-bottom: 12px !important;
}

.sl-artwork-checker.slac-has-artwork .slac-step-number {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size: 14px !important;
}

.sl-artwork-checker.slac-has-artwork .slac-step h2 {
    font-size: 19px !important;
    margin-bottom: 2px !important;
}

.sl-artwork-checker.slac-has-artwork .slac-step p {
    font-size: 13px !important;
    line-height: 1.3 !important;
}

.sl-artwork-checker.slac-has-artwork .slac-shape-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.sl-artwork-checker.slac-has-artwork .slac-shape-btn {
    min-height: 40px !important;
    padding: 9px 8px !important;
    border-radius: 11px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
}

@media (max-width: 480px) {
    .sl-artwork-checker.slac-has-artwork .slac-shape-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* v0.17.69 compress sizing/removal controls for mobile */
.slac-sizing-step-text {
    max-width: 260px;
}

.sl-artwork-checker.slac-has-artwork .slac-size-help {
    margin: -2px 0 12px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
}

.slac-remove-white-toggle {
    margin-bottom: 8px !important;
}

.slac-remove-mode-wrap {
    margin: 6px 0 10px !important;
    padding: 10px !important;
    border-radius: 14px !important;
}

.slac-mini-help {
    font-size: 12px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
}

.slac-remove-mode-buttons {
    gap: 7px !important;
}

.slac-remove-mode-btn {
    min-height: 36px !important;
    padding: 8px 8px !important;
    border-radius: 11px !important;
}

.slac-remove-strength-wrap {
    padding: 10px 12px !important;
    margin-bottom: 10px !important;
}

.slac-remove-strength-wrap .slac-range-top {
    margin-bottom: 7px !important;
}

.slac-remove-strength-wrap .slac-range-top strong {
    white-space: nowrap !important;
}

.slac-range-inline {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.slac-range-inline input[type="range"] {
    width: 100% !important;
}

.slac-range-inline em {
    font-style: normal;
    color: #005f90;
    background: #eaf7ff;
    border-radius: 999px;
    padding: 4px 9px;
    font-weight: 800;
    font-size: 12px;
    white-space: nowrap;
}

/* v0.17.70 tighter results and mobile preview scroll fix */
.slac-result-card {
    padding: 9px 12px !important;
    border-radius: 12px !important;
}

.slac-result-card strong {
    font-size: 12px !important;
    line-height: 1.15 !important;
    margin-bottom: 4px !important;
}

.slac-result-card span,
.slac-quality-text {
    font-size: 14px !important;
    line-height: 1.2 !important;
}

.slac-quality-label,
.slac-quality-dpi {
    display: inline !important;
}

/* Let iPhone users scroll the page when touching blank preview area */
.slac-canvas-wrap,
.slac-preview-canvas {
    touch-action: pan-y pinch-zoom !important;
}

/* v0.17.71 mobile upload auto-scroll anchor */
.slac-style-step {
    scroll-margin-top: 10px;
}

/* v0.17.72 iPhone touch fix: allow page scroll except during artwork drag/pinch */
.slac-canvas-wrap,
.slac-preview-canvas {
    touch-action: auto !important;
}

/* v0.17.73 mobile compression for preview controls and range boxes */
@media (max-width: 640px) {
    .slac-position-controls {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 10px !important;
        align-items: center !important;
        margin-top: 10px !important;
    }

    .slac-position-main-buttons {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        min-width: 0 !important;
    }

    .slac-position-main-buttons .slac-position-btn {
        min-height: 38px !important;
        padding: 8px 10px !important;
        border-radius: 11px !important;
        font-size: 13px !important;
        width: 100% !important;
    }

    .slac-nudge-grid {
        grid-template-columns: repeat(3, 34px) !important;
        gap: 5px !important;
        margin: 0 !important;
        justify-content: end !important;
    }

    .slac-nudge-btn,
    .slac-scale-step-btn {
        width: 34px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        font-size: 13px !important;
    }

    .slac-width-field,
    .slac-height-field,
    .slac-longest-edge-field,
    .slac-corner-radius-wrap,
    .slac-scale-wrap,
    .slac-border-range-wrap,
    .slac-custom-offset-wrap,
    .slac-smoothing-wrap {
        padding: 9px 10px !important;
        margin-bottom: 9px !important;
        border-radius: 12px !important;
    }

    .slac-width-field .slac-range-top,
    .slac-height-field .slac-range-top,
    .slac-longest-edge-field .slac-range-top,
    .slac-corner-radius-wrap .slac-range-top,
    .slac-scale-wrap .slac-range-top,
    .slac-border-range-wrap .slac-range-top,
    .slac-custom-offset-wrap .slac-range-top,
    .slac-smoothing-wrap .slac-range-top {
        display: grid !important;
        grid-template-columns: auto auto !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 4px !important;
        gap: 8px !important;
    }

    .slac-width-field .slac-range-top strong,
    .slac-height-field .slac-range-top strong,
    .slac-longest-edge-field .slac-range-top strong,
    .slac-corner-radius-wrap .slac-range-top strong,
    .slac-scale-wrap .slac-range-top strong,
    .slac-border-range-wrap .slac-range-top strong,
    .slac-custom-offset-wrap .slac-range-top strong,
    .slac-smoothing-wrap .slac-range-top strong {
        font-size: 13px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .slac-width-field .slac-range-top em,
    .slac-height-field .slac-range-top em,
    .slac-longest-edge-field .slac-range-top em,
    .slac-corner-radius-wrap .slac-range-top em,
    .slac-scale-wrap .slac-range-top em,
    .slac-border-range-wrap .slac-range-top em,
    .slac-custom-offset-wrap .slac-range-top em,
    .slac-smoothing-wrap .slac-range-top em {
        padding: 3px 8px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .slac-width-field input[type="range"],
    .slac-height-field input[type="range"],
    .slac-longest-edge-field input[type="range"],
    .slac-corner-radius-wrap input[type="range"],
    .slac-scale-wrap input[type="range"],
    .slac-border-range-wrap input[type="range"],
    .slac-custom-offset-wrap input[type="range"],
    .slac-smoothing-wrap input[type="range"] {
        height: 5px !important;
        margin: 0 !important;
    }

    .slac-custom-min-note {
        margin-top: 5px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
    }
}

@media (max-width: 390px) {
    .slac-position-controls {
        grid-template-columns: 1fr !important;
    }

    .slac-nudge-grid {
        justify-content: center !important;
    }
}

/* v0.17.74 show custom-cut size note only for Custom cut */
.slac-custom-cut-size-help.is-hidden {
    display: none !important;
}

/* v0.17.75 tidy removal strength percentage pill */
.slac-remove-strength-wrap .slac-range-inline {
    grid-template-columns: minmax(0, 1fr) 48px !important;
    gap: 9px !important;
}

.slac-remove-strength-wrap .slac-range-inline em.slac-remove-strength-value {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
    background: #eef8ff !important;
    color: #0073aa !important;
    border: 1px solid #d6eefc !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    font-style: normal !important;
    box-shadow: none !important;
}

.slac-remove-strength-wrap .slac-range-inline input[type="range"] {
    min-width: 0 !important;
    margin: 0 !important;
}

/* v0.17.76 mobile single-line sliders + aligned custom range thumbs */
.slac-range-label input[type="range"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 22px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% 5px !important;
    box-shadow: none !important;
    outline: none !important;
    accent-color: auto !important;
}

.slac-range-label input[type="range"]::-webkit-slider-runnable-track {
    height: 5px !important;
    border-radius: 999px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.slac-range-label input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    margin-top: -7.5px !important;
    border-radius: 999px !important;
    background: #7c4dff !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.18) !important;
}

.slac-range-label input[type="range"]::-moz-range-track {
    height: 5px !important;
    border-radius: 999px !important;
    background: transparent !important;
    border: 0 !important;
}

.slac-range-label input[type="range"]::-moz-range-progress {
    height: 5px !important;
    border-radius: 999px !important;
    background: #7c4dff !important;
}

.slac-range-label input[type="range"]::-moz-range-thumb {
    width: 18px !important;
    height: 18px !important;
    border-radius: 999px !important;
    background: #7c4dff !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.18) !important;
}

@media (max-width: 900px) {
    .slac-width-field,
    .slac-height-field,
    .slac-longest-edge-field,
    .slac-corner-radius-wrap,
    .slac-scale-wrap,
    .slac-border-range-wrap,
    .slac-custom-offset-wrap,
    .slac-smoothing-wrap,
    .slac-remove-strength-wrap {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        gap: 8px !important;
        align-items: center !important;
        padding: 9px 10px !important;
        margin-bottom: 9px !important;
        border-radius: 12px !important;
        min-height: 0 !important;
    }

    .slac-width-field .slac-range-top,
    .slac-height-field .slac-range-top,
    .slac-longest-edge-field .slac-range-top,
    .slac-corner-radius-wrap .slac-range-top,
    .slac-scale-wrap .slac-range-top,
    .slac-border-range-wrap .slac-range-top,
    .slac-custom-offset-wrap .slac-range-top,
    .slac-smoothing-wrap .slac-range-top,
    .slac-remove-strength-wrap .slac-range-top {
        display: contents !important;
        margin: 0 !important;
    }

    .slac-width-field .slac-range-top strong,
    .slac-height-field .slac-range-top strong,
    .slac-longest-edge-field .slac-range-top strong,
    .slac-corner-radius-wrap .slac-range-top strong,
    .slac-scale-wrap .slac-range-top strong,
    .slac-border-range-wrap .slac-range-top strong,
    .slac-custom-offset-wrap .slac-range-top strong,
    .slac-smoothing-wrap .slac-range-top strong,
    .slac-remove-strength-wrap .slac-range-top strong {
        grid-column: 1 !important;
        white-space: nowrap !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    .slac-width-field input[type="range"],
    .slac-height-field input[type="range"],
    .slac-longest-edge-field input[type="range"],
    .slac-corner-radius-wrap input[type="range"],
    .slac-scale-wrap input[type="range"],
    .slac-border-range-wrap input[type="range"],
    .slac-custom-offset-wrap input[type="range"],
    .slac-smoothing-wrap input[type="range"] {
        grid-column: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .slac-width-field .slac-range-top em,
    .slac-height-field .slac-range-top em,
    .slac-longest-edge-field .slac-range-top em,
    .slac-corner-radius-wrap .slac-range-top em,
    .slac-scale-wrap .slac-range-top em,
    .slac-border-range-wrap .slac-range-top em,
    .slac-custom-offset-wrap .slac-range-top em,
    .slac-smoothing-wrap .slac-range-top em {
        grid-column: 3 !important;
        padding: 3px 8px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    .slac-custom-min-note {
        grid-column: 1 / -1 !important;
        margin-top: 2px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    .slac-remove-strength-wrap .slac-range-inline {
        display: contents !important;
    }

    .slac-remove-strength-wrap .slac-range-inline input[type="range"] {
        grid-column: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .slac-remove-strength-wrap .slac-range-inline em.slac-remove-strength-value {
        grid-column: 3 !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 26px !important;
        border-radius: 9px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 390px) {
    .slac-width-field,
    .slac-height-field,
    .slac-longest-edge-field,
    .slac-corner-radius-wrap,
    .slac-scale-wrap,
    .slac-border-range-wrap,
    .slac-custom-offset-wrap,
    .slac-smoothing-wrap,
    .slac-remove-strength-wrap {
        grid-template-columns: 72px minmax(0, 1fr) auto !important;
        gap: 6px !important;
    }
}

/* v0.17.77 restore clean mobile slider layout */
@media (max-width: 900px) {
    .slac-width-field,
    .slac-height-field,
    .slac-longest-edge-field,
    .slac-corner-radius-wrap,
    .slac-scale-wrap,
    .slac-border-range-wrap,
    .slac-custom-offset-wrap,
    .slac-smoothing-wrap,
    .slac-remove-strength-wrap {
        display: block !important;
        padding: 10px 12px !important;
        margin-bottom: 10px !important;
        border-radius: 12px !important;
        min-height: 0 !important;
    }

    .slac-width-field .slac-range-top,
    .slac-height-field .slac-range-top,
    .slac-longest-edge-field .slac-range-top,
    .slac-corner-radius-wrap .slac-range-top,
    .slac-scale-wrap .slac-range-top,
    .slac-border-range-wrap .slac-range-top,
    .slac-custom-offset-wrap .slac-range-top,
    .slac-smoothing-wrap .slac-range-top,
    .slac-remove-strength-wrap .slac-range-top {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 6px !important;
    }

    .slac-width-field .slac-range-top strong,
    .slac-height-field .slac-range-top strong,
    .slac-longest-edge-field .slac-range-top strong,
    .slac-corner-radius-wrap .slac-range-top strong,
    .slac-scale-wrap .slac-range-top strong,
    .slac-border-range-wrap .slac-range-top strong,
    .slac-custom-offset-wrap .slac-range-top strong,
    .slac-smoothing-wrap .slac-range-top strong,
    .slac-remove-strength-wrap .slac-range-top strong {
        font-size: 13px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .slac-width-field .slac-range-top em,
    .slac-height-field .slac-range-top em,
    .slac-longest-edge-field .slac-range-top em,
    .slac-corner-radius-wrap .slac-range-top em,
    .slac-scale-wrap .slac-range-top em,
    .slac-border-range-wrap .slac-range-top em,
    .slac-custom-offset-wrap .slac-range-top em,
    .slac-smoothing-wrap .slac-range-top em {
        padding: 3px 8px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    .slac-width-field input[type="range"],
    .slac-height-field input[type="range"],
    .slac-longest-edge-field input[type="range"],
    .slac-corner-radius-wrap input[type="range"],
    .slac-scale-wrap input[type="range"],
    .slac-border-range-wrap input[type="range"],
    .slac-custom-offset-wrap input[type="range"],
    .slac-smoothing-wrap input[type="range"] {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        grid-column: auto !important;
    }

    .slac-remove-strength-wrap .slac-range-inline {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 44px !important;
        gap: 8px !important;
        align-items: center !important;
    }

    .slac-remove-strength-wrap .slac-range-inline input[type="range"] {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        grid-column: auto !important;
    }

    .slac-remove-strength-wrap .slac-range-inline em.slac-remove-strength-value {
        width: 44px !important;
        min-width: 44px !important;
        height: 26px !important;
        border-radius: 9px !important;
        font-size: 11px !important;
        grid-column: auto !important;
    }

    .slac-custom-min-note {
        display: block !important;
        margin-top: 5px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
        grid-column: auto !important;
    }
}

/* v0.17.77 cleaner iOS range appearance */
.slac-range-label input[type="range"] {
    width: 100% !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 22px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% 5px !important;
    box-shadow: none !important;
    outline: none !important;
}

.slac-range-label input[type="range"]::-webkit-slider-runnable-track {
    height: 5px !important;
    border-radius: 999px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.slac-range-label input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: -6.5px !important;
    border-radius: 999px !important;
    background: #7c4dff !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.18) !important;
}

/* v0.17.78 ensure hidden option panels stay hidden on mobile */
.slac-range-label.is-hidden,
.slac-background-controls.is-hidden,
.slac-remove-mode-wrap.is-hidden,
.slac-custom-colour-controls.is-hidden,
.slac-number-input.is-hidden,
.slac-custom-size-fields.is-hidden,
.slac-border-range-wrap.is-hidden,
.slac-remove-strength-wrap.is-hidden,
.slac-custom-offset-wrap.is-hidden,
.slac-smoothing-wrap.is-hidden,
.slac-corner-radius-wrap.is-hidden {
    display: none !important;
}

/* v0.17.79 larger mobile slider touch targets */
@media (max-width: 900px) {
    .slac-range-label input[type="range"] {
        height: 34px !important;
        background-size: 100% 7px !important;
    }

    .slac-range-label input[type="range"]::-webkit-slider-runnable-track {
        height: 7px !important;
        border-radius: 999px !important;
    }

    .slac-range-label input[type="range"]::-webkit-slider-thumb {
        width: 28px !important;
        height: 28px !important;
        margin-top: -10.5px !important;
        border: 3px solid #ffffff !important;
        box-shadow: 0 2px 7px rgba(0,0,0,.22) !important;
    }

    .slac-range-label input[type="range"]::-moz-range-track,
    .slac-range-label input[type="range"]::-moz-range-progress {
        height: 7px !important;
        border-radius: 999px !important;
    }

    .slac-range-label input[type="range"]::-moz-range-thumb {
        width: 24px !important;
        height: 24px !important;
        border: 3px solid #ffffff !important;
        box-shadow: 0 2px 7px rgba(0,0,0,.22) !important;
    }

    .slac-width-field,
    .slac-height-field,
    .slac-longest-edge-field,
    .slac-corner-radius-wrap,
    .slac-scale-wrap,
    .slac-border-range-wrap,
    .slac-custom-offset-wrap,
    .slac-smoothing-wrap,
    .slac-remove-strength-wrap {
        padding: 11px 12px !important;
    }
}

/* v0.17.80 hide nudge/scale button pad on mobile */
@media (max-width: 900px) {
    .slac-nudge-grid {
        display: none !important;
    }

    .slac-position-controls {
        display: block !important;
        margin-top: 10px !important;
    }

    .slac-position-main-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .slac-position-main-buttons .slac-position-btn {
        min-height: 38px !important;
        padding: 8px 10px !important;
        border-radius: 11px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 420px) {
    .slac-position-main-buttons {
        grid-template-columns: 1fr !important;
    }
}

/* v0.17.87 iPhone-safe preview save/share modal */
.slac-preview-download-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(20, 16, 35, .55);
    backdrop-filter: blur(4px);
}

.slac-preview-download-modal {
    position: relative;
    width: min(92vw, 520px);
    max-height: 88vh;
    overflow: auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 18px 50px rgba(0,0,0,.25);
    text-align: center;
}

.slac-preview-download-modal h3 {
    margin: 4px 36px 6px;
    font-size: 19px;
    line-height: 1.2;
    color: #2b2146;
}

.slac-preview-download-modal p {
    margin: 0 0 12px;
    color: #666;
    font-size: 13px;
    line-height: 1.35;
}

.slac-preview-download-modal img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 54vh;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fff;
}

.slac-preview-download-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #e8ddff;
    background: #f6f1ff;
    color: #4b2bb8;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}

.slac-preview-download-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
}

.slac-preview-share-btn,
.slac-preview-close-btn {
    min-height: 42px;
    border-radius: 12px;
    font-weight: 800;
}

.slac-preview-share-btn {
    background: #6f3cff !important;
    color: #fff !important;
    border: 1px solid #6f3cff !important;
}

.slac-preview-close-btn {
    background: #ffffff !important;
    color: #4b2bb8 !important;
    border: 1px solid #d8c8ff !important;
}

/* v0.17.88 tidy removal strength value pill */
.slac-remove-strength-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 7px 10px !important;
    align-items: center !important;
}

.slac-remove-strength-wrap .slac-range-top {
    display: contents !important;
    margin: 0 !important;
}

.slac-remove-strength-wrap .slac-range-top strong {
    grid-column: 1 !important;
    grid-row: 1 !important;
    white-space: nowrap !important;
}

.slac-remove-strength-wrap .slac-range-inline {
    display: contents !important;
}

.slac-remove-strength-wrap .slac-range-inline input[type="range"] {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.slac-remove-strength-wrap .slac-range-inline em.slac-remove-strength-value {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 46px !important;
    height: 26px !important;
    padding: 0 9px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #f0e9ff !important;
    color: #4b2bb8 !important;
    border: 0 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    font-style: normal !important;
    box-shadow: none !important;
}

@media (max-width: 900px) {
    .slac-remove-strength-wrap {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 7px 10px !important;
        padding: 11px 12px !important;
    }

    .slac-remove-strength-wrap .slac-range-inline {
        display: contents !important;
    }

    .slac-remove-strength-wrap .slac-range-inline input[type="range"] {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
    }

    .slac-remove-strength-wrap .slac-range-inline em.slac-remove-strength-value {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: auto !important;
        min-width: 46px !important;
        height: 26px !important;
        border-radius: 999px !important;
        font-size: 12px !important;
    }
}

/* v0.17.89 make removal strength value match other value pills */
.slac-remove-strength-wrap .slac-remove-strength-value,
.slac-remove-strength-wrap .slac-range-inline .slac-remove-strength-value,
.slac-remove-strength-wrap span.slac-remove-strength-value {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 46px !important;
    height: 26px !important;
    padding: 0 9px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #f1ecff !important;
    color: #4b2bb8 !important;
    border: 0 !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    font-style: normal !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

.slac-remove-strength-wrap .slac-range-inline {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
}

@media (max-width: 900px) {
    .slac-remove-strength-wrap .slac-remove-strength-value,
    .slac-remove-strength-wrap .slac-range-inline .slac-remove-strength-value,
    .slac-remove-strength-wrap span.slac-remove-strength-value {
        min-width: 46px !important;
        height: 26px !important;
        padding: 0 9px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        font-style: normal !important;
    }
}

/* v0.17.90 simplify removal strength layout */
.slac-remove-strength-wrap {
    display: block !important;
    padding: 11px 12px !important;
    border-radius: 12px !important;
}

.slac-remove-strength-wrap .slac-range-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 0 0 8px !important;
}

.slac-remove-strength-wrap .slac-range-top strong {
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.slac-remove-strength-wrap .slac-remove-strength-value {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 48px !important;
    height: 26px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #f1ecff !important;
    color: #4b2bb8 !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    font-style: normal !important;
    line-height: 1 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.slac-remove-strength-wrap .slac-range-inline {
    display: block !important;
    width: 100% !important;
}

.slac-remove-strength-wrap .slac-range-inline input[type="range"] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    .slac-remove-strength-wrap {
        display: block !important;
        padding: 11px 12px !important;
    }

    .slac-remove-strength-wrap .slac-range-top {
        display: flex !important;
        margin-bottom: 8px !important;
    }

    .slac-remove-strength-wrap .slac-range-inline {
        display: block !important;
    }

    .slac-remove-strength-wrap .slac-range-inline input[type="range"] {
        width: 100% !important;
    }
}

/* v0.17.91 integrated A4 sheet estimate */
.slac-sheet-estimate-card {
    margin: 12px 0 0;
    padding: 14px;
    border: 1px solid #eadfff;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbf9ff, #ffffff);
    box-shadow: 0 7px 22px rgba(75, 43, 184, .06);
}

.slac-sheet-estimate-card.is-hidden {
    display: none !important;
}

.slac-sheet-estimate-main {
    display: block;
}

.slac-sheet-estimate-kicker {
    display: inline;
    font-size: inherit;
    line-height: inherit;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
    color: #7c4dff;
}

.slac-sheet-estimate-main strong {
    display: block;
    color: #2b2146;
    font-size: 18px;
    line-height: 1.25;
}

.slac-sheet-count {
    color: #4b2bb8;
    font-weight: 950;
}

.slac-sheet-estimate-main p {
    margin: 0;
    color: #666;
    font-size: 12px;
    line-height: 1.35;
}

.slac-sheet-preview-toggle {
    width: 100%;
    min-height: 40px;
    margin-top: 11px;
    border-radius: 12px;
    border: 1px solid #d9c9ff;
    background: #ffffff;
    color: #4b2bb8;
    font-weight: 850;
    cursor: pointer;
}

.slac-sheet-preview-wrap {
    margin-top: 12px;
}

.slac-sheet-preview-wrap.is-hidden {
    display: none !important;
}

.slac-mini-sheet {
    position: relative;
    display: grid;
    gap: 1.5%;
    width: min(100%, 250px);
    aspect-ratio: 210 / 297;
    margin: 0 auto;
    padding: 6%;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.02);
}

.slac-mini-sheet-logo {
    position: absolute;
    top: 2.8%;
    left: 50%;
    transform: translateX(-50%);
    color: #ff6b2b;
    font-size: 6px;
    font-weight: 950;
    letter-spacing: -.02em;
    line-height: 1;
    pointer-events: none;
}

.slac-mini-sticker {
    display: block;
    align-self: center;
    justify-self: center;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    border: 1.5px solid #ff6b4a;
    background: #fffdfb;
    box-sizing: border-box;
}

.slac-mini-sticker-circle {
    border-radius: 999px;
}

.slac-mini-sticker-oval,
.slac-mini-sticker-pill {
    border-radius: 999px;
}

.slac-mini-sticker-rounded {
    border-radius: 18%;
}

.slac-mini-sticker-custom {
    border-radius: 28% 20% 24% 18%;
    border-style: dashed;
}

.slac-sheet-preview-note {
    margin-top: 8px;
    color: #666;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

@media (max-width: 640px) {
    .slac-sheet-estimate-card {
        padding: 12px;
        margin-top: 10px;
    }

    .slac-sheet-estimate-main strong {
        font-size: 16px;
    }

    .slac-mini-sheet {
        width: min(100%, 210px);
    }
}

/* v0.17.92 tighter sheet preview with customer artwork thumbnails */
.slac-sheet-estimate-main p {
    display: none !important;
}

.slac-mini-sheet {
    padding: 2.5% !important;
    gap: 1.1% !important;
    width: min(100%, 285px) !important;
    background: #fafaf8 !important;
}

.slac-mini-sheet-logo {
    display: none !important;
}

.slac-mini-sticker {
    background-color: #fff !important;
    background-image: var(--slac-mini-artwork-image, none) !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
}

.slac-mini-sticker-circle,
.slac-mini-sticker-oval,
.slac-mini-sticker-pill,
.slac-mini-sticker-rounded,
.slac-mini-sticker-custom {
    overflow: hidden !important;
}

.slac-sheet-preview-note {
    margin-top: 6px !important;
}

@media (max-width: 640px) {
    .slac-mini-sheet {
        width: min(100%, 240px) !important;
        padding: 2.25% !important;
        gap: 1% !important;
    }
}

/* v0.17.93 mini sheet cutline + preview button styling */
.slac-mini-sticker {
    position: relative !important;
    border: 0 !important;
}

.slac-mini-sticker::after {
    content: '';
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    pointer-events: none;
    border-width: 1.5px;
    border-style: dashed;
    border-color: #00b3ff #7c4dff #00d26a #ffb703;
    border-radius: inherit;
}

.slac-mini-sheet.slac-mini-cutline-solid .slac-mini-sticker::after {
    border-style: solid !important;
}

.slac-mini-sheet.slac-mini-cutline-dashed .slac-mini-sticker::after {
    border-style: dashed !important;
}

.slac-mini-sheet.slac-mini-cutline-hidden .slac-mini-sticker::after {
    display: none !important;
}

.slac-sheet-preview-toggle,
.slac-sheet-preview-toggle:visited {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 14px !important;
    margin-top: 11px !important;
    border-radius: 12px !important;
    border: 1px solid #d9c9ff !important;
    background: #ffffff !important;
    color: #4b2bb8 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.slac-sheet-preview-toggle:hover,
.slac-sheet-preview-toggle:focus,
.slac-sheet-preview-toggle:focus-visible {
    background: #f7f2ff !important;
    color: #4b2bb8 !important;
    border-color: #7c4dff !important;
    box-shadow: 0 0 0 3px rgba(124, 77, 255, .13) !important;
    outline: none !important;
}

.slac-sheet-preview-toggle:active {
    background: #efe7ff !important;
    color: #4b2bb8 !important;
    border-color: #7c4dff !important;
    transform: none !important;
    box-shadow: 0 0 0 3px rgba(124, 77, 255, .13) !important;
}

.slac-sheet-preview-toggle[aria-expanded="true"],
.slac-sheet-preview-toggle.is-open {
    background: #6f3cff !important;
    color: #ffffff !important;
    border-color: #6f3cff !important;
    box-shadow: none !important;
}

.slac-sheet-preview-toggle[aria-expanded="true"]:hover,
.slac-sheet-preview-toggle.is-open:hover,
.slac-sheet-preview-toggle[aria-expanded="true"]:focus,
.slac-sheet-preview-toggle.is-open:focus {
    background: #5f2fe0 !important;
    color: #ffffff !important;
    border-color: #5f2fe0 !important;
    box-shadow: 0 0 0 3px rgba(124, 77, 255, .16) !important;
}

/* v0.17.94 custom-cut mini sheet thumbnails use the actual custom cutline image */
.slac-mini-sheet.slac-mini-sheet-custom .slac-mini-sticker {
    border: 0 !important;
    background-color: transparent !important;
    background-image: var(--slac-mini-artwork-image, none) !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 0 !important;
}

.slac-mini-sheet.slac-mini-sheet-custom .slac-mini-sticker::after {
    display: none !important;
}

.slac-mini-sheet.slac-mini-sheet-custom.slac-mini-cutline-hidden .slac-mini-sticker {
    background-image: var(--slac-mini-artwork-image, none) !important;
}

/* v0.17.95 rotate artwork thumbnail when sheet layout rotates */
.slac-mini-sheet.slac-mini-sheet-rendered .slac-mini-sticker {
    border: 0 !important;
    background-color: transparent !important;
    background-image: var(--slac-mini-artwork-image, none) !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
}

.slac-mini-sheet.slac-mini-sheet-rendered .slac-mini-sticker,
.slac-mini-sheet.slac-mini-sheet-custom .slac-mini-sticker {
    filter: drop-shadow(0 1px 3px rgba(31, 22, 61, 0.10)) !important;
}

.slac-mini-sheet.slac-mini-sheet-rendered .slac-mini-sticker::after {
    display: none !important;
}

.slac-mini-sheet.slac-mini-sheet-rendered .slac-mini-sticker-custom,
.slac-mini-sheet.slac-mini-sheet-rendered .slac-mini-sticker-rounded,
.slac-mini-sheet.slac-mini-sheet-rendered .slac-mini-sticker-rect,
.slac-mini-sheet.slac-mini-sheet-rendered .slac-mini-sticker-square,
.slac-mini-sheet.slac-mini-sheet-rendered .slac-mini-sticker-circle,
.slac-mini-sheet.slac-mini-sheet-rendered .slac-mini-sticker-oval,
.slac-mini-sheet.slac-mini-sheet-rendered .slac-mini-sticker-pill {
    border-radius: 0 !important;
}

/* v0.17.99 test sheet button placeholder */
.slac-test-sheet-actions {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.slac-test-sheet-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 11px 16px !important;
    border-radius: 12px !important;
    border: 1px solid #d8c8ff !important;
    background: #ffffff !important;
    color: #4b2bb8 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.slac-test-sheet-btn:hover,
.slac-test-sheet-btn:focus,
.slac-test-sheet-btn:focus-visible {
    background: #f7f2ff !important;
    color: #4b2bb8 !important;
    border-color: #7c4dff !important;
    box-shadow: 0 0 0 3px rgba(124, 77, 255, .13) !important;
    outline: none !important;
}

.slac-test-sheet-btn:disabled {
    opacity: .55 !important;
    cursor: not-allowed !important;
    background: #f7f7f7 !important;
    color: #777 !important;
    border-color: #e2e2e2 !important;
    box-shadow: none !important;
}

/* v0.18.1 layered PDF test button */
.slac-test-sheet-actions {
    display: grid;
    gap: 8px;
}

.slac-test-pdf-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 11px 16px !important;
    border-radius: 12px !important;
    border: 1px solid #d8c8ff !important;
    background: #ffffff !important;
    color: #4b2bb8 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.slac-test-pdf-btn:hover,
.slac-test-pdf-btn:focus,
.slac-test-pdf-btn:focus-visible {
    background: #f7f2ff !important;
    color: #4b2bb8 !important;
    border-color: #7c4dff !important;
    box-shadow: 0 0 0 3px rgba(124, 77, 255, .13) !important;
    outline: none !important;
}

.slac-test-pdf-btn:disabled {
    opacity: .55 !important;
    cursor: not-allowed !important;
    background: #f7f7f7 !important;
    color: #777 !important;
    border-color: #e2e2e2 !important;
    box-shadow: none !important;
}


/* v0.18.32 moved white-background removal above background/border controls */
.slac-remove-white-toggle {
    margin-top: 4px;
}

.slac-remove-strength-wrap {
    margin-bottom: 18px;
}

.slac-remove-mode-wrap {
    margin-bottom: 14px;
}


/* v0.18.33 neater sizing dropdown / custom-size alignment */
.slac-sizing-block {
    grid-template-columns: minmax(0, 1fr) minmax(122px, 132px) !important;
    gap: 7px 8px !important;
    align-items: end !important;
}

.slac-sizing-block .slac-size-select-wrap {
    display: contents !important;
}

.slac-sizing-block .slac-size-group-title {
    grid-column: 1 / -1 !important;
    display: block !important;
    margin: 0 0 -1px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.slac-sizing-block .slac-size-select {
    grid-column: 1 / 2 !important;
    align-self: end !important;
}

.slac-sizing-block > .slac-custom-size-toggle {
    grid-column: 2 / 3 !important;
    align-self: end !important;
}

.slac-sizing-block .slac-custom-size-fields,
.slac-sizing-block .slac-corner-radius-wrap {
    grid-column: 1 / -1 !important;
}

@media (max-width: 370px) {
    .slac-sizing-block {
        grid-template-columns: 1fr !important;
    }

    .slac-sizing-block .slac-size-group-title,
    .slac-sizing-block .slac-size-select,
    .slac-sizing-block > .slac-custom-size-toggle {
        grid-column: 1 / -1 !important;
    }
}


/* v0.18.34 keep controls layout consistent before/after upload */
.slac-toggle.is-disabled {
    opacity: .55 !important;
    cursor: not-allowed !important;
}

.slac-toggle.is-disabled .slac-toggle-ui,
.slac-toggle.is-disabled .slac-toggle-label {
    cursor: not-allowed !important;
}

.slac-toggle.is-disabled .slac-toggle-ui {
    background: #dddddd !important;
}

.slac-shape-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.slac-shape-btn {
    min-height: 40px !important;
    padding: 9px 8px !important;
    border-radius: 11px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
}

.sl-artwork-checker.slac-has-artwork .slac-panel hr {
    margin: 22px 0 !important;
}

.sl-artwork-checker.slac-has-artwork .slac-step {
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.sl-artwork-checker.slac-has-artwork .slac-step-number {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 15px !important;
}

.sl-artwork-checker.slac-has-artwork .slac-step h2 {
    font-size: 21px !important;
    margin-bottom: 4px !important;
}

.sl-artwork-checker.slac-has-artwork .slac-step p {
    font-size: 14px !important;
    line-height: 1.4 !important;
}

@media (max-width: 360px) {
    .slac-shape-grid,
    .sl-artwork-checker.slac-has-artwork .slac-shape-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* v0.18.35 centre sheet estimate and remove manual arrow / scale grid */
.slac-sheet-estimate-main,
.slac-sheet-estimate-main strong {
    text-align: center !important;
}

.slac-position-controls .slac-nudge-grid,
.slac-position-controls .slac-scale-step-btn,
.slac-nudge-grid,
.slac-scale-step-btn {
    display: none !important;
}

.slac-toggle.is-disabled {
    opacity: .45 !important;
    cursor: not-allowed !important;
}

.slac-toggle.is-disabled .slac-toggle-label,
.slac-toggle.is-disabled .slac-toggle-ui {
    cursor: not-allowed !important;
}


/* v0.18.36 disable artwork scale until artwork is uploaded */
.slac-range-label.is-disabled {
    opacity: .45 !important;
    cursor: not-allowed !important;
}

.slac-range-label.is-disabled input[type="range"] {
    pointer-events: none !important;
    cursor: not-allowed !important;
}


/* v0.18.37 tidy size dropdown arrow and native menu styling */
.slac-size-select {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding-right: 52px !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5' fill='none' stroke='%23222222' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 18px 18px !important;
    border-radius: 16px !important;
    line-height: 1.25 !important;
}

.slac-size-select::-ms-expand {
    display: none !important;
}

.slac-size-select option {
    font-size: 15px;
    color: #222222;
    background: #ffffff;
}

/*
 * Native select dropdown popups are partly browser/OS controlled, so the open
 * menu corners cannot be made identical everywhere. These rules tidy what CSS
 * can control while keeping the select lightweight and reliable.
 */
.slac-size-select:focus {
    border-color: var(--slac-border) !important;
    box-shadow: none !important;
}


/* v0.18.38 custom rounded size dropdown */
.slac-native-select-hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.slac-custom-select {
    position: relative !important;
    width: 100% !important;
    grid-column: 1 / 2 !important;
    align-self: end !important;
    z-index: 30 !important;
}

.slac-custom-select-button {
    width: 100% !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 8px 48px 8px 14px !important;
    border: 1px solid var(--slac-border) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    color: var(--slac-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    cursor: pointer !important;
    box-shadow: none !important;
    position: relative !important;
}

.slac-custom-select-button::after {
    content: "" !important;
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    width: 9px !important;
    height: 9px !important;
    border-right: 2px solid #222222 !important;
    border-bottom: 2px solid #222222 !important;
    transform: translateY(-65%) rotate(45deg) !important;
    pointer-events: none !important;
}

.slac-custom-select.open .slac-custom-select-button {
    border-color: var(--slac-border) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.slac-custom-select-list {
    position: absolute !important;
    z-index: 9999 !important;
    top: calc(100% - 1px) !important;
    left: 0 !important;
    right: 0 !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    border: 1px solid var(--slac-border) !important;
    border-top: 0 !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 12px 24px rgba(0,0,0,.08) !important;
    padding: 6px !important;
}

.slac-custom-select-list.is-hidden {
    display: none !important;
}

.slac-custom-select-option {
    display: block !important;
    width: 100% !important;
    min-height: 40px !important;
    padding: 9px 12px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #222222 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: left !important;
    cursor: pointer !important;
}

.slac-custom-select-option:hover,
.slac-custom-select-option:focus {
    background: #f4f0ff !important;
    outline: none !important;
}

.slac-custom-select-option.active {
    background: #7c4dff !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.slac-size-select:focus {
    box-shadow: none !important;
    outline: none !important;
}

@media (max-width: 370px) {
    .slac-custom-select {
        grid-column: 1 / -1 !important;
    }
}


/* v0.18.39 prevent theme hover/focus colours on custom size dropdown */
.slac-custom-select-button,
.slac-custom-select-button:hover,
.slac-custom-select-button:focus,
.slac-custom-select-button:active {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: var(--slac-text) !important;
    border-color: var(--slac-border) !important;
    box-shadow: none !important;
    outline: none !important;
}

.slac-custom-select.open .slac-custom-select-button,
.slac-custom-select.open .slac-custom-select-button:hover,
.slac-custom-select.open .slac-custom-select-button:focus,
.slac-custom-select.open .slac-custom-select-button:active {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: var(--slac-text) !important;
    border-color: var(--slac-border) !important;
    box-shadow: none !important;
    outline: none !important;
}

.slac-custom-select-option,
.slac-custom-select-option:hover,
.slac-custom-select-option:focus,
.slac-custom-select-option:active {
    box-shadow: none !important;
    outline: none !important;
}


/* v0.18.40 artwork rotation control */
.slac-rotation-wrap {
    margin-top: -2px;
}


/* v0.18.41 make artwork rotation control reliably visible and styled */
.slac-rotation-wrap:not(.is-hidden) {
    display: block !important;
    background: #fbfbfb !important;
    border: 1px solid var(--slac-border) !important;
    border-radius: 14px !important;
    padding: 12px !important;
    margin-bottom: 14px !important;
}

.slac-rotation-wrap.is-hidden {
    display: none !important;
}

.slac-rotation-wrap .slac-range-top em,
.slac-rotation-value {
    font-style: normal !important;
}

@media (max-width: 640px) {
    .slac-rotation-wrap:not(.is-hidden) {
        display: block !important;
        padding: 10px 12px !important;
        margin-bottom: 10px !important;
        border-radius: 12px !important;
        min-height: 0 !important;
    }

    .slac-rotation-wrap .slac-range-top {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 6px !important;
    }

    .slac-rotation-wrap .slac-range-top strong {
        font-size: 13px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .slac-rotation-wrap .slac-range-top em {
        padding: 3px 8px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    .slac-rotation-wrap input[type="range"] {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
}


/* v0.18.42 two-finger rotate support on artwork */
.slac-preview-canvas {
    -webkit-user-select: none !important;
    user-select: none !important;
}


/* v0.18.45 artwork check result box */
.slac-artwork-check-text {
    line-height: 1.25 !important;
}

.slac-artwork-check-text .slac-check-main {
    display: block !important;
    font-weight: 800 !important;
}

.slac-artwork-check-text .slac-check-detail {
    display: block !important;
    margin-top: 2px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    color: var(--slac-muted) !important;
    font-weight: 500 !important;
}

.slac-artwork-check-text.good .slac-check-main {
    color: var(--slac-good) !important;
}

.slac-artwork-check-text.warn .slac-check-main {
    color: var(--slac-warn) !important;
}

.slac-artwork-check-text.bad .slac-check-main {
    color: var(--slac-bad) !important;
}




/* v0.18.49 auto width/height controls */
.slac-auto-dimension-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: -2px 0 10px;
}

.slac-auto-dimension-controls.is-hidden {
    display: none !important;
}

.slac-auto-dimension-btn {
    border: 1px solid #ded4ff !important;
    background: #f7f3ff !important;
    color: #4b2bb8 !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    min-height: 42px !important;
}

.slac-auto-dimension-btn:hover,
.slac-auto-dimension-btn:focus {
    background: #f1ecff !important;
    border-color: var(--slac-accent) !important;
    color: #4b20c6 !important;
    box-shadow: none !important;
    outline: none !important;
}

@media (max-width: 420px) {
    .slac-auto-dimension-controls {
        grid-template-columns: 1fr;
    }
}


/* v0.18.50 tidy auto dimension controls and circle/square auto-fit */
.slac-position-main-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.slac-standard-auto-fit-btn {
    background: #f7f3ff !important;
    border-color: #ded4ff !important;
    color: #4b2bb8 !important;
}

.slac-standard-auto-fit-btn.is-hidden {
    display: none !important;
}

.slac-auto-dimension-controls {
    display: block !important;
    margin: -2px 0 10px !important;
}

.slac-auto-dimension-controls.is-hidden {
    display: none !important;
}

.slac-auto-dimension-btn {
    display: block !important;
    width: 100% !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    text-align: center !important;
    border: 1px solid #ded4ff !important;
    background: #f7f3ff !important;
    color: #4b2bb8 !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    min-height: 42px !important;
}

.slac-auto-dimension-btn:hover,
.slac-auto-dimension-btn:focus {
    background: #f1ecff !important;
    border-color: var(--slac-accent) !important;
    color: #4b20c6 !important;
    box-shadow: none !important;
    outline: none !important;
}

@media (max-width: 760px) {
    .slac-position-main-buttons {
        grid-template-columns: 1fr !important;
    }
}


/* v0.18.56 standard-size auto-fit in sizing and 1mm preview bleed */
.slac-standard-auto-fit-wrap {
    grid-column: 1 / -1 !important;
    margin: -4px 0 10px !important;
}

.slac-standard-auto-fit-wrap.is-hidden,
.slac-standard-auto-fit-btn.is-hidden {
    display: none !important;
}

.slac-standard-auto-fit-wrap .slac-auto-dimension-btn {
    width: 100% !important;
    display: block !important;
}

.slac-auto-dimension-btn {
    white-space: nowrap !important;
}


/* v0.18.53 spacing for sizing auto-fit and preview alignment buttons */
.slac-sizing-block .slac-standard-auto-fit-wrap {
    grid-column: 1 / -1 !important;
    margin: 12px 0 14px !important;
}

.slac-sizing-block .slac-standard-auto-fit-wrap .slac-auto-dimension-btn {
    width: 100% !important;
}

/* The circle/square auto-fit button now lives in the sizing box, so the preview
   controls should go back to two equal-width buttons. */
.slac-position-main-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
}

.slac-position-main-buttons .slac-position-btn {
    width: 100% !important;
}

@media (max-width: 760px) {
    .slac-position-main-buttons {
        grid-template-columns: 1fr !important;
    }
}


/* v0.18.56 disable standard auto-fit until artwork is uploaded */
.slac-standard-auto-fit-btn:disabled,
.slac-standard-auto-fit-btn.is-disabled {
    opacity: .45 !important;
    cursor: not-allowed !important;
}


/* v0.18.57 custom sizing is handled from the dropdown; custom cut uses longest-edge slider only */
.slac-custom-size-toggle {
    display: none !important;
}

.slac-size-select-wrap.is-hidden,
.slac-size-select-wrap.is-hidden .slac-custom-select,
.slac-size-select-wrap.is-hidden + .slac-custom-select {
    display: none !important;
}


/* v0.18.58 sizing layout: dropdown full width, scale above auto-fit */
.slac-sizing-block {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

.slac-sizing-block .slac-size-select-wrap,
.slac-sizing-block .slac-custom-select,
.slac-sizing-block .slac-scale-wrap,
.slac-sizing-block .slac-standard-auto-fit-wrap,
.slac-sizing-block .slac-custom-size-fields,
.slac-sizing-block .slac-corner-radius-wrap {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
}

.slac-sizing-block .slac-size-select-wrap {
    margin-bottom: 0 !important;
}

.slac-sizing-block .slac-custom-select-button {
    width: 100% !important;
}

.slac-sizing-block .slac-scale-wrap {
    margin: 0 0 2px !important;
}

.slac-sizing-block .slac-standard-auto-fit-wrap {
    margin: 0 0 12px !important;
}

.slac-sizing-block .slac-standard-auto-fit-wrap .slac-auto-dimension-btn {
    width: 100% !important;
}


/* v0.18.59 custom cut mode toggle */
.slac-custom-cut-mode-wrap {
    background: #fbfbfb;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
}

.slac-custom-cut-mode-wrap.is-hidden {
    display: none !important;
}

.slac-custom-cut-mode-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.slac-custom-cut-mode-btn {
    min-height: 42px;
    padding: 10px 10px;
    border: 1px solid #ded4ff;
    border-radius: 12px;
    background: #ffffff;
    color: #4b2bb8;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.15;
    cursor: pointer;
}

.slac-custom-cut-mode-btn:hover,
.slac-custom-cut-mode-btn:focus {
    border-color: var(--slac-accent);
    box-shadow: none !important;
    outline: none !important;
}

.slac-custom-cut-mode-btn.active {
    background: #f1ecff;
    border-color: var(--slac-accent);
    color: #4b20c6;
}

@media (max-width: 420px) {
    .slac-custom-cut-mode-buttons {
        grid-template-columns: 1fr;
    }
}


/* v0.18.60 custom cut mode tidy + longest edge restored */
.slac-custom-cut-mode-buttons {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
}

.slac-custom-cut-mode-btn {
    min-width: 0 !important;
    white-space: nowrap !important;
    padding: 10px 8px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
}

.slac-custom-cut-mode-wrap .slac-mini-help {
    margin-bottom: 8px !important;
}


/* v0.18.61 custom cut defaults and 1mm custom SVG bleed */
.slac-custom-cut-mode-buttons {
    grid-template-columns: 1fr 1fr !important;
}

.slac-custom-cut-mode-btn {
    white-space: nowrap !important;
}

/* v0.18.61 label fit tweak */
.slac-custom-cut-mode-btn {
    font-size: 12.5px !important;
}


/* v0.18.63 smart custom cut background defaults */
.slac-border-range-wrap .slac-border-value {
    min-width: 48px;
    text-align: center;
}


/* v0.18.64 smart white-background auto-fit is intentionally looser on circles, ovals and pills */


/* v0.18.65 custom cut preview/SVG artwork is clipped to a 1mm bleed outside the cutline */


/* v0.18.66 auto-fit remains available for custom standard sizes */
.slac-standard-auto-fit-wrap {
    width: 100% !important;
}


/* v0.18.67 text/logo custom cut ignores small stray separate marks away from the main design */


/* v0.18.68 single customer-facing auto-fit button */
.slac-auto-width-control,
.slac-auto-height-control {
    display: none !important;
}

.slac-standard-auto-fit-btn {
    width: 100% !important;
}


/* v0.18.68 custom cut always outputs a single largest cutline */


/* v0.18.69 full-colour rectangle/oval/pill auto-fit switches to custom size */


/* v0.18.70 make finished size clearer */
.slac-preview-meta-row .slac-finished-size-box,
.slac-finished-size-box {
    background: #eafff1 !important;
    border: 1px solid #42d77d !important;
    color: #075f32 !important;
    box-shadow: 0 8px 20px rgba(31, 178, 93, 0.16) !important;
}

.slac-finished-size-box .slac-finished-size-label,
.slac-finished-size-box strong {
    color: #075f32 !important;
}


/* v0.18.71 sheet exports and sheet previews include 1mm bleed */


/* v0.18.77 remove finished size glow/shadow */
.slac-preview-meta-row .slac-finished-size-box,
.slac-finished-size-box {
    box-shadow: none !important;
}


/* v0.18.81 live custom preview uses real 1mm bleed geometry with caching */


/* v0.18.82 custom cut mode buttons: stop theme orange/grey hover states */
.sl-artwork-checker .slac-custom-cut-mode-buttons {
    gap: 8px !important;
}

.sl-artwork-checker .slac-custom-cut-mode-btn,
.sl-artwork-checker .slac-custom-cut-mode-btn:visited {
    background: #ffffff !important;
    border: 1px solid #ded4ff !important;
    color: #4b2bb8 !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
    outline: none !important;
}

.sl-artwork-checker .slac-custom-cut-mode-btn:hover,
.sl-artwork-checker .slac-custom-cut-mode-btn:focus,
.sl-artwork-checker .slac-custom-cut-mode-btn:focus-visible {
    background: #f7f3ff !important;
    border-color: #7c4dff !important;
    color: #4b20c6 !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
    outline: none !important;
}

.sl-artwork-checker .slac-custom-cut-mode-btn.active,
.sl-artwork-checker .slac-custom-cut-mode-btn.active:hover,
.sl-artwork-checker .slac-custom-cut-mode-btn.active:focus,
.sl-artwork-checker .slac-custom-cut-mode-btn.active:focus-visible {
    background: #efe8ff !important;
    border-color: #7c4dff !important;
    color: #4b20c6 !important;
    box-shadow: inset 0 0 0 1px rgba(124, 77, 255, 0.18) !important;
    filter: none !important;
    transform: none !important;
    outline: none !important;
}


/* v0.18.83 SVG cutline overlay for custom cut performance */
.slac-canvas-wrap {
    position: relative !important;
}

.slac-preview-canvas {
    position: relative !important;
    z-index: 1 !important;
}

.slac-cutline-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    overflow: visible !important;
    z-index: 2 !important;
}

.slac-cutline-overlay.is-hidden {
    display: none !important;
}

.slac-cutline-overlay-path {
    fill: none !important;
    stroke-linejoin: round !important;
    stroke-linecap: round !important;
}

.slac-cutline-overlay.is-dashed .slac-cutline-overlay-path {
    stroke-dasharray: 10 7;
    animation: slac-cutline-dash 1.4s linear infinite;
}

.slac-cutline-overlay.is-solid .slac-cutline-overlay-path {
    stroke-dasharray: none;
    animation: none;
}

@keyframes slac-cutline-dash {
    to {
        stroke-dashoffset: -34;
    }
}


/* v0.18.84 custom render throttled during slider input; SVG gradient rotates separately */


/* v0.18.85 custom slider performance: hidden sheet preview skipped, geometry reused while dragging */


/* v0.18.87 accurate custom slider preview with cached base masks */


/* v0.18.88 custom-cut preview dashes tuned smaller/thinner */


/* v0.18.89 custom-cut preview dashes one step smaller */


/* v0.18.90 background-size ratio follows longest edge after manual adjustment */


/* v0.18.91 custom text/logo background has safe minimum so cutline cannot tuck into artwork */


/* v0.18.92 custom cut mode auto-detect: transparent silhouettes use Background, flat labels use Text/logo */


/* v0.19.1 downloaded preview renders at higher resolution to preserve fine artwork */

/* v0.20.0 security, quality, memory and event-loop hardening; visual styling retained */


/* v0.20.1 opaque artwork defaults to a true 1mm overlap beyond standard cut edges */


/* v0.20.2 sheet yields, standard background sizing and dominant artwork colours corrected */


/* v0.20.4 matching background suggestion for artwork with large empty areas */
.slac-fill-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0 8px;
    padding: 14px 16px;
    border: 1px solid #ddd3ff;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbf9ff 0%, #f6f2ff 100%);
    position: relative;
    overflow: hidden;
}

.slac-fill-suggestion::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--slac-fill-suggestion-colour, #7c4dff);
}

.slac-fill-suggestion.is-hidden {
    display: none !important;
}

.slac-fill-suggestion-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 8px;
}

.slac-fill-suggestion-copy strong {
    font-size: 15px;
    line-height: 1.3;
    color: #2d2157;
}

.slac-fill-suggestion-copy span {
    font-size: 13px;
    line-height: 1.45;
    color: #655a88;
}

.slac-fill-suggestion-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.slac-fill-suggestion-add,
.slac-fill-suggestion-keep {
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.slac-fill-suggestion-add {
    border: 1px solid #7c4dff;
    background: #7c4dff;
    color: #ffffff;
}

.slac-fill-suggestion-add:hover,
.slac-fill-suggestion-add:focus,
.slac-fill-suggestion-add:focus-visible {
    background: #6d3ffc;
    border-color: #6d3ffc;
    color: #ffffff;
    outline: none;
}

.slac-fill-suggestion-keep {
    border: 1px solid #d8d0ea;
    background: #ffffff;
    color: #534a72;
}

.slac-fill-suggestion-keep:hover,
.slac-fill-suggestion-keep:focus,
.slac-fill-suggestion-keep:focus-visible {
    border-color: #bfaef7;
    background: #faf8ff;
    color: #3f3466;
    outline: none;
}

@media (max-width: 720px) {
    .slac-fill-suggestion {
        flex-direction: column;
        align-items: stretch;
    }

    .slac-fill-suggestion-actions {
        justify-content: stretch;
    }

    .slac-fill-suggestion-add,
    .slac-fill-suggestion-keep {
        width: 100%;
    }
}


/* v0.20.5 compact background suggestion and progressive control accordion */
.sl-artwork-checker .slac-fill-suggestion {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 12px 0 8px !important;
    padding: 13px 14px 13px 18px !important;
    border: 1px solid #ddd3ff !important;
    border-radius: 15px !important;
    background: #f8f5ff !important;
    box-shadow: none !important;
}

.sl-artwork-checker .slac-fill-suggestion-copy {
    min-width: 0 !important;
    gap: 3px !important;
    padding-left: 4px !important;
}

.sl-artwork-checker .slac-fill-suggestion-copy strong {
    margin: 0 !important;
    color: #2d2157 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
}

.sl-artwork-checker .slac-fill-suggestion-copy span {
    margin: 0 !important;
    color: #655a88 !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
}

.sl-artwork-checker .slac-fill-suggestion-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
}

.sl-artwork-checker .slac-fill-suggestion-add,
.sl-artwork-checker .slac-fill-suggestion-keep {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 8px 13px !important;
    border-radius: 999px !important;
    font-family: inherit !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transform: none !important;
}

.sl-artwork-checker .slac-fill-suggestion-add::before {
    content: '' !important;
    display: block !important;
    width: 13px !important;
    height: 13px !important;
    margin-right: 7px !important;
    border: 1px solid rgba(255,255,255,.75) !important;
    border-radius: 50% !important;
    background: var(--slac-fill-suggestion-colour, #ffffff) !important;
    box-shadow: 0 0 0 1px rgba(38,24,81,.18) !important;
}

.slac-controls.slac-accordion-ready {
    padding: 12px !important;
}

.slac-accordion-section {
    margin: 0 0 10px !important;
    border: 1px solid #e4dfeb !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    transition: border-color .18s ease, background-color .18s ease !important;
}

.slac-accordion-section.is-open {
    border-color: #d6c9ff !important;
    background: #ffffff !important;
}

.sl-artwork-checker .slac-accordion-toggle {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto auto !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 12px 13px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
}

.sl-artwork-checker .slac-accordion-toggle:hover,
.sl-artwork-checker .slac-accordion-toggle:focus,
.sl-artwork-checker .slac-accordion-toggle:focus-visible {
    background: #faf8ff !important;
    box-shadow: none !important;
}

.sl-artwork-checker .slac-accordion-toggle > div:nth-child(2) {
    min-width: 0 !important;
}

.sl-artwork-checker .slac-accordion-toggle h2 {
    margin: 0 0 2px !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
}

.sl-artwork-checker .slac-accordion-toggle p {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
}

.slac-accordion-section:not(.is-open) .slac-accordion-toggle p {
    display: none !important;
}

.slac-accordion-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 105px !important;
    padding: 5px 8px !important;
    border-radius: 999px !important;
    background: #f1eef6 !important;
    color: #655b7b !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.slac-accordion-status.is-complete {
    background: #eafff1 !important;
    color: #08733c !important;
}

.slac-accordion-chevron {
    position: relative !important;
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #f1edff !important;
    flex: 0 0 auto !important;
}

.slac-accordion-chevron::after {
    content: '' !important;
    position: absolute !important;
    left: 8px !important;
    top: 7px !important;
    width: 7px !important;
    height: 7px !important;
    border-right: 2px solid #7041e8 !important;
    border-bottom: 2px solid #7041e8 !important;
    transform: rotate(45deg) !important;
    transition: transform .18s ease, top .18s ease !important;
}

.slac-accordion-section.is-open .slac-accordion-chevron::after {
    top: 9px !important;
    transform: rotate(225deg) !important;
}

.slac-accordion-content {
    padding: 2px 13px 14px !important;
}

.slac-accordion-content[hidden] {
    display: none !important;
}

.slac-accordion-content > :first-child {
    margin-top: 0 !important;
}

.slac-accordion-content > :last-child {
    margin-bottom: 0 !important;
}

.slac-mobile-preview-jump {
    display: none !important;
}

@media (max-width: 720px) {
    .slac-controls.slac-accordion-ready {
        padding: 9px !important;
    }

    .slac-accordion-section {
        margin-bottom: 8px !important;
        border-radius: 14px !important;
    }

    .sl-artwork-checker .slac-accordion-toggle {
        min-height: 54px !important;
        padding: 10px 11px !important;
        gap: 8px !important;
    }

    .sl-artwork-checker .slac-accordion-toggle h2 {
        font-size: 16px !important;
    }

    .sl-artwork-checker .slac-step-number {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 13px !important;
    }

    .slac-accordion-content {
        padding: 2px 11px 12px !important;
    }

    .slac-mobile-preview-jump {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 46px !important;
        margin: 2px 0 0 !important;
        padding: 11px 14px !important;
        border: 1px solid #7c4dff !important;
        border-radius: 13px !important;
        background: #7c4dff !important;
        color: #ffffff !important;
        font-family: inherit !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        box-shadow: none !important;
    }

    .slac-mobile-preview-jump:disabled {
        display: none !important;
    }

    .sl-artwork-checker .slac-fill-suggestion {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 12px 13px 13px 17px !important;
    }

    .sl-artwork-checker .slac-fill-suggestion-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100% !important;
    }

    .sl-artwork-checker .slac-fill-suggestion-add,
    .sl-artwork-checker .slac-fill-suggestion-keep {
        width: 100% !important;
        white-space: normal !important;
    }
}

@media (max-width: 460px) {
    .slac-accordion-status {
        max-width: 78px !important;
        padding: 5px 7px !important;
    }

    .sl-artwork-checker .slac-fill-suggestion-actions {
        grid-template-columns: 1fr !important;
    }
}


/* v0.20.6 accordion is mobile-only; desktop controls remain fully expanded */
@media (min-width: 721px) {
    .slac-controls.slac-accordion-ready:not(.slac-accordion-mobile) {
        padding: 22px !important;
    }

    .slac-controls.slac-accordion-ready:not(.slac-accordion-mobile) .slac-accordion-section {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .slac-controls.slac-accordion-ready:not(.slac-accordion-mobile) .slac-accordion-section + .slac-accordion-section {
        margin-top: 20px !important;
        padding-top: 20px !important;
        border-top: 1px solid #e8e5ec !important;
    }

    .slac-controls.slac-accordion-ready:not(.slac-accordion-mobile) .slac-accordion-toggle {
        display: flex !important;
        align-items: flex-start !important;
        gap: 12px !important;
        min-height: 0 !important;
        margin: 0 0 16px !important;
        padding: 0 !important;
        background: transparent !important;
        cursor: default !important;
    }

    .slac-controls.slac-accordion-ready:not(.slac-accordion-mobile) .slac-accordion-toggle:hover,
    .slac-controls.slac-accordion-ready:not(.slac-accordion-mobile) .slac-accordion-toggle:focus,
    .slac-controls.slac-accordion-ready:not(.slac-accordion-mobile) .slac-accordion-toggle:focus-visible {
        background: transparent !important;
    }

    .slac-controls.slac-accordion-ready:not(.slac-accordion-mobile) .slac-accordion-toggle h2 {
        margin: 0 0 4px !important;
        font-size: 21px !important;
    }

    .slac-controls.slac-accordion-ready:not(.slac-accordion-mobile) .slac-accordion-toggle p {
        display: block !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    .slac-controls.slac-accordion-ready:not(.slac-accordion-mobile) .slac-accordion-status,
    .slac-controls.slac-accordion-ready:not(.slac-accordion-mobile) .slac-accordion-chevron {
        display: none !important;
    }

    .slac-controls.slac-accordion-ready:not(.slac-accordion-mobile) .slac-accordion-content {
        display: block !important;
        padding: 0 !important;
    }
}


/* v0.20.7 background suggestion visibility and border fix */
.sl-artwork-checker .slac-fill-suggestion.is-hidden {
    display: none !important;
}

.sl-artwork-checker .slac-fill-suggestion::before {
    content: none !important;
    display: none !important;
}

.sl-artwork-checker .slac-fill-suggestion {
    padding-left: 14px !important;
}

.sl-artwork-checker .slac-fill-suggestion-copy {
    padding-left: 0 !important;
}

@media (max-width: 720px) {
    .sl-artwork-checker .slac-fill-suggestion {
        padding-left: 13px !important;
    }
}


/* v0.20.8 order button destination updated to /product/ssc/ */


/* v0.20.9 flat coloured custom-cut backgrounds are detected more reliably */
