/* 
 * HT Cookie Consent Styles
 * Version: 3.0.0
 */

/* HelloTaxi Blue Theme Overrides */
.cc-banner.cc-theme-classic {
    border-radius: 10px !important;
    margin: 15px !important;
    max-width: 400px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.cc-btn {
    border-radius: 6px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.cc-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.cc-deny {
    background-color: #6b7280 !important;
}

.cc-deny:hover {
    background-color: #4b5563 !important;
}

.cc-revoke {
    border-radius: 8px 8px 0 0 !important;
    padding: 12px 20px !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cc-banner {
        max-width: calc(100% - 20px) !important;
        margin: 10px !important;
        left: 10px !important;
        right: 10px !important;
    }
    
    .cc-compliance {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .cc-btn {
        width: 100% !important;
        text-align: center !important;
    }
}

/* Dark theme specific */
.cc-theme-classic.cc-color-override-1805635039 {
    background: #1e3a8a !important;
}

.cc-theme-classic.cc-color-override-1805635039 .cc-btn {
    background: #3b82f6 !important;
}

/* Floating edgeless style */
.cc-floating.cc-theme-classic {
    border-radius: 8px !important;
}

/* Animation for banner entrance */
@keyframes ht-cookie-slide-up {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cc-banner {
    animation: ht-cookie-slide-up 0.5s ease-out !important;
}

/* ============================================
   COOKIE ICON STYLES - 90% TRANSPARENT
   ============================================ */

/* Custom Cookie Icon Button - 90% transparent */
.cc-cookie-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 40px !important;
    height: 40px !important;
    position: fixed !important;
    z-index: 9998 !important;
    opacity: 0.1 !important; /* 90% transparent */
    transition: all 0.3s ease !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    bottom: 20px !important;
    left: 20px !important;
    cursor: pointer !important;
    backdrop-filter: blur(2px) !important; /* Adds a nice blur effect */
}

/* Hover effect - becomes more visible on hover */
.cc-cookie-icon:hover {
    opacity: 0.8 !important; /* Only 20% transparent on hover */
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    background: rgba(255, 255, 255, 0.8) !important;
}

.cc-cookie-icon img {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    opacity: 0.5 !important; /* Make image 50% transparent */
    transition: opacity 0.3s ease !important;
}

/* Image becomes fully visible on hover */
.cc-cookie-icon:hover img {
    opacity: 1 !important;
}

/* Ensure the cookie icon doesn't block content on mobile */
@media (max-width: 768px) {
    .cc-cookie-icon {
        bottom: 70px !important; /* Move above mobile browser UI */
        left: 15px !important;
        width: 44px !important;
        height: 44px !important;
        opacity: 0.05 !important; /* Even more transparent on mobile */
    }
    
    .cc-cookie-icon img {
        width: 26px !important;
        height: 26px !important;
        opacity: 0.4 !important;
    }
    
    .cc-cookie-icon:hover {
        opacity: 0.7 !important;
    }
    
    /* If banner is at bottom, adjust icon position */
    .cc-banner.cc-bottom {
        margin-bottom: 60px !important; /* Make room for the icon */
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .cc-cookie-icon {
        bottom: 80px !important;
        left: 10px !important;
    }
}

/* Adjust position when banner is visible */
.cc-window.cc-banner ~ .cc-cookie-icon {
    bottom: 100px !important; /* Move above the banner */
}

@media (max-width: 768px) {
    .cc-window.cc-banner ~ .cc-cookie-icon {
        bottom: 130px !important;
        opacity: 0.08 !important; /* Slightly more visible when banner is up */
    }
}

/* Safe area for mobile notches */
@supports (padding: max(0px)) {
    .cc-cookie-icon {
        left: max(20px, env(safe-area-inset-left)) !important;
        bottom: max(20px, env(safe-area-inset-bottom)) !important;
    }
    
    @media (max-width: 768px) {
        .cc-cookie-icon {
            left: max(15px, env(safe-area-inset-left)) !important;
            bottom: max(70px, calc(env(safe-area-inset-bottom) + 60px)) !important;
        }
    }
}

/* Remove any default revoke button text */
.cc-revoke {
    font-size: 0 !important;
}

/* Animation for the cookie icon - subtle bounce on hover */
@keyframes cookie-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.cc-cookie-icon:hover img {
    animation: cookie-bounce 0.6s ease infinite;
}

/* Position adjustments for different banner positions */
.cc-window.cc-banner.cc-bottom-left ~ .cc-cookie-icon {
    left: calc(400px + 30px) !important; /* Move right if banner is bottom-left */
}

.cc-window.cc-banner.cc-bottom-right ~ .cc-cookie-icon {
    left: 20px !important; /* Keep left if banner is bottom-right */
}

.cc-window.cc-banner.cc-top ~ .cc-cookie-icon {
    bottom: 20px !important; /* Normal position for top banner */
}

/* Ensure banner content is not blocked on mobile */
@media (max-width: 768px) {
    .cc-window.cc-banner {
        max-height: calc(100vh - 150px) !important;
        overflow-y: auto !important;
    }
}

/* Make sure cookie icon doesn't interfere with mobile menus */
@media (max-width: 768px) {
    .cc-cookie-icon {
        z-index: 9997 !important; /* Below mobile menus */
    }
    
    .admin-bar .cc-cookie-icon {
        top: 70px !important;
    }
}