/* =====================================================
   Build Restore Banner
===================================================== */

.build-restore-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9998;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    max-width: 960px;
    margin: 0 auto;
    padding: 18px 20px;

    background: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.build-restore-banner p {
    margin: 0;
    color: #333;
    line-height: 1.5;
}

.build-restore-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ------ Banner Buttons ------ */

.build-restore-banner button {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #1a3f74;
    cursor: pointer;
    font-weight: 600;
}

#build-restore-dismiss {
    background: #ffffff;
    color: #1a3f74;
}

#build-restore-confirm {
    background: #1a3f74;
    color: #ffffff;
}


/* =====================================================
   Media Queries
===================================================== */

/* Mobile optimization */
@media (max-width: 899px) {
    .build-restore-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .build-restore-actions {
        flex-direction: column;
    }
}

/* Only apply hover effects on desktop (when hover is supported) */
@media (hover: hover) and (pointer: fine) {

    .build-restore-banner button {
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    #build-restore-dismiss:hover {
        background: #f4f7fb;
    }

    #build-restore-confirm:hover {
        background: #163761;
        border-color: #163761;
    }
}
