.containerArea {
    background: #fff !important;
    border: none !important;
    /* Add any other overrides you need here */
}

#embeddedmessaging-chat-header {
    display: none !important;
}

/* Crop the top of the embedded messaging iframe to hide the header (approx. 56px) */
.embeddedMessagingCropWrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.embeddedMessagingCropWrapper .embeddedMessagingFrame {
    position: absolute !important;
    top: -56px !important;
    /* Adjust this value to match the header height */
    left: 0;
    width: 100% !important;
    height: calc(100% + 56px) !important;
}

#headerMinimizeButton-25 {
    display: none !important;
}

/* Loading overlay for chatbot */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 6px solid #e0e0e0;
    border-top: 6px solid #005A9C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 18px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-message {
    font-size: 1.2rem;
    color: #005A9C;
    font-weight: 500;
    text-align: center;
}

.headerButton.minimizeButton,
#headerMinimizeButton-25 {
    display: none !important;
}

:root {
    --primaryColor: #005A9C;
    --secondaryColor: #999999;
    --contrastPrimaryColor: #333333;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Make the header background/banners bleed full viewport width and provide a color fallback */
header {
    width: 100vw;
    margin-left: calc(50% - 50vw); /* escape centered container so background spans full viewport */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: var(--primaryColor); /* used if image doesn't fill */
    overflow: hidden;
}

/* If you place an <img> inside the header, ensure it scales to fill the header */
header img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Optionally increase banner height on large screens */
@media (min-width: 1200px) {
    header {
        min-height: 56px; /* adjust to preferred banner height for large displays */
    }
}
header {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 56px; /* adjust to your banner image height */
    width: 100%;    background-position: center;
    background-size: cover;
    position: relative;
    color: #005A9C; /* adjust for contrast over banner */
    z-index: 100;
}

main {
    padding: 24px;
    padding-top: 88px;
    /* Add top padding to prevent content from being hidden behind the fixed header */
}


#embeddedMessagingContainer {
    position: absolute;
    /* same as header height */
    top: 56px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 56px);
    z-index: 10;
    background: #005A9C;
    display: flex;
    justify-content: center;
    align-items: stretch;
    /* Remove display: none; to ensure it is visible when needed */
}

#embeddedMessagingContainer.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

#embedded-messaging {
    height: 100%;
    width: 100%;
    display: flex;
}

.embeddedMessagingFrame {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0;
    left: 0;
    background: white !important;
}