.decal-page {
    background: #fff;
}

.decal-studio-source-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.decal-artwork-source-dialog {
    width: min(700px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: hidden;
    color: #111820;
    border: 1px solid #e5e5e7;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 20px 70px rgba(17, 24, 32, .12);
}

.decal-artwork-source-dialog::backdrop {
    background: rgba(17, 24, 32, .22);
    backdrop-filter: blur(2px);
}

.decal-artwork-source-dialog__actions {
    position: absolute;
    z-index: 3;
    inset: 12px 12px auto;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.decal-artwork-source-dialog__actions > button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid #e6e6e8;
    border-radius: 0;
    background: rgba(255, 255, 255, .94);
    font-size: 20px;
    cursor: pointer;
    pointer-events: auto;
}

.decal-artwork-source-dialog__actions > button:last-child {
    margin-left: auto;
}

.decal-artwork-source-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 58px 16px 16px;
}

.decal-artwork-source-choices[hidden],
.decal-design-library[hidden] {
    display: none;
}

.decal-artwork-source-choices > button {
    display: grid;
    min-height: 96px;
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 11px;
    padding: 15px;
    border: 1px solid #e7e7e9;
    border-radius: 0;
    color: #111820;
    background: #fafafa;
    text-align: left;
    cursor: pointer;
}

.decal-artwork-source-choices > button:hover {
    border-color: #cfd0d3;
    background: #fff;
}

.decal-artwork-source-choices > button > i:first-child {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #fff;
    border-radius: 0;
    background: #111820;
    font-size: 21px;
}

.decal-artwork-source-choices span,
.decal-artwork-source-choices strong,
.decal-artwork-source-choices small {
    display: block;
}

.decal-artwork-source-choices strong {
    font-size: 12px;
}

.decal-artwork-source-choices small {
    margin-top: 3px;
    color: #74787b;
    font-size: 9px;
    line-height: 1.4;
}

.decal-artwork-source-choices > button > i:last-child {
    color: #74787b;
    font-size: 19px;
}

.decal-design-library {
    max-height: calc(100vh - 32px);
    padding: 58px 18px 18px;
    overflow-y: auto;
}

.decal-design-library__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.decal-design-library-card {
    position: relative;
    display: grid;
    overflow: hidden;
    padding: 0;
    border: 1px solid #e0ded8;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.decal-design-library-card:hover {
    border-color: #111820;
}

.decal-design-library-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f2f2f0;
}

.decal-design-library-card > span {
    display: grid;
    gap: 3px;
    padding: 11px 12px 12px;
}

.decal-design-library-card strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.decal-design-library-card small {
    color: #7b7e81;
    font-size: 8px;
}

.decal-design-library-card em {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 5px 7px;
    color: #fff;
    background: rgba(17, 24, 32, .86);
    font-size: 7px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.decal-design-library-card.is-loading {
    opacity: .55;
    pointer-events: none;
}

.decal-design-library__empty {
    margin: 55px 0;
    color: #777b7e;
    text-align: center;
    font-size: 11px;
}

@media (max-width: 640px) {
    .decal-artwork-source-dialog::backdrop {
        background: rgba(17, 24, 32, .22);
        backdrop-filter: blur(2px);
    }

    .decal-studio-source-actions {
        width: min(310px, 100%);
        flex-direction: column;
    }

    .decal-artwork-source-dialog {
        width: 100vw;
        max-width: none;
        height: auto;
        max-height: min(92svh, 760px);
        max-height: min(92dvh, 760px);
        margin: auto 0 0;
        border: 0;
        border-top: 1px solid #d9d7d1;
        border-radius: 0;
        box-shadow: 0 -16px 50px rgba(17, 24, 32, .12);
    }

    .decal-artwork-source-dialog__actions {
        inset: 10px 10px auto;
    }

    .decal-artwork-source-choices {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 54px 12px 12px;
    }

    .decal-artwork-source-choices > button {
        min-height: 82px;
        padding: 12px;
    }

    .decal-design-library {
        max-height: min(92svh, 760px);
        max-height: min(92dvh, 760px);
        padding: 54px 12px 18px;
    }

    .decal-design-library__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }
}

.decal-page .header {
    background: #fff;
    border-bottom: 0;
}

/* Keep the editor visually stable while templates, fonts and saved work initialise. */
.decal-boot-loader {
    position: fixed;
    inset: 100px 0 0;
    z-index: 90;
    overflow: hidden;
    background: #fff;
    opacity: 1;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.decal-boot-loader.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.decal-boot-loader__shell {
    width: calc(100% - 70px);
    max-width: 1600px;
    height: 100%;
    margin: 0 auto;
    padding: 34px 0 50px;
}

.decal-skeleton {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f0f0ee;
}

.decal-skeleton::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .9) 48%, transparent 76%);
    transform: translateX(-100%);
    animation: decal-skeleton-shimmer 1.25s ease-in-out infinite;
}

@keyframes decal-skeleton-shimmer {
    to { transform: translateX(100%); }
}

.decal-boot-loader__title {
    width: min(350px, 40vw);
    height: 66px;
}

.decal-boot-loader__crumb {
    width: 180px;
    height: 15px;
    margin-top: 18px;
}

.decal-boot-loader__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 34px;
    margin-top: 38px;
}

.decal-boot-loader__tabs {
    display: flex;
    gap: 10px;
}

.decal-boot-loader__tabs span {
    width: 122px;
    height: 50px;
}

.decal-boot-loader__canvas {
    display: grid;
    min-height: min(52vh, 520px);
    margin-top: 28px;
    place-items: center;
}

.decal-boot-loader__canvas i {
    position: relative;
    z-index: 1;
    color: #b9a066;
    font-size: 32px;
}

.decal-boot-loader__controls {
    display: grid;
    align-content: start;
    gap: 10px;
}

.decal-boot-loader__controls span {
    height: 64px;
}

.decal-template-loading .decal-canvas-wrap {
    pointer-events: none;
}

.decal-template-loading .decal-canvas-wrap::before {
    position: absolute;
    inset: 0;
    z-index: 25;
    content: "";
    background: rgba(255, 255, 255, .82);
}

.decal-template-loading .decal-canvas-wrap::after {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 26;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    content: "";
    border: 3px solid #e8e3d7;
    border-top-color: #b9a066;
    border-radius: 50%;
    animation: decal-template-spin .7s linear infinite;
}

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

@media (max-width: 640px) {
    .decal-boot-loader {
        inset-block-start: 110px;
    }

    .decal-boot-loader__shell {
        width: 100%;
        padding: 20px 16px 0;
    }

    .decal-boot-loader__title,
    .decal-boot-loader__crumb {
        display: none;
    }

    .decal-boot-loader__layout {
        display: flex;
        height: 100%;
        margin: 0;
        flex-direction: column;
    }

    .decal-boot-loader__tabs span {
        height: 44px;
        flex: 1;
    }

    .decal-boot-loader__canvas {
        min-height: 48vh;
        margin-top: 16px;
    }

    .decal-boot-loader__controls {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
        margin-top: auto;
        padding: 20px 0 26px;
    }

    .decal-boot-loader__controls span {
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .decal-skeleton::after,
    .decal-template-loading .decal-canvas-wrap::after {
        animation: none;
    }
}

.decal-shell {
    width: calc(100% - 70px) !important;
    max-width: 1600px !important;
    min-height: 80vh;
    margin: 0 auto !important;
    padding: 100px 0 90px !important;
}

.decal-hero {
    max-width: 850px;
    margin-bottom: 16px;
}

.decal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    color: #111820;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.decal-back-link i {
    font-size: 22px;
}

.decal-kicker,
.decal-step__number {
    margin: 0 0 14px;
    color: var(--link);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.decal-hero h1 {
    max-width: 760px;
    margin: 5px 0 0;
    font-size: 80px;
    line-height: .8;
}

.decal-hero .ec-breadcrumbs {
    margin-top: 0;
}

.decal-intro {
    max-width: 680px;
    margin: 20px 0 0;
    font-size: 16px;
    line-height: 1.65;
}

.decal-progress {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    gap: 0;
    margin-bottom: 40px;
    border: 1px solid #d9d7d0;
    background: #fff;
}

.decal-step.decal-studio-step {
    padding: 0;
    border: 0;
    box-shadow: none;
}

.decal-studio-step > .decal-step__heading,
.decal-studio-legacy-actions {
    display: none;
}

.decal-progress__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    min-width: 0;
    padding: 14px 24px;
    border: 0;
    border-right: 1px solid #d9d7d0;
    color: #8a8984;
    background: transparent;
    font-family: var(--font);
    text-align: left;
}

.decal-progress__item:last-child {
    border-right: 0;
}

.decal-progress__item span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 13px;
}

.decal-progress__item strong {
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.decal-progress__item.is-active,
.decal-progress__item.is-complete {
    color: #111820;
}

.decal-progress__item.is-active {
    background: #f0eee8;
}

.decal-progress__item.is-complete span {
    border-color: var(--link);
    color: #fff;
    background: var(--link);
}

.decal-step {
    padding: clamp(28px, 5vw, 66px);
    border: 1px solid #dedcd5;
    background: #fff;
    box-shadow: 0 25px 75px rgba(17, 24, 32, .06);
}

.decal-step__heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.decal-step__heading h2 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 70px);
}

.decal-step__heading p:last-child {
    margin: 0;
    color: #676b70;
    line-height: 1.65;
}

.decal-model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.decal-model-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 385px;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 2px solid #e6e4de;
    color: #111820;
    background: #fff;
    font-family: var(--font);
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.decal-model-card:hover {
    transform: translateY(-3px);
    border-color: #aaa69b;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .08);
}

.decal-model-card.is-selected {
    border-color: var(--link);
}

.decal-model-card > i {
    position: absolute;
    top: 16px;
    right: 16px;
    display: none;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--link);
    font-size: 22px;
}

.decal-model-card.is-selected > i {
    display: grid;
}

.decal-model-card__visual {
    display: grid;
    height: 245px;
    place-items: center;
    overflow: hidden;
    background: #101214;
}

.decal-model-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
}

.decal-model-card__visual--fork img {
    padding: 10px 55px;
}

.decal-model-card__visual--z {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 42px 34px;
}

.decal-z-shape {
    width: 100%;
    height: 135px;
    border: 2px solid #e0007a;
    border-radius: 42% 15% 22% 12% / 20% 26% 18% 30%;
    transform: skewY(-4deg);
}

.decal-z-shape:last-child {
    transform: scaleX(-1) skewY(-4deg);
}

.decal-model-card__copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px;
}

.decal-model-card__copy small {
    margin-bottom: 8px;
    color: var(--link);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.decal-model-card__copy strong {
    margin-bottom: 7px;
    font-family: var(--headerfont);
    font-size: 31px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.decal-model-card__copy span {
    color: #74777b;
    font-size: 13px;
}

.decal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 42px;
}

.decal-actions--right {
    justify-content: flex-end;
}

.decal-button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border: 1px solid #000;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: .02em;
    cursor: pointer;
    transition: .2s ease;
}

.decal-button i {
    font-size: 21px;
}

.decal-button--primary {
    color: #fff;
    background: #000;
}

.decal-button--primary:hover:not(:disabled) {
    border-color: var(--link);
    background: var(--link);
}

.decal-button--ghost {
    background: transparent;
}

.decal-button--ghost:hover {
    color: #fff;
    background: #000;
}

.decal-button--wide {
    width: 100%;
}

