#contact-widget {
    --widget-accent: var(--acc, var(--accent, #70873a));
    --widget-on-accent: white;
    --widget-bg: #faf9f5;
    --widget-line: #e1e3d8;
    position: fixed;
    inset: auto 24px 24px auto;
    z-index: 9999;
    display: block;
    width: auto;
    height: auto;
    font: inherit;
}
#contact-widget :is(button, a) {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid var(--widget-line);
    border-radius: 13px;
    background: #fff;
    color: var(--widget-accent);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}
#contact-widget :is(button, a):focus-visible { outline: 2px solid var(--widget-accent); outline-offset: 3px; }
#contact-widget :is(button, a):hover { filter: brightness(.96); }
#contact-widget :is(.widget-phone, .widget-book) { display: none; }
#contact-widget .widget-launcher {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: var(--widget-accent);
    color: var(--widget-on-accent);
    box-shadow: 0 3px 10px #25311725;
}
#contact-widget .widget-launcher svg { width: 26px; height: 26px; }
#contact-widget .widget-messengers { display: none; }
#contact-widget .widget-launcher[aria-expanded="true"] + .widget-messengers {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    display: grid;
    gap: 8px;
    width: 174px;
}
#contact-widget .widget-social {
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    height: 54px;
    padding: 0 15px;
    border-radius: 14px;
    color: #30352a;
    font-size: 14px;
    font-weight: 650;
}
#contact-widget .widget-social img { display: block; width: 28px; height: 28px; flex: none; }
#contact-widget .widget-status { display: none; }
body.modal-open #contact-widget,
body:has(.modal--show, .modal.show, .modal.in, .modal.active, .jquery-modal.blocker, #fancybox-wrap[style*="display: block"], .fancybox__container, dialog[open]) #contact-widget { visibility: hidden; }
@media (width > 640px) {
    #contact-widget[data-messengers="0"] { display: none; }
}
@media (max-width: 640px) {
    body:has(#contact-widget) { padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)); }
    body:has(#contact-widget[data-layout="universal"]) { padding-bottom: 0; }
    body:has(#contact-widget[data-layout="universal"]) .site-footer {
        padding-bottom: calc(var(--widget-footer-space, 105px) + env(safe-area-inset-bottom, 0px));
    }
    body:has(#contact-widget) .cookie-warning-modern { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
    #contact-widget {
        inset: auto 0 0;
        display: flex;
        gap: 8px;
        width: 100%;
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
        border-top: 1px solid var(--widget-line);
        background: var(--widget-bg);
        box-shadow: 0 -5px 24px #25311710;
    }
    #contact-widget .widget-launcher { display: none; }
    #contact-widget .widget-messengers,
    #contact-widget .widget-launcher[aria-expanded="true"] + .widget-messengers { display: contents; }
    #contact-widget :is(.widget-phone, .widget-book, .widget-social) { display: flex; height: 50px; min-width: 0; }
    #contact-widget :is(.widget-phone, .widget-social) { flex: 0 0 48px; width: 48px; justify-content: center; padding: 0; }
    #contact-widget .widget-social span { display: none; }
    #contact-widget .widget-phone { border-color: var(--widget-accent); background: transparent; }
    #contact-widget .widget-phone svg { width: 23px; height: 23px; }
    #contact-widget .widget-book { flex: 1; background: var(--widget-accent); color: var(--widget-on-accent); font-size: 13px; font-weight: 750; }
    #contact-widget:not([data-booking]) > .widget-phone { flex: 1; }
    #contact-widget[data-messengers="0"]:not([data-booking]):not(:has(.widget-phone)) { display: none; }
    #contact-widget[data-concealed] { visibility: hidden; }
    #contact-widget .widget-status:not(:empty) {
        position: absolute;
        right: 12px;
        bottom: calc(100% + 8px);
        display: block;
        padding: 8px 12px;
        border-radius: 8px;
        background: #fff;
        color: #30352a;
        font-size: 13px;
    }
    body:has(input:focus, textarea:focus, select:focus) #contact-widget { visibility: hidden; }
}
@media (max-width: 359px) {
    #contact-widget { gap: 6px; padding-inline: 8px; }
    #contact-widget :is(.widget-phone, .widget-social) { flex-basis: 44px; width: 44px; }
    #contact-widget .widget-book { font-size: 12px; }
}
