.giclee-page #content.wide {
    width: calc(100% - 20px);
    max-width: none;
}

.giclee-page #main_content {
    background: #f6f6f6;
    padding: 18px 0 26px;
}

.giclee-app {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 20px;
    margin-top: 8px;
}

.giclee-stage,
.giclee-panel {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
}

.giclee-stage {
    padding: 28px;
    overflow: hidden;
}

.giclee-stage-head {
    position: relative;
    margin: -28px -28px 22px;
    padding: 30px 32px 24px;
    color: #111;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.giclee-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #d06a2c;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.giclee-stage-head h1 {
    max-width: 760px;
    font-size: 42px;
    line-height: 1.05;
    margin: 0 0 10px;
    color: #111;
}

.giclee-stage-head p {
    max-width: 760px;
    margin: 0 0 18px;
    color: #333;
    font-size: 16px;
    line-height: 1.55;
}

.giclee-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.giclee-highlights span {
    display: inline-block;
    padding: 7px 11px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #f8f8f8;
    color: #111;
    font-size: 12px;
    font-weight: bold;
}

.giclee-preview {
    position: relative;
    min-height: 680px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-file-picker {
    position: absolute;
    z-index: 8;
    top: 50%;
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    padding: 11px;
    background: #fff;
    border: 1px dashed #111;
    border-radius: 6px;
    color: #111;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.canvas-file-picker:hover {
    border-color: #d06a2c;
    background: #fff;
}

.canvas-file-picker .thumb {
    width: 48px;
    height: 48px;
    background: #f2f2f2;
    border: 1px solid #111;
    border-radius: 4px;
    flex-shrink: 0;
}

.canvas-file-picker .info {
    flex: 1;
    min-width: 0;
}

.canvas-file-picker .name {
    display: block;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.canvas-file-picker .meta {
    display: block;
    color: #6b7280;
    font-size: 12px;
}

.canvas-file-picker .swap {
    margin-left: auto;
    color: #d06a2c;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.giclee-preview.has-image .canvas-file-picker {
    display: none;
}

.giclee-preview .canvas-print,
.giclee-preview .canvas-scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .3s ease;
}

.giclee-preview .canvas-scene {
    opacity: 0;
    pointer-events: none;
    align-items: stretch;
    justify-content: stretch;
}

.giclee-preview[data-mode="scene"] .canvas-scene {
    opacity: 1;
    pointer-events: auto;
}

.giclee-preview[data-mode="scene"] {
    min-height: 900px;
}

.giclee-preview[data-mode="scene"] .canvas-print {
    opacity: 0;
    pointer-events: none;
}

.print-frame {
    border: 2px solid #111;
    background: #fff;
    box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.4);
    overflow: visible;
    cursor: grab;
    position: relative;
    user-select: none;
}

.print-frame.is-dragging {
    cursor: grabbing;
}

.print-frame.is-drop-target {
    border-color: #d06a2c;
    box-shadow: 0 0 0 3px rgba(208, 106, 44, 0.18);
}

.canvas-file-picker.is-drop-target {
    border-color: #d06a2c;
    box-shadow: 0 0 0 3px rgba(208, 106, 44, 0.18);
}

.upload.is-drop-target {
    border-color: #d06a2c;
    box-shadow: 0 0 0 3px rgba(208, 106, 44, 0.18);
}

.print-inner {
    position: absolute;
    inset: 0;
    background: #fff;
    outline: 1px dashed rgba(17, 17, 17, .65);
    outline-offset: -1px;
    overflow: hidden;
}

.giclee-preview:not(.has-image) .print-inner {
    background-image:
        repeating-linear-gradient(
            -45deg,
            rgba(156, 163, 175, 0.2) 0,
            rgba(156, 163, 175, 0.2) 1px,
            transparent 1px,
            transparent 16px
        );
}

.bleed-label {
    display: none;
    position: absolute;
    z-index: 3;
    padding: 2px 5px;
    background: #fff;
    border: 1px solid #111;
    color: #111;
    font-size: 10px;
    font-weight: bold;
    pointer-events: none;
}

.print-frame.has-bleed .bleed-label {
    display: block;
}

.print-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    transform-origin: center center;
    pointer-events: none;
}

.print-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(88%, 520px);
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-transform: none;
    white-space: pre-line;
}

.print-placeholder-check {
    display: block;
    margin: 0 auto 10px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    border-radius: 50%;
    background: #1f8f45;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

.print-placeholder-text {
    display: block;
}

.wallpreview-embed {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: #ededed;
}

.wallpreview-embed span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 28px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.wallpreview-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
}

.crop {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1px solid #111;
}

.crop.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.crop.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.crop.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.crop.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.dim-label {
    position: absolute;
    font-size: 11px;
    font-weight: bold;
    color: #111;
    background: #fff;
    border: 1px solid #111;
    border-radius: 4px;
    padding: 5px 10px;
}