.decal-button:disabled {
    cursor: not-allowed;
    opacity: .35;
}

.decal-upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr);
    gap: 24px;
}

.decal-dropzone {
    display: flex;
    min-height: 360px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 34px;
    border: 2px dashed #b8b5ac;
    background: #faf9f6;
    text-align: center;
    cursor: pointer;
    transition: .2s ease;
}

.decal-dropzone:hover,
.decal-dropzone.is-dragging {
    border-color: var(--link);
    background: #f4f0e6;
}

.decal-dropzone__icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #000;
}

.decal-dropzone__icon i {
    font-size: 36px;
}

.decal-dropzone strong {
    margin-bottom: 4px;
    font-size: 21px;
}

.decal-dropzone span:not(.decal-dropzone__icon) {
    color: #676b70;
}

.decal-dropzone small {
    margin-top: 22px;
    color: #8a8c8e;
}

.decal-guidelines {
    padding: 30px;
    color: #fff;
    background: #000;
}

.decal-guidelines h3,
.decal-order-summary h3 {
    margin: 0 0 27px;
    color: inherit;
    font-family: var(--headerfont);
    font-size: 34px;
    text-transform: uppercase;
}

.decal-guidelines > p {
    margin: 26px 0 0;
    color: #b8bdc2;
    font-size: 13px;
    line-height: 1.7;
}

.decal-quality-key {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 0 12px;
    margin-bottom: 20px;
}

.decal-quality-key > span {
    grid-row: span 2;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
}

.decal-quality-key strong {
    font-size: 14px;
}

.decal-quality-key small {
    color: #a9afb4;
    font-size: 11px;
}

.decal-quality-key--good > span { background: #58bd82; }
.decal-quality-key--warn > span { background: #e9af48; }
.decal-quality-key--bad > span { background: #e35e61; }

.decal-file-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    padding: 14px;
    border: 1px solid #dedcd5;
}

.decal-file-summary img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    background: #eee;
}

.decal-file-summary div {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.decal-file-summary strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.decal-file-summary span {
    color: #777a7d;
    font-size: 13px;
}

.decal-file-summary button {
    padding: 10px;
    border: 0;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

.decal-editor {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 0;
    overflow: visible;
    border: 0;
    background: #fff;
}

.decal-editor__stage {
    min-width: 0;
    padding: 0;
}

.decal-mobile-editor-header,
.decal-mobile-direct-controls,
.decal-colour-pick-hint,
.decal-mobile-context-tools,
.decal-mobile-primary-nav,
.decal-mobile-review-wide,
.decal-mobile-sheet,
.decal-mobile-sheet-backdrop {
    display: none;
}

.decal-studio-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 14px;
    padding: 0 2px;
}

/* On wide screens the property rail and canvas tools share the title row. */
@media (min-width: 981px) {
    .decal-editor__stage {
        position: relative;
    }

    .decal-studio-toolbar {
        height: 0;
        margin: 0;
        padding: 0;
    }

    .decal-studio-toolbar > .decal-panel-tabs {
        position: absolute;
        z-index: 14;
        top: 12px;
        left: 0;
    }

    .decal-canvas-tools {
        position: absolute;
        z-index: 12;
        top: -110px;
        right: 12px;
    }

    .decal-editor__controls {
        transform: translateY(-110px);
    }

    .decal-canvas-wrap {
        height: clamp(710px, calc(100vh - 240px), 850px);
        min-height: clamp(710px, calc(100vh - 240px), 850px);
    }

    .decal-editor__stage > .decal-quality-card {
        position: fixed;
        z-index: 24;
        bottom: max(20px, env(safe-area-inset-bottom));
        left: 20px;
        min-height: 32px;
        margin: 0;
        padding: 5px 10px;
        border: 1px solid rgba(17, 24, 32, .12);
        background: rgba(255, 255, 255, .92);
        box-shadow: 0 3px 12px rgba(17, 24, 32, .08);
        backdrop-filter: blur(8px);
    }
}

.decal-panel-tabs {
    display: flex;
    min-width: 0;
    flex: 0 1 auto;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 0;
}

.decal-canvas-tools {
    display: flex;
    max-width: 100%;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.decal-canvas-tool {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 11px;
    color: #000;
    border: 1px solid #d2d0ca;
    background: #fff;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.decal-canvas-tool:hover:not(:disabled),
.decal-canvas-tool.is-active {
    border-color: #000;
}

#decal-lock.is-active {
    color: #fff;
    border-color: #000;
    background: #000;
}

@keyframes decal-lock-shake {
    0%, 100% { transform: translateX(0) rotate(0); }
    18% { transform: translateX(-4px) rotate(-7deg); }
    36% { transform: translateX(4px) rotate(7deg); }
    54% { transform: translateX(-3px) rotate(-5deg); }
    72% { transform: translateX(3px) rotate(5deg); }
}

#decal-lock.is-lock-feedback,
[data-mobile-proxy="decal-lock"].is-lock-feedback {
    color: #111820;
    border-color: #b9a067;
    background: #d4bd82;
    animation: decal-lock-shake .55s ease;
}

.decal-canvas-wrap.is-lock-feedback {
    box-shadow: inset 0 0 0 3px rgba(185, 160, 103, .9);
}

.decal-canvas-tool:disabled {
    color: #b8b8b5;
    border-color: #e3e2de;
    cursor: default;
}

.decal-canvas-tool--icon {
    width: 40px;
    padding: 8px;
    font-size: 18px;
}

.decal-canvas-tools__divider {
    width: 1px;
    height: 26px;
    margin: 0 3px;
    background: #dedcd6;
}

.decal-toolbar-overflow {
    position: relative;
}

.decal-toolbar-overflow__menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 7px);
    right: 0;
    width: 190px;
    padding: 6px;
    border: 1px solid #d2d0ca;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .11);
}

.decal-toolbar-overflow__menu[hidden] {
    display: none;
}

.decal-toolbar-overflow__menu button {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 0;
    background: #fff;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.decal-toolbar-overflow__menu button:hover {
    background: #f4f4f1;
}

.decal-panel-tab {
    padding: 11px 18px;
    border: 1px solid #c8c6c0;
    color: #65686b;
    background: #fff;
    font-family: var(--font);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.decal-panel-tab.is-active {
    border-color: #000;
    color: #fff;
    background: #000;
}

.decal-panel-tab.needs-artwork:not(.is-active) {
    border-style: dashed;
    color: var(--link);
}

.decal-switch-template {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    border-style: dashed;
    color: var(--link);
}

.decal-canvas-wrap {
    position: relative;
    display: grid;
    min-height: 440px;
    place-items: center;
    overflow: hidden;
    background: #fff;
}

.decal-canvas-scroll {
    position: absolute;
    inset: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.decal-canvas-surface {
    position: relative;
    display: flex;
    min-width: 100%;
    min-height: 100%;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.decal-empty-canvas-prompt {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    margin: 0;
    padding: 5px 9px;
    transform: translate(-50%, -50%);
    color: #6d7174;
    background: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
}

.decal-empty-canvas-prompt[hidden] {
    display: none;
}

.decal-empty-canvas-prompt__mobile {
    display: none;
}

@media (max-width: 640px) {
    .decal-empty-canvas-prompt__desktop {
        display: none;
    }

    .decal-empty-canvas-prompt__mobile {
        display: inline;
    }
}

.decal-canvas-surface #decal-canvas {
    max-width: none;
    max-height: none;
    flex: 0 0 auto;
}

.decal-canvas-view-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}

.decal-canvas-view-tools[hidden] {
    display: none;
}

.decal-canvas-view-tools i {
    font-size: 20px;
}

.decal-studio-onboarding {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 36px;
    text-align: center;
    background: #fff;
}

.decal-studio-onboarding[hidden] {
    display: none;
}

.decal-studio-onboarding > div {
    width: min(680px, 100%);
}

.decal-studio-onboarding h2 {
    margin: 8px 0 12px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: .9;
}

.decal-studio-onboarding p {
    margin: 0 0 25px;
    color: #686c6f;
    font-size: 13px;
}

.decal-studio-onboarding > div > small {
    color: var(--link);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.decal-studio-template-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.decal-studio-template-grid button {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #cbc9c3;
    color: #111820;
    background: #fff;
    font-family: var(--font);
    text-align: left;
    cursor: pointer;
}

.decal-studio-template-grid button:hover {
    color: #fff;
    border-color: #000;
    background: #000;
}

.decal-studio-template-grid button.is-selected {
    color: #fff;
    border-color: #000;
    background: #000;
}

.decal-studio-template-grid .decal-template-copy {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 4px;
    margin: 0;
}

.decal-studio-template-grid strong {
    font-size: 13px;
    line-height: 1.1;
    text-transform: uppercase;
}

.decal-studio-template-grid em {
    color: #717579;
    font-size: 10px;
    font-style: normal;
    line-height: 1.35;
}

.decal-template-icon {
    display: grid;
    width: 58px;
    height: 42px;
    flex: 0 0 58px;
    place-items: center;
    margin: 0;
}

.decal-template-icon img {
    display: block;
    width: 100%;
    max-height: 38px;
    object-fit: contain;
    transition: filter .15s ease;
}

.decal-template-icon--fork img {
    max-height: 46px;
}

.decal-studio-template-grid button:hover em,
.decal-studio-template-grid button.is-selected em {
    color: #d9dcde;
}

.decal-studio-template-grid button:hover .decal-template-icon img,
.decal-studio-template-grid button.is-selected .decal-template-icon img {
    filter: brightness(0) invert(1);
}

.decal-studio-upload-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    place-items: center;
    border: 1px solid #c8c6c0;
    border-radius: 50%;
    background: #fff;
    font-size: 29px;
}

#decal-studio-upload .decal-button {
    display: inline-flex;
    margin-bottom: 18px;
    cursor: pointer;
}

.decal-studio-review-action {
    margin-top: 24px;
}

#decal-canvas {
    display: block;
    width: auto;
    height: auto;
    image-rendering: auto;
    max-width: 100%;
    max-height: 620px;
    touch-action: none;
    cursor: grab;
}

#decal-canvas.is-dragging {
    cursor: grabbing;
}

#decal-canvas.is-colour-picking {
    cursor: crosshair;
}

#decal-canvas.is-aero-disc-template {
    max-width: none;
    max-height: none;
}

.decal-editor__controls {
    position: static;
    align-self: start;
    max-height: none;
    overflow: visible;
    padding: 0 25px 25px;
    border: 0;
    background: #fff;
}

.decal-sidebar-tool {
    margin-bottom: 9px;
    border: 1px solid #d5d3cc;
    background: #fff;
}

.decal-sidebar-tool__toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    color: #111820;
    border: 0;
    background: #fff;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.decal-sidebar-tool__toggle span {
    flex: 1;
}

.decal-sidebar-tool__toggle .bx-chevron-down {
    font-size: 18px;
    transition: transform .2s ease;
}

.decal-sidebar-tool.is-open .decal-sidebar-tool__toggle .bx-chevron-down {
    transform: rotate(180deg);
}

.decal-sidebar-tool__toggle:disabled {
    color: #a9abad;
    background: #f7f7f6;
    cursor: not-allowed;
}

.decal-sidebar-tool__content {
    padding: 0 13px 13px;
    border-top: 1px solid #eceae5;
    font-size: 12px;
    line-height: 1.45;
}

.decal-sidebar-tool__content[hidden] {
    display: none;
}

