/* ==========================================================================
   Drug Crafters MOTD – Provider Homepage Announcement Banner
   ========================================================================== */

.dc-motd-banner {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999999;
    max-width: 640px;
    min-width: 320px;
    width: calc(100% - 48px);
    background-color: #EFF8FF;
    border: 1px solid #B2DDFF;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.12);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* keep translateX(-50%) when animating out so the element doesn't jump */
.dc-motd-banner--hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
}

.dc-motd-banner__inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dc-motd-banner__icon {
    flex-shrink: 0;
    color: #1570EF;
    margin-top: 2px;
}

.dc-motd-banner__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dc-motd-banner__title {
    font-size: 14px;
    font-weight: 600;
    color: #1849A9;
    line-height: 1.4;
}

.dc-motd-banner__message {
    font-size: 14px;
    font-weight: 400;
    color: #1849A9;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.dc-motd-banner__dismiss {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #1849A9;
    line-height: 1;
    border-radius: 4px;
    transition: background-color 0.15s ease;
    margin-top: 1px;
}

.dc-motd-banner__dismiss:hover {
    background-color: #D1E9FF;
}

.dc-motd-banner__dismiss:focus-visible {
    outline: 2px solid #1570EF;
    outline-offset: 2px;
}
