
/* Gmail bottom-right floating compose window */
.modal.popup-compose {
    position: fixed !important;
    bottom: 0 !important;
    left: 20px !important;
    right: auto !important;
    top: auto !important;
    width: 600px !important;
    max-width: 95vw !important;
    height: 520px !important;
    max-height: 85vh !important;
    margin: 0 !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid #dadce0 !important;
    border-bottom: none !important;
    z-index: 1050 !important;
}

/* Ensure no horizontal scrollbar across the whole app */
html, body, #rl-app, #rl-content {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Fix sidebar button width so 'New message' text does not wrap or truncate */
.b-folders .buttonCompose {
    width: 100% !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 24px !important;
    padding: 8px 16px !important;
}

/* Make email list rows spacious and highly legible */
.b-message-list-content ul li {
    padding: 12px 16px !important;
    min-height: 48px !important;
    font-size: 14px !important;
    border-bottom: 1px solid #f1f3f4 !important;
}
.b-message-list-content ul li .subject {
    font-size: 14px !important;
    color: #202124 !important;
}
.b-message-list-content ul li .senderName {
    font-size: 14px !important;
    color: #202124 !important;
    min-width: 160px !important;
}
