.liloo-whatsapp-root {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    font-family: inherit;
}

.liloo-whatsapp-fab {
    width: 3.5rem;
    height: 3.5rem;
    border: none;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.liloo-whatsapp-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.liloo-whatsapp-fab:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
    .liloo-whatsapp-fab {
        animation: liloo-wa-pulse 2.5s ease-in-out infinite;
    }
    .liloo-whatsapp-root--open .liloo-whatsapp-fab {
        animation: none;
    }
}

@keyframes liloo-wa-pulse {
    0%,
    100% {
        box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    }
    50% {
        box-shadow: 0 4px 22px rgba(37, 211, 102, 0.55);
    }
}

.liloo-whatsapp-panel--form {
    min-width: 17.5rem;
    max-width: min(20rem, calc(100vw - 2.5rem));
    padding: 0 !important;
    overflow: hidden;
}

.liloo-whatsapp-panel {
    min-width: 16rem;
    max-width: min(18rem, calc(100vw - 2.5rem));
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.12));
    border-radius: 0.75rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    padding: 0.75rem;
}

.liloo-whatsapp-panel__title {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.liloo-whatsapp-panel--form .liloo-whatsapp-panel__title {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    color: #fff;
    margin: 0;
    padding: 1rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.liloo-whatsapp-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.liloo-whatsapp-panel__item {
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 0.5rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
    color: inherit;
}

a.liloo-whatsapp-fab {
    text-decoration: none;
    color: #fff;
}

.liloo-whatsapp-panel__item:hover {
    background: rgba(37, 211, 102, 0.12);
}

.liloo-whatsapp-panel__name {
    font-size: 0.875rem;
    font-weight: 600;
}

.liloo-whatsapp-panel__phone {
    font-size: 0.75rem;
    opacity: 0.75;
}

[data-bs-theme="dark"] .liloo-whatsapp-panel {
    background: #1f2c33;
    border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .liloo-whatsapp-panel__item {
    background: #2a3942;
}

[data-bs-theme="dark"] .liloo-whatsapp-panel__item:hover {
    background: rgba(37, 211, 102, 0.15);
}

[data-bs-theme="dark"] .liloo-whatsapp-panel--form .liloo-whatsapp-panel__title {
    background: linear-gradient(135deg, #0a5f56 0%, #1da851 100%);
}

.liloo-whatsapp-form {
    padding: 1rem;
    background: #f0f2f5;
}

.liloo-whatsapp-panel--form .liloo-whatsapp-panel__back {
    display: inline-flex;
    padding: 0.75rem 1rem 0.5rem;
    background: #f0f2f5;
    width: 100%;
}

.liloo-whatsapp-form .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #000;
    margin-bottom: 0.35rem;
}

.liloo-whatsapp-form .form-control {
    border: 1px solid #d1d7db;
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    background: #fff;
    color: #000;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.liloo-whatsapp-form .form-control::placeholder {
    color: #667781;
}

.liloo-whatsapp-form .form-control:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 0.15rem rgba(37, 211, 102, 0.15);
    outline: none;
}

.liloo-whatsapp-form textarea.form-control {
    resize: vertical;
    min-height: 4.5rem;
}

.liloo-whatsapp-form__submit {
    width: 100%;
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.liloo-whatsapp-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.liloo-whatsapp-form__submit:active {
    transform: translateY(0);
}

.liloo-whatsapp-panel__back {
    color: #128C7E;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    transition: color 0.15s ease;
    background: transparent;
    border: none;
}

.liloo-whatsapp-panel__back:hover {
    color: #25D366;
}

[data-bs-theme="dark"] .liloo-whatsapp-form {
    background: #1f2c33;
}

[data-bs-theme="dark"] .liloo-whatsapp-panel--form .liloo-whatsapp-panel__back {
    background: #1f2c33;
}

[data-bs-theme="dark"] .liloo-whatsapp-form .form-label {
    color: #8696a0;
}

[data-bs-theme="dark"] .liloo-whatsapp-form .form-control {
    background: #2a3942;
    border-color: #3b4a54;
    color: #e9edef;
}

[data-bs-theme="dark"] .liloo-whatsapp-form .form-control:focus {
    border-color: #25D366;
    background: #2a3942;
}

/* Modal estilo site (Bootstrap ou fallback standalone) */
.liloo-wa-site-modal {
    z-index: 1105 !important;
    position: fixed;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background: rgba(0, 0, 0, 0.55);
}

.liloo-wa-site-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    padding: 1rem;
}

.liloo-wa-site-modal .modal-dialog {
    max-width: 28rem;
    width: 100%;
    margin: auto;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

body.modal-open:has(#liloo-wa-site-modal.show) .modal-backdrop {
    z-index: 1100 !important;
}

body.modal-open:has(#liloo-wa-site-modal.show) .modal-backdrop.show {
    opacity: 0.55;
}

.liloo-wa-site-modal__content.modal-content,
.liloo-wa-site-modal__content {
    background: rgba(14, 16, 20, 0.96) !important;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

.liloo-wa-site-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem 0.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.liloo-wa-site-modal__eyebrow {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.2rem;
}

.liloo-wa-site-modal__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.62);
}

.liloo-wa-site-modal__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
}

.liloo-wa-site-modal__close:hover {
    color: #fff;
}

.liloo-wa-site-modal__header .modal-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
}

.liloo-wa-site-modal__body.modal-body,
.liloo-wa-site-modal .modal-body {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.88);
    padding: 1rem 1.1rem 1.15rem;
}

.liloo-wa-site-modal__intro {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.liloo-wa-site-modal__steps {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.liloo-wa-site-modal__step.is-active {
    color: rgba(255, 255, 255, 0.92);
}

.liloo-wa-site-modal__step-line {
    width: 0.85rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.liloo-wa-site-modal__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0 0 0.85rem;
}

.liloo-wa-site-modal__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.liloo-wa-site-modal__input,
.liloo-wa-site-modal__select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.35;
    font-family: inherit;
}

.liloo-wa-site-modal__input:focus,
.liloo-wa-site-modal__select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.liloo-wa-site-modal__footnote {
    margin: 0.65rem 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.liloo-wa-site-modal__error {
    margin: 0 0 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.18);
    border: 1px solid rgba(220, 53, 69, 0.45);
    color: #ffb4bc;
    font-size: 0.82rem;
    line-height: 1.35;
}

.liloo-wa-site-modal .liloo-whatsapp-form,
.liloo-wa-site-modal__form {
    background: transparent !important;
    padding: 0 !important;
    color: rgba(255, 255, 255, 0.9);
}

.liloo-wa-site-modal .liloo-whatsapp-form .form-label,
.liloo-wa-site-modal .liloo-whatsapp-form .form-control {
    color: inherit;
}

.liloo-wa-site-modal__form .liloo-whatsapp-form__submit,
.liloo-wa-site-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    font-weight: 600;
    padding: 0.75rem 1rem;
    margin-top: 0.25rem;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    color: #0b1324;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.liloo-wa-site-modal__form .liloo-whatsapp-form__submit:disabled,
.liloo-wa-site-modal__submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.liloo-wa-site-modal__list {
    margin: 0;
    padding: 0;
}

.liloo-wa-site-modal__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M1.4.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.2rem;
    cursor: pointer;
}

.liloo-wa-site-modal__select option {
    color: #111;
    background: #fff;
}
