/* GPL-2.0-or-later. Namespaced to avoid changing the site's styles. */
#mc-contact { display: none; }
@media screen and (max-width: 767px) { #mc-contact.mc-contact--mobile { display: block; } }
@media screen and (max-width: 1023px) { #mc-contact.mc-contact--tablet { display: block; } }
@media screen { #mc-contact.mc-contact--all { display: block; } }
#mc-contact {
    --mc-height: 72px;
    height: calc(var(--mc-height) + env(safe-area-inset-bottom, 0px));
    color: #fff; font: 600 16px/1.4 system-ui, sans-serif;
}
#mc-contact *, #mc-contact *::before, #mc-contact *::after { box-sizing: border-box; }
#mc-contact [hidden] { display: none !important; }
#mc-contact .mc-contact__bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 10000;
    display: flex; min-height: var(--mc-height);
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: #123a53; box-shadow: 0 -2px 16px #0003;
}
#mc-contact .mc-contact__action {
    flex: 1 1 0; min-width: 0; min-height: var(--mc-height); margin: 0;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px; border: 0; border-radius: 0; cursor: pointer;
    color: #fff; background: #123a53; text-decoration: none; list-style: none;
    font: inherit; text-align: center; overflow-wrap: anywhere;
}
#mc-contact .mc-contact__action::-webkit-details-marker { display: none; }
#mc-contact .mc-contact__action--chat { background: #14633b; }
#mc-contact .mc-contact__action:hover { filter: brightness(1.15); }
#mc-contact svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#mc-contact .mc-contact__phones { flex: 1 1 0; min-width: 0; }
#mc-contact .mc-contact__panel {
    position: absolute; bottom: calc(100% + 8px); inset-inline: 12px;
    max-width: 440px; margin-inline: auto; padding: 12px; border: 1px solid #c1ccd4;
    border-radius: 16px; background: #fff; color: #142d40;
    box-shadow: 0 8px 32px #0004; max-height: 65vh; overflow-y: auto;
}
#mc-contact .mc-contact__panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#mc-contact .mc-contact__close {
    min-width: 44px; min-height: 44px; padding: 4px; border: 0; border-radius: 8px;
    background: #eef3f6; color: #142d40; cursor: pointer; font: 28px/1 system-ui, sans-serif;
}
#mc-contact .mc-contact__number {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
    min-height: 52px; align-items: center; padding: 12px; margin-top: 8px;
    border-radius: 8px; background: #eef3f6; color: #142d40; text-decoration: underline;
    overflow-wrap: anywhere;
}
#mc-contact .mc-contact__number:hover { background: #dce8ef; }
#mc-contact :is(a, summary, button):focus-visible { outline: 3px solid #ffcc4d; outline-offset: -4px; }
@media (prefers-reduced-motion: no-preference) {
    #mc-contact .mc-contact__action { transition: filter 120ms ease; }
}
@media print { #mc-contact { display: none !important; } }
/* Version 1.1: appearance settings and optional floating layout. */
#mc-contact {
    --mc-size: 64px; --mc-right: 16px; --mc-bottom: 16px;
    --mc-background: #007fa3; --mc-foreground: #ffffff;
    --mc-border: #0099c4; --mc-chat-background: #14633b;
    --mc-height: var(--mc-size);
}
#mc-contact .mc-contact__action { color: var(--mc-foreground); background: var(--mc-background); }
#mc-contact .mc-contact__action--chat { background: var(--mc-chat-background); }
#mc-contact .mc-contact__phone-icon { fill: currentColor; stroke: none; }
#mc-contact.mc-contact--bar svg { width: calc(var(--mc-size) * .4); height: calc(var(--mc-size) * .4); }
#mc-contact.mc-contact--floating { height: 0; }
#mc-contact.mc-contact--floating .mc-contact__bar {
    right: calc(var(--mc-right) + env(safe-area-inset-right, 0px)); left: auto;
    bottom: calc(var(--mc-bottom) + env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column-reverse; align-items: center; gap: 12px;
    width: var(--mc-size); min-height: 0; padding: 0; margin: 0; background: transparent; box-shadow: none;
}
#mc-contact.mc-contact--floating .mc-contact__action {
    flex: none; width: var(--mc-size); height: var(--mc-size); min-width: 44px; min-height: 44px;
    margin: 0; padding: 0; border: 4px solid var(--mc-border); border-radius: 50%;
    box-shadow: 0 3px 12px #0002;
}
#mc-contact.mc-contact--floating .mc-contact__action::marker { content: ''; }
#mc-contact.mc-contact--floating .mc-contact__action > span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
#mc-contact.mc-contact--floating svg { width: calc(var(--mc-size) * .52); height: calc(var(--mc-size) * .52); }
#mc-contact.mc-contact--floating .mc-contact__phones { flex: none; width: var(--mc-size); margin: 0; padding: 0; }
#mc-contact.mc-contact--floating .mc-contact__panel {
    bottom: calc(100% + 12px); right: 0; left: auto; margin: 0;
    width: min(360px, calc(100vw - var(--mc-right) - 16px - env(safe-area-inset-right, 0px) - env(safe-area-inset-left, 0px)));
    max-height: min(65vh, calc(100dvh - var(--mc-bottom) - var(--mc-size) - 28px - env(safe-area-inset-bottom, 0px)));
}
#mc-contact.mc-contact--floating:has(.mc-contact__action--chat) .mc-contact__panel {
    max-height: min(65vh, calc(100dvh - var(--mc-bottom) - var(--mc-size) * 2 - 40px - env(safe-area-inset-bottom, 0px)));
}