.decal-sidebar-tool .decal-studio-template-grid,
.decal-sidebar-tool .decal-artwork-library {
    margin-top: 13px;
}

.decal-image-settings {
    display: grid;
    gap: 14px;
    padding-top: 14px;
}

.decal-image-settings[hidden] {
    display: none;
}

.decal-image-format-toolbar {
    display: inline-flex;
    gap: 5px;
    width: max-content;
    padding: 2px 0;
    border: 0;
    background: #fff;
}

.decal-image-format-toolbar button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #111820;
    background: #fff;
    font-size: 21px;
    cursor: pointer;
}

.decal-image-format-toolbar button:hover,
.decal-image-format-toolbar button.is-active {
    color: var(--link);
    background: #fff;
}

.decal-image-format-toolbar button:disabled {
    color: #aaa;
    background: #fff;
    cursor: not-allowed;
}

.decal-image-settings .decal-control {
    margin: 0;
}

#decal-hue {
    height: 8px;
    border-radius: 0;
    background: linear-gradient(90deg, #00f, #f0f, #f00, #ff0, #0f0, #0ff, #00f);
}

.decal-panel-artwork__label {
    display: block;
    margin-bottom: 9px;
    font-size: 12px;
    font-weight: 700;
}

.decal-artwork-library {
    display: grid;
    grid-template-columns: repeat(3, 82px);
    grid-auto-rows: 82px;
    gap: 7px;
}

.decal-artwork-thumb {
    position: relative;
    display: grid;
    width: 82px;
    height: 82px;
    min-width: 0;
    box-sizing: border-box;
    place-items: center;
    overflow: hidden;
    padding: 0;
    border: 1px solid #c8c6c0;
    background: #f2f1ee;
    cursor: pointer;
}

.decal-artwork-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.decal-artwork-thumb > span {
    position: absolute;
    right: 5px;
    bottom: 5px;
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    color: #fff;
    background: rgba(17, 24, 32, .8);
    font-size: 9px;
    font-weight: 700;
}

.decal-artwork-thumb > i {
    position: absolute;
    top: 5px;
    left: 5px;
    display: none;
    width: 23px;
    height: 23px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: var(--link);
    font-size: 15px;
}

.decal-artwork-thumb.is-selected {
    border: 3px solid #111820;
    box-shadow: 0 0 0 2px var(--link);
}

.decal-artwork-thumb.is-selected > i {
    display: grid;
}

.decal-artwork-thumb--add {
    min-height: 0;
    border-style: dashed;
    color: #666a6d;
    background: #fff;
}

.decal-artwork-thumb--add.is-disabled {
    cursor: not-allowed;
    opacity: .4;
    pointer-events: none;
}

.decal-canvas.is-locked {
    cursor: not-allowed;
}

.decal-artwork-thumb--add > i {
    position: static;
    display: block;
    width: auto;
    height: auto;
    color: inherit;
    background: transparent;
    font-size: 25px;
}

.decal-artwork-thumb--add > span {
    position: static;
    width: auto;
    height: auto;
    color: inherit;
    background: transparent;
    font-size: 9px;
}

.decal-artwork-item {
    position: relative;
    width: 82px;
    height: 82px;
}

.decal-artwork-edit {
    position: absolute;
    z-index: 3;
    top: 5px;
    right: 5px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    padding: 0;
    color: #111820;
    border: 1px solid #d3d0c8;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    font-size: 13px;
    cursor: pointer;
}

.decal-artwork-edit:hover {
    color: #fff;
    border-color: #000;
    background: #000;
}

.decal-artwork-remove {
    position: absolute;
    z-index: 3;
    left: 5px;
    bottom: 5px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    padding: 0;
    color: #111820;
    border: 1px solid #d3d0c8;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    font-size: 13px;
    cursor: pointer;
}

.decal-artwork-remove:hover {
    color: #fff;
    border-color: #b93636;
    background: #b93636;
}

.decal-crop-dialog {
    width: min(980px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    box-sizing: border-box;
    overflow-y: auto;
    padding: 24px;
    color: #111820;
    border: 1px solid #e5e5e7;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 20px 70px rgba(17, 24, 32, .12);
}

.decal-crop-dialog::backdrop {
    background: rgba(17, 24, 32, .22);
    backdrop-filter: blur(2px);
}

.decal-crop-dialog__heading {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.decal-crop-dialog__heading button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid #e6e6e8;
    border-radius: 0;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
}

.decal-crop-stage {
    display: grid;
    min-height: 280px;
    max-height: 58vh;
    place-items: center;
    overflow: auto;
    background: #ecebe7;
}

#decal-crop-canvas {
    display: block;
    max-width: 100%;
    max-height: 58vh;
    touch-action: none;
    cursor: crosshair;
}

.decal-crop-dialog > p {
    margin: 12px 0 0;
    color: #73777a;
    font-size: 11px;
}

.decal-crop-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px;
}

.decal-confirm-dialog {
    width: min(390px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    box-sizing: border-box;
    overflow-y: auto;
    padding: 28px;
    border: 1px solid #e5e5e7;
    border-radius: 0;
    color: #111820;
    background: #fff;
    box-shadow: 0 20px 70px rgba(17, 24, 32, .12);
    text-align: center;
}

.decal-confirm-dialog::backdrop {
    background: rgba(17, 24, 32, .22);
    backdrop-filter: blur(2px);
}

.decal-confirm-dialog__icon {
    display: grid;
    width: 34px;
    height: 34px;
    margin: 0 auto 14px;
    place-items: center;
    color: #111820;
    background: transparent;
    font-size: 26px;
}

.decal-confirm-dialog h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.decal-confirm-dialog p {
    margin: 0;
    color: #65686d;
    font-size: 14px;
    line-height: 1.55;
}

.decal-confirm-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
}

.decal-confirm-dialog__actions .decal-button {
    min-height: 48px;
    border-radius: 0;
}

.decal-confirm-dialog__actions .decal-button--danger {
    color: #fff;
    background: #111820;
}

.decal-confirm-dialog__actions .decal-button--danger:hover {
    background: #a52d28;
}

@media (max-width: 560px) {
    .decal-confirm-dialog {
        padding: 24px 20px 20px;
    }

    .decal-confirm-dialog__actions {
        grid-template-columns: 1fr;
    }

    .decal-crop-dialog {
        padding: 16px;
    }

    .decal-crop-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .decal-crop-actions .decal-button:last-child {
        grid-column: 1 / -1;
    }
}

.decal-colour-dialog {
    position: fixed;
    z-index: 150;
    inset: auto;
    width: min(270px, calc(100vw - 20px));
    max-width: none;
    max-height: calc(100vh - 20px);
    box-sizing: border-box;
    overflow-y: auto;
    margin: 0;
    padding: 12px;
    color: #111820;
    border: 1px solid #e5e5e7;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 20px 70px rgba(17, 24, 32, .12);
}

.decal-colour-dialog::backdrop {
    background: rgba(17, 24, 32, .22);
    backdrop-filter: blur(2px);
}

.decal-colour-dialog__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    font-size: 12px;
}

.decal-colour-dialog__heading strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.decal-colour-dialog__heading strong > i {
    font-size: 17px;
}

.decal-colour-dialog__heading button,
.decal-colour-dialog__value button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid #c8c6c0;
    border-radius: 0;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
}

.decal-colour-dialog__value button svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.decal-colour-dialog__heading button {
    width: 34px;
    height: 34px;
    border: 1px solid #e6e6e8;
    border-radius: 0;
    font-size: 20px;
}

.decal-colour-dialog__canvas {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #c8c6c0;
    touch-action: none;
    cursor: crosshair;
}

.decal-colour-dialog__hue {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 600;
}

.decal-colour-dialog__hue input {
    width: 100%;
    height: 12px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
    appearance: none;
    -webkit-appearance: none;
}

.decal-colour-dialog__hue input::-webkit-slider-thumb {
    width: 18px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 0;
    background: transparent;
    box-shadow: 0 0 0 1px #111820;
    appearance: none;
    -webkit-appearance: none;
}

.decal-colour-dialog__hue input::-moz-range-thumb {
    width: 16px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 0;
    background: transparent;
    box-shadow: 0 0 0 1px #111820;
}

.decal-colour-dialog__value {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
}

.decal-colour-dialog__value > span {
    width: 40px;
    height: 40px;
    border: 1px solid #c8c6c0;
}

.decal-colour-dialog__value input {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #c8c6c0;
    border-radius: 0;
    background: #fff;
    font: 600 12px var(--font);
    text-transform: uppercase;
}

.decal-colour-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.decal-colour-dialog__replacement-settings {
    display: grid;
    gap: 8px;
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid #dedcd6;
}

.decal-colour-dialog__replacement-settings[hidden] {
    display: none;
}

.decal-colour-dialog__replacement-settings label {
    display: grid;
    min-height: 34px;
    grid-template-columns: 60px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 7px;
    color: #55595d;
    font-size: 10px;
    font-weight: 600;
}

.decal-colour-dialog__replacement-settings label > span {
    display: contents;
}

.decal-colour-dialog__replacement-settings output {
    grid-column: 3;
    grid-row: 1;
    color: #111820;
    text-align: right;
}

.decal-colour-dialog__replacement-settings input[type="range"] {
    width: 100%;
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
    accent-color: var(--link);
}

.decal-colour-dialog__actions .decal-button {
    min-height: 40px;
    border-radius: 0;
    font-size: 11px;
}

#decal-colour-replace-apply[hidden] {
    display: none !important;
}

.decal-panel-upload {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    padding: 7px 11px;
    border: 1px solid #c8c6c0;
    background: #faf9f6;
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}

.decal-panel-artwork small {
    display: block;
    margin-top: 9px;
    color: #777a7d;
    font-size: 10px;
    line-height: 1.5;
}

.decal-canvas-wrap.is-file-dragging {
    outline: 3px solid var(--link);
    outline-offset: -3px;
}

.decal-canvas-wrap.is-awaiting-image,
.decal-canvas-wrap.is-awaiting-image canvas {
    cursor: pointer;
}

.decal-quality-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 30px;
    margin: 4px 0 0;
    padding: 4px 2px 0;
    color: #707478;
    border: 0;
    background: transparent;
    pointer-events: none;
}

.decal-quality-card__dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
}

