@font-face {
    font-family: "Instrument Sans";
    src: url("/static/fonts/instrument-sans.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: "Space Grotesk";
    src: url("/static/fonts/space-grotesk.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

.artwork-preview-frame {
    position: relative;
    overflow: hidden;
}

.artwork-photo-note {
    display: block;
    margin: 4px 0;
    color: var(--muted, #536067);
    font-size: .82rem;
}

.artwork-photo-note[hidden] {
    display: none;
}

.artwork-preview-camera {
    position: absolute;
    inset: 0;
}

.artwork-preview-camera > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.artwork-preview-frame[data-left-chest-zoom] > .artwork-preview-camera {
    background: var(--wash, #edf0ed);
    transform-origin: var(--chest-center-x) var(--chest-center-y);
    transform: translate(var(--chest-pan-x), var(--chest-pan-y)) scale(var(--chest-zoom));
}

.artwork-print-area {
    position: absolute;
    overflow: hidden;
    text-align: center;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.artwork-print-area:not(.artwork-layered),
.artwork-legacy-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.artwork-legacy-copy {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.artwork-print-area .artwork-legacy-logo {
    max-width: 100%;
    max-height: 68%;
    object-fit: contain;
}

.artwork-print-area:has(.artwork-legacy-text:empty):has(.artwork-legacy-phone:empty) .artwork-legacy-logo {
    max-height: 100%;
}

.artwork-sleeve-flag .artwork-legacy-logo {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.artwork-legacy-text {
    font-size: 3cqw;
    font-weight: 750;
}

.artwork-legacy-phone {
    color: inherit;
    font-size: 2cqw;
}

.artwork-print-area.artwork-layered,
#overlay.artwork-layered {
    display: block;
    container-type: inline-size;
}

.artwork-layer {
    position: absolute;
    margin: 0;
    transform: translate(-50%, -50%);
}

.artwork-layer-text {
    max-width: 100%;
    width: max-content;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    font-size: calc(var(--layer-size) * 1cqw);
    font-weight: 650;
    line-height: 1.08;
}

.artwork-layer-logo {
    width: calc(var(--layer-size) * 1%);
    height: calc(var(--layer-size) * 1%);
}

.artwork-layer-logo img,
.artwork-layer-logo #logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
}

button.artwork-layer-editable {
    z-index: 1;
    border: 0;
    border-radius: 2px;
    padding: 0;
    background: transparent;
    cursor: grab;
    pointer-events: auto;
    touch-action: none;
}

button.artwork-layer-editable[aria-pressed="true"],
button.artwork-layer-editable:focus-visible {
    z-index: 2;
    background: transparent;
    outline: none;
}

button.artwork-layer-editable[data-empty="true"] {
    color: var(--ink) !important;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
}

button.artwork-layer-editable:active {
    cursor: grabbing;
}

/* The print face owns its background independently from the editable artwork layers. */
.print-surface-plane {
    position: absolute;
    pointer-events: none;
}

.banner-artwork-area { overflow: hidden; }

.banner-background-guide,
.bar-mat-background-guide {
    outline: 1px solid #3a556a;
    outline-offset: -1px;
}

.desk-mat-bleed-guide {
    outline: 1px solid #006ca5;
}

.desk-mat-trim-guide {
    box-shadow: inset 0 0 0 1px #344b5d, 0 0 0 1px rgb(255 255 255 / 80%);
    pointer-events: none;
    position: absolute;
}

.sticker-bleed-guide {
    outline: 1px solid #027abc;
}

.sticker-trim-guide,
.sticker-safe-guide {
    pointer-events: none;
    position: absolute;
    z-index: 3;
}

.coaster-safe-guide {
    outline-color: rgb(255 255 255 / 75%);
    box-shadow: none;
}

:is(.coaster-engraving, .artwork-studio-print-area.coaster-engraving) {
    border: 0;
    outline: none;
    box-shadow: none;
}

:is(.coaster-engraving :is(.artwork-legacy-logo, .artwork-layer-logo img),
    .catalog-print-sample[data-coaster-engraving]) {
    filter: grayscale(1) brightness(.68) invert(.9);
}

.coaster-engraving :is(.artwork-layer-text:not([data-empty="true"]), .artwork-legacy-text, .artwork-legacy-phone) {
    color: #ebebeb !important;
}

.sticker-trim-guide {
    box-shadow: inset 0 0 0 1px #344b5d, 0 0 0 1px rgb(255 255 255 / 70%);
}

.sticker-safe-guide {
    outline: 1px dashed #027abc;
    outline-offset: -1px;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 75%);
}

:is(.sticker-print-plane, .sticker-trim-guide, .sticker-safe-guide)[data-sticker-shape="circle"] {
    border-radius: 50%;
}

#overlay.sticker-artwork-area,
.artwork-studio-print-area.sticker-artwork-area {
    border: 0;
    outline: none;
    box-shadow: none;
}

.sticker-artwork-area { overflow: hidden; }

.sticker-edge-fill .artwork-layer-logo {
    width: var(--sticker-bleed-width);
    height: var(--sticker-bleed-height);
}

.sticker-edge-fill .artwork-layer-logo :is(img, #logo) {
    object-fit: cover;
}

.sticker-edge-fill .artwork-layer-logo.artwork-layer-editable {
    z-index: 0;
    cursor: default;
    touch-action: auto;
}

#overlay:is(.desk-mat-safe-area, .bar-mat-safe-area) {
    border: 0;
    outline: 1px dashed #027abc;
    outline-offset: -1px;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 75%);
}

#overlay.banner-artwork-area:not(.desk-mat-safe-area, .bar-mat-safe-area, .sticker-artwork-area) {
    border: 1px dashed #027abc;
    outline: 1px solid rgb(255 255 255 / 65%);
}

.banner-guide-help {
    padding: 0 .8rem;
    text-align: center;
    font-size: .875rem;
    color: var(--muted, #495863);
}

.full-bleed-surface {
    isolation: isolate;
    overflow: hidden;
    background: white;
    box-shadow: 0 3px 8px rgb(20 46 62 / 16%), 0 0 0 1px rgb(20 46 62 / 13%);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.full-bleed-surface:not(.desk-mat-print-plane, .bar-mat-print-plane):is([data-surface-category="bar-mats"], [data-surface-category="desk-mats"], [data-surface-category="door-mats"]) {
    border-radius: 1.2% / 3%;
}

#stage > #garment.print-surface-photo {
    display: block;
}

.artwork-print-area > .print-surface-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.artwork-print-area > .print-surface-background > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

:where(#stage, .artwork-preview-camera, .proof-stage):has(> .full-bleed-surface) > :is(#garment, #artworkStudioGarment, .proof-garment):not(.print-surface-photo) {
    display: none;
}


:where(#stage, .artwork-preview-camera, .proof-stage):has(> .print-surface-photo) > .full-bleed-surface {
    background: transparent;
    box-shadow: none;
}
