/*
 * BQSM Secure PDF Popup — popup.css v2.6.0
 * Corporate theme: BQSM navy blue with gold accents.
 * Responsive, accessible and designed with graceful fallbacks for browsers
 * that do not support newer CSS functions such as min(), clamp() or dvh.
 */

/* ── Scoped reset ────────────────────────────────────────────────── */
#bqsm26-pdf-popup-root,
#bqsm26-pdf-popup-root *,
#bqsm26-pdf-popup-root *::before,
#bqsm26-pdf-popup-root *::after {
    box-sizing: border-box;
}

#bqsm26-pdf-popup-root[hidden] {
    display: none !important;
}

html.bqsm26-pdf-popup-scroll-lock,
body.bqsm26-pdf-popup-scroll-lock {
    overflow: hidden !important;
}

/* ── Backdrop ────────────────────────────────────────────────────── */
.bqsm26-pdf-popup-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 2147483000;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    min-height: 100vh;
    padding: 16px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    padding-left: max(16px, env(safe-area-inset-left));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(4, 15, 28, 0.88);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* ── Modal card ──────────────────────────────────────────────────── */
.bqsm26-pdf-popup-modal {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    max-width: 960px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    color: #1f2933;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.14) inset,
        0 28px 80px rgba(0, 0, 0, 0.62);
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    -webkit-animation: bqsm26-modal-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation: bqsm26-modal-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bqsm26-pdf-popup-modal:focus {
    outline: 3px solid #f3c64e;
    outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════════
   CORPORATE HEADER — navy blue with gold accents
   ═══════════════════════════════════════════════════════════════════ */
#bqsm26-pdf-popup-root .bqsm26-popup-header {
    position: relative !important;
    z-index: 10 !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
    -webkit-box-align: stretch !important;
    -ms-flex-align: stretch !important;
    align-items: stretch !important;
    -webkit-box-flex: 0 !important;
    -ms-flex: 0 0 auto !important;
    flex: 0 0 auto !important;
    gap: 14px !important;
    padding: 18px 66px 19px 22px !important;
    overflow: hidden !important;
    background: #0b2d4d !important;
    background: -webkit-linear-gradient(135deg, #123f69 0%, #0b2d4d 58%, #071d33 100%) !important;
    background: linear-gradient(135deg, #123f69 0%, #0b2d4d 58%, #071d33 100%) !important;
    border: 0 !important;
    border-bottom: 5px solid #d4af37 !important;
    border-radius: 14px 14px 0 0 !important;
}

/* Decorative corporate stripes. Content remains readable if unsupported. */
#bqsm26-pdf-popup-root .bqsm26-popup-header::before {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
    width: 150px !important;
    height: 10px !important;
    pointer-events: none !important;
    background: #d4af37 !important;
    -webkit-transform: skewX(-30deg) translateX(24px) !important;
    transform: skewX(-30deg) translateX(24px) !important;
    opacity: 0.95 !important;
}

#bqsm26-pdf-popup-root .bqsm26-popup-header::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 1 !important;
    width: 112px !important;
    height: 100% !important;
    pointer-events: none !important;
    background: repeating-linear-gradient(
        -45deg,
        rgba(212, 175, 55, 0.16) 0,
        rgba(212, 175, 55, 0.16) 8px,
        transparent 8px,
        transparent 18px
    ) !important;
}

/* ── Close icon ──────────────────────────────────────────────────── */
.bqsm26-pdf-popup-close-icon {
    position: absolute;
    top: 13px;
    right: 15px;
    z-index: 20;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    color: #ffffff;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(3, 15, 27, 0.58);
    border: 2px solid rgba(243, 198, 78, 0.84);
    border-radius: 50%;
    -webkit-transition: background-color 130ms ease, -webkit-transform 110ms ease;
    transition: background-color 130ms ease, transform 110ms ease;
}

.bqsm26-pdf-popup-close-icon:hover {
    background: rgba(0, 0, 0, 0.82);
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
}

.bqsm26-pdf-popup-close-icon:focus,
.bqsm26-pdf-popup-close-icon:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* ── Brand row ───────────────────────────────────────────────────── */
#bqsm26-pdf-popup-root .bqsm26-popup-brand-row {
    position: relative !important;
    z-index: 3 !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    gap: 15px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#bqsm26-pdf-popup-root .bqsm26-popup-logo-wrap {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    -webkit-box-flex: 0 !important;
    -ms-flex: 0 0 66px !important;
    flex: 0 0 66px !important;
    width: 66px !important;
    height: 66px !important;
    margin: 0 !important;
    padding: 4px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.34),
        0 0 0 5px rgba(212, 175, 55, 0.72),
        0 6px 18px rgba(0, 0, 0, 0.42) !important;
}