.decal-quality-card div {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.decal-quality-card small,
.decal-quality-card span:last-child {
    color: #707478;
    font-size: 11px;
}

.decal-quality-card strong {
    color: #111820;
    font-size: 13px;
    line-height: 1.4;
}

.decal-quality-card span:last-child::before {
    content: "— ";
}

.decal-quality-card--good .decal-quality-card__dot { background: #58bd82; }
.decal-quality-card--warn .decal-quality-card__dot { background: #e9af48; }
.decal-quality-card--bad .decal-quality-card__dot { background: #e35e61; }

.decal-control {
    display: block;
    margin-bottom: 25px;
}

.decal-control > span {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 650;
}

.decal-control input {
    width: 100%;
    accent-color: var(--link);
}

.decal-background-fill {
    margin: 0 0 25px;
    padding: 15px;
    border: 1px solid #d5d3cc;
    background: #fff;
}

.decal-background-fill__colour {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 650;
}

.decal-background-fill__colour span {
    margin-right: auto;
}

.decal-background-fill__colour input[type="color"] {
    width: 38px;
    height: 30px;
    padding: 2px;
    border: 1px solid #c8c6c0;
    background: #fff;
    cursor: pointer;
}

.decal-background-fill__colour .decal-background-fill__hex {
    width: 76px;
    height: 30px;
    padding: 5px 7px;
    color: #55595d;
    border: 1px solid #c8c6c0;
    background: #fff;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.decal-background-fill small {
    display: block;
    margin-top: 11px;
    color: #777a7d;
    font-size: 10px;
    line-height: 1.5;
}

.decal-background-fill .decal-colour-picker {
    width: 100%;
    margin-top: 13px;
}

.decal-control-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-bottom: 25px;
}

.decal-background-tool,
.decal-text-tool,
.decal-colour-replace-tool {
    position: relative;
    min-width: 0;
}

.decal-background-tool > button,
.decal-text-tool > button,
.decal-colour-replace-tool > button {
    width: 100%;
}

.decal-colour-replace-tool {
    order: 5;
}

.decal-text-tool {
    order: 1;
}

.decal-background-tool {
    order: 3;
}

.decal-text-settings {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    gap: 11px;
    padding: 16px;
    border: 1px solid #d5d3cc;
    background: #fff;
    order: 2;
}

.decal-text-settings[hidden] {
    display: none;
}

.decal-text-settings label {
    display: grid;
    gap: 6px;
    color: #55595d;
    font-size: 10px;
    font-weight: 600;
}

.decal-text-settings label > span {
    display: flex;
    justify-content: space-between;
}

.decal-text-value-field {
    display: grid;
    gap: 6px;
    color: #55595d;
    font-size: 10px;
    font-weight: 600;
}

.decal-text-input-wrap {
    position: relative;
}

.decal-text-input-wrap #decal-text-value {
    width: 100%;
    box-sizing: border-box;
    padding-right: 42px;
}

.decal-text-input-delete {
    position: absolute;
    top: 1px;
    right: 1px;
    display: grid;
    width: 36px;
    height: calc(100% - 2px);
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111820;
    cursor: pointer;
}

.decal-text-input-delete i {
    font-size: 17px;
}

.decal-text-input-delete:hover,
.decal-text-input-delete:focus-visible {
    background: #f3f2ef;
}

.decal-text-input-delete:disabled {
    opacity: 0;
    pointer-events: none;
}

.decal-text-format-toolbar {
    display: flex;
    gap: 5px;
    align-items: center;
    width: max-content;
    padding: 2px 0;
    border: 0;
    background: #fff;
}

.decal-text-settings .decal-text-format-toolbar label {
    position: relative;
    display: block;
    min-width: 0;
    color: #111820;
}

.decal-text-format-toolbar input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.decal-text-format-toolbar label > span {
    position: relative;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 21px;
    line-height: 1;
}

.decal-text-format-toolbar label > span i {
    font-size: inherit;
}

.decal-text-format-toolbar input:focus-visible + span {
    outline: 2px solid var(--link);
    outline-offset: -3px;
}

.decal-text-format-toolbar input:checked + span {
    color: var(--link);
    background: #fff;
}

.decal-text-format-toolbar input:checked + span::before {
    content: none;
}

.decal-text-format-toolbar__bold {
    font-weight: 800;
}

.decal-text-format-toolbar__italic {
    font-family: Arial, sans-serif !important;
}

.decal-text-format-toolbar__uppercase {
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: -1px;
}

.decal-text-format-toolbar__outline {
    color: transparent;
    font-size: 19px;
    font-weight: 700;
    -webkit-text-stroke: 1px #111820;
}

.decal-text-format-toolbar input:checked + .decal-text-format-toolbar__outline {
    -webkit-text-stroke-color: var(--link);
}

.decal-text-format-toolbar__colour {
    --text-colour: #fff;
}

.decal-text-format-toolbar__colour span::after {
    content: none;
}

.decal-text-settings #decal-text-outline-width-label[hidden] {
    display: none;
}

.decal-text-settings input[type="range"] {
    width: 100%;
    accent-color: var(--link);
}

.decal-text-settings input[type="text"],
.decal-text-settings select {
    min-height: 38px;
    padding: 8px 9px;
    border: 1px solid #c8c6c0;
    background: #fff;
    font: inherit;
}

#decal-text-font {
    min-height: 38px;
    padding: 8px 9px;
    font-size: inherit;
    font-weight: inherit;
    line-height: normal;
}

#decal-text-font option {
    padding: 8px 10px;
    font-size: 16px;
}

.decal-text-settings input[type="color"] {
    width: 100%;
    height: 36px;
    padding: 3px;
    border: 1px solid #c8c6c0;
    border-radius: 0;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}

.decal-text-settings input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.decal-text-settings input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 0;
}

.decal-text-settings input[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: 0;
}

.decal-text-settings small {
    color: #777a7d;
    font-size: 10px;
    line-height: 1.45;
}

#decal-canvas.is-text-placing {
    cursor: crosshair;
}

.decal-sidebar-tool__toggle .decal-background-tool__swatch {
    width: 14px;
    height: 14px;
    min-width: 14px;
    max-width: 14px;
    flex: 0 0 14px;
    align-self: center;
    aspect-ratio: 1;
    border: 1px solid rgba(17, 24, 32, .25);
    border-radius: 50%;
    background: #fff;
}

.decal-control-buttons > .decal-background-fill {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    order: 4;
}

.decal-control-buttons > .decal-background-fill[hidden] {
    display: none;
}

.decal-background-fill .decal-background-reset {
    width: 100%;
    margin-top: 13px;
    color: #111820;
}

.decal-colour-replace {
    display: grid;
    grid-column: 1 / -1;
    gap: 11px;
    width: 100%;
    padding: 16px;
    border: 1px solid #d5d3cc;
    background: #fff;
    order: 6;
}

.decal-colour-replace[hidden] {
    display: none;
}

.decal-colour-replace label {
    display: grid;
    gap: 6px;
    color: #55595d;
    font-size: 10px;
    font-weight: 600;
}

.decal-colour-replace label > span {
    display: flex;
    justify-content: space-between;
}

.decal-colour-replace input[type="range"] {
    width: 100%;
    accent-color: var(--link);
}

.decal-colour-replace input[type="color"] {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #111820;
    border-radius: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.decal-colour-replace input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.decal-colour-replace input[type="color"]::-webkit-color-swatch,
.decal-colour-replace input[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: 0;
}

.decal-colour-replace__colours {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 10px;
}

.decal-colour-replace__colours label {
    justify-items: center;
}

.decal-colour-replace__colours label > span {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.decal-colour-replace .decal-colour-replace__pick {
    display: grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid #111820;
    border-radius: 0;
    color: #fff;
    background: #000;
    font-size: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 2px rgba(0, 0, 0, .8);
}

.decal-colour-replace .decal-colour-replace__pick:hover {
    outline: 2px solid #b9a067;
    outline-offset: 1px;
}

.decal-colour-replace__pick svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.decal-colour-replace__pick.is-picked svg {
    opacity: 0;
}

.decal-colour-replace__colours > i {
    padding-bottom: 10px;
    font-size: 20px;
}

.decal-colour-replace > small {
    color: #777a7d;
    font-size: 10px;
    line-height: 1.45;
}

.decal-colour-replace__progress {
    display: grid;
    gap: 6px;
    color: #55595d;
    font-size: 10px;
}

.decal-colour-replace__progress[hidden] {
    display: none;
}

.decal-colour-replace__progress progress {
    width: 100%;
    accent-color: var(--link);
}

.decal-colour-replace__list {
    display: grid;
    gap: 0;
}

.decal-colour-replace__item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 11px 4px;
    border: 0;
    font-size: 10px;
}

.decal-colour-replace__item + .decal-colour-replace__item {
    border-top: 1px solid #dedcd6;
}

.decal-colour-replace__swatch {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(17, 24, 32, .25);
}

.decal-colour-replace__item button {
    min-height: 30px;
    padding: 4px 7px;
    border: 0;
    color: #9d2f2f;
}

.decal-colour-replace__reset {
    color: #9d2f2f;
}

#decal-canvas.is-colour-replacing {
    cursor: crosshair;
}

.decal-control-buttons button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px;
    border: 1px solid #c8c6c0;
    background: #fff;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.decal-control-buttons button:hover {
    border-color: #000;
}

.decal-control-buttons .decal-text-input-delete {
    position: absolute;
    inset: 1px 1px 1px auto;
    display: grid;
    width: 38px;
    min-height: 0;
    height: auto;
    gap: 0;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.decal-control-buttons .decal-text-input-delete:hover,
.decal-control-buttons .decal-text-input-delete:focus-visible {
    border: 0;
    background: #f3f2ef;
}

.decal-control-buttons .decal-colour-replace__item button {
    display: grid;
    width: 42px;
    min-height: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111820;
    box-shadow: none;
}

.decal-control-buttons .decal-colour-replace__item button:hover {
    border: 0;
    background: transparent;
    color: #000;
}

.decal-control-buttons .decal-colour-replace__item button i {
    font-size: 20px;
}

.decal-control-buttons .decal-background-fill .decal-background-reset,
.decal-control-buttons .decal-colour-replace .decal-colour-replace__reset {
    width: 100%;
    color: #111820;
    border: 1px solid #111820;
    background: #fff;
    font-weight: 750;
}

.decal-control-buttons .decal-background-fill .decal-background-reset:hover,
.decal-control-buttons .decal-colour-replace .decal-colour-replace__reset:hover {
    color: #111820;
    border-color: #111820;
    background: #f5f4f1;
}

.decal-control-buttons .decal-background-fill .decal-background-reset:disabled,
.decal-control-buttons .decal-colour-replace .decal-colour-replace__reset:disabled {
    color: #929597;
    border-color: #bfc0bd;
    background: #fff;
    cursor: not-allowed;
}

.decal-control-buttons button.is-active {
    border-color: #000;
    color: #fff;
    background: #000;
}

.decal-control-buttons > .decal-sidebar-tool {
    width: 100%;
    margin-bottom: 9px;
}

.decal-control-buttons > .decal-sidebar-tool.is-open {
    margin-bottom: 0;
}

.decal-control-buttons .decal-sidebar-tool__toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 11px 13px;
    border: 0;
    color: #111820;
    background: #fff;
    font-size: 12px;
    text-align: left;
}

.decal-control-buttons .decal-sidebar-tool__toggle:hover,
.decal-control-buttons .decal-sidebar-tool__toggle.is-active {
    border: 0;
    color: #111820;
    background: #fff;
}

.decal-control-buttons .decal-sidebar-tool__toggle .bx-chevron-down {
    margin-left: auto;
    transition: transform .18s ease;
}

.decal-control-buttons > .decal-sidebar-tool.is-open .bx-chevron-down {
    transform: rotate(180deg);
}

.decal-control-buttons > .decal-text-settings,
.decal-control-buttons > .decal-background-fill,
.decal-control-buttons > .decal-colour-replace {
    grid-column: 1;
    width: 100%;
    margin: 0 0 9px;
    padding: 13px;
    border: 1px solid #d5d3cc;
    border-top: 0;
    background: #fff;
}

.decal-review-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 0;
}

/* Mirror the editor: actions and the order rail share the page-title row. */
@media (min-width: 981px) {
    .decal-review-toolbar {
        position: absolute;
        z-index: 12;
        top: -110px;
        right: 365px;
        margin: 0;
    }

    .decal-order-summary {
        transform: translateY(-110px);
    }
}

