/* ==========================================================
   CONVERTODO
   ORDENAR Y NUMERAR PÁGINAS PDF
========================================================== */

.hidden {
    display: none !important;
}


/* ==========================================================
   GENERAL
========================================================== */

.orderpdf-workspace {
    padding: 38px 0 55px;
    background: #f6f7fb;
}

.orderpdf-container {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
}


/* ==========================================================
   SUBIDA
========================================================== */

.orderpdf-upload-stage {
    width: min(900px, 100%);
    margin: 0 auto;
}

.orderpdf-drop-zone {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 48px 30px;
    text-align: center;

    background: #ffffff;

    border: 2px dashed #d8dbe8;
    border-radius: 24px;

    box-shadow:
        0 12px 35px rgba(20, 23, 43, 0.05);

    transition: 0.2s;
}

.orderpdf-drop-zone.drag-over {
    border-color: var(--primary);
    background: #f5f5ff;
}

.orderpdf-upload-icon {
    width: 80px;
    height: 80px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    border-radius: 23px;

    color: #ef4444;
    background: #fff0f0;

    font-size: 34px;
}

.orderpdf-drop-zone h2 {
    color: var(--dark);
    font-size: 28px;
    letter-spacing: -0.8px;
}

.orderpdf-drop-zone > p {
    max-width: 590px;
    margin: 8px auto 24px;

    color: var(--text-light);
    font-size: 14px;
}

.orderpdf-select-button {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 13px 25px;

    cursor: pointer;

    border-radius: 13px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6964e8
        );

    box-shadow:
        0 11px 27px rgba(91, 92, 240, 0.25);

    font-size: 14px;
    font-weight: 800;
}

.orderpdf-drop-help {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-top: 18px;

    color: #999dac;
    font-size: 11px;
}


/* ==========================================================
   CARGANDO
========================================================== */

.orderpdf-loading-stage {
    width: min(700px, 100%);
    min-height: 360px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 40px;

    text-align: center;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 24px;

    box-shadow:
        0 12px 35px rgba(20, 23, 43, 0.06);
}

.orderpdf-spinner {
    width: 58px;
    height: 58px;

    margin-bottom: 18px;

    border: 5px solid #ececff;
    border-top-color: var(--primary);

    border-radius: 50%;

    animation:
        orderpdf-spin
        0.8s linear infinite;
}

@keyframes orderpdf-spin {
    to {
        transform: rotate(360deg);
    }
}

.orderpdf-loading-stage h2 {
    color: var(--dark);
    font-size: 24px;
}

.orderpdf-loading-stage p {
    margin-top: 5px;
    color: var(--text-light);
    font-size: 11px;
}

.orderpdf-loading-progress {
    width: min(460px, 100%);
    height: 8px;

    overflow: hidden;

    margin-top: 23px;

    border-radius: 50px;

    background: #e8e9ef;
}

.orderpdf-loading-bar {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    transition: width 0.2s;
}


/* ==========================================================
   EDITOR
========================================================== */

.orderpdf-editor {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dfe2eb;
    border-radius: 22px;

    box-shadow:
        0 12px 38px rgba(20, 23, 43, 0.06);
}


/* ==========================================================
   CABECERA
========================================================== */

.orderpdf-editor-header {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 13px 20px;

    border-bottom: 1px solid #e7e9ef;

    background: #ffffff;
}

.orderpdf-file-info {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 11px;
}

.orderpdf-file-icon {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 11px;

    color: #ef4444;
    background: #fff0f0;

    font-size: 19px;
}

.orderpdf-file-info strong {
    max-width: 420px;

    display: block;

    overflow: hidden;

    color: var(--dark);

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.orderpdf-file-info span {
    display: block;

    margin-top: 2px;

    color: #9397a7;

    font-size: 9px;
}

.orderpdf-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.orderpdf-secondary-button {
    min-height: 39px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 8px 12px;

    cursor: pointer;

    border: 1px solid #dce0e9;
    border-radius: 10px;

    color: #606577;
    background: #ffffff;

    font-size: 9px;
    font-weight: 700;

    transition: 0.2s;
}

.orderpdf-secondary-button:hover {
    color: var(--primary);
    border-color: var(--primary);
}


/* ==========================================================
   LAYOUT
========================================================== */

.orderpdf-editor-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        350px;

    align-items: start;
}


/* ==========================================================
   ÁREA DE PÁGINAS
========================================================== */

