/* Estilos principais do Contato Site */
#contact-site-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   BARRA DE RODAPÉ MOBILE TOTAL 100% (2 Botões: Ligar + WhatsApp)
   ========================================================================== */
.cs-mobile-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999999;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.12);
    padding: 10px 14px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.cs-mobile-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.cs-mobile-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.2px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    line-height: 1;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.cs-mobile-btn:active {
    transform: scale(0.96);
}

/* Botão Ligar */
.cs-mobile-btn-phone {
    background: linear-gradient(135deg, #0070f3 0%, #0051a8 100%);
    color: #ffffff !important;
}

.cs-mobile-btn-phone:hover {
    box-shadow: 0 6px 20px rgba(0, 112, 243, 0.4);
    color: #ffffff !important;
}

/* Botão WhatsApp */
.cs-mobile-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
}

.cs-mobile-btn-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #ffffff !important;
}

.cs-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.cs-btn-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.cs-custom-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cs-btn-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Esconder barra mobile em desktops */
@media (min-width: 769px) {
    .cs-mobile-footer-bar {
        display: none !important;
    }
}

/* Quando barra mobile estiver ativa, esconder botão flutuante em telas pequenas */
@media (max-width: 768px) {
    .contact-icon-widget.cs-has-mobile-bar {
        display: none !important;
    }
}

/* ==========================================================================
   WIDGET FLUTUANTE (Desktop & Mobile Fallback)
   ========================================================================== */
.contact-icon-widget {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-icon-widget.loaded {
    opacity: 1;
}

.contact-icon-widget.animate-in {
    transform: scale(1);
}

/* Ocultar por classe de dispositivo */
@media (min-width: 769px) {
    .contact-icon-widget.hide-desktop {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .contact-icon-widget.hide-mobile {
        display: none !important;
    }
}

/* Posicionamento desktop */
.contact-icon-widget.position-bottom-right {
    bottom: 24px;
    right: 24px;
}

.contact-icon-widget.position-bottom-left {
    bottom: 24px;
    left: 24px;
}

.contact-icon-widget.position-top-right {
    top: 24px;
    right: 24px;
}

.contact-icon-widget.position-top-left {
    top: 24px;
    left: 24px;
}

/* Botão Flutuante */
.contact-icon-button {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: contactIconPulse 2.2s infinite;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.contact-icon-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.contact-icon-button.active {
    transform: scale(1.05);
    animation: none;
}

.contact-icon-button svg {
    transition: transform 0.3s ease;
    z-index: 2;
    position: relative;
}

.contact-icon-button.active svg {
    transform: rotate(45deg);
}

.cs-custom-icon-main {
    width: 30px;
    height: 30px;
    object-fit: contain;
    z-index: 2;
}

/* Animação de Pulso */
@keyframes contactIconPulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 14px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Texto Popup Temporizado */
.contact-popup-text {
    position: absolute;
    background: rgba(18, 24, 38, 0.92);
    color: #ffffff;
    padding: 9px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-popup-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(18, 24, 38, 0.92);
}

.contact-popup-text.show {
    opacity: 1;
    transform: translateY(0);
}

.position-bottom-right .contact-popup-text,
.position-bottom-left .contact-popup-text {
    bottom: 78px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

.position-bottom-right .contact-popup-text.show,
.position-bottom-left .contact-popup-text.show {
    transform: translateX(-50%) translateY(0);
}

.position-top-right .contact-popup-text,
.position-top-left .contact-popup-text {
    top: 78px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
}

.position-top-right .contact-popup-text.show,
.position-top-left .contact-popup-text.show {
    transform: translateX(-50%) translateY(0);
}

/* Menu de Opções de Contato (Desktop) */
.contact-options {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);
    padding: 10px;
    min-width: 200px;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.contact-options.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.position-bottom-right .contact-options,
.position-bottom-left .contact-options {
    bottom: 80px;
}

.position-top-right .contact-options,
.position-top-left .contact-options {
    top: 80px;
}

.position-bottom-right .contact-options,
.position-top-right .contact-options {
    right: 0;
}

.position-bottom-left .contact-options,
.position-top-left .contact-options {
    left: 0;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.contact-option:hover {
    background: #f1f5f9;
    transform: translateX(3px);
    color: #0f172a;
}

.cs-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.phone-option .cs-option-icon svg {
    color: #0070f3;
}

.whatsapp-option .cs-option-icon svg {
    color: #25D366;
}

.cs-custom-icon-opt {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Overlay */
.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-overlay.show {
    opacity: 1;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .cs-mobile-footer-bar {
        background: rgba(18, 24, 38, 0.92);
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .contact-options {
        background: rgba(18, 24, 38, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .contact-option {
        color: #f1f5f9;
    }
    
    .contact-option:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
}


