/* Orilla floating WhatsApp widget — scoped to avoid clashes */
.orilla-wa {
    --orilla-wa-green: #25d366;
    --orilla-wa-green-dark: #128c7e;
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

.orilla-wa__panel {
    display: none;
    flex-direction: column;
    width: min(22rem, calc(100vw - 2.5rem));
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.18), 0 0.25rem 0.5rem rgba(0, 0, 0, 0.08);
}

.orilla-wa--open .orilla-wa__panel {
    display: flex;
}

.orilla-wa__header {
    background: linear-gradient(135deg, var(--orilla-wa-green) 0%, var(--orilla-wa-green-dark) 100%);
    color: #fff;
    padding: 1.125rem 1.25rem 1.25rem;
}

.orilla-wa__header-top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.orilla-wa__header-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0.125rem;
}

.orilla-wa__header-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.orilla-wa__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.orilla-wa__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    opacity: 0.95;
}

.orilla-wa__body {
    padding: 1rem 1rem 1.125rem;
    background: #fff;
}

.orilla-wa__status {
    margin: 0 0 0.875rem;
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
}

.orilla-wa__card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.75rem 0.75rem 0.65rem;
    background: #f3f4f6;
    border-radius: 0.625rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    position: relative;
    overflow: hidden;
}

.orilla-wa__card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--orilla-wa-green);
    border-radius: 0.625rem 0 0 0.625rem;
}

.orilla-wa__card:hover {
    background: #eceff2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.orilla-wa__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.orilla-wa__card-text {
    flex: 1;
    min-width: 0;
}

.orilla-wa__card-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #374151;
    line-height: 1.25;
}

.orilla-wa__card-hint {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.orilla-wa__card-wa {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
}

.orilla-wa__card-wa svg {
    width: 100%;
    height: 100%;
    display: block;
}

.orilla-wa__row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.orilla-wa__launch {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.orilla-wa--open .orilla-wa__teaser {
    display: none;
}

.orilla-wa__teaser {
    background: #fff;
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: 0.625rem;
    box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.12), 0 0.125rem 0.35rem rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    line-height: 1.3;
    user-select: none;
}

@media (max-width: 380px) {
    .orilla-wa__teaser {
        white-space: normal;
        max-width: 11rem;
        font-size: 0.8125rem;
        padding: 0.55rem 0.75rem;
    }
}

.orilla-wa__fab {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--orilla-wa-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.35rem 1.25rem rgba(37, 211, 102, 0.45), 0 0.15rem 0.4rem rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

.orilla-wa__launch:hover .orilla-wa__fab {
    transform: scale(1.05);
    box-shadow: 0 0.45rem 1.5rem rgba(37, 211, 102, 0.5), 0 0.2rem 0.5rem rgba(0, 0, 0, 0.14);
}

.orilla-wa__launch:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.orilla-wa__icon-wa svg {
    width: 1.75rem;
    height: 1.75rem;
    display: block;
}

.orilla-wa__icon-wa {
    display: flex;
    align-items: center;
    justify-content: center;
}

.orilla-wa__fab .orilla-wa__icon-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
}

.orilla-wa__fab .orilla-wa__icon-close svg {
    width: 100%;
    height: 100%;
    display: block;
}

.orilla-wa--open .orilla-wa__icon-wa {
    display: none;
}

.orilla-wa--open .orilla-wa__fab .orilla-wa__icon-close {
    display: flex;
}