#bqsm26-pdf-popup-root .bqsm26-popup-logo-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 50% !important;
}

#bqsm26-pdf-popup-root .bqsm26-popup-logo-fallback {
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #0b2d4d !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    border-radius: 50% !important;
}

#bqsm26-pdf-popup-root .bqsm26-popup-logo-fallback[hidden] {
    display: none !important;
}

#bqsm26-pdf-popup-root .bqsm26-popup-name-block {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
    -webkit-box-flex: 1 !important;
    -ms-flex: 1 1 auto !important;
    flex: 1 1 auto !important;
    gap: 4px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#bqsm26-pdf-popup-root .bqsm26-popup-name-my {
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 16px !important;
    font-size: clamp(13px, 2vw, 17px) !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.055em !important;
    overflow-wrap: anywhere !important;
    text-transform: uppercase !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.34) !important;
}

#bqsm26-pdf-popup-root .bqsm26-popup-name-en {
    margin: 0 !important;
    padding: 0 !important;
    color: #d9e5ef !important;
    -webkit-text-fill-color: #d9e5ef !important;
    font-size: 13px !important;
    font-size: clamp(11px, 1.5vw, 14px) !important;
    font-weight: 400 !important;
    font-style: italic !important;
    line-height: 1.3 !important;
    letter-spacing: 0.015em !important;
    overflow-wrap: anywhere !important;
}

/* ── CTA row ─────────────────────────────────────────────────────── */
#bqsm26-pdf-popup-root .bqsm26-popup-btn-row {
    position: relative !important;
    z-index: 3 !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 7px !important;
}

/* ═══════════════════════════════════════════════════════════════════
   STANDARD GOLD 3-D CTA BUTTON
   Desktop: max 420px × minimum 56px
   Mobile : full available width × minimum 52px
   ═══════════════════════════════════════════════════════════════════ */
#bqsm26-pdf-popup-root .bqsm26-popup-cta-btn,
#bqsm26-pdf-popup-root .bqsm26-popup-cta-btn:link,
#bqsm26-pdf-popup-root .bqsm26-popup-cta-btn:visited {
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 420px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 10px 22px !important;
    overflow: visible !important;
    color: #17202a !important;
    -webkit-text-fill-color: #17202a !important;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    font-size: 15px !important;
    font-size: clamp(13px, 1.65vw, 16px) !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.045em !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background: #f3c64e !important;
    background: -webkit-linear-gradient(top, #fff1a3 0%, #f7d45f 26%, #e9b934 68%, #c89014 100%) !important;
    background: linear-gradient(to bottom, #fff1a3 0%, #f7d45f 26%, #e9b934 68%, #c89014 100%) !important;
    border: 2px solid rgba(70, 47, 3, 0.34) !important;
    border-radius: 10px !important;
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.78),
        inset 0 -2px 3px rgba(76, 49, 0, 0.18),
        0 5px 0 #8d650d,
        0 8px 16px rgba(0, 0, 0, 0.44) !important;
    -webkit-transition: background 100ms ease, box-shadow 100ms ease, -webkit-transform 100ms ease !important;
    transition: background 100ms ease, box-shadow 100ms ease, transform 100ms ease !important;
    -webkit-animation: bqsm26-cta-pulse 1.05s ease-in-out 0.6s 2 !important;
    animation: bqsm26-cta-pulse 1.05s ease-in-out 0.6s 2 !important;
}

