.tbc-sitewide-wa[hidden] {
    display: none;
}

.tbc-sitewide-wa {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    overflow-y: auto;
    place-items: center;
    padding: 20px;
    font-family: inherit;
}

.tbc-sitewide-wa__backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(3, 20, 29, 0.76);
    backdrop-filter: blur(5px);
    cursor: default;
}

.tbc-sitewide-wa__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    overflow: hidden;
    border: 1px solid rgba(5, 47, 39, 0.18);
    border-radius: 8px;
    background: #efeae2;
    box-shadow: 0 24px 70px rgba(3, 20, 29, 0.42);
}

.tbc-sitewide-wa__header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 40px;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 12px 14px;
    background: #075e54;
    color: #fff;
}

.tbc-sitewide-wa__avatar {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.45rem;
}

.tbc-sitewide-wa__identity strong,
.tbc-sitewide-wa__identity small {
    display: block;
    color: #fff;
}

.tbc-sitewide-wa__identity strong {
    font-size: 1.06rem;
    line-height: 1.25;
}

.tbc-sitewide-wa__identity small {
    margin-top: 2px;
    opacity: 0.78;
    font-size: 0.82rem;
}

.tbc-sitewide-wa__close {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.tbc-sitewide-wa__close:hover,
.tbc-sitewide-wa__close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.tbc-sitewide-wa__body {
    padding: 22px;
}

.tbc-sitewide-wa__message {
    position: relative;
    max-width: 360px;
    margin: 0 0 22px auto;
    border-radius: 7px 0 7px 7px;
    background: #d9fdd3;
    color: #183a34;
    padding: 13px 15px;
    font-size: 0.98rem;
    line-height: 1.48;
    box-shadow: 0 1px 2px rgba(3, 20, 29, 0.12);
}

.tbc-sitewide-wa__message::after {
    position: absolute;
    top: 0;
    right: -9px;
    width: 0;
    height: 0;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #d9fdd3;
    content: "";
}

.tbc-sitewide-wa form {
    margin: 0;
}

.tbc-sitewide-wa label {
    display: block;
    margin-bottom: 4px;
    color: #102d3c;
    font-size: 1rem;
    font-weight: 700;
}

.tbc-sitewide-wa__help {
    margin: 0 0 9px;
    color: #60727b;
    font-size: 0.86rem;
}

.tbc-sitewide-wa__field {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 54px;
    border: 1px solid #c5d0cd;
    border-radius: 6px;
    background: #fff;
    color: #075e54;
    padding: 0 14px;
}

.tbc-sitewide-wa__field:focus-within,
.tbc-sitewide-wa__close:focus-visible,
.tbc-sitewide-wa__submit:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.42);
    outline-offset: 2px;
}

.tbc-sitewide-wa__field input {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #102d3c;
    padding: 0;
    font: inherit;
    font-size: 1rem;
}

.tbc-sitewide-wa__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.tbc-sitewide-wa__error {
    margin: 9px 0 0;
    color: #b42318;
    font-size: 0.88rem;
    font-weight: 600;
}

.tbc-sitewide-wa__submit {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    border: 1px solid #20bd5a;
    border-radius: 6px;
    background: #25d366;
    color: #fff;
    padding: 10px 16px;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.tbc-sitewide-wa__submit i,
.tbc-sitewide-wa__submit span {
    color: inherit;
}

.tbc-sitewide-wa__submit:hover,
.tbc-sitewide-wa__submit:focus-visible {
    background: #20bd5a;
}

.tbc-sitewide-wa__submit:disabled {
    cursor: progress;
    opacity: 0.86;
}

.tbc-sitewide-wa__privacy {
    margin: 14px 0 0;
    color: #60727b;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
}

.tbc-sitewide-wa__privacy a {
    color: #075e54;
    font-weight: 700;
}

body.tbc-sitewide-wa-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .tbc-sitewide-wa {
        place-items: end center;
        padding: 0;
    }

    .tbc-sitewide-wa__dialog {
        width: 100%;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 8px 8px 0 0;
    }

    .tbc-sitewide-wa__body {
        padding: 18px 16px 20px;
    }
}
