/* --- overlay background --- */
.ui-widget-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* --- dialog container --- */
.install-dialog {
    position: fixed;
    bottom: 15vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: #472272;
    color: #f0f0f0;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-family: sans-serif;
    max-width: 90%;
    text-align: center;
}

/* optional small arrow under the box */
.install-dialog::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-top: solid 10px #472272;
    border-left: solid 10px transparent;
    border-right: solid 10px transparent;
}

/* --- heading (title bar) --- */
.install-dialog .ui-widget-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f0f0f0;
    background: transparent;
    border: none;
    margin-bottom: 0.5rem;
}

/* --- close button (×) --- */
.install-dialog .ui-dialog-titlebar-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f0f0f0;
    color: #472272;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    padding: unset;
}

/* --- content area --- */
.install-dialog .ui-dialog-content {
    padding: 0.5rem 1rem;
}

/* --- list hints --- */
.install-dialog li.pwa-dialog-hint {
    list-style: none;
    margin: 0.25em 0;
}

/* add tiny icons after hint items */
.install-dialog li.pwa-dialog-hint::after {
    display: inline-block;
    content: '';
    height: 1em;
    width: 1em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 0.25em;
}

.install-dialog li.pwa-dialog-hint.share::after {
    background-image: url("../img/icon/share-174bec6a9343613570e2c64b0428e621.svg");
}

.install-dialog li.pwa-dialog-hint.add::after {
    background-image: url("../img/icon/add_homescreen-c090552f4488041194e52c501547d597.svg");
}

.share-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("../img/icon/share-174bec6a9343613570e2c64b0428e621.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    vertical-align: middle;
    margin: 0 0.25em;
    filter: invert(1);
    opacity: 0.9;               
}
