
/* DoR App dropdown – isolated stylesheet */
.top-header,
.top-header .header-utility-row,
.top-header .footer-app-item {
    overflow: visible !important;
}

.top-header .footer-app-item {
    position: relative !important;
    z-index: 2400 !important;
}

.top-header .footer-app-item > .footer-install-app-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #1769AA;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.top-header .footer-app-item > .footer-install-app-trigger:hover,
.top-header .footer-app-item > .footer-install-app-trigger:focus-visible {
    color: #142D4E;
    background: transparent;
}

.top-header .footer-app-mobile-icon {
    display: inline-block !important;
    color: #1769AA;
    font-size: 16px;
}

.top-header .footer-app-item > .footer-app-popover {
    position: absolute !important;
    top: calc(100% + 3px) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 99999 !important;

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;

    width: calc(var(--dor-app-qr-size, 82px) + 12px) !important;
    max-width: calc(100vw - 12px) !important;
    height: auto !important;
    max-height: var(--dor-app-max-height, 0px) !important;
    min-height: 0 !important;

    box-sizing: border-box;
    overflow: hidden;
    padding: 4px;
    margin: 0;

    background: #142D4E;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 7px;
    box-shadow: 0 5px 16px rgba(15,30,48,.24);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, visibility .16s ease;
}

@media (hover: hover) and (pointer: fine) {
    .top-header .footer-app-item:hover > .footer-app-popover,
    .top-header .footer-app-item:focus-within > .footer-app-popover {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

.top-header .footer-app-item.is-open > .footer-app-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.top-header .footer-app-popover .footer-qr-image-wrap {
    position: relative;
    flex: 0 0 auto;
    width: var(--dor-app-qr-size, 82px) !important;
    height: var(--dor-app-qr-size, 82px) !important;
    min-width: 0;
    min-height: 0;
    padding: 2px;
    box-sizing: border-box;
    overflow: hidden;
    background: #fff;
    border-radius: 4px;
    line-height: 0;
}

.top-header .footer-app-item.is-expanded .footer-app-popover {
    width: calc(var(--dor-app-qr-expanded-size, 82px) + 12px) !important;
}

.top-header .footer-app-item.is-expanded .footer-qr-image-wrap {
    width: var(--dor-app-qr-expanded-size, 82px) !important;
    height: var(--dor-app-qr-expanded-size, 82px) !important;
}

.top-header .footer-app-popover .footer-qr-code-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    margin: 0;
    padding: 0;
    border: 0;
}

.top-header .footer-app-popover .footer-qr-emblem {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block !important;
    width: 13% !important;
    height: auto !important;
    max-width: 13%;
    max-height: 13%;
    padding: 2px;
    box-sizing: content-box;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.top-header .footer-share-links {
    display: flex !important;
    flex: 0 0 22px;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 22px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
}

.top-header .footer-share-links .footer-app-install-icon,
.top-header .footer-share-links .footer-native-share,
.top-header .footer-share-links .footer-qr-expand {
    display: inline-flex !important;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    width: 22px !important;
    min-width: 22px;
    height: 22px !important;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}

.top-header .footer-share-links .footer-app-install-icon {
    color: #168653 !important;
    background: #E3F5EC !important;
}

.top-header .footer-share-links .footer-native-share {
    color: #087FAD !important;
    background: #DFF4FB !important;
}

.top-header .footer-share-links .footer-qr-expand {
    color: #A66A08 !important;
    background: #FFF0D5 !important;
}

.top-header .footer-share-links .footer-native-share svg {
    display: block;
    width: 13px;
    height: 13px;
}

.top-header .footer-share-links a:hover,
.top-header .footer-share-links button:hover {
    filter: brightness(.94);
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .top-header .footer-app-popover,
    .top-header .footer-share-links a,
    .top-header .footer-share-links button {
        transition: none;
    }
}
