/* Non-blocking banner shown to users with an unverified primary email. */

.email-verify-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff8e1;
    border-bottom: 1px solid #f0d68a;
    color: #6b4f00;
    font-size: 0.9rem;
    z-index: 10000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.email-verify-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.email-verify-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.email-verify-link {
    color: #6b4f00;
    text-decoration: underline;
    font-weight: 500;
    white-space: nowrap;
}

.email-verify-dismiss {
    background: transparent;
    border: 0;
    font-size: 1.2rem;
    line-height: 1;
    color: #6b4f00;
    cursor: pointer;
    padding: 0 0.25rem;
}

/* Push page content below the fixed banner. */
body.has-email-verify-banner {
    padding-top: 44px;
}

/* Chat shell uses position:absolute and ignores body padding. */
body.has-email-verify-banner .main-container {
    top: 60px;
    height: calc(100vh - 80px);
    padding-top: 0;
}

@media (max-width: 576px) {
    body.has-email-verify-banner {
        padding-top: 56px;
    }
    body.has-email-verify-banner .main-container {
        top: auto;
        height: calc(100vh - 54px - 56px - 56px - env(safe-area-inset-bottom));
    }
}

/* Dismissed: hide banner, restore original layout. */
body.email-verify-banner-hidden #email-verify-banner {
    display: none;
}

body.email-verify-banner-hidden.has-email-verify-banner {
    padding-top: 0;
}

body.email-verify-banner-hidden.has-email-verify-banner .main-container {
    top: 20px;
    height: calc(100vh - 40px);
}

@media (max-width: 576px) {
    body.email-verify-banner-hidden.has-email-verify-banner .main-container {
        top: auto;
        height: calc(100vh - 54px - 56px - env(safe-area-inset-bottom));
    }
}