#bqsm26-pdf-popup-root .bqsm26-popup-cta-btn:hover {
    color: #0b1722 !important;
    -webkit-text-fill-color: #0b1722 !important;
    text-decoration: none !important;
    background: #f8d866 !important;
    background: -webkit-linear-gradient(top, #fff6bd 0%, #fbe075 28%, #efc346 68%, #cd9818 100%) !important;
    background: linear-gradient(to bottom, #fff6bd 0%, #fbe075 28%, #efc346 68%, #cd9818 100%) !important;
    -webkit-transform: translateY(-2px) !important;
    transform: translateY(-2px) !important;
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.8),
        inset 0 -2px 3px rgba(76, 49, 0, 0.18),
        0 7px 0 #8d650d,
        0 11px 20px rgba(0, 0, 0, 0.48) !important;
}

#bqsm26-pdf-popup-root .bqsm26-popup-cta-btn:focus,
#bqsm26-pdf-popup-root .bqsm26-popup-cta-btn:focus-visible {
    color: #0b1722 !important;
    -webkit-text-fill-color: #0b1722 !important;
    text-decoration: none !important;
    outline: 3px solid #ffffff !important;
    outline-offset: 4px !important;
}

#bqsm26-pdf-popup-root .bqsm26-popup-cta-btn:active {
    -webkit-transform: translateY(5px) !important;
    transform: translateY(5px) !important;
    background: #d7a62b !important;
    background: -webkit-linear-gradient(top, #d8ac39 0%, #c9951b 100%) !important;
    background: linear-gradient(to bottom, #d8ac39 0%, #c9951b 100%) !important;
    box-shadow:
        inset 0 4px 7px rgba(75, 48, 0, 0.26),
        0 0 0 #8d650d,
        0 2px 5px rgba(0, 0, 0, 0.34) !important;
}

#bqsm26-pdf-popup-root .bqsm26-cta-icon,
#bqsm26-pdf-popup-root .bqsm26-cta-arrow {
    display: inline-block !important;
    -webkit-box-flex: 0 !important;
    -ms-flex: 0 0 auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    line-height: 1 !important;
}

#bqsm26-pdf-popup-root .bqsm26-cta-icon {
    font-size: 20px !important;
}

#bqsm26-pdf-popup-root .bqsm26-cta-arrow {
    font-size: 20px !important;
    font-weight: 900 !important;
    -webkit-transition: -webkit-transform 100ms ease !important;
    transition: transform 100ms ease !important;
}

#bqsm26-pdf-popup-root .bqsm26-popup-cta-btn:hover .bqsm26-cta-arrow {
    -webkit-transform: translate(2px, -2px) !important;
    transform: translate(2px, -2px) !important;
}

#bqsm26-pdf-popup-root .bqsm26-cta-labels {
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-flex: 0 !important;
    -ms-flex: 0 1 auto !important;
    flex: 0 1 auto !important;
    gap: 2px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#bqsm26-pdf-popup-root .bqsm26-cta-label-my,
#bqsm26-pdf-popup-root .bqsm26-cta-label-en {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    text-decoration: none !important;
    overflow-wrap: anywhere !important;
}

#bqsm26-pdf-popup-root .bqsm26-cta-label-my {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    letter-spacing: inherit !important;
}

#bqsm26-pdf-popup-root .bqsm26-cta-label-en {
    color: rgba(18, 27, 34, 0.72) !important;
    -webkit-text-fill-color: rgba(18, 27, 34, 0.72) !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-size: clamp(10px, 1.15vw, 12px) !important;
    font-weight: 700 !important;
    font-style: italic !important;
    line-height: 1.05 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
}

@-webkit-keyframes bqsm26-cta-pulse {
    0%, 100% {
        -webkit-transform: scale(1) translateY(0);
        transform: scale(1) translateY(0);
    }
    45% {
        -webkit-transform: scale(1.025) translateY(-2px);
        transform: scale(1.025) translateY(-2px);
    }
}