.dim-label.is-updated,
#sizeSummary.is-updated,
#grandTotal.is-updated {
    animation: giclee-flash-update 1.1s ease-out;
}

@keyframes giclee-flash-update {
    0% {
        background-color: #fff3a8;
        box-shadow: 0 0 0 2px rgba(245, 200, 46, 0.5);
    }
    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

#dimW {
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
}

#dimH {
    left: 18px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
}

.giclee-view-switch {
    margin-top: 15px;
}

.giclee-stage-copy {
    margin-top: 18px;
    color: #333;
    font-size: 15px;
    line-height: 1.55;
}

.giclee-stage-copy p {
    margin: 0 0 12px;
}

.giclee-stage-copy ul {
    margin: 0;
    padding-left: 20px;
}

.view-switch button {
    border: 1px solid #111;
    background: #fff;
    color: #111;
    padding: 7px 12px;
    margin-right: 8px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}

.view-switch button[aria-pressed="true"] {
    background: #111;
    color: #fff;
}

.giclee-panel {
    position: sticky;
    top: 14px;
    align-self: start;
    padding: 0;
    overflow: hidden;
}

.giclee-panel-head {
    position: relative;
    padding: 18px 16px 15px;
    background: #fff;
    color: #111;
    border-bottom: 1px solid #e5e7eb;
}

.giclee-panel-head .order-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.giclee-panel-head .order-title {
    width: 100%;
    margin: 0;
    color: #171717;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .02em;
}

.giclee-panel-head .order-subtitle {
    width: 100%;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.giclee-panel form {
    padding: 16px;
}

.giclee-field {
    border-top: 1px solid #e4e4e4;
    padding: 13px 0;
}

.file-dependent-field {
    display: none;
}

.giclee-panel.has-file .file-dependent-field {
    display: block;
}

.giclee-panel.hide-dpi #dpiField {
    display: none !important;
}

.giclee-field:first-child {
    border-top: none;
    padding-top: 0;
}

.field-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 10px;
}

.giclee-collapsible > summary.field-label {
    cursor: pointer;
    list-style: none;
    margin-bottom: 0;
}

.giclee-collapsible[open] > summary.field-label {
    margin-bottom: 8px;
}

.giclee-collapsible > summary.field-label::-webkit-details-marker {
    display: none;
}

.giclee-collapsible > summary.field-label::after {
    content: "+";
    color: #6b7280;
    font-weight: 700;
    margin-left: auto;
}

.giclee-collapsible[open] > summary.field-label::after {
    content: "-";
}

.field-label .name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #111;
}

.field-label .name b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font-size: 10px;
    letter-spacing: 0;
}

.field-label .val {
    font-family: monospace;
    color: #111;
    font-weight: bold;
}