.decal-step.decal-review-step {
    padding: 0;
    border: 0;
    box-shadow: none;
}

.decal-review-breadcrumb[hidden] {
    display: none;
}

.decal-review-previews {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 100%;
    gap: 12px;
}

.decal-review-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 0 0 12px;
}

.decal-review-tool {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 11px;
    border: 1px solid #d2d0ca;
    color: #000;
    background: #fff;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.decal-review-tool i {
    font-size: 15px;
}

.decal-review-back-label--mobile {
    display: none;
}

.decal-review-tool:hover:not(:disabled) {
    border-color: #000;
}

.decal-review-tool:disabled {
    color: #b7b9ba;
    border-color: #e6e5e1;
    cursor: not-allowed;
}

.decal-review-tool.is-saved:disabled {
    color: #24623d;
    border-color: #bddbc8;
    background: #f1f8f3;
    opacity: 1;
}

/* At compact desktop widths the title row is too narrow for the full toolbars.
   Keep the two-column editor, but place actions in the normal flow below the
   breadcrumbs and above the side selector / review previews. */
@media (min-width: 981px) and (max-width: 1450px) {
    .decal-canvas-tools {
        position: static;
        inset: auto;
        transform: none;
    }

    .decal-editor__controls {
        transform: none;
    }

    .decal-studio-toolbar {
        height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin: 0 0 14px;
        padding: 0 2px;
    }

    .decal-studio-toolbar > .decal-panel-tabs {
        position: static;
        inset: auto;
    }

    .decal-canvas-tools {
        order: -1;
        justify-content: flex-start;
    }

}

@media (min-width: 981px) and (max-width: 1450px) {
    .decal-review-toolbar {
        position: static;
        inset: auto;
        transform: none;
        justify-content: flex-start;
        margin: 0 0 16px;
    }

    .decal-order-summary {
        transform: none;
    }
}

/* A single-panel review fills the same grid height as its order sidebar. */
.decal-review-previews--faceplate {
    height: clamp(440px, calc(100vh - 340px), 640px);
    min-height: 440px;
    grid-template-columns: 1fr;
}

.decal-review-previews--faceplate .decal-review-card {
    display: flex;
    height: 100%;
    min-height: 440px;
    flex-direction: column;
}

.decal-review-previews--faceplate .decal-review-card img {
    width: 100%;
    height: calc(100% - 42px);
    min-height: 0;
    max-height: calc(100vh - 380px);
    flex: 1 1 auto;
    object-fit: contain;
}

/* Standard Battery: equal side views on the left, vertical top view on the right. */
.decal-review-previews--battery {
    grid-template-columns: minmax(0, 2fr) minmax(330px, .88fr);
    grid-template-rows: repeat(2, minmax(290px, auto));
}

.decal-review-previews--battery .decal-review-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.decal-review-previews--battery .decal-review-card:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.decal-review-previews--battery .decal-review-card:nth-child(2) {
    display: block;
    position: relative;
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 592px;
    overflow: hidden;
}

.decal-review-previews--battery .decal-review-card:nth-child(1) img,
.decal-review-previews--battery .decal-review-card:nth-child(3) img {
    width: 90%;
    height: 261px;
    min-height: 261px;
    margin-right: auto;
    margin-left: auto;
}