@keyframes bqsm26-cta-pulse {
    0%, 100% {
        -webkit-transform: scale(1) translateY(0);
        transform: scale(1) translateY(0);
    }
    45% {
        -webkit-transform: scale(1.025) translateY(-2px);
        transform: scale(1.025) translateY(-2px);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   CONTENT
   ═══════════════════════════════════════════════════════════════════ */
#bqsm26-pdf-popup-root .bqsm26-pdf-popup-content {
    -webkit-box-flex: 1 !important;
    -ms-flex: 1 1 auto !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 17px 22px 14px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    text-align: center !important;
}

.bqsm26-pdf-popup-badge {
    display: inline-block;
    margin: 0 0 9px;
    padding: 5px 14px;
    color: #0b2d4d;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    background: #eaf2f8;
    border: 1px solid #b8cfdf;
    border-radius: 999px;
}

.bqsm26-pdf-popup-title {
    max-width: 820px;
    margin: 0 auto 8px;
    color: #17202a;
    font-size: 18px;
    font-size: clamp(14px, 2.1vw, 20px);
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.bqsm26-pdf-popup-description {
    max-width: 760px;
    margin: 0 auto 13px;
    color: #53606c;
    font-size: 13px;
    line-height: 1.48;
    overflow-wrap: anywhere;
}

/* ── PDF viewer ──────────────────────────────────────────────────── */
.bqsm26-pdf-popup-viewer {
    position: relative;
    width: 100%;
    height: 520px;
    height: min(52vh, 560px);
    min-height: 300px;
    overflow: hidden;
    background: #eef1f4;
    border: 1px solid #cdd5dc;
    border-radius: 7px;
}

.bqsm26-pdf-popup-loader {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
    color: #45525e;
    font-size: 14px;
    background: #f3f5f7;
}

.bqsm26-pdf-popup-loader.is-hidden {
    display: none;
}

.bqsm26-pdf-popup-frame {
    display: block;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: 0;
}

.bqsm26-pdf-popup-open-link {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 10px;
    padding: 9px 16px;
    color: #0b4f7a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bqsm26-pdf-popup-open-link:hover {
    color: #062f49;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
#bqsm26-pdf-popup-root .bqsm26-pdf-popup-footer {
    position: relative !important;
    z-index: 8 !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-flex: 0 !important;
    -ms-flex: 0 0 auto !important;
    flex: 0 0 auto !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: justify !important;
    -ms-flex-pack: justify !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding: 13px 22px !important;
    padding-bottom: max(13px, env(safe-area-inset-bottom)) !important;
    background: #f5f7f9 !important;
    border-top: 1px solid #d8dee4 !important;
}

.bqsm26-pdf-popup-dismiss-label {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 9px;
    color: #47535f;
    font-size: 12px;
    line-height: 1.35;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.bqsm26-pdf-popup-dismiss {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #0b2d4d;
}

.bqsm26-pdf-popup-close-button {
    min-width: 112px;
    min-height: 44px;
    margin: 0;
    padding: 10px 22px;
    color: #ffffff;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    background: #0b2d4d;
    background: -webkit-linear-gradient(top, #174f80 0%, #0b2d4d 58%, #071d33 100%);
    background: linear-gradient(to bottom, #174f80 0%, #0b2d4d 58%, #071d33 100%);
    border: 1px solid #06192b;
    border-radius: 7px;
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.18),
        0 4px 0 #041526,
        0 6px 11px rgba(0, 0, 0, 0.3);
    -webkit-transition: box-shadow 80ms ease, -webkit-transform 80ms ease;
    transition: box-shadow 80ms ease, transform 80ms ease;
}

.bqsm26-pdf-popup-close-button:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.18),
        0 6px 0 #041526,
        0 9px 15px rgba(0, 0, 0, 0.36);
}

.bqsm26-pdf-popup-close-button:active {
    -webkit-transform: translateY(4px);
    transform: translateY(4px);
    box-shadow:
        inset 0 3px 6px rgba(0, 0, 0, 0.28),
        0 0 0 #041526,
        0 2px 4px rgba(0, 0, 0, 0.26);
}

.bqsm26-pdf-popup-close-button:focus,
.bqsm26-pdf-popup-close-button:focus-visible,
.bqsm26-pdf-popup-open-link:focus,
.bqsm26-pdf-popup-open-link:focus-visible,
.bqsm26-pdf-popup-dismiss:focus,
.bqsm26-pdf-popup-dismiss:focus-visible {
    outline: 3px solid #d4af37;
    outline-offset: 3px;
}

/* ── Animations ──────────────────────────────────────────────────── */
@-webkit-keyframes bqsm26-modal-enter {
    from { opacity: 0; -webkit-transform: translateY(18px) scale(0.965); transform: translateY(18px) scale(0.965); }
    to   { opacity: 1; -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
}

@keyframes bqsm26-modal-enter {
    from { opacity: 0; -webkit-transform: translateY(18px) scale(0.965); transform: translateY(18px) scale(0.965); }
    to   { opacity: 1; -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════════════════════════════════
   TABLET AND SMALLER LAPTOPS
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .bqsm26-pdf-popup-modal {
        max-width: 820px;
    }

    .bqsm26-pdf-popup-viewer {
        height: 48vh;
        min-height: 280px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE — 680px and below
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
    .bqsm26-pdf-popup-backdrop {
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        padding: 8px;
        padding-top: max(8px, env(safe-area-inset-top));
        padding-right: max(8px, env(safe-area-inset-right));
        padding-bottom: max(8px, env(safe-area-inset-bottom));
        padding-left: max(8px, env(safe-area-inset-left));
    }

    .bqsm26-pdf-popup-modal {
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 10px;
    }

    #bqsm26-pdf-popup-root .bqsm26-popup-header {
        gap: 11px !important;
        padding: 14px 52px 16px 13px !important;
        border-bottom-width: 4px !important;
        border-radius: 10px 10px 0 0 !important;
    }

    .bqsm26-pdf-popup-close-icon {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        font-size: 25px;
    }

    #bqsm26-pdf-popup-root .bqsm26-popup-brand-row {
        gap: 12px !important;
    }

    #bqsm26-pdf-popup-root .bqsm26-popup-logo-wrap {
        -ms-flex-preferred-size: 54px !important;
        flex-basis: 54px !important;
        width: 54px !important;
        height: 54px !important;
    }

    #bqsm26-pdf-popup-root .bqsm26-popup-name-my {
        font-size: 12px !important;
        letter-spacing: 0.035em !important;
    }

    #bqsm26-pdf-popup-root .bqsm26-popup-name-en {
        font-size: 10.5px !important;
    }

    #bqsm26-pdf-popup-root .bqsm26-popup-cta-btn,
    #bqsm26-pdf-popup-root .bqsm26-popup-cta-btn:link,
    #bqsm26-pdf-popup-root .bqsm26-popup-cta-btn:visited {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 52px !important;
        gap: 8px !important;
        padding: 9px 12px !important;
        font-size: 12.5px !important;
        letter-spacing: 0.03em !important;
        border-radius: 9px !important;
    }

    #bqsm26-pdf-popup-root .bqsm26-cta-icon,
    #bqsm26-pdf-popup-root .bqsm26-cta-arrow {
        font-size: 18px !important;
    }

    #bqsm26-pdf-popup-root .bqsm26-cta-label-en {
        font-size: 10px !important;
    }

    #bqsm26-pdf-popup-root .bqsm26-pdf-popup-content {
        padding: 13px 11px 11px !important;
    }

    .bqsm26-pdf-popup-badge {
        margin-bottom: 8px;
        padding: 4px 11px;
        font-size: 10px;
    }

    .bqsm26-pdf-popup-title {
        font-size: 14px;
        line-height: 1.38;
    }

    .bqsm26-pdf-popup-description {
        margin-bottom: 11px;
        font-size: 12px;
        line-height: 1.42;
    }

    .bqsm26-pdf-popup-viewer {
        height: 43vh;
        min-height: 230px;
    }

    #bqsm26-pdf-popup-root .bqsm26-pdf-popup-footer {
        -webkit-box-orient: vertical !important;
        -webkit-box-direction: normal !important;
        -ms-flex-direction: column !important;
        flex-direction: column !important;
        -webkit-box-align: stretch !important;
        -ms-flex-align: stretch !important;
        align-items: stretch !important;
        gap: 11px !important;
        padding: 11px 13px !important;
        padding-bottom: max(11px, env(safe-area-inset-bottom)) !important;
    }

    .bqsm26-pdf-popup-dismiss-label {
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }

    .bqsm26-pdf-popup-close-button {
        width: 100%;
        min-height: 46px;
        text-align: center;
    }
}

