/* Product page: "Ojear el libro" (Hipertexto_Seo, product/preview.phtml). Sizes in px (html is 62.5 %). */
.hpt-preview {
    margin: 14px auto 6px;
    text-align: center;
}

.hpt-preview__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #03437c;
    border-radius: 999px;
    color: #03437c;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.hpt-preview__btn:hover,
.hpt-preview__btn:focus-visible {
    background: #03437c;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(3, 67, 124, .22);
}

.hpt-preview__btn:focus-visible {
    outline: 3px solid #d5a400;
    outline-offset: 2px;
}

.hpt-preview__icon {
    flex: none;
}

.hpt-preview__hint {
    margin: 6px 0 0;
    color: #5b6670;
    font-size: 12px;
}

/* Dialog */
.hpt-preview__dialog {
    /* The theme resets margins; a modal dialog is centred by inset + auto margins. */
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(920px, calc(100vw - 32px));
    height: min(860px, calc(100vh - 48px));
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 24px 60px rgba(2, 45, 83, .35);
    color: #1f2933;
    text-align: left;
}

.hpt-preview__dialog[open] {
    display: flex;
    flex-direction: column;
}

.hpt-preview__dialog::backdrop {
    background: rgba(2, 45, 83, .72);
}

html.hpt-preview-open {
    overflow: hidden;
}

.hpt-preview__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: #022d53;
    color: #fff;
}

.hpt-preview .hpt-preview__title {
    display: grid;
    gap: 2px;
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.hpt-preview__eyebrow {
    color: #f3cf4a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hpt-preview__close {
    flex: none;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.hpt-preview__close:hover,
.hpt-preview__close:focus-visible {
    background: #fff;
    color: #022d53;
}

.hpt-preview__viewer {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: #f4f6f8;
}

.hpt-preview__status {
    margin: 0;
    padding: 48px 24px 12px;
    color: #5b6670;
    font-size: 15px;
    text-align: center;
}

.hpt-preview__fallback {
    display: table;
    margin: 8px auto 0;
    color: #03437c;
    font-size: 15px;
    font-weight: 700;
}

.hpt-preview__foot {
    margin: 0;
    padding: 8px 18px;
    border-top: 1px solid #e3e8ee;
    color: #5b6670;
    font-size: 12px;
}

@media (max-width: 767px) {
    .hpt-preview__dialog {
        width: 100vw;
        height: 100%;
        border-radius: 0;
    }

    .hpt-preview__dialog[open] {
        margin: 0;
        max-height: 100dvh;
        height: 100dvh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hpt-preview__btn {
        transition: none;
    }
}
