/* Popup instalación PWA - DGT Test */
.dgt-pwa-banner,
.dgt-pwa-modal {
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}
.dgt-pwa-banner *,
.dgt-pwa-modal * {
    box-sizing: border-box;
}

.dgt-pwa-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 14px;
    z-index: 99998;
    display: none;
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
}

.dgt-pwa-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dgt-pwa-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}

.dgt-pwa-text {
    flex: 1;
    min-width: 0;
}

.dgt-pwa-title {
    display: block;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 3px;
    color: #0f172a;
}

.dgt-pwa-subtitle {
    display: block;
    font-size: 12.5px;
    line-height: 1.35;
    color: #64748b;
}

.dgt-pwa-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}

.dgt-pwa-btn {
    border: 0;
    background: #1d4ed8;
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.dgt-pwa-btn:active {
    transform: scale(.98);
}

.dgt-pwa-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.dgt-pwa-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    background: rgba(2, 8, 23, .62);
}

.dgt-pwa-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    color: #0f172a;
    border-radius: 26px;
    padding: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,.32);
    position: relative;
}

.dgt-pwa-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 36px;
    margin-bottom: 16px;
}

.dgt-pwa-card h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.15;
    color: #0f172a;
}

.dgt-pwa-card p {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #64748b;
}

.dgt-pwa-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.dgt-pwa-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.dgt-pwa-steps li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.35;
    color: #334155;
}

.dgt-pwa-step-num {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.dgt-pwa-note {
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 13px;
    line-height: 1.4;
}

@media (min-width: 720px) {
    .dgt-pwa-banner {
        left: auto;
        right: 22px;
        bottom: 22px;
        width: 430px;
    }
    .dgt-pwa-modal {
        align-items: center;
    }
}

@media (max-width: 390px) {
    .dgt-pwa-banner-inner {
        align-items: flex-start;
    }
    .dgt-pwa-actions {
        flex-direction: column-reverse;
        align-items: flex-end;
    }
    .dgt-pwa-btn {
        padding: 9px 12px;
    }
    .dgt-pwa-logo {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}