/* Very narrow phones */
@media (max-width: 390px) {
    #bqsm26-pdf-popup-root .bqsm26-popup-header {
        padding-left: 10px !important;
        padding-right: 48px !important;
    }

    #bqsm26-pdf-popup-root .bqsm26-popup-brand-row {
        gap: 9px !important;
    }

    #bqsm26-pdf-popup-root .bqsm26-popup-logo-wrap {
        -ms-flex-preferred-size: 48px !important;
        flex-basis: 48px !important;
        width: 48px !important;
        height: 48px !important;
    }

    #bqsm26-pdf-popup-root .bqsm26-popup-name-my {
        font-size: 10.8px !important;
        line-height: 1.28 !important;
    }

    #bqsm26-pdf-popup-root .bqsm26-popup-name-en {
        font-size: 9.7px !important;
    }

    #bqsm26-pdf-popup-root .bqsm26-popup-cta-btn,
    #bqsm26-pdf-popup-root .bqsm26-popup-cta-btn:link,
    #bqsm26-pdf-popup-root .bqsm26-popup-cta-btn:visited {
        gap: 6px !important;
        padding-right: 9px !important;
        padding-left: 9px !important;
        font-size: 11.5px !important;
    }

    #bqsm26-pdf-popup-root .bqsm26-cta-icon,
    #bqsm26-pdf-popup-root .bqsm26-cta-arrow {
        font-size: 16px !important;
    }

    .bqsm26-pdf-popup-viewer {
        min-height: 210px;
    }
}

