/* ============================================
   SORIMO - Global Widgets Styles
   ============================================ */

/* === WhatsApp Floating Button === */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float__pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: whatsappPulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* WhatsApp Tooltip */
.whatsapp-float__tooltip {
    position: absolute;
    right: 70px;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    white-space: nowrap;
    font-size: 0.875rem;
    color: var(--gray-700);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.whatsapp-float__tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: white;
}

.whatsapp-float:hover .whatsapp-float__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* === Cookie Banner === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 1.25rem 2rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner__content {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner__text {
    flex: 1;
}

.cookie-banner__text p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-banner__text a {
    color: var(--accent-light);
    text-decoration: underline;
}

.cookie-banner__buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-banner__btn--accept {
    background: var(--accent);
    color: white;
}

.cookie-banner__btn--accept:hover {
    background: var(--accent-dark);
}

.cookie-banner__btn--settings {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.3);
}

.cookie-banner__btn--settings:hover {
    border-color: white;
    color: white;
}

/* === Phone Sticky CTA (Mobile) === */
.phone-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent);
    padding: 1rem;
    z-index: 997;
    display: none;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.phone-sticky.visible {
    transform: translateY(0);
}

.phone-sticky__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.phone-sticky__content i {
    font-size: 1.25rem;
}

/* === Trust Badges === */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--gray-100);
    margin-top: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.trust-badge i {
    font-size: 1.5rem;
    color: var(--accent);
}

/* === Quick Contact Bar === */
.quick-contact {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 996;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quick-contact__item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.quick-contact__item--phone {
    background: var(--accent);
    border-radius: 8px 0 0 0;
}

.quick-contact__item--email {
    background: var(--primary);
}

.quick-contact__item--whatsapp {
    background: #25D366;
    border-radius: 0 0 0 8px;
}

.quick-contact__item:hover {
    width: 60px;
}

.quick-contact__item span {
    position: absolute;
    right: 60px;
    background: inherit;
    padding: 0.5rem 1rem;
    border-radius: 6px 0 0 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.quick-contact__item:hover span {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* === Loading Spinner === */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Notification Toast === */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast--success {
    background: #27ae60;
}

.toast--error {
    background: #e74c3c;
}

/* === Responsive === */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float__tooltip {
        display: none;
    }
    
    .phone-sticky {
        display: block;
    }
    
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner__buttons {
        width: 100%;
        justify-content: center;
    }
    
    .quick-contact {
        display: none;
    }
    
    .trust-badges {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner__text p {
        font-size: 0.8125rem;
    }
    
    .cookie-banner__buttons {
        flex-direction: column;
    }
    
    .cookie-banner__btn {
        width: 100%;
    }
}