.orderpdf-pages-area {
    min-width: 0;

    min-height: 700px;

    padding: 23px;

    background: #f5f6fa;

    border-right: 1px solid #e1e4eb;
}

.orderpdf-pages-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 14px;
}

.orderpdf-pages-heading h2 {
    color: var(--dark);

    font-size: 20px;
    letter-spacing: -0.5px;
}

.orderpdf-pages-heading p {
    margin-top: 3px;

    color: var(--text-light);

    font-size: 10px;
}

.orderpdf-page-counter {
    min-width: 75px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 8px 12px;

    border-radius: 11px;

    color: var(--primary);
    background: var(--primary-light);
}

.orderpdf-page-counter strong {
    font-size: 18px;
    line-height: 1;
}

.orderpdf-page-counter span {
    margin-top: 2px;
    font-size: 8px;
}

.orderpdf-tip {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 18px;

    padding: 8px 11px;

    border: 1px solid #e0e3ec;
    border-radius: 9px;

    color: #757a8d;
    background: #ffffff;

    font-size: 9px;
}

.orderpdf-tip i {
    color: var(--primary);
}


/* ==========================================================
   GRID DE PÁGINAS
========================================================== */

.orderpdf-page-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(150px, 1fr)
        );

    gap: 16px;
}

.orderpdf-page-card {
    position: relative;

    overflow: hidden;

    cursor: grab;

    border: 2px solid transparent;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 5px 15px rgba(20, 23, 43, 0.06);

    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}

.orderpdf-page-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(91, 92, 240, 0.28);

    box-shadow:
        0 11px 24px rgba(20, 23, 43, 0.10);
}

.orderpdf-page-card:active {
    cursor: grabbing;
}

.orderpdf-page-preview {
    height: 190px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 9px;

    background:
        linear-gradient(
            180deg,
            #f8f9fc,
            #f0f2f7
        );
}

.orderpdf-page-preview canvas {
    max-width: 100%;
    max-height: 100%;

    display: block;

    background: #ffffff;

    box-shadow:
        0 3px 10px rgba(20, 23, 43, 0.12);
}

.orderpdf-page-footer {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 6px;

    padding: 8px 9px;
}

.orderpdf-page-footer strong {
    color: var(--dark);
    font-size: 9px;
}

.orderpdf-page-footer small {
    display: block;

    margin-top: 1px;

    color: #969aaa;
    font-size: 7px;
}

.orderpdf-drag-handle {
    position: absolute;

    left: 7px;
    top: 7px;

    z-index: 5;

    width: 29px;
    height: 29px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    color: #626779;
    background: rgba(255, 255, 255, 0.96);

    box-shadow:
        0 3px 9px rgba(20, 23, 43, 0.12);
}

.orderpdf-delete-page {
    position: absolute;

    right: 7px;
    top: 7px;

    z-index: 5;

    width: 29px;
    height: 29px;

    display: grid;
    place-items: center;

    border: none;
    border-radius: 8px;

    color: #ef4444;
    background: rgba(255, 255, 255, 0.96);

    box-shadow:
        0 3px 9px rgba(20, 23, 43, 0.12);

    transition: 0.2s;
}

.orderpdf-delete-page:hover {
    color: #ffffff;
    background: #ef4444;
}

.orderpdf-order-badge {
    position: absolute;

    left: 50%;
    bottom: 55px;

    z-index: 4;

    transform: translateX(-50%);

    min-width: 26px;
    height: 26px;

    display: grid;
    place-items: center;

    padding: 0 7px;

    border-radius: 100px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #7973ec
        );

    font-size: 8px;
    font-weight: 800;
}

.orderpdf-number-preview {
    position: absolute;

    right: 7px;
    bottom: 55px;

    z-index: 4;

    max-width: calc(100% - 14px);

    overflow: hidden;

    padding: 5px 7px;

    border-radius: 7px;

    color: #43485b;
    background: rgba(255, 255, 255, 0.95);

    box-shadow:
        0 3px 8px rgba(20, 23, 43, 0.10);

    font-size: 7px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.orderpdf-sortable-ghost {
    opacity: 0.35;
}

.orderpdf-sortable-chosen {
    border-color: var(--primary);
}


/* ==========================================================
   PANEL DE OPCIONES
========================================================== */

.orderpdf-options-panel {
    position: sticky;
    top: 86px;

    max-height: calc(100vh - 105px);

    overflow-y: auto;

    padding: 18px;

    background: #ffffff;
}

.orderpdf-options-title {
    display: grid;

    grid-template-columns:
        42px
        1fr
        auto;

    align-items: center;

    gap: 10px;

    padding-bottom: 15px;

    border-bottom: 1px solid #e6e8ef;
}

.orderpdf-options-title-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    color: var(--primary);
    background: var(--primary-light);

    font-size: 18px;
}

