* {
    box-sizing: border-box;
}

.iframe-container {
    position: fixed;
    bottom: 0;
    z-index: 1001;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,.3);
}

@media (max-width: 899px) {
    .iframe-container {
        width: 100vw;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 100001;
    }
    .iframe-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100002;
    }
    .iframe-container iframe {
        margin-top: 44px;
        height: calc(100% - 44px);
    }
}

@media (min-width: 900px) {
    .iframe-container {
        width: var(--iframe-width);
        max-width: 100vw;
        height: var(--iframe-height);
    }
    .iframe-container iframe {
        width: 100%;
        height: calc(100% - 44px);
        border: none;
        overflow: auto;
    }
}

.iframe-container.left-corner {
    left: 0;
}

.iframe-container.right-corner {
    right: 0;
}

.iframe-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: var(--header-bg-color, #0073aa);
    color: var(--header-text-color, #ffffff);
    box-sizing: border-box;
}

.iframe-title {
    font-size: 16px;
    font-weight: bold;
    font-family: 'Segoe UI', sans-serif;
    color: var(--header-text-color, #ffffff);
}

.close-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.close-button svg {
    width: 24px;
    height: 24px;
}

.iframe-container iframe {
    width: 100%;
    height: calc(100% - 44px);
    border: none;
}

.ec-chat-widget {
    position: fixed;
    display: flex;
    bottom: 10px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    column-gap: 8px;
    padding: 7px 7px 7px 8px;
    background-color: var(--widget-bg-color, #0073aa);
    font-family: "Segoe UI", "Open Sans", sans-serif;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.33);
    cursor: pointer;
    z-index: 499;
}

.ec-chat-widget.left-corner {
    left: 12px;
}

.ec-chat-widget.right-corner {
    right: 12px;
}

.ec-chat-widget .ec-chat-widget-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

.ec-chat-widget .ec-chat-widget-content {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    padding: 3px 6px 3px 1px;
}

.ec-chat-widget .ec-chat-widget-content .ec-chat-widget-title {
    margin: 0;
    text-wrap: nowrap;
    font-size: 0.95rem;
    font-weight: 599;
    line-height: 1.2;
    color: var(--widget-text-color, #ffffff);
}

.ec-chat-widget .ec-chat-widget-content .ec-chat-widget-status {
    font-size: 0.82rem;
    font-weight: 555;
    line-height: 1.1;
    color: var(--widget-status-color, #40eb40);
}

.ec-chat-widget-product-button {
    display: inline-flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    column-gap: 8px;
    text-wrap: nowrap;
}

.ec-chat-widget-product-button .ec-chat-widget-product-button-icon {
    max-height: 1.75em;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}