/**
 * VRF catalog flipbook: toolbar, book container, download.
 */
.vrf-catalog-page .firstscreen {
    min-height: 0;
    padding-bottom: 10px;
}

.vrf-catalog-page .firstscreen h1 {
    font-weight: 600;
    font-size: 36px;
    line-height: 48px;
    color: #8F979B;
    margin: 10px 0 0;
}

.vrf-flip-wrap {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 10px 30px;
}

.vrf-flip-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
    margin: 0 0 20px;
}

.vrf-flip-toolbar button,
.vrf-flip-toolbar .vrf-flip-dl {
    appearance: none;
    border: 1px solid #00AAA6;
    background: #fff;
    color: #00AAA6;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 18px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease, color 0.2s ease;
}

.vrf-flip-toolbar button:hover,
.vrf-flip-toolbar .vrf-flip-dl:hover {
    background: #00AAA6;
    color: #fff;
}

.vrf-flip-toolbar button:disabled {
    opacity: 0.4;
    cursor: default;
}

.vrf-flip-toolbar button:disabled:hover {
    background: #fff;
    color: #00AAA6;
}

.vrf-flip-pageinfo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #8F979B;
    min-width: 110px;
    text-align: center;
}

.vrf-flip-goto {
    width: 3.2em;
    padding: 6px 4px;
    border: 1px solid #00AAA6;
    background: #fff;
    color: #00AAA6;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    -moz-appearance: textfield;
}

.vrf-flip-goto::-webkit-outer-spin-button,
.vrf-flip-goto::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.vrf-flip-goto:focus {
    outline: 2px solid rgba(0, 170, 166, 0.35);
    outline-offset: 1px;
}

.vrf-flip-goto:disabled {
    opacity: 0.5;
    border-color: #8F979B;
    color: #8F979B;
}

.vrf-flip-page-sep,
#vrf-flip-total {
    color: #8F979B;
    white-space: nowrap;
}


.vrf-flip-stage {
    width: 100%;
    height: min(78vh, 900px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f2f4f5 0%, #e8eced 100%);
    box-shadow: inset 0 0 0 1px rgba(143, 151, 155, 0.25);
    overflow: hidden;
}

#vrf-flipbook {
    width: 100%;
    height: 100%;
}

.vrf-flip-stage .stf__parent,
.vrf-flip-stage .stf__wrapper,
.vrf-flip-stage .stf__canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
}

.vrf-flip-stage .stf__parent {
    margin: 0 auto;
}

.vrf-flip-stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    user-select: none;
    -webkit-user-drag: none;
}

.vrf-flip-hint {
    text-align: center;
    color: #8F979B;
    font-size: 13px;
    margin: 14px 0 0;
}

.vrf-flip-download {
    text-align: center;
    margin: 10px 0 50px;
}

.vrf-flip-download .button {
    display: inline-block;
    padding: 12px 36px;
    background: #00AAA6;
    color: #fff;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 26px;
    text-decoration: none;
}

.vrf-flip-download .button:hover {
    opacity: 0.9;
}

.vrf-flip-error {
    text-align: center;
    color: #8F979B;
    padding: 40px 20px;
}

@media (max-width: 900px) {
    .vrf-catalog-page .firstscreen h1 {
        font-size: 26px;
        line-height: 34px;
    }

    .vrf-flip-stage {
        height: min(70vh, 640px);
    }

    .vrf-flip-toolbar button,
    .vrf-flip-toolbar .vrf-flip-dl {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .vrf-flip-stage {
        height: min(65vh, 520px);
    }
}

.vrf-flip-progress {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, 86%);
    text-align: center;
    z-index: 2;
}

.vrf-flip-stage--pdfjs {
    position: relative;
}

.vrf-flip-progress-bar {
    height: 6px;
    background: rgba(143, 151, 155, 0.25);
    overflow: hidden;
    margin-bottom: 14px;
}

.vrf-flip-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: #00AAA6;
    transition: width 0.2s ease;
}

.vrf-flip-progress p {
    margin: 0;
    font-size: 14px;
    color: #8F979B;
}

.vrf-flip-progress.is-error p {
    color: #c0392b;
}