.orderpdf-options-title h3 {
    color: var(--dark);
    font-size: 15px;
}

.orderpdf-options-title p {
    margin-top: 1px;

    color: #9296a6;
    font-size: 8px;
}


/* ==========================================================
   SWITCH
========================================================== */

.orderpdf-switch {
    position: relative;

    width: 45px;
    height: 24px;

    cursor: pointer;
}

.orderpdf-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.orderpdf-switch span {
    position: absolute;

    inset: 0;

    border-radius: 50px;

    background: #d7dae5;

    transition: 0.2s;
}

.orderpdf-switch span::after {
    content: "";

    position: absolute;

    left: 3px;
    top: 3px;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 2px 5px rgba(20, 23, 43, 0.18);

    transition: 0.2s;
}

.orderpdf-switch input:checked + span {
    background: var(--primary);
}

.orderpdf-switch input:checked + span::after {
    transform: translateX(21px);
}


/* ==========================================================
   OPCIONES DESACTIVADAS
========================================================== */

.orderpdf-numbering-options {
    transition: 0.2s;
}

.orderpdf-numbering-options.disabled {
    pointer-events: none;
    opacity: 0.42;
}


/* ==========================================================
   GRUPOS
========================================================== */

.orderpdf-option-group {
    padding: 15px 0;

    border-bottom: 1px solid #eceef3;
}

.orderpdf-option-group > label {
    display: block;

    margin-bottom: 8px;

    color: var(--dark);

    font-size: 9px;
    font-weight: 700;
}


/* ==========================================================
   MODO
========================================================== */

.orderpdf-choice-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 7px;

    margin-bottom: 10px;
}

.orderpdf-choice {
    min-height: 61px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 9px;

    cursor: pointer;

    border: 1px solid #dfe2ea;
    border-radius: 10px;

    background: #ffffff;

    transition: 0.2s;
}

.orderpdf-choice input {
    display: none;
}

.orderpdf-choice > i {
    color: #858a9b;
    font-size: 17px;
}

.orderpdf-choice strong {
    display: block;

    color: #555a6c;
    font-size: 8px;
}

.orderpdf-choice small {
    display: block;

    margin-top: 1px;

    color: #999dac;
    font-size: 7px;
}

.orderpdf-choice.active {
    border-color: var(--primary);
    background: #f4f4ff;
}

.orderpdf-choice.active > i,
.orderpdf-choice.active strong {
    color: var(--primary);
}


/* ==========================================================
   CHECKBOX
========================================================== */

.orderpdf-check-row {
    display: flex !important;

    align-items: flex-start;

    gap: 8px;

    margin: 10px 0 0 !important;

    cursor: pointer;
}

.orderpdf-check-row input {
    margin-top: 2px;

    accent-color: var(--primary);
}

.orderpdf-check-row strong {
    display: block;

    color: #555a6c;
    font-size: 8px;
}

.orderpdf-check-row small {
    display: block;

    margin-top: 2px;

    color: #989cac;
    font-size: 7px;
    line-height: 1.4;
}


/* ==========================================================
   POSICIÓN
========================================================== */

.orderpdf-position-grid {
    width: 132px;
    height: 165px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    grid-template-rows:
        repeat(3, 1fr);

    gap: 4px;

    margin: 4px auto 13px;

    padding: 7px;

    border: 1px solid #dfe2ea;
    border-radius: 8px;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fafbfe
        );
}

.orderpdf-position-grid button {
    position: relative;

    border: none;
    border-radius: 5px;

    background: transparent;
}

.orderpdf-position-grid button::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 6px;
    height: 6px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: #bec2ce;
}

.orderpdf-position-grid button:hover {
    background: #efefff;
}

.orderpdf-position-grid button.active {
    background: var(--primary-light);
}

.orderpdf-position-grid button.active::after {
    width: 9px;
    height: 9px;

    background: var(--primary);
}


/* ==========================================================
   CAMPOS
========================================================== */

.orderpdf-field {
    margin-top: 10px;
}

