.am-bdh-fchat,
.am-bdh-fchat * {
    box-sizing: border-box;
}

.am-bdh-fchat {
    --am-bdh-fchat-red: #ef3033;
    --am-bdh-fchat-row-red: #df2428;
    --am-bdh-fchat-text-red: #ec3030;
    --am-bdh-fchat-font: "DINNextLTPro-Condensed", "DINNextLTPro-MediumCond", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    position: fixed;
    right: 40px;
    bottom: 38px;
    z-index: 999999;
    width: 326px;
    max-width: calc(100vw - 32px);
    font-family: var(--am-bdh-fchat-font) !important;
    pointer-events: none;
}

.am-bdh-fchat__launcher {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--am-bdh-fchat-red);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);
    color: #ffffff;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, visibility 180ms ease;
}

.am-bdh-fchat__launcher:hover,
.am-bdh-fchat__launcher:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
    outline: none;
}

.am-bdh-fchat__launcher-icon {
    display: block;
    width: 43px;
    height: 37px;
    margin: 0;
    padding: 0;
    background-image: url("https://automertens-new.digitalspan.nl/wp-content/uploads/2026/07/chaticon.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255, 255, 255, 0.58));
    transform: none !important;
}

.am-bdh-fchat__tooltip {
    position: absolute;
    right: 50%;
    bottom: calc(100% + 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 95px;
    height: 47px;
    padding: 0 18px;
    border-radius: 20px;
    background: #ffffff;
    color: var(--am-bdh-fchat-red);
    font-family: var(--am-bdh-fchat-font) !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translate(50%, 7px);
    transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
    pointer-events: none;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.04);
}

.am-bdh-fchat__tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% - 1px);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid #ffffff;
    transform: translateX(-50%);
}

.am-bdh-fchat__launcher:hover .am-bdh-fchat__tooltip,
.am-bdh-fchat__launcher:focus-visible .am-bdh-fchat__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(50%, 0);
}

.am-bdh-fchat__panel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 326px;
    max-width: calc(100vw - 32px);
    padding: 8px 10px 10px;
    border-radius: 20px;
    background: var(--am-bdh-fchat-red);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.97);
    transform-origin: 100% 100%;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.am-bdh-fchat.is-open .am-bdh-fchat__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.am-bdh-fchat.is-open .am-bdh-fchat__launcher {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.86);
    pointer-events: none;
}

.am-bdh-fchat__panel-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 0 46px;
    border-bottom: 1px solid rgba(215, 25, 29, 0.5);
}

.am-bdh-fchat__panel-head h2 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #ffffff !important;
    font-family: var(--am-bdh-fchat-font) !important;
    font-size: 24px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 38px !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

.am-bdh-fchat__close {
    position: absolute;
    top: 50%;
    right: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-family: Arial, sans-serif !important;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    appearance: none;
    -webkit-appearance: none;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.18);
}

.am-bdh-fchat__close:hover,
.am-bdh-fchat__close:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.am-bdh-fchat__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 18px !important;
    padding: 0 !important;
    list-style: none !important;
}

.am-bdh-fchat__list-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.am-bdh-fchat__list-item::before,
.am-bdh-fchat__list-item::after {
    display: none !important;
    content: none !important;
}

.am-bdh-fchat__item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 12px;
    align-items: center;
    min-height: 48px;
    padding: 5px 13px 5px 13px;
    background: var(--am-bdh-fchat-row-red);
    color: #ffffff !important;
    text-decoration: none !important;
    transition: background-color 150ms ease, transform 150ms ease;
}

.am-bdh-fchat__item:hover,
.am-bdh-fchat__item:focus-visible {
    background: #d91f23;
    color: #ffffff !important;
    outline: none;
    transform: translateX(1px);
}

.am-bdh-fchat__item-icon,
.am-bdh-fchat__appointment .fa-arrow-right {
    display: block !important;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.am-bdh-fchat__item-icon {
    width: 25px;
    height: 25px;
    color: #ffffff;
    transform: none !important;
    rotate: none !important;
}

.am-bdh-fchat__item-icon.fa-phone-alt {
    -webkit-transform: scaleX(-1) !important;
    transform: scaleX(-1) !important;
    transform-origin: center center !important;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23000' d='M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.3-7.8-20.9-18.6-23.4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23000' d='M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.3-7.8-20.9-18.6-23.4z'/%3E%3C/svg%3E");
}

.am-bdh-fchat__item-icon.fa-paper-plane {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23000' d='M476 3.2L12.5 270.6c-18 10.4-15.7 37.1 3.6 44.3L122.7 355l39.3 132.4c5.2 17.6 27.1 23.9 41 11.7l62.8-55.1 105.5 77.7c14.2 10.5 34.5 2.8 38.3-14.4L511.4 31c4.5-20.6-17.1-38.3-35.4-27.8zM192 432l-28.4-95.7 211.8-199.8L192 432z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23000' d='M476 3.2L12.5 270.6c-18 10.4-15.7 37.1 3.6 44.3L122.7 355l39.3 132.4c5.2 17.6 27.1 23.9 41 11.7l62.8-55.1 105.5 77.7c14.2 10.5 34.5 2.8 38.3-14.4L511.4 31c4.5-20.6-17.1-38.3-35.4-27.8zM192 432l-28.4-95.7 211.8-199.8L192 432z'/%3E%3C/svg%3E");
}

.am-bdh-fchat__item-label {
    min-width: 0;
    color: #ffffff !important;
    font-family: var(--am-bdh-fchat-font) !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 38px !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-bdh-fchat__status {
    display: block;
    width: 10px;
    height: 10px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    background: var(--am-bdh-fchat-status, #21d441);
    box-shadow: none;
}

.am-bdh-fchat__appointment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 45px;
    padding: 3px 18px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: var(--am-bdh-fchat-text-red) !important;
    font-family: var(--am-bdh-fchat-font) !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 38px !important;
    letter-spacing: 0 !important;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.am-bdh-fchat__appointment:hover,
.am-bdh-fchat__appointment:focus-visible {
    color: var(--am-bdh-fchat-text-red) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(142, 0, 0, 0.16);
    outline: none;
}

.am-bdh-fchat__appointment .fa-arrow-right {
    width: 22px;
    height: 19px;
    color: var(--am-bdh-fchat-text-red);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23000' d='M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23000' d='M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
    .am-bdh-fchat {
        right: 16px;
        bottom: 18px;
        width: min(326px, calc(100vw - 32px));
    }

    .am-bdh-fchat__launcher {
        width: 66px;
        height: 66px;
    }

    .am-bdh-fchat__launcher-icon {
        width: 38px;
        height: 33px;
    }

    .am-bdh-fchat__tooltip {
        bottom: calc(100% + 15px);
    }

    .am-bdh-fchat__panel {
        width: min(326px, calc(100vw - 32px));
        max-height: calc(100vh - 36px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 380px) {
    .am-bdh-fchat__panel {
        padding-right: 8px;
        padding-left: 8px;
    }

    .am-bdh-fchat__panel-head h2 {
        font-size: 22px !important;
    }

    .am-bdh-fchat__item {
        grid-template-columns: 29px minmax(0, 1fr) 11px;
        padding-right: 11px;
        padding-left: 11px;
    }

    .am-bdh-fchat__item-label,
    .am-bdh-fchat__appointment {
        font-size: 18px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .am-bdh-fchat__launcher,
    .am-bdh-fchat__tooltip,
    .am-bdh-fchat__panel,
    .am-bdh-fchat__item,
    .am-bdh-fchat__appointment {
        transition: none !important;
    }
}
