/**
 * @package     Bermasoft.Module.Whatsapp
 * @copyright   Copyright (C) Bermasoft, S.L. All rights reserved.
 * @license     GNU General Public License version 2 or later
 */

.wa-module {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.wa-module.wa-right {
    right: 20px;
}

.wa-module.wa-left {
    left: 20px;
}

.wa-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--wa-color, #25d366);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    padding: 0;
}

.wa-toggle svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wa-panel {
    position: absolute;
    bottom: 68px;
    width: 280px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35);
    padding: 16px;
}

.wa-module.wa-right .wa-panel {
    right: 0;
}

.wa-module.wa-left .wa-panel {
    left: 0;
}

.wa-panel-intro {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #111;
}

.wa-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-form label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #444;
}

.wa-form input,
.wa-form textarea {
    box-sizing: border-box;
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    font-family: inherit;
    color: #111;
}

.wa-form textarea {
    min-height: 60px;
    resize: vertical;
}

.wa-submit {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--wa-color, #25d366);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.wa-submit svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference) {
    .wa-toggle {
        transition: transform 0.15s ease;
    }

    .wa-toggle:hover {
        transform: scale(1.06);
    }
}
