/**
 * VTC Cookie Consent Styles - Enhanced Mobile Version
 * Place this file in your theme's assets/css directory
 * v 0023 - Mobile Optimized
 */

:root {
    --vtc-primary-color: #4285f4;
    --vtc-secondary-color: #eee;
    --vtc-text-color: #202124;
    --vtc-border-radius: 6px;
}

/* Main Cookie Banner */
.vtc-cookie-consent {
    display: none;
    position: fixed;
    max-width: 450px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: var(--vtc-border-radius);
    padding: 12px 15px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

/* Position variations */
.vtc-cookie-consent.vtc-position-bottom {
    bottom: 15px;
    right: 15px;
}

.vtc-cookie-consent.vtc-position-top {
    top: 15px;
    right: 15px;
}

.vtc-cookie-consent.vtc-position-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.vtc-cookie-consent.vtc-visible {
    display: block;
}

.vtc-cookie-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.vtc-cookie-consent-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--vtc-text-color);
}

.vtc-cookie-consent-content {
    margin-bottom: 15px;
    color: var(--vtc-text-color);
}

.vtc-cookie-consent-preferences {
    margin-bottom: 15px;
}

.vtc-cookie-category {
    margin-bottom: 8px;
    padding: 10px;
    background-color: var(--vtc-secondary-color);
    border-radius: var(--vtc-border-radius);
}

.vtc-cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.vtc-cookie-category-title {
    font-weight: 600;
    font-size: 14px;
}

.vtc-cookie-category-toggle {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

.vtc-cookie-category-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.vtc-cookie-category-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 20px;
}

.vtc-cookie-category-toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .vtc-cookie-category-toggle-slider {
    background-color: var(--vtc-primary-color);
}

input:checked + .vtc-cookie-category-toggle-slider:before {
    transform: translateX(18px);
}

.vtc-cookie-category-description {
    font-size: 12px;
    line-height: 1.3;
}

.vtc-cookie-consent-footer {
    align-items: center;
    text-align: center;
}

.vtc-cookie-consent-links {
    font-size: 11px;
    width: 100%;
    display: block;
    margin: 15px 0px; 
}

.vtc-cookie-consent-links a {
    color: var(--vtc-primary-color);
    margin-right: 8px;
    text-decoration: none;
}

.vtc-cookie-consent-links a:hover {
    text-decoration: underline;
}

.vtc-cookie-consent-buttons {
    width: 100%;
    display: block;
    margin: 12px 0px;
}

.vtc-cookie-consent-btn {
    padding: 6px 12px;
    border-radius: var(--vtc-border-radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.vtc-cookie-consent-btn-secondary {
    background-color: var(--vtc-secondary-color);
    color: var(--vtc-text-color);
}

.vtc-cookie-consent-btn-secondary:hover {
    background-color: #e8eaed;
}

.vtc-cookie-consent-btn-primary {
    background-color: var(--vtc-primary-color);
    color: white;
}

.vtc-cookie-consent-btn-primary:hover {
    background-color: #3367d6;
}

/* Cookie Settings Button */
.vtc-cookie-settings-btn {
    display: none;
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--vtc-primary-color);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    z-index: 999990;
    transition: transform 0.3s, background-color 0.3s;
}

.vtc-cookie-settings-btn:hover {
    background-color: #3367d6;
    transform: scale(1.05);
}

.vtc-cookie-settings-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.vtc-cookie-settings-btn.vtc-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulse animation for first-time visitors */
.vtc-cookie-settings-btn.vtc-pulse {
    animation: vtc-pulse 2s infinite;
}

@keyframes vtc-pulse {
    0% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(66, 133, 244, 0.7);
    }
    70% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(66, 133, 244, 0);
    }
    100% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(66, 133, 244, 0);
    }
}

/* Add overlay when using center position */
.vtc-cookie-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999998;
}

