/* Floating WhatsApp widget — local copy of rafaelbotazini/floating-whatsapp styles
   Original: https://github.com/rafaelbotazini/floating-whatsapp (MIT)
   Hosted locally because the rawcdn.githack.com URL is unreachable, which
   caused the widget to render inline at the bottom of the page instead of
   floating in the corner. */

.floating-wpp {
    position: fixed;
    bottom: 15px;
    left: 15px;
    z-index: 99;
}

.floating-wpp-button {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 1px 1px 4px rgba(60, 60, 60, 0.4);
    overflow: hidden;
}

.floating-wpp-button > svg,
.floating-wpp-button-image > svg {
    width: 100%;
    height: 100%;
}

.floating-wpp-popup {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 0;
    width: 260px;
    max-width: calc(100vw - 30px);
    border-radius: 5px;
    box-shadow: 1px 1px 4px rgba(60, 60, 60, 0.4);
    overflow: hidden;
    background: #fff;
    transform: scale(0);
    transform-origin: bottom left;
    transition: transform 0.2s ease-in-out;
}

.floating-wpp-popup.active {
    transform: scale(1);
}

.floating-wpp-head {
    background: #128C7E;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.floating-wpp-head .close {
    cursor: pointer;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
}

.floating-wpp-message {
    background: #ECE5DD;
    padding: 12px 14px;
    min-height: 70px;
    font-size: 14px;
    color: #303030;
    word-break: break-word;
}

.floating-wpp-input-message {
    display: flex;
    padding: 6px 8px;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-top: 1px solid var(--color-surface);
}

.floating-wpp-input-message textarea {
    flex: 1 1 auto;
    resize: none;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    min-height: 36px;
    padding: 6px 4px;
}

.floating-wpp-btn-send {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}