.orderpdf-field > label {
    display: block;

    margin-bottom: 5px;

    color: #666b7c;

    font-size: 8px;
    font-weight: 700;
}

.orderpdf-field input[type="number"],
.orderpdf-field input[type="text"],
.orderpdf-option-group > input[type="text"],
.orderpdf-field select,
.orderpdf-option-group > select {
    width: 100%;
    height: 37px;

    padding: 0 9px;

    outline: none;

    border: 1px solid #dce0e9;
    border-radius: 8px;

    color: #505568;
    background: #ffffff;

    font-size: 8.5px;
}

.orderpdf-option-group > select {
    margin-bottom: 8px;
}

.orderpdf-option-group > input[type="text"] {
    margin-bottom: 8px;
}

.orderpdf-field input:focus,
.orderpdf-field select:focus,
.orderpdf-option-group > select:focus,
.orderpdf-option-group > input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(91, 92, 240, 0.07);
}


/* ==========================================================
   RANGO
========================================================== */

.orderpdf-range-tabs {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 5px;
}

.orderpdf-range-tabs button {
    min-height: 35px;

    border: 1px solid #dde0e9;
    border-radius: 8px;

    color: #666b7d;
    background: #ffffff;

    font-size: 8px;
    font-weight: 700;
}

.orderpdf-range-tabs button.active {
    color: var(--primary);

    border-color: var(--primary);

    background: var(--primary-light);
}

.orderpdf-custom-range {
    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: end;

    gap: 7px;

    margin-top: 7px;
}

.orderpdf-custom-range > span {
    padding-bottom: 10px;

    color: #9094a5;
    font-size: 8px;
}


/* ==========================================================
   AYUDA TEMPLATE
========================================================== */

.orderpdf-template-help {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 5px;
}

.orderpdf-template-help span {
    padding: 4px 6px;

    border-radius: 6px;

    color: #868a9a;
    background: #f4f5f8;

    font-size: 6.8px;
}

.orderpdf-template-help strong {
    color: var(--primary);
}


/* ==========================================================
   DOS COLUMNAS
========================================================== */

.orderpdf-two-columns {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 8px;
}

.orderpdf-field input[type="color"] {
    width: 100%;
    height: 37px;

    padding: 3px;

    cursor: pointer;

    border: 1px solid #dce0e9;
    border-radius: 8px;

    background: #ffffff;
}


/* ==========================================================
   OPACIDAD
========================================================== */

.orderpdf-range-value {
    display: flex;
    align-items: center;

    gap: 7px;
}

.orderpdf-range-value input {
    flex: 1;
    accent-color: var(--primary);
}

.orderpdf-range-value span {
    min-width: 30px;

    text-align: right;

    color: #73788a;

    font-size: 7px;
}


/* ==========================================================
   RESUMEN
========================================================== */

.orderpdf-summary {
    display: flex;
    align-items: flex-start;

    gap: 8px;

    margin-top: 15px;

    padding: 10px 11px;

    border: 1px solid #e2e4ed;
    border-radius: 10px;

    color: #707587;
    background: #f7f8fc;

    font-size: 8px;
}

.orderpdf-summary > i {
    margin-top: 1px;
    color: var(--primary);
}

.orderpdf-summary strong {
    display: block;

    margin-bottom: 2px;

    color: var(--dark);

    font-size: 9px;
}

.orderpdf-summary p {
    line-height: 1.45;
}


/* ==========================================================
   BOTÓN PRINCIPAL
========================================================== */

.orderpdf-main-button {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 14px;

    border: none;
    border-radius: 12px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6964e8
        );

    box-shadow:
        0 10px 24px rgba(91, 92, 240, 0.24);

    font-size: 10px;
    font-weight: 800;

    transition: 0.2s;
}

.orderpdf-main-button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.orderpdf-main-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    box-shadow: none;
}

.orderpdf-local-note {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-top: 9px;

    color: #979baa;

    text-align: center;

    font-size: 7px;
}

.orderpdf-local-note i {
    color: #10b981;
}


/* ==========================================================
   PROCESANDO
========================================================== */

.orderpdf-processing,
.orderpdf-result {
    width: min(720px, 100%);
    min-height: 390px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 42px;

    text-align: center;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 24px;

    box-shadow:
        0 12px 36px rgba(20, 23, 43, 0.07);
}