.decal-review-previews--battery .decal-review-card:nth-child(2) img {
    position: absolute;
    top: calc(50% - 18px);
    left: 50%;
    width: min(650px, 64vh);
    height: min(310px, 28vw);
    min-height: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.decal-review-previews--battery .decal-review-card:nth-child(2) div {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
}

.decal-review-previews--z {
    grid-template-columns: 1fr;
}

.decal-review-previews--z .decal-review-card {
    grid-column: 1;
}

.decal-review-previews--z .decal-review-card img {
    width: 80%;
    height: min(21.6vw, 264px);
    min-height: 208px;
    margin-right: auto;
    margin-left: auto;
}

.decal-review-previews--fork {
    height: clamp(560px, calc(100vh - 260px), 760px);
}

.decal-review-previews--fork .decal-review-card {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.decal-review-previews--fork .decal-review-card img {
    width: 100%;
    height: calc(100% - 42px);
    min-height: 0;
    max-height: calc(100vh - 300px);
    flex: 1 1 auto;
    object-fit: contain;
}

.decal-review-content {
    min-width: 0;
}

.decal-quality-boost {
    display: grid;
    min-width: 0;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(17, 24, 32, .14);
}

.decal-quality-boost[hidden] {
    display: none;
}

.decal-quality-boost > small {
    display: block;
    color: inherit;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.45;
}

.decal-quality-boost > button {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    color: #fff;
    border: 1px solid #7fc654;
    background: #7fc654;
    font: 600 13px var(--font);
    cursor: pointer;
}

.decal-quality-boost > button:hover {
    border-color: #68ad40;
    background: #68ad40;
}

.decal-quality-boost__progress {
    display: grid;
    gap: 6px;
}

.decal-quality-boost__progress > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 9px;
}

.decal-quality-boost__progress progress {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    accent-color: #111820;
}

.decal-quality-boost__progress small,
.decal-quality-boost__error {
    color: inherit;
    font-size: 8px;
    font-weight: 400;
    line-height: 1.4;
}

.decal-quality-boost__error {
    color: #9b302c !important;
}

.decal-quality-boost__applied {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    color: #1d6842;
    border: 1px solid #8bc2a5;
    border-radius: 999px;
    background: #eff9f3;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .03em;
    white-space: nowrap;
    text-transform: uppercase;
}

.decal-quality-boost__applied > i {
    font-size: 12px;
}

.decal-quality-boost__applied--failed {
    color: #9b302c;
    border-color: #d8a6a2;
    background: #fff4f3;
}

.decal-product-mockups {
    margin-top: 12px;
    border: 1px solid #dedcd5;
    background: #fff;
}

.decal-product-mockups__toggle {
    display: flex;
    width: 100%;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 18px;
    border: 0;
    color: var(--ink);
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.decal-product-mockups__toggle span,
.decal-product-mockups__toggle small,
.decal-product-mockups__toggle strong {
    display: block;
}

.decal-product-mockups__toggle small {
    margin-bottom: 4px;
    color: #8a8d8f;
    font-size: 10px;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.decal-product-mockups__toggle strong {
    font-size: 15px;
}

.decal-product-mockups__toggle i {
    font-size: 22px;
    transition: transform .2s ease;
}

.decal-product-mockups__toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.decal-product-mockups__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 12px 12px;
}

.decal-product-mockups__grid[hidden] {
    display: none;
}

.decal-product-mockup {
    margin: 0;
    padding: 8px;
    border: 1px solid #e8e6e1;
    background: #fff;
}

.decal-product-mockup img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.05;
    object-fit: contain;
    background: #fff;
}

.decal-product-mockup figcaption {
    padding: 8px 2px 2px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.decal-review-card {
    padding: 0;
    border: 0;
    background: #fff;
}

.decal-review-card:first-child:last-child,
.decal-review-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* Keep both Standard Battery side cards identical; override the generic odd-card span. */
.decal-review-previews--battery .decal-review-card:nth-child(1),
.decal-review-previews--battery .decal-review-card:nth-child(3) {
    grid-column: 1;
}

.decal-review-card img {
    display: block;
    width: 100%;
    height: min(30vw, 340px);
    min-height: 230px;
    object-fit: contain;
    background: #fff;
}

@media (min-width: 981px) {
    .decal-review-previews--aero-disc .decal-review-card img {
        height: min(47.19vw, 535px);
        min-height: 362px;
    }
}

.decal-review-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0 0;
}

.decal-review-card strong {
    font-size: 13px;
    text-transform: uppercase;
}

.decal-review-card span {
    font-size: 12px;
}

.decal-order-summary {
    padding: 0 25px 25px;
    color: #111820;
    border: 0;
    background: #fff;
}

.decal-quality-rating {
    display: inline-flex !important;
    width: max-content;
    align-items: center;
    gap: 6px;
    margin: 0 0 7px;
    padding: 4px 7px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.decal-quality-rating::before {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.decal-quality-rating--empty {
    color: #777b7f;
    background: #f7f7f5;
}

.decal-quality-rating--low {
    color: #a52f2f;
    background: #fff1f1;
}

.decal-quality-rating--acceptable {
    color: #8a5a14;
    background: #fff8e8;
}

.decal-quality-rating--good {
    color: #75621d;
    background: #faf6e6;
}

.decal-quality-rating--very-good {
    color: #39705a;
    background: #eff8f3;
}

.decal-quality-rating--excellent {
    color: #236144;
    background: #edf8f1;
}

.decal-order-summary__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    gap: 12px;
    margin-bottom: 9px;
    padding: 10px 13px;
    border: 1px solid #d5d3cc;
}

.decal-order-summary__heading h3 {
    margin: 0;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
}

.decal-order-summary dl {
    margin: 0 0 9px;
    padding: 0 13px;
    border: 1px solid #d5d3cc;
}

.decal-order-summary dl > div {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 9px;
    padding: 12px 0;
    border-bottom: 1px solid #e3e1dc;
}

.decal-order-summary dt {
    color: #777b7f;
    font-size: 10px;
    text-transform: uppercase;
}

.decal-order-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 12px;
    font-weight: 600;
}

.decal-order-summary dd strong,
.decal-order-summary dd small {
    display: block;
}

.decal-order-summary dd small {
    max-width: 300px;
    margin-top: 5px;
    color: #777b7f;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
}

.decal-order-summary dl > div.is-blocked {
    margin: 0 -12px;
    padding: 15px 12px;
    border-bottom-color: #efcaca;
    background: #fff1f1;
}

.decal-order-summary dl > div.is-blocked dt,
.decal-order-summary dl > div.is-blocked dd strong,
.decal-order-summary dl > div.is-blocked dd small {
    color: #a52f2f;
}

.decal-finish {
    margin: 0 0 9px;
    padding: 12px 13px 13px;
    border: 1px solid #d5d3cc;
}

.decal-finish legend {
    width: 100%;
    padding: 0 0 9px;
    font-size: 11px;
    font-weight: 700;
}

.decal-finish legend span {
    float: right;
    color: #777b7f;
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
}

.decal-finish__options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.decal-finish__options label {
    position: relative;
    cursor: pointer;
}

.decal-finish__options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.decal-finish__options span {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #c8c6c0;
    color: #111820;
    font-size: 11px;
    font-weight: 700;
    transition: .18s ease;
}

.decal-finish-surface--matt {
    background:
        repeating-radial-gradient(circle at 35% 45%, rgba(17, 24, 32, .035) 0 1px, transparent 1px 3px),
        linear-gradient(145deg, #f2f1ed, #d8d7d2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}

.decal-finish-surface--glossy {
    background:
        linear-gradient(112deg, transparent 0 35%, rgba(255, 255, 255, .92) 43%, rgba(255, 255, 255, .25) 51%, transparent 60%),
        linear-gradient(145deg, #eeeeec 0, #c5c5c2 46%, #f8f8f6 60%, #b5b5b2 100%);
    box-shadow: inset 0 1px 0 #fff, inset 0 -3px 7px rgba(17, 24, 32, .14), 0 2px 5px rgba(17, 24, 32, .08);
}

.decal-finish__options input:checked + span {
    color: #fff;
    border-color: #000;
}

.decal-finish__options input:checked + .decal-finish-surface--matt {
    background:
        repeating-radial-gradient(circle at 35% 45%, rgba(255, 255, 255, .045) 0 1px, transparent 1px 3px),
        linear-gradient(145deg, #3c3c3a, #171716);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.decal-finish__options input:checked + .decal-finish-surface--glossy {
    background:
        linear-gradient(112deg, transparent 0 31%, rgba(255, 255, 255, .62) 42%, rgba(255, 255, 255, .12) 51%, transparent 61%),
        linear-gradient(145deg, #393939 0, #090909 48%, #414141 62%, #050505 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48), inset 0 -4px 9px rgba(0, 0, 0, .52), 0 2px 6px rgba(0, 0, 0, .25);
}

.decal-finish__options input:focus-visible + span {
    outline: 2px solid var(--link);
    outline-offset: 2px;
}

.decal-approval.is-blocked {
    cursor: not-allowed;
    opacity: .48;
}

.decal-approval {
    display: flex;
    gap: 11px;
    margin: 18px 0;
    color: #555a5e;
    font-size: 11px;
    line-height: 1.5;
    cursor: pointer;
}

.decal-approval input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    accent-color: var(--link);
}

.decal-order-summary .decal-button--primary {
    color: #fff;
    border-color: #000;
    background: #000;
}

.decal-order-summary #decal-order {
    justify-content: flex-start;
}

.decal-order-summary #decal-order-label {
    flex: 1 1 auto;
    text-align: center;
}

.decal-order-price {
    flex: 0 0 auto;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, .35);
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}

.decal-order-summary .decal-button--primary:hover:not(:disabled) {
    color: #fff;
    border-color: var(--link);
    background: var(--link);
}

.decal-order-summary .decal-button--ghost {
    margin-bottom: 8px;
    color: #111820;
    border-color: #c8c6c0;
}

.decal-order-summary .decal-button--ghost:hover:not(:disabled) {
    color: #fff;
    border-color: #000;
    background: #000;
}

.decal-resume-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0;
    padding: 12px;
    border: 1px solid #d5d3cc;
    background: #f7f7f5;
}

.decal-resume-link[hidden] {
    display: none;
}

.decal-resume-link span,
.decal-resume-link strong,
.decal-resume-link small {
    display: block;
}

.decal-resume-link strong {
    font-size: 11px;
}

.decal-resume-link small {
    margin-top: 2px;
    color: #6f7376;
    font-size: 9px;
    line-height: 1.35;
}

.decal-resume-link button {
    display: inline-flex;
    min-height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    color: #fff;
    border: 1px solid #000;
    border-radius: 0;
    background: #000;
    font: 650 10px var(--font);
    cursor: pointer;
}

.decal-order-help {
    margin: 17px 0 0;
    color: #777b7f;
    font-size: 11px;
    line-height: 1.6;
}

.decal-alert {
    position: fixed;
    z-index: 120;
    bottom: 28px;
    left: 50%;
    width: min(520px, calc(100vw - 36px));
    margin: 0;
    padding: 14px 18px;
    border: 1px solid #dacb9f;
    border-left: 4px solid var(--link);
    background: #fff7e4;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 16px 42px rgba(17, 24, 32, .2);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px);
    transition: opacity .22s ease, transform .22s ease;
}

.decal-alert.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.decal-alert.is-hiding {
    opacity: 0;
    transform: translate(-50%, 12px);
}

.decal-alert.is-error {
    border-color: #d75050;
    background: #fff0f0;
}

.decal-alert.is-success {
    border-color: #42a26b;
    background: #ecfff3;
}

.decal-alert.is-actionable {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    pointer-events: auto;
}

.decal-alert.is-actionable button {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #111820;
    border-radius: 0;
    background: #111820;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 640px) {
    .decal-alert {
        bottom: 16px;
    }

    .decal-alert.is-actionable {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .decal-shell {
        width: calc(100% - 44px) !important;
        padding: 100px 0 70px !important;
    }

    .decal-model-grid {
        grid-template-columns: 1fr;
    }

    .decal-model-card {
        min-height: 0;
        flex-direction: row;
    }

    .decal-model-card__visual {
        width: 42%;
        height: 210px;
        flex: 0 0 42%;
    }

    .decal-upload-layout,
    .decal-editor,
    .decal-review-layout {
        grid-template-columns: 1fr;
    }

    .decal-studio-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .decal-review-toolbar {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .decal-panel-tabs,
    .decal-canvas-tools {
        width: 100%;
        overflow-x: auto;
    }

    .decal-canvas-tools {
        justify-content: flex-start;
        padding-bottom: 3px;
    }

    .decal-editor__controls,
    .decal-order-summary {
        order: 2;
    }

    .decal-editor__controls {
        position: static;
        max-height: none;
        border-top: 1px solid #dedcd5;
        border-left: 0;
    }

}

@media (max-width: 640px) {
    .decal-page {
        overflow-x: hidden;
    }

    .decal-shell {
        width: calc(100% - 24px) !important;
        padding: 90px 0 60px !important;
    }

    .decal-hero {
        margin-bottom: 20px;
    }

    .decal-back-link {
        margin-bottom: 32px;
    }

    .decal-intro {
        font-size: 15px;
    }

    .decal-progress__item {
        min-height: 58px;
        overflow: hidden;
        justify-content: center;
        padding: 9px;
        text-align: center;
    }

    .decal-progress__item strong {
        display: none;
    }

    .decal-progress__item span {
        width: 30px;
        height: 30px;
    }

    .decal-step {
        min-width: 0;
        padding: 25px 17px;
    }

    .decal-step__heading,
    .decal-step__heading p,
    .decal-intro {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .decal-model-card {
        display: block;
    }

    .decal-model-card__visual {
        width: 100%;
        height: 200px;
    }

    .decal-dropzone {
        min-height: 300px;
        padding: 24px;
    }

    .decal-canvas-wrap {
        min-height: 320px;
    }

    .decal-studio-toolbar {
        width: 100%;
    }

    .decal-studio-onboarding {
        padding: 24px 15px;
    }

    .decal-studio-template-grid {
        grid-template-columns: 1fr;
    }

    .decal-studio-template-grid button {
        min-height: 75px;
    }

    .decal-review-previews {
        grid-template-columns: 1fr;
    }

    .decal-review-tool {
        min-width: 40px;
        padding: 8px 11px;
    }

    .decal-review-tool span {
        display: none;
    }

    .decal-review-previews--battery {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .decal-review-previews--battery .decal-review-card:nth-child(n) {
        display: block;
        grid-column: 1;
        grid-row: auto;
        min-height: 0;
    }

    .decal-review-previews--battery .decal-review-card:nth-child(1) img,
    .decal-review-previews--battery .decal-review-card:nth-child(3) img {
        height: 220px;
        min-height: 0;
    }

    .decal-review-previews--battery .decal-review-card:nth-child(2) img {
        position: static;
        width: min(430px, 80vw);
        height: 210px;
        min-height: 0;
        margin: 25px auto;
        transform: rotate(-90deg);
    }

    .decal-review-previews--battery .decal-review-card:nth-child(2) div {
        position: static;
    }

    .decal-review-previews--faceplate,
    .decal-review-previews--faceplate .decal-review-card {
        height: auto;
        min-height: 560px;
    }

    .decal-review-previews--faceplate .decal-review-card img {
        min-height: 500px;
    }

    .decal-review-previews--fork .decal-review-card img {
        height: 420px;
        min-height: 0;
    }

    .decal-review-previews--z .decal-review-card img {
        height: 260px;
        min-height: 0;
    }

    .decal-product-mockups__grid {
        grid-template-columns: 1fr;
    }

    .decal-review-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .decal-review-card img {
        height: 280px;
        min-height: 0;
    }

    .decal-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .decal-actions--right {
        flex-direction: column;
    }

    .decal-button {
        width: 100%;
    }
}

/* Wider iPhones keep the 100px site header instead of the compact 75px header. */
@media (min-width: 414px) and (max-width: 640px) {
    .decal-shell {
        padding-top: calc(120px + env(safe-area-inset-top)) !important;
    }
}

/* Mobile Decal Studio is a dedicated app-style interface. Desktop rules above
   remain the source of truth at 641px and wider. */
@media (max-width: 640px) {
    body.decal-mobile-sheet-open {
        overflow: hidden;
    }

    .decal-crop-dialog,
    .decal-confirm-dialog {
        max-height: calc(100svh - 16px);
        max-height: calc(100dvh - 16px);
        margin: auto 8px;
    }

    .decal-crop-dialog {
        width: calc(100vw - 16px);
        padding: 12px;
    }

    .decal-crop-stage,
    #decal-crop-canvas {
        max-height: calc(100svh - 190px);
        max-height: calc(100dvh - 190px);
    }

    .decal-colour-dialog {
        width: min(360px, calc(100vw - 16px));
        max-height: calc(100svh - 16px);
        max-height: calc(100dvh - 16px);
    }

    .decal-editor button,
    .decal-crop-dialog button {
        border-radius: 0 !important;
    }

    .decal-page > footer {
        display: none;
    }

    .decal-review-tool .decal-review-back-label--desktop {
        display: none;
    }

    .decal-review-tool .decal-review-back-label--mobile {
        display: inline;
    }

    .decal-page .decal-hero,
    .decal-page .decal-progress {
        display: none;
    }

    .decal-shell {
        padding-bottom: 0 !important;
    }

    .decal-step.decal-studio-step {
        margin-inline: -12px;
        padding: 0;
        border: 0;
        background: #fff;
    }

    .decal-studio-step > .decal-step__heading {
        display: none;
    }

    .decal-editor {
        display: block;
        min-height: calc(100svh - 90px);
        background: #fff;
    }

    .decal-editor__stage {
        position: relative;
        display: flex;
        min-height: calc(100svh - 90px);
        flex-direction: column;
        padding: 0 0 calc(204px + env(safe-area-inset-bottom));
    }

    .decal-editor__controls {
        display: none;
    }

    .decal-mobile-editor-header {
        position: relative;
        z-index: 15;
        display: grid;
        min-height: 52px;
        grid-template-columns: minmax(130px, .9fr) minmax(0, 1.1fr);
        align-items: center;
        gap: 8px;
        order: 1;
        margin-top: -20px;
        padding: 4px 12px;
        border: 0;
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(14px);
    }

    .decal-mobile-header__template {
        display: flex;
        min-width: 0;
        min-height: 40px;
        align-items: center;
        gap: 9px;
        padding: 0;
        color: #111820;
        border: 0;
        background: transparent;
        font-family: var(--font);
        text-align: left;
    }

    .decal-mobile-header__template > i {
        display: grid;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        place-items: center;
        color: #fff;
        border-radius: 0;
        background: #111820;
        font-size: 19px;
    }

    .decal-mobile-header__template span,
    .decal-mobile-header__panel {
        display: grid;
        min-width: 0;
        gap: 1px;
    }

    .decal-mobile-panel-tabs {
        display: grid;
        min-width: 0;
        height: 40px;
        grid-auto-flow: column;
        grid-auto-columns: minmax(58px, 1fr);
        overflow-x: auto;
        border: 1px solid #000;
        background: #fff;
        scrollbar-width: none;
    }

    .decal-mobile-panel-tabs[hidden],
    .decal-mobile-panel-tabs::-webkit-scrollbar {
        display: none;
    }

    .decal-mobile-panel-tabs .decal-panel-tab {
        min-height: 38px;
        padding: 5px 7px;
        border: 0;
        border-right: 1px solid #000;
        color: #000;
        background: #fff;
        font-size: 8px;
        white-space: nowrap;
    }

    .decal-mobile-panel-tabs .decal-panel-tab.needs-artwork:not(.is-active),
    .decal-mobile-panel-tabs .decal-panel-tab.has-artwork:not(.is-active) {
        color: #000;
        border: 0;
        border-right: 1px solid #000;
        background: #fff;
    }

    .decal-mobile-panel-tabs .decal-panel-tab.is-active {
        color: #fff;
        border: 0;
        border-right: 1px solid #000;
        background: #000;
    }

    .decal-mobile-panel-tabs .decal-panel-tab:last-child {
        border-right: 0;
    }

    .decal-mobile-panel-tabs .decal-panel-tab.needs-artwork:last-child:not(.is-active),
    .decal-mobile-panel-tabs .decal-panel-tab.has-artwork:last-child:not(.is-active),
    .decal-mobile-panel-tabs .decal-panel-tab.is-active:last-child {
        border-right: 0;
    }

    .decal-mobile-editor-header small {
        color: #898c8e;
        font-size: 8px;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
    }

    .decal-mobile-editor-header strong {
        overflow: hidden;
        font-size: 11px;
        font-weight: 750;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .decal-mobile-header__panel {
        max-width: 92px;
        padding: 0 8px;
        border-left: 1px solid #dedcd6;
    }

    .decal-mobile-header__history {
        display: flex;
        gap: 3px;
    }

    .decal-mobile-header__history button,
    .decal-mobile-sheet__header > button {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        padding: 0;
        color: #111820;
        border: 0;
        border-radius: 0;
        background: transparent;
        font-size: 23px;
    }

    .decal-mobile-header__history button:disabled {
        color: #c3c3c0;
    }

    .decal-canvas-wrap {
        width: 100%;
        height: clamp(280px, 45svh, 440px);
        min-height: clamp(280px, 45svh, 440px);
        order: 2;
        padding: 0;
        box-sizing: border-box;
        background:
            linear-gradient(45deg, rgba(17, 24, 32, .025) 25%, transparent 25%, transparent 75%, rgba(17, 24, 32, .025) 75%),
            linear-gradient(45deg, rgba(17, 24, 32, .025) 25%, transparent 25%, transparent 75%, rgba(17, 24, 32, .025) 75%),
            #fff;
        background-position: 0 0, 8px 8px;
        background-size: 16px 16px;
    }

    #decal-canvas {
        max-width: none;
        max-height: none;
    }

    #decal-canvas.is-aero-disc-template {
        max-width: none;
        max-height: none;
    }

    .decal-quality-card {
        position: fixed;
        z-index: 24;
        right: auto;
        bottom: calc(212px + env(safe-area-inset-bottom));
        left: 50%;
        width: max-content;
        max-width: calc(100% - 24px);
        height: 32px;
        min-height: 32px;
        order: 4;
        margin: 0;
        padding: 4px 10px;
        box-sizing: border-box;
        border: 0;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, .9);
        font-size: 9px;
    }

    .decal-quality-card > div {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 4px;
    }

    .decal-quality-card small {
        display: none;
    }

    .decal-quality-card span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .decal-studio-toolbar {
        position: absolute;
        z-index: 23;
        top: 60px;
        right: 8px;
        bottom: auto;
        left: auto;
        display: block;
        width: 42px;
        height: auto;
        order: 3;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        border: 0;
        background: transparent;
    }

    .decal-canvas-tools {
        display: flex;
        width: 42px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 3px;
        overflow: visible;
        padding: 0;
    }

    .decal-canvas-tools > #decal-lock,
    .decal-canvas-tools > #decal-fill,
    .decal-canvas-tools > #decal-center,
    .decal-canvas-tools > #decal-flip,
    .decal-canvas-tools > #decal-copy,
    .decal-canvas-tools > .decal-canvas-tools__divider:not(.decal-canvas-view-divider),
    .decal-canvas-tools > .decal-toolbar-overflow {
        display: none;
    }

    .decal-canvas-view-divider {
        display: none;
    }

    .decal-canvas-view-tools {
        flex-direction: column;
        gap: 4px;
    }

    .decal-canvas-tools > .decal-canvas-tool--icon,
    .decal-canvas-view-tools .decal-canvas-tool--icon {
        width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
    }

    .decal-studio-toolbar > .decal-panel-tabs {
        display: none;
    }

    .decal-panel-tabs {
        display: grid;
        width: 100%;
        grid-auto-flow: column;
        grid-auto-columns: minmax(72px, 1fr);
        gap: 0;
        overflow-x: auto;
        padding: 0;
        border: 1px solid #111820;
        border-radius: 0;
        background: #fff;
        scrollbar-width: none;
    }

    .decal-panel-tabs::-webkit-scrollbar,
    .decal-mobile-context-tools::-webkit-scrollbar {
        display: none;
    }

    .decal-panel-tab {
        min-height: 40px;
        padding: 8px 11px;
        overflow: hidden;
        border: 0;
        border-right: 1px solid #111820;
        border-radius: 0;
        background: #fff;
        font-size: 10px;
        text-overflow: ellipsis;
    }

    .decal-panel-tab:last-child {
        border-right: 0;
    }

    .decal-panel-tab.is-active {
        color: #fff;
        background: #000;
        box-shadow: none;
    }

    .decal-mobile-context-tools {
        position: fixed;
        z-index: 24;
        right: 0;
        bottom: calc(104px + env(safe-area-inset-bottom));
        left: 0;
        display: grid;
        width: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        order: 6;
        gap: 0;
        overflow: visible;
        padding: 0;
        box-sizing: border-box;
        background: #fff;
        border: 0;
    }

    .decal-mobile-direct-controls {
        position: fixed;
        z-index: 23;
        right: 0;
        bottom: calc(156px + env(safe-area-inset-bottom));
        left: 0;
        display: grid;
        width: 100%;
        height: 48px;
        order: 5;
        gap: 2px;
        padding: 0 12px;
        box-sizing: border-box;
        border: 0;
        background: #fff;
    }

    .decal-mobile-direct-controls label {
        display: grid;
        height: 48px;
        min-height: 48px;
        grid-template-columns: 58px minmax(0, 1fr) 48px;
        align-items: center;
        gap: 8px;
        color: #111820;
        font-size: 10px;
        font-weight: 750;
    }

    .decal-mobile-direct-controls output {
        color: #555b60;
        font-variant-numeric: tabular-nums;
        text-align: right;
    }

    .decal-mobile-direct-controls input[type="range"] {
        width: 100%;
        min-height: 34px;
        margin: 0;
        accent-color: var(--link);
    }

    .decal-mobile-direct-controls input:disabled {
        opacity: .38;
    }

    .decal-colour-pick-hint {
        position: fixed;
        z-index: 60;
        right: 12px;
        bottom: calc(212px + env(safe-area-inset-bottom));
        left: 12px;
        display: flex;
        min-height: 54px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 8px 8px 16px;
        color: #fff;
        border: 1px solid #000;
        background: #000;
        font-size: 11px;
        font-weight: 750;
    }

    .decal-colour-pick-hint[hidden] {
        display: none;
    }

    .decal-colour-pick-hint button {
        min-height: 38px;
        padding: 7px 14px;
        color: #000;
        border: 1px solid #fff;
        border-radius: 0;
        background: #fff;
        font: inherit;
    }

    .decal-mobile-context-tools button {
        display: grid;
        width: 52px;
        min-width: 52px;
        min-height: 52px;
        justify-self: center;
        place-items: center;
        align-content: center;
        gap: 3px;
        padding: 6px 5px;
        color: #111820;
        border: 0;
        border-radius: 0;
        background: #fff;
        font-family: var(--font);
        font-size: 9px;
        font-weight: 700;
    }

    .decal-mobile-context-tools button i {
        font-size: 19px;
    }

    .decal-mobile-context-tools button.is-active {
        color: #fff;
        background: #111820;
    }

    .decal-mobile-context-tools button:disabled,
    .decal-mobile-primary-nav button:disabled {
        color: #b6b7b5;
        opacity: .55;
    }

    .decal-mobile-primary-nav {
        position: fixed;
        z-index: 25;
        right: 0;
        bottom: calc(52px + env(safe-area-inset-bottom));
        left: 0;
        display: grid;
        width: 100%;
        grid-template-columns: repeat(4, 1fr);
        order: 7;
        padding: 0;
        border: 0;
        background: #fff;
        box-shadow: none;
        backdrop-filter: none;
    }

    .decal-mobile-primary-nav button {
        display: grid;
        width: 52px;
        min-width: 52px;
        min-height: 52px;
        justify-self: center;
        place-items: center;
        align-content: center;
        gap: 3px;
        padding: 5px 1px;
        color: #686c6f;
        border: 0;
        border-radius: 0;
        background: #fff;
        font-family: var(--font);
        font-size: 8px;
        font-weight: 700;
    }

    .decal-mobile-primary-nav button i {
        font-size: 21px;
    }

    .decal-mobile-primary-nav button.is-active {
        color: #fff;
        background: #000;
    }

    .decal-mobile-review-wide {
        position: fixed;
        z-index: 26;
        right: 0;
        bottom: 0;
        left: 0;
        display: inline-flex;
        width: 100%;
        height: calc(52px + env(safe-area-inset-bottom));
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 16px env(safe-area-inset-bottom);
        box-sizing: border-box;
        color: #fff;
        border: 0;
        background: #000;
        font-family: var(--font);
        font-size: 12px;
        font-weight: 750;
    }

    .decal-mobile-review-wide:disabled {
        color: #aaa;
        background: #e4e4e2;
    }

    .decal-mobile-sheet-backdrop {
        position: fixed;
        z-index: 90;
        inset: 0;
        display: block;
        background: transparent;
        backdrop-filter: none;
    }

    .decal-mobile-sheet-backdrop[hidden],
    .decal-mobile-sheet[hidden] {
        display: none;
    }

    .decal-mobile-sheet {
        position: fixed;
        z-index: 91;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        width: 100%;
        max-width: none;
        max-height: min(90svh, 760px);
        max-height: min(90dvh, 760px);
        flex-direction: column;
        overflow: hidden;
        box-sizing: border-box;
        padding: 8px max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
        color: #111820;
        border: 0;
        border-top: 1px solid #d9d7d1;
        border-radius: 0;
        background: #fff;
        box-shadow: 0 -16px 50px rgba(17, 24, 32, .12);
        animation: decal-mobile-sheet-in .24s cubic-bezier(.22, .8, .3, 1);
    }

    .decal-mobile-sheet[data-sheet="template"] {
        max-height: 92svh;
        max-height: 92dvh;
    }

    .decal-mobile-sheet[data-sheet="text"] {
        max-height: min(82svh, 680px);
        max-height: min(82dvh, 680px);
        padding-right: max(12px, env(safe-area-inset-right));
        padding-left: max(12px, env(safe-area-inset-left));
    }

    .decal-mobile-sheet[data-sheet="artwork"],
    .decal-mobile-sheet[data-sheet="colour"] {
        max-height: min(90svh, 740px);
        max-height: min(90dvh, 740px);
    }

    .decal-mobile-sheet[data-sheet="image-settings"] {
        max-height: min(72svh, 610px);
        max-height: min(72dvh, 610px);
    }

    .decal-mobile-sheet[data-sheet="background"] {
        max-height: min(70svh, 560px);
        max-height: min(70dvh, 560px);
    }

    .decal-mobile-sheet[data-sheet="more"] {
        max-height: min(62svh, 460px);
        max-height: min(62dvh, 460px);
    }

    .decal-mobile-sheet__handle {
        display: none;
    }

    .decal-mobile-sheet__header {
        display: none;
    }

    .decal-mobile-sheet__header small {
        color: var(--link);
        font-size: 8px;
        font-weight: 750;
        letter-spacing: .14em;
        text-transform: uppercase;
    }

    .decal-mobile-sheet__header h2 {
        margin: 2px 0 0;
        font-family: var(--headerfont);
        font-size: 27px;
        line-height: 1;
        text-transform: uppercase;
    }

    .decal-mobile-sheet__intro {
        display: none;
    }

    .decal-mobile-sheet__intro:empty {
        display: none;
    }

    .decal-mobile-sheet__body {
        min-height: 0;
        flex: 1 1 auto;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 2px 1px 8px;
        scrollbar-gutter: stable;
    }

    .decal-mobile-sheet__actions {
        display: none;
    }

    .decal-mobile-sheet__actions.is-done-only {
        grid-template-columns: 1fr;
    }

    .decal-mobile-sheet__actions.is-done-only #decal-mobile-sheet-cancel {
        display: none;
    }

    #decal-mobile-sheet-cancel {
        display: none;
    }

    .decal-mobile-sheet__actions .decal-button {
        min-height: 48px;
    }

    .decal-mobile-sheet .decal-control {
        display: grid;
        gap: 16px;
        margin: 0;
        padding: 22px 4px 30px;
        border: 0;
    }

    .decal-mobile-sheet .decal-control > span {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 13px;
        font-weight: 750;
    }

    .decal-mobile-sheet[data-sheet="image-settings"] .decal-mobile-sheet__body {
        padding-top: 3px;
        padding-bottom: 6px;
    }

    .decal-mobile-sheet[data-sheet="image-settings"] .decal-image-settings {
        gap: 2px;
        padding-top: 0;
    }

    .decal-mobile-sheet[data-sheet="image-settings"] .decal-image-format-toolbar {
        min-height: 34px;
        align-items: center;
        margin-bottom: 3px;
    }

    .decal-mobile-sheet[data-sheet="image-settings"] .decal-control {
        display: grid;
        min-height: 38px;
        grid-template-columns: 62px minmax(0, 1fr) 44px;
        align-items: center;
        gap: 8px;
        padding: 2px 4px;
    }

    .decal-mobile-sheet[data-sheet="image-settings"] .decal-control > span {
        display: contents;
        font-size: 12px;
    }

    .decal-mobile-sheet[data-sheet="image-settings"] .decal-control__label {
        grid-column: 1;
        grid-row: 1;
    }

    .decal-mobile-sheet[data-sheet="image-settings"] .decal-control output {
        grid-column: 3;
        grid-row: 1;
        text-align: right;
        white-space: nowrap;
    }

    .decal-mobile-sheet[data-sheet="image-settings"] .decal-control input[type="range"] {
        height: 32px;
        min-height: 32px;
        grid-column: 2;
        grid-row: 1;
    }

    .decal-mobile-sheet[data-sheet="image-settings"] .decal-mobile-sheet__actions {
        padding-top: 6px;
    }

    .decal-mobile-sheet[data-sheet="image-settings"] .decal-mobile-sheet__actions .decal-button {
        min-height: 44px;
    }

    .decal-mobile-sheet[data-sheet="colour"] .decal-mobile-sheet__body {
        padding-top: 3px;
        padding-bottom: 6px;
    }

    .decal-mobile-sheet[data-sheet="colour"] .decal-colour-replace {
        gap: 4px;
        padding: 2px 4px 6px;
        border: 0;
    }

    .decal-mobile-sheet[data-sheet="colour"] .decal-colour-replace__colours {
        gap: 7px;
        margin-bottom: 3px;
    }

    .decal-mobile-sheet[data-sheet="colour"] .decal-colour-replace input[type="color"],
    .decal-mobile-sheet[data-sheet="colour"] .decal-colour-replace .decal-colour-replace__pick {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
    }

    .decal-mobile-sheet[data-sheet="colour"] .decal-colour-replace__range {
        display: grid;
        min-height: 38px;
        grid-template-columns: 62px minmax(0, 1fr) 44px;
        align-items: center;
        gap: 8px;
        padding: 2px 0;
    }

    .decal-mobile-sheet[data-sheet="colour"] .decal-colour-replace__range > span {
        display: contents;
        font-size: 12px;
    }

    .decal-mobile-sheet[data-sheet="colour"] .decal-colour-replace__range .decal-control__label {
        grid-column: 1;
        grid-row: 1;
    }

    .decal-mobile-sheet[data-sheet="colour"] .decal-colour-replace__range output {
        grid-column: 3;
        grid-row: 1;
        color: #111820;
        text-align: right;
        white-space: nowrap;
    }

    .decal-mobile-sheet[data-sheet="colour"] .decal-colour-replace__range input[type="range"] {
        height: 32px;
        min-height: 32px;
        grid-column: 2;
        grid-row: 1;
    }

    .decal-mobile-sheet[data-sheet="colour"] .decal-colour-replace > small {
        display: none;
    }

    .decal-mobile-sheet[data-sheet="colour"] .decal-colour-replace__reset {
        min-height: 38px;
        margin-top: 2px;
        border: 1px solid #d5d3cc;
        background: #fff;
        font: inherit;
    }

    .decal-mobile-sheet[data-sheet="colour"] .decal-mobile-sheet__actions {
        padding-top: 6px;
    }

    .decal-mobile-sheet[data-sheet="colour"] .decal-mobile-sheet__actions .decal-button {
        min-height: 44px;
    }

    .decal-mobile-sheet input[type="range"] {
        width: 100%;
        min-height: 42px;
        accent-color: var(--link);
    }

    .decal-mobile-sheet .decal-artwork-library {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 9px;
        padding: 2px;
    }

    .decal-mobile-sheet .decal-artwork-item,
    .decal-mobile-sheet .decal-artwork-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .decal-mobile-sheet .decal-studio-template-grid {
        gap: 8px;
    }

    .decal-mobile-sheet .decal-studio-template-grid button {
        min-height: 78px;
        border-radius: 0;
    }

    .decal-mobile-sheet .decal-text-settings,
    .decal-mobile-sheet .decal-background-fill {
        position: static;
        display: grid;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        gap: 13px;
        margin: 0;
        padding: 2px 0 12px;
        border: 0;
        box-shadow: none;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-mobile-sheet__body {
        overflow-y: auto;
        padding-top: 4px;
        padding-bottom: 8px;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-text-settings {
        grid-template-columns: minmax(128px, 42%) minmax(0, 1fr);
        align-items: start;
        gap: 6px 8px;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-text-format-toolbar {
        display: grid;
        width: 100%;
        height: 42px;
        box-sizing: border-box;
        align-self: end;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        padding: 0;
        border: 0;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-text-format-toolbar label {
        display: grid;
        height: 40px;
        place-items: center;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-text-format-toolbar label + label {
        border-left: 0;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-text-format-toolbar label > span {
        width: 100%;
        height: 40px;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-text-settings > label {
        min-width: 0;
        gap: 5px;
        margin: 0;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-text-value-field {
        grid-column: 1 / -1;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-text-settings input[type="text"],
    .decal-mobile-sheet[data-sheet="text"] .decal-text-settings select,
    .decal-mobile-sheet[data-sheet="text"] .decal-text-settings input[type="color"] {
        min-height: 42px;
        height: 42px;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-text-settings input[type="range"] {
        min-height: 28px;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-text-settings > .decal-text-range {
        display: grid;
        min-height: 36px;
        grid-column: 1 / -1;
        grid-template-columns: 92px minmax(0, 1fr) 44px;
        align-items: center;
        gap: 8px;
        padding: 0 4px;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-text-range > span {
        display: contents;
        font-size: 11px;
        font-weight: 650;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-text-range .decal-control__label {
        grid-column: 1;
        grid-row: 1;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-text-range output {
        grid-column: 3;
        grid-row: 1;
        text-align: right;
        white-space: nowrap;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-text-range input[type="range"] {
        height: 30px;
        min-height: 30px;
        grid-column: 2;
        grid-row: 1;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-text-settings > small {
        display: none;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-mobile-sheet__actions {
        padding-top: 8px;
    }

    .decal-mobile-sheet[data-sheet="text"] .decal-mobile-sheet__actions .decal-button {
        min-height: 46px;
    }

    .decal-mobile-sheet .decal-text-settings[hidden],
    .decal-mobile-sheet .decal-background-fill[hidden] {
        display: grid;
    }

    .decal-mobile-sheet[data-sheet="background"] .decal-background-reset,
    .decal-mobile-sheet[data-sheet="colour"] .decal-colour-replace__reset {
        display: inline-flex;
        width: 100%;
        min-height: 42px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin: 0;
        padding: 8px 12px;
        color: #111820;
        border: 1px solid #111820;
        border-radius: 0;
        background: #fff;
        font-family: var(--font);
        font-size: 11px;
        font-weight: 750;
    }

    .decal-mobile-sheet[data-sheet="background"] .decal-background-reset:disabled,
    .decal-mobile-sheet[data-sheet="colour"] .decal-colour-replace__reset:disabled {
        color: #929597;
        border-color: #bfc0bd;
        background: #fff;
    }

    .decal-mobile-more-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .decal-mobile-more-grid button {
        display: flex;
        min-height: 64px;
        align-items: center;
        gap: 10px;
        padding: 12px;
        color: #111820;
        border: 1px solid #000;
        border-radius: 0;
        background: #fff;
        font-family: var(--font);
        font-size: 10px;
        font-weight: 700;
        text-align: left;
    }

    .decal-mobile-more-grid button i {
        font-size: 22px;
    }

    .decal-mobile-more-grid button:disabled {
        opacity: .42;
    }

    .decal-step.decal-review-step {
        margin-top: -20px;
        margin-inline: -12px;
        padding: 0 0 96px;
        border: 0;
    }

    .decal-review-toolbar {
        position: sticky;
        z-index: 18;
        top: 0;
        margin: 0;
        padding: 8px 12px;
        border-bottom: 1px solid #d9d7d1;
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(14px);
    }

    .decal-review-previews {
        gap: 12px;
        padding: 12px;
        background: #f2f1ed;
    }

    .decal-quality-boost > button {
        width: 100%;
    }

    .decal-review-card {
        overflow: hidden;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(17, 24, 32, .07);
    }

    .decal-order-summary {
        padding: 20px 16px 110px;
        border-top: 1px solid #d9d7d1;
        background: #fff;
    }

    .decal-resume-link {
        margin: 10px 0 14px;
        padding: 10px;
    }

    .decal-resume-link button {
        min-height: 44px;
        padding-inline: 10px;
    }

    .decal-order-summary #decal-order {
        position: fixed;
        z-index: 40;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(52px + env(safe-area-inset-bottom));
        min-height: 52px;
        padding: 0 16px env(safe-area-inset-bottom);
        border-radius: 0;
        box-shadow: none;
    }

    @keyframes decal-mobile-sheet-in {
        from { transform: translateY(18px); opacity: .4; }
        to { transform: translateY(0); opacity: 1; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .decal-model-card,
    .decal-button,
    .decal-dropzone,
    .decal-mobile-sheet {
        transition: none;
        animation: none;
    }
}
