/*
You can add your own CSS here.

Click the help icon above to learn more.
*/
.tac-quick-contact,
.tac-quick-contact * {
    box-sizing: border-box;
}

/* Floating position */
details.tac-quick-contact {
    position: fixed;
    right: 24px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    width: 64px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
}

/* Green logo button */
details.tac-quick-contact > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0;
    padding: 7px;
    list-style: none;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #68951c;
    color: #ffffff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

details.tac-quick-contact > summary::-webkit-details-marker {
    display: none;
}

details.tac-quick-contact > summary::marker {
    content: "";
}

details.tac-quick-contact > summary::before,
details.tac-quick-contact > summary::after {
    display: none;
}

/* Logo image */
details.tac-quick-contact > summary img.tac-floating-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}

details.tac-quick-contact > summary:hover,
details.tac-quick-contact[open] > summary {
    background: #507518;
}

/* Contact options */
.tac-quick-contact .tac-quick-contact-options {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: 230px;
    max-width: calc(100vw - 40px);
    padding: 8px;
    border: 1px solid #dce5dd;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

details.tac-quick-contact:not([open]) > .tac-quick-contact-options {
    display: none;
}

.tac-quick-contact .tac-quick-contact-options a {
    display: block;
    margin: 0;
    padding: 13px 14px;
    border-radius: 8px;
    color: #193527;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.tac-quick-contact .tac-quick-contact-options a:hover {
    background: #f3f7f2;
    color: #193527;
}

.tac-quick-contact .tac-quick-contact-options a span {
    display: block;
    margin-top: 4px;
    color: #445249;
    font-size: 13px;
    font-weight: 400;
}

/* Keyboard focus */
.tac-quick-contact > summary:focus-visible,
.tac-quick-contact a:focus-visible {
    outline: 3px solid #7a845f;
    outline-offset: 4px;
}

/* Mobile */
@media (max-width: 767px) {
    details.tac-quick-contact {
        right: 16px;
        width: 56px;
    }

    details.tac-quick-contact > summary {
        width: 56px;
        height: 56px;
        padding: 6px;
    }

    .tac-quick-contact .tac-quick-contact-options {
        bottom: 70px;
    }
}

.tac-quick-contact .tac-quick-contact-options {
    padding: 6px;
    height: auto;
    min-height: 0;
    gap: 0;
}

.tac-quick-contact .tac-quick-contact-options a {
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 8px 12px;
}

.tac-quick-contact .tac-quick-contact-options p {
    margin: 0;
    padding: 0;
}

.tac-quick-contact .tac-quick-contact-options br,
.tac-quick-contact .tac-quick-contact-options p:empty {
    display: none;
}

.tac-quick-contact .tac-quick-contact-options {
    width: 150px;
}
