.webz-contact-group {
    display: flex;
    align-items: stretch;
    gap: .5rem;
}

.webz-contact-fixed {
    position: fixed;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    left: max(1rem, env(safe-area-inset-left, 0px));
    z-index: 1020;
    max-width: calc(100vw - max(1rem, env(safe-area-inset-left, 0px)) - max(1rem, env(safe-area-inset-right, 0px)));
}

.webz-contact-fixed.webz-contact-right {
    left: auto;
    right: max(1rem, env(safe-area-inset-right, 0px));
}

body:has(.webz-contact-fixed) {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
}

body:has(.webz-contact-fixed.webz-contact-bubble) {
    padding-bottom: calc(8rem + env(safe-area-inset-bottom, 0px));
}

html:has(.webz-contact-fixed) {
    scroll-padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
}

html:has(.webz-contact-fixed.webz-contact-bubble) {
    scroll-padding-bottom: calc(8rem + env(safe-area-inset-bottom, 0px));
}

.webz-contact-link {
    display: inline-flex;
    min-height: 48px;
    min-width: 48px;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .6rem .9rem;
    background: var(--webz-contact-color);
    color: #fff;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
}

.webz-contact-link svg {
    flex: none;
}

.webz-contact-link-wa { --webz-contact-color: #08744f; }
.webz-contact-link-phone { --webz-contact-color: #234e91; }

a.webz-contact-link:hover {
    color: #fff;
    box-shadow: inset 0 0 0 2px rgb(255 255 255 / .46);
}

a.webz-contact-link:focus-visible {
    color: #fff;
    outline: 3px solid #fff;
    box-shadow: 0 0 0 6px #182326;
}

.webz-contact-dock {
    padding: .35rem;
    border: 1px solid #dbe3e0;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 .55rem 1.7rem rgb(18 35 29 / .2);
}

.webz-contact-fixed.webz-contact-dock {
    inset-inline: max(.75rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    width: min(28rem, calc(100% - 2 * max(.75rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))));
    margin-inline: auto;
}

.webz-contact-dock .webz-contact-link {
    flex: 1;
    border-radius: .8rem;
}

.webz-contact-pill .webz-contact-link,
.webz-contact-bubble .webz-contact-link,
.webz-contact-brand {
    box-shadow: 0 .35rem 1.25rem rgb(18 35 29 / .22);
}

.webz-contact-bubble {
    flex-direction: column;
}

.webz-contact-bubble .webz-contact-link {
    width: 54px;
    height: 54px;
    padding: 0;
}

.webz-contact-bubble .webz-contact-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.webz-contact-brand {
    gap: .25rem;
    padding: .3rem;
    border-radius: 999px;
    background: var(--webz-brand, #145b49);
    border: 1px solid rgb(255 255 255 / .55);
}

.webz-contact-brand .webz-contact-link {
    background: #fff;
    color: var(--webz-brand, #145b49);
}

.webz-contact-brand .webz-contact-link-phone {
    background: transparent;
    color: #fff;
}

.webz-contact-brand a.webz-contact-link-wa:hover {
    background: #e8f3ef;
    color: var(--webz-brand, #145b49);
}

.webz-contact-brand a.webz-contact-link-wa:focus-visible {
    color: var(--webz-brand, #145b49);
}

.webz-contact-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.webz-contact-choice {
    display: grid;
    gap: .35rem;
    padding: .7rem;
    border: 1px solid #d5dfdb;
    border-radius: .8rem;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 650;
}

.webz-contact-choice:has(input:checked) {
    border-color: #08744f;
    background: #edf7f1;
    box-shadow: inset 0 0 0 1px #08744f;
}

.webz-contact-sample {
    display: grid;
    min-height: 5.25rem;
    place-items: center;
}

.webz-contact-sample .webz-contact-link {
    min-width: 0;
    min-height: 27px;
    gap: .18rem;
    padding: .24rem .33rem;
    font-size: .65rem;
}

.webz-contact-sample svg {
    width: 13px;
    height: 13px;
}

.webz-contact-sample .webz-contact-bubble {
    gap: .28rem;
}

.webz-contact-sample .webz-contact-bubble .webz-contact-link {
    width: 30px;
    height: 30px;
}

@media (max-width: 380px) {
    .webz-contact-fixed .webz-contact-link {
        padding-inline: .65rem;
    }
}