/* Short landscape screens */
@media (max-height: 560px) and (orientation: landscape) {
    .bqsm26-pdf-popup-backdrop {
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .bqsm26-pdf-popup-modal {
        max-height: calc(100vh - 12px);
        max-height: calc(100dvh - 12px);
    }

    #bqsm26-pdf-popup-root .bqsm26-popup-header {
        gap: 8px !important;
        padding-top: 10px !important;
        padding-bottom: 11px !important;
    }

    #bqsm26-pdf-popup-root .bqsm26-popup-logo-wrap {
        -ms-flex-preferred-size: 46px !important;
        flex-basis: 46px !important;
        width: 46px !important;
        height: 46px !important;
    }

    #bqsm26-pdf-popup-root .bqsm26-popup-cta-btn,
    #bqsm26-pdf-popup-root .bqsm26-popup-cta-btn:link,
    #bqsm26-pdf-popup-root .bqsm26-popup-cta-btn:visited {
        min-height: 48px !important;
        padding-top: 7px !important;
        padding-bottom: 7px !important;
    }

    .bqsm26-pdf-popup-viewer {
        height: 32vh;
        min-height: 150px;
    }

    #bqsm26-pdf-popup-root .bqsm26-pdf-popup-footer {
        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bqsm26-pdf-popup-modal {
        -webkit-animation: none !important;
        animation: none !important;
    }

    #bqsm26-pdf-popup-root .bqsm26-popup-cta-btn,
    #bqsm26-pdf-popup-root .bqsm26-popup-cta-btn:link,
    #bqsm26-pdf-popup-root .bqsm26-popup-cta-btn:visited,
    .bqsm26-pdf-popup-close-button,
    .bqsm26-pdf-popup-close-icon {
        -webkit-animation: none !important;
        animation: none !important;
        -webkit-transition: none !important;
        transition: none !important;
    }
}

/* High-contrast and forced-colour environments */
@media (forced-colors: active) {
    .bqsm26-pdf-popup-modal,
    #bqsm26-pdf-popup-root .bqsm26-popup-header,
    #bqsm26-pdf-popup-root .bqsm26-popup-cta-btn,
    .bqsm26-pdf-popup-close-button,
    .bqsm26-pdf-popup-close-icon {
        forced-color-adjust: auto;
    }
}
