.print-page {
    background: #f6f3ee;
    min-height: 70vh;
    padding-bottom: 7rem;
}

.print-page [hidden] {
    display: none !important;
}

.print-hero {
    background: #fff;
    border-bottom: 1px solid rgba(38, 34, 30, 0.08);
}

.print-hero__inner {
    padding-top: clamp(2.2rem, 5vw, 4.5rem);
    padding-bottom: clamp(2rem, 4vw, 3.8rem);
}

.print-hero__mobile {
    display: none;
}

.print-eyebrow,
.print-step {
    color: #b72828;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    margin: 0 0 0.55rem;
    text-transform: uppercase;
}

.print-hero h1,
.print-section-heading h2,
.print-upload-card h2,
.print-combined-binding h3 {
    color: #25211e;
    margin: 0;
}

.print-hero h1 {
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 0.98;
    max-width: 13ch;
}

.print-hero__copy {
    color: #615b55;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin: 1.2rem 0 0;
    max-width: 52rem;
}

.print-workspace {
    padding-top: clamp(1.5rem, 4vw, 3rem);
}

.print-alert {
    border-radius: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0.95rem 1.1rem;
}

.print-alert--error {
    background: #fff0f0;
    border: 1px solid #e7b4b4;
    color: #8e2222;
}

.print-alert--success {
    background: #eff8ef;
    border: 1px solid #bcd9bc;
    color: #285f2b;
}

.print-upload-card,
.print-combined-binding,
.print-summary,
.print-processing {
    background: #fff;
    border: 1px solid rgba(38, 34, 30, 0.09);
    border-radius: 1.25rem;
    box-shadow: 0 12px 30px rgba(38, 34, 30, 0.05);
}