.upload {
    border: 1px dashed #111;
    border-radius: 6px;
    padding: 11px;
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.upload:hover {
    border-color: #d06a2c;
    background: #fff;
    transform: translateY(-1px);
}

.upload .thumb {
    width: 48px;
    height: 48px;
    background: #f2f2f2;
    border: 1px solid #111;
    border-radius: 4px;
}

.upload .info { min-width: 0; }
.upload .info .name { display: block; font-size: 13px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload .info .meta { display: block; font-size: 12px; color: #6c6258; }
.upload .swap { margin-left: auto; color: #d06a2c; font-size: 11px; font-weight: bold; text-transform: uppercase; }
.upload input[type=file] { display: none; }

.slider-row {
    display: grid;
    grid-template-columns: 18px 1fr 44px;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.slider-row:last-child { margin-bottom: 0; }

.slider-row .icn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #111;
}

.slider-row .icn svg {
    display: block;
    width: 16px;
    height: 16px;
}

.read { text-align: right; font-family: monospace; font-size: 11px; }

.rotate-btn {
    width: 100%;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
    padding: 8px 10px;
    text-align: center;
}

.rotate-btn:hover {
    border-color: #111;
}

.rotate-btn span {
    color: #6b7280;
    font-family: monospace;
    margin-left: 6px;
}

input[type=range] {
    width: 100%;
    height: 18px;
    accent-color: #111;
}

.seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.seg button {
    border: 1px solid #c9c0b5;
    background: #fff;
    padding: 8px;
    cursor: pointer;
}

.seg button[aria-pressed="true"] {
    background: #2d251d;
    color: #fff;
    border-color: #2d251d;
}

.select select,
.num-input input {
    width: 100%;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 8px 9px;
    box-sizing: border-box;
    background: #fff;
    color: #111;
    font-weight: bold;
    font-size: 13px;
}

.nums {
    display: grid;
    grid-template-columns: auto 1fr 1fr auto;
    gap: 6px;
}

.orientation-btn {
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    color: #111;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.orientation-btn svg {
    width: 14px;
    height: 14px;
    display: block;
}

.orientation-btn .icon-portrait {
    display: none;
}

.orientation-btn.is-portrait .icon-landscape {
    display: none;
}

.orientation-btn.is-portrait .icon-portrait {
    display: block;
}

.orientation-btn:hover {
    border-color: #111;
}

.num-input {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
}

.num-input label {
    text-align: center;
    border: 1px solid #bbb;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 8px 0;
    background: #f3f3f3;
    color: #111;
    font-weight: bold;
}

.num-input label + input {
    border-radius: 0 4px 4px 0;
}

.lock-btn {
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    padding: 0 8px;
    cursor: pointer;
    font-weight: bold;
}

.lock-btn svg {
    width: 14px;
    height: 14px;
    display: block;
}

.lock-btn[aria-pressed="true"] {
    background: #111;
    color: #fff;
    border-color: #111;
}

.borders {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 5px;
}

.paper-detail {
    margin: 8px 0 0;
    color: #333;
    font-size: 12px;
    line-height: 1.5;
    padding: 9px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.field-help {
    margin: 8px 0 0;
    color: #6c6258;
    font-size: 12px;
}

.dpi-help {
    margin-top: 8px;
}

.dpi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dpi-pill {
    padding: 5px 8px;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    font-weight: bold;
}

.dpi-pill[data-q="low"] { color: #b83c2a; }
.dpi-pill[data-q="medium"] { color: #a1683e; }
.dpi-pill[data-q="good"] { color: #3c6c3c; }
.dpi-pill[data-q="giclee"] { color: #1f6feb; }

.checkout {
    margin: 14px -16px -16px;
    border-top: 1px solid #e5e7eb;
    padding: 14px 16px 16px;
    background: #fbfbfc;
    color: #111;
}

.totals {
    margin-bottom: 12px;
}

.price-context {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 6px;
}

.no-file-note {
    color: #8b8f97;
    font-size: 12px;
    text-align: center;
    margin: 8px 0 0;
}

.giclee-panel.has-file .no-file-note {
    display: none;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #6b7280;
}

.total-row.grand {
    margin-top: 10px;
    padding: 13px 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 16px;
    font-weight: bold;
    padding-left: 14px;
    padding-right: 14px;
}

.total-row.grand .r {
    color: #171717;
    font-size: 22px;
    font-weight: 700;
}

.vat-note {
    color: #8b8f97;
    font-size: 12px;
    text-align: right;
    margin-top: -4px;
    margin-bottom: 10px;
}

.upload-progress {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 13px 0 12px;
    padding: 10px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #fff;
}

.upload-progress.is-visible {
    display: flex;
}

.upload-progress-ring {
    --progress: 0%;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 56%, transparent 58%),
        conic-gradient(#111 var(--progress), #e5e5e5 0);
    color: #111;
    font-size: 10px;
    font-weight: 800;
}

.upload-progress-text {
    color: #111;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
}

.upload-progress.is-ready .upload-progress-ring {
    background:
        radial-gradient(circle at center, #fff 56%, transparent 58%),
        conic-gradient(#2f8f46 var(--progress), #e5e5e5 0);
}

.upload-progress.is-error .upload-progress-ring {
    background:
        radial-gradient(circle at center, #fff 56%, transparent 58%),
        conic-gradient(#b83c2a var(--progress), #e5e5e5 0);
}

.ctas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.giclee-app .ctas .button,
.giclee-app .ctas .modern-cart-button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-weight: bold;
}

.giclee-app .ctas .modern-cart-button {
    background: #2f3337;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 18px rgba(31, 35, 39, 0.16);
}

.giclee-app .ctas .modern-cart-button:hover {
    background: #1f2327;
    box-shadow: 0 10px 22px rgba(31, 35, 39, 0.2);
}

.giclee-app .ctas .button_2 {
    background: #fff;
    color: #2f3337;
    border: 1px solid #d8dde3;
    border-radius: 10px;
}

.giclee-form-errors,
.errorlist {
    color: #a52929;
    margin: 6px 0;
}

.upload-status {
    color: #6b7280;
    font-size: 12px;
    margin: 8px 0 0;
}

.upload-status.is-uploading {
    color: #9a5a00;
}

.upload-status.is-ready {
    color: #1d7a3b;
}

.upload-status.is-error {
    color: #a52929;
}

.giclee-app button[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 1200px) {
    .giclee-app {
        grid-template-columns: 1fr;
    }

    .giclee-panel {
        position: static;
    }
}

@media (max-width: 640px) {
    .giclee-page #content.wide {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .giclee-page #main_content {
        overflow-x: hidden;
    }

    .giclee-stage {
        padding: 18px;
    }

    .giclee-stage-head {
        margin: -18px -18px 18px;
        padding: 24px 20px;
    }

    .giclee-stage-head h1 {
        font-size: 32px;
    }

    .giclee-preview {
        min-height: 430px;
    }

    .canvas-file-picker {
        min-width: 0;
        width: calc(100% - 24px);
        max-width: 100%;
    }

    .borders {
        grid-template-columns: repeat(2, 1fr);
    }

    .ctas {
        grid-template-columns: 1fr;
    }
}