.orderpdf-processing-icon {
    width: 68px;
    height: 68px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    border-radius: 50%;

    color: var(--primary);
    background: var(--primary-light);

    font-size: 28px;

    animation:
        orderpdf-pulse
        1.2s ease-in-out infinite;
}

@keyframes orderpdf-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.orderpdf-processing h2,
.orderpdf-result h2 {
    color: var(--dark);
    font-size: 25px;
}

.orderpdf-processing > p,
.orderpdf-result > p {
    max-width: 520px;

    margin-top: 6px;

    color: var(--text-light);

    font-size: 11px;
}

.orderpdf-processing-progress {
    width: min(460px, 100%);
    height: 8px;

    overflow: hidden;

    margin: 24px auto 9px;

    border-radius: 50px;

    background: #e8eaf1;
}

.orderpdf-processing-bar {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    transition: width 0.25s;
}

#orderProcessingText {
    color: #9296a5;
    font-size: 9px;
}


/* ==========================================================
   RESULTADO
========================================================== */

.orderpdf-success-icon {
    width: 70px;
    height: 70px;

    display: grid;
    place-items: center;

    margin-bottom: 15px;

    border-radius: 50%;

    color: #10b981;
    background: #e9fbf5;

    font-size: 30px;
}

.orderpdf-result-stats {
    width: min(600px, 100%);

    display: grid;

    grid-template-columns:
        1.6fr
        0.7fr
        0.8fr
        0.8fr;

    gap: 8px;

    margin-top: 20px;
}

.orderpdf-result-stats > div {
    min-width: 0;

    padding: 11px;

    border-radius: 10px;

    background: #f5f6fa;
}

.orderpdf-result-stats span {
    display: block;

    color: #999dab;

    font-size: 7px;

    text-transform: uppercase;
}

.orderpdf-result-stats strong {
    display: block;

    overflow: hidden;

    margin-top: 3px;

    color: var(--dark);

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.orderpdf-result-actions {
    display: flex;

    gap: 9px;

    margin-top: 22px;
}

.orderpdf-back-button,
.orderpdf-download-button {
    min-height: 49px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 11px 20px;

    border-radius: 11px;

    font-size: 10px;
    font-weight: 800;
}

.orderpdf-back-button {
    border: 1px solid #dadde7;

    color: #5c6174;
    background: #ffffff;
}

.orderpdf-download-button {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6863e9
        );

    box-shadow:
        0 10px 24px rgba(91, 92, 240, 0.25);
}

.orderpdf-new-button {
    margin-top: 15px;

    border: none;

    color: var(--primary);
    background: transparent;

    font-size: 9px;
    font-weight: 700;
}


/* ==========================================================
   MENSAJE
========================================================== */

.orderpdf-message {
    width: min(900px, 100%);

    margin: 15px auto 0;

    padding: 12px 14px;

    border: 1px solid #ffd5d1;
    border-radius: 11px;

    color: #b42318;
    background: #fff0ef;

    font-size: 10px;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1050px) {

    .orderpdf-editor-layout {
        grid-template-columns: 1fr;
    }

    .orderpdf-pages-area {
        min-height: auto;

        border-right: none;
        border-bottom: 1px solid #e1e4eb;
    }

    .orderpdf-options-panel {
        position: static;
        max-height: none;
    }

}


@media (max-width: 700px) {

    .orderpdf-container {
        width: calc(100% - 20px);
    }

    .orderpdf-editor-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .orderpdf-header-actions {
        width: 100%;
    }

    .orderpdf-secondary-button {
        flex: 1;
    }

    .orderpdf-pages-area {
        padding: 15px;
    }

    .orderpdf-pages-heading {
        align-items: flex-start;
    }

    .orderpdf-page-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;
    }

    .orderpdf-page-preview {
        height: 170px;
    }

    .orderpdf-options-panel {
        padding: 15px;
    }

    .orderpdf-result-stats {
        grid-template-columns:
            1fr
            1fr;
    }

}


@media (max-width: 450px) {

    .orderpdf-page-grid {
        grid-template-columns: 1fr 1fr;
    }

    .orderpdf-page-preview {
        height: 145px;
    }

    .orderpdf-choice-grid,
    .orderpdf-two-columns {
        grid-template-columns: 1fr;
    }

    .orderpdf-result-stats {
        grid-template-columns: 1fr;
    }

    .orderpdf-result-actions {
        width: 100%;

        flex-direction: column;
    }

    .orderpdf-back-button,
    .orderpdf-download-button {
        width: 100%;
    }

}