.print-upload-card {
    align-items: center;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.print-upload-card__copy p:last-child,
.print-section-heading > p,
.print-combined-binding__copy p:last-child,
.print-processing p {
    color: #6d665f;
    line-height: 1.55;
    margin-bottom: 0;
}

.print-upload-form {
    display: grid;
    gap: 0.75rem;
}

.print-file-input {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.print-upload-button,
.print-order-button,
.print-hero__mobile-button {
    align-items: center;
    background: #c92d2d;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    gap: 0.5rem;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0.8rem 1.2rem;
    text-align: center;
}

.print-upload-button:hover,
.print-order-button:hover,
.print-hero__mobile-button:hover {
    background: #a92121;
}

.print-upload-hint {
    color: #7a736d;
    font-size: 0.86rem;
    margin: 0;
    text-align: center;
}

.print-processing {
    align-items: center;
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.1rem 1.25rem;
}

.print-spinner {
    animation: print-spin 0.85s linear infinite;
    border: 4px solid #eee7df;
    border-radius: 50%;
    border-top-color: #c92d2d;
    display: inline-block;
    flex: 0 0 auto;
    height: 2.4rem;
    width: 2.4rem;
}

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

.print-results {
    margin-top: clamp(2rem, 4vw, 3.5rem);
}

.print-section-heading {
    align-items: end;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.print-section-heading > p {
    max-width: 32rem;
    text-align: right;
}

.print-job-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.print-job-card {
    background: #fff;
    border: 1px solid rgba(38, 34, 30, 0.09);
    border-radius: 1.2rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    padding: 1rem;
}

.print-job-card__preview {
    align-items: center;
    background: #f2efeb;
    border-radius: 0.9rem;
    display: flex;
    justify-content: center;
    min-height: 11rem;
    overflow: hidden;
}

.print-job-card__preview img {
    display: block;
    height: auto;
    max-height: 13rem;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.print-job-card__title {
    color: #2b2724;
    font-size: 1rem;
    line-height: 1.35;
    margin: 0 0 0.6rem;
    overflow-wrap: anywhere;
}

.print-job-stats {
    color: #6b645e;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    gap: 0.35rem 0.8rem;
    margin-bottom: 0.9rem;
}

.print-options {
    display: grid;
    gap: 0.45rem;
}

.print-option-row,
.print-switch-row {
    align-items: center;
    color: #3b3632;
    cursor: pointer;
    display: flex;
    gap: 0.65rem;
    min-height: 2rem;
}

.print-option-row input[type="checkbox"],
.print-switch-row input[type="checkbox"] {
    accent-color: #c92d2d;
    height: 1.15rem;
    margin: 0;
    width: 1.15rem;
}

.print-copy-row {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    margin-top: 0.35rem;
}

.print-copy-row input {
    border: 1px solid #cfc7c0;
    border-radius: 0.6rem;
    font: inherit;
    padding: 0.45rem 0.55rem;
    width: 4.5rem;
}

.print-card-footer {
    align-items: center;
    border-top: 1px solid #eee9e4;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 0.85rem;
    padding-top: 0.8rem;
}

.print-card-total {
    color: #282320;
    font-size: 1.05rem;
    font-weight: 800;
}

.print-delete-button {
    background: transparent;
    border: 0;
    color: #9c2b2b;
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    padding: 0.35rem;
}

.print-combined-binding {
    align-items: center;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 1.25rem;
    padding: 1.2rem 1.35rem;
}

.print-combined-binding.is-active {
    border-color: rgba(201, 45, 45, 0.38);
    box-shadow: 0 12px 34px rgba(201, 45, 45, 0.08);
}

.print-switch-row {
    background: #f7f3ef;
    border-radius: 999px;
    font-weight: 800;
    padding: 0.8rem 1rem;
}

.print-summary {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding: 1.2rem 1.35rem;
}

.print-summary span {
    color: #68615b;
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
}

.print-summary strong {
    color: #211d1a;
    display: block;
    font-size: clamp(1.8rem, 5vw, 2.7rem);
    line-height: 1;
    margin-top: 0.25rem;
}

.print-summary small {
    color: #7a736d;
    display: block;
    margin-top: 0.4rem;
}

.print-order-button {
    min-width: min(23rem, 46vw);
}

.print-add-button {
    align-items: center;
    background: #c92d2d;
    border: 0;
    border-radius: 50%;
    bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
    box-shadow: 0 12px 28px rgba(50, 25, 25, 0.24);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 2rem;
    height: 3.7rem;
    justify-content: center;
    position: fixed;
    right: 1.2rem;
    width: 3.7rem;
    z-index: 20;
}

.print-add-button[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .print-upload-card,
    .print-combined-binding {
        grid-template-columns: 1fr;
    }

    .print-job-grid {
        grid-template-columns: 1fr;
    }

    .print-section-heading {
        align-items: start;
        flex-direction: column;
    }

    .print-section-heading > p {
        text-align: left;
    }

    .print-switch-row {
        border-radius: 0.9rem;
    }
}

@media (max-width: 620px) {
    .print-page {
        padding-bottom: 8rem;
    }

    .print-hero {
        background: #efe6da;
        border-bottom-color: rgba(86, 68, 51, 0.1);
    }

    .print-hero__inner {
        padding-top: 1rem;
        padding-bottom: 1.15rem;
    }

    .print-hero__desktop {
        display: none;
    }

    .print-hero__mobile {
        display: grid;
        gap: 0.9rem;
    }

    .print-hero__mobile-message {
        background: rgba(255, 255, 255, 0.58);
        border: 1px solid rgba(86, 68, 51, 0.09);
        border-radius: 1rem;
        color: #51483f;
        font-size: 0.95rem;
        line-height: 1.45;
        margin: 0;
        padding: 0.9rem 1rem;
        text-align: center;
    }

    .print-hero__mobile-button {
        min-height: 3.4rem;
        width: 100%;
    }

    .print-workspace {
        padding-top: 1rem;
    }

    .print-upload-card {
        gap: 0.8rem;
        padding: 1.05rem;
    }

    .print-upload-card__copy .print-step {
        margin-bottom: 0.35rem;
    }

    .print-upload-card__copy h2 {
        font-size: 1.15rem;
    }

    .print-upload-card__copy p:last-child {
        font-size: 0.9rem;
        margin-top: 0.55rem;
    }

    .print-upload-form .print-upload-button {
        display: none;
    }

    .print-upload-hint {
        font-size: 0.78rem;
        line-height: 1.45;
        text-align: left;
    }

    .print-section-heading {
        padding-inline: 1.05rem;
    }

    .print-job-card {
        grid-template-columns: 1fr;
    }

    .print-job-card__preview {
        min-height: 8rem;
    }

    .print-job-card__preview img {
        max-height: 11rem;
    }

    .print-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .print-order-button {
        min-width: 0;
        width: 100%;
    }
}
