/* OmniCRM storefront WhatsApp float – templates driven by Settings → WhatsApp */
.omni-whatsapp {
    position: fixed;
    z-index: 9998;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.3;
}

.omni-whatsapp--bottom_right {
    bottom: 1.25rem;
    right: 1.25rem;
    left: auto;
}

.omni-whatsapp--bottom_left {
    bottom: 1.25rem;
    left: 1.25rem;
    right: auto;
}

.omni-whatsapp a {
    text-decoration: none;
    color: inherit;
}

.omni-whatsapp--has-picker {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.omni-whatsapp--bottom_left.omni-whatsapp--has-picker {
    align-items: flex-start;
}

.omni-whatsapp__toggle {
    font-family: inherit;
    margin: 0;
    border: none;
    cursor: pointer;
    color: #fff;
    line-height: 1.2;
}

/* Toggle buttons mirror link styles (multi-contact picker) */
.omni-whatsapp--tpl-classic .omni-whatsapp__toggle.omni-whatsapp__toggle--classic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.omni-whatsapp--tpl-classic .omni-whatsapp__toggle.omni-whatsapp__toggle--classic:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

.omni-whatsapp--tpl-pill .omni-whatsapp__toggle.omni-whatsapp__toggle--pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem 0.65rem 0.75rem;
    border-radius: 999px;
    background: #25d366;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.omni-whatsapp--tpl-pill .omni-whatsapp__toggle.omni-whatsapp__toggle--pill:hover {
    transform: translateY(-2px);
}

.omni-whatsapp--tpl-minimal .omni-whatsapp__toggle.omni-whatsapp__toggle--minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #25d366;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: opacity 0.2s ease;
}

.omni-whatsapp--tpl-minimal .omni-whatsapp__toggle.omni-whatsapp__toggle--minimal:hover {
    opacity: 0.92;
}

.omni-whatsapp__panel {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    min-width: 260px;
    max-width: min(320px, 92vw);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 10000;
}

.omni-whatsapp--bottom_left .omni-whatsapp__panel {
    right: auto;
    left: 0;
}

.omni-whatsapp__panel-inner {
    padding: 0.75rem 1rem 1rem;
    max-height: min(70vh, 360px);
    overflow-y: auto;
}

.omni-whatsapp__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.omni-whatsapp__panel-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.omni-whatsapp__team-link:hover {
    border-color: #25d366 !important;
    background: rgba(37, 211, 102, 0.06) !important;
}

.omni-whatsapp--tpl-card .omni-whatsapp__card--team {
    max-width: 300px;
}

.omni-whatsapp--tpl-card.omni-whatsapp--card-multi .omni-whatsapp__card {
    max-width: 300px;
}

.omni-whatsapp__icon-svg {
    width: 1.65em;
    height: 1.65em;
    vertical-align: middle;
    fill: currentColor;
}

/* Classic */
.omni-whatsapp--tpl-classic .omni-whatsapp__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.omni-whatsapp--tpl-classic .omni-whatsapp__link:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
    color: #fff;
}

/* Pill */
.omni-whatsapp--tpl-pill .omni-whatsapp__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem 0.65rem 0.75rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.omni-whatsapp--tpl-pill .omni-whatsapp__link:hover {
    transform: translateY(-2px);
    color: #fff;
}

/* Minimal */
.omni-whatsapp--tpl-minimal .omni-whatsapp__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: opacity 0.2s ease;
}

.omni-whatsapp--tpl-minimal .omni-whatsapp__link:hover {
    opacity: 0.92;
    color: #fff;
}

/* Card */
.omni-whatsapp--tpl-card .omni-whatsapp__card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    max-width: 260px;
}

.omni-whatsapp--tpl-card .omni-whatsapp__card-head {
    background: #075e54;
    color: #fff;
    padding: 0.65rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.omni-whatsapp--tpl-card .omni-whatsapp__card-head .omni-whatsapp__icon-svg {
    width: 1.2em;
    height: 1.2em;
}

.omni-whatsapp--tpl-card .omni-whatsapp__card-btn .omni-whatsapp__icon-svg {
    width: 1.1em;
    height: 1.1em;
}

.omni-whatsapp--tpl-card .omni-whatsapp__card-body {
    padding: 0.75rem 1rem;
}

.omni-whatsapp--tpl-card .omni-whatsapp__card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    background: #25d366;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.875rem;
}

.omni-whatsapp--tpl-card .omni-whatsapp__card-btn:hover {
    background: #20bd5a;
    color: #fff !important;
}

@media (max-width: 576px) {
    .omni-whatsapp--bottom_right {
        right: 0.75rem;
        bottom: 0.75rem;
    }
    .omni-whatsapp--bottom_left {
        left: 0.75rem;
        bottom: 0.75rem;
    }
}