.vtc-cookie-overlay.vtc-visible {
    display: block;
}
.vtc-mobile-quick-actions {
    display: none;
}
button.vtc-mobile-expand-btn {
    display: none;
}
button.vtc-mobile-close-btn {
    display: none;
}
/* Mobile-specific styles for compact/expandable functionality */
@media (max-width: 780px) {
    button.vtc-mobile-expand-btn {
        display: block;
    }
    .vtc-cookie-consent {
        width: 100% !important;
        left: 0 !important;
        right: auto;
        bottom: 80px;
        width: 100%;
        bottom: 2vh;
        height: auto;
        top: unset !important;
        transform: translate(0%, 0%) !important;
    }
    
    .vtc-cookie-consent.vtc-position-bottom,
    .vtc-cookie-consent.vtc-position-top {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .vtc-cookie-consent.vtc-position-top {
        bottom: auto;
        top: 20px;
    }
    
    /* Mobile compact state (default) */
    .vtc-cookie-consent.compact .vtc-cookie-consent-preferences,
    .vtc-cookie-consent.compact .vtc-cookie-consent-footer {
        display: none;
    }
    
    .vtc-cookie-consent.compact .vtc-cookie-consent-content {
        margin-bottom: 12px;
        text-align: center;
    }
      
    .vtc-cookie-consent.compact .vtc-cookie-consent-title {
        text-align: center;
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    /* Mobile expand button */
    .vtc-mobile-expand-btn {
        display: block;
         
    }
    
    .vtc-mobile-expand-btn:hover {
        background-color: #e8eaed;
    }
    
    .vtc-cookie-consent:not(.compact) .vtc-mobile-expand-btn {
        display: none;
    }
    
    /* Mobile quick actions (compact mode) */
    .vtc-mobile-quick-actions {
        display: flex;
        gap: 8px;
        justify-content: center;
    }
    
    .vtc-cookie-consent:not(.compact) .vtc-mobile-quick-actions {
        display: none;
    }
    
    .vtc-mobile-quick-btn {
        flex: 1;
        padding: 8px 12px;
        border: none;
        border-radius: var(--vtc-border-radius);
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.2s;
        max-width: 80px;
    }
    
    .vtc-mobile-quick-btn.accept {
        background-color: var(--vtc-primary-color);
        color: white;
    }
    
    .vtc-mobile-quick-btn.accept:hover {
        background-color: #3367d6;
    }
    
    .vtc-mobile-quick-btn.reject {
        background-color: var(--vtc-secondary-color);
        color: var(--vtc-text-color);
    }
    
    .vtc-mobile-quick-btn.reject:hover {
        background-color: #e8eaed;
    }
    
    /* Expanded mobile view */
    .vtc-cookie-consent.expanded {
        max-width: calc(100vw - 20px);
        max-height: 85vh;
        overflow-y: auto;
        left: 10px;
        right: 10px;
        transform: none;
        bottom: 10px;
    }
    
    .vtc-cookie-consent.expanded .vtc-cookie-consent-content p {
        display: block;
        text-align: left;
    }
    
    
    .vtc-cookie-consent.expanded .vtc-cookie-consent-title {
        text-align: left;
        font-size: 16px;
    }
    
    /* Mobile close button for expanded view */
    .vtc-mobile-close-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        background: var(--vtc-secondary-color);
        border: 1px solid #dadce0;
        color: var(--vtc-text-color);
        width: 24px;
        height: 24px;
        border-radius: 50%;
        font-size: 14px;
        cursor: pointer;
        display: none;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .vtc-mobile-close-btn:hover {
        background-color: #e8eaed;
    }
    
    .vtc-cookie-consent.expanded .vtc-mobile-close-btn {
        display: flex;
    }
    
    /* Adjust buttons layout in expanded view */
    .vtc-cookie-consent.expanded .vtc-cookie-consent-buttons {
        display: flex;
        gap: 8px;
        margin-top: 15px;
    }
    
    .vtc-cookie-consent.expanded .vtc-cookie-consent-btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Settings button positioning */
    .vtc-cookie-settings-btn {
        bottom: 10px;
        width: 45px;
        height: 45px;
    }
    
    .vtc-cookie-settings-btn svg {
        width: 20px;
        height: 20px;
    }
}

button.vtc-mobile-expand-btn {
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    background: #333;
    color: #fff;
    flex: 1;
    padding: 8px 7px;
    border: none;
    border-radius: var(--vtc-border-radius);
    cursor: pointer;
    transition: background-color 0.2s;
    max-width: 90px;
    font-size: 12px;
    font-weight: 500;
}

 
/* Accessibility improvements */
.vtc-cookie-consent-btn:focus,
.vtc-cookie-settings-btn:focus,
.vtc-mobile-expand-btn:focus,
.vtc-mobile-quick-btn:focus,
.vtc-mobile-close-btn:focus {
    outline: 2px solid var(--vtc-primary-color);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .vtc-cookie-consent,
    .vtc-cookie-settings-btn,
    .vtc-cookie-category-toggle-slider,
    .vtc-cookie-category-toggle-slider:before {
        transition: none;
    }
    
    .vtc-cookie-settings-btn.vtc-pulse {
        animation: none;
    }
}
.grecaptcha-badge {
    display: none !important;
}