/** * Cookie Consent Banner Styles * Responsive, accessible, and GDPR-compliant */ /* Cookie Banner - Bottom fixed position */ #cookie-consent-banner { position: fixed; bottom: 0; left: 0; right: 0; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #ffffff; padding: 1.5rem; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3); z-index: 9999; display: none; animation: slideUp 0.4s ease-out; border-top: 3px solid #0f3460; } @keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .cookie-banner-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; } .cookie-banner-content { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; } .cookie-banner-icon { font-size: 2.5rem; flex-shrink: 0; } .cookie-banner-text { flex: 1; min-width: 250px; } .cookie-banner-text h3 { margin: 0 0 0.5rem 0; font-size: 1.25rem; font-weight: 600; color: #ffffff; } .cookie-banner-text p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: #e0e0e0; } .cookie-banner-text a { color: #4fa3ff; text-decoration: underline; transition: color 0.2s ease; } .cookie-banner-text a:hover, .cookie-banner-text a:focus { color: #80c1ff; } .cookie-banner-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; } /* Button Styles */ .cookie-btn { padding: 0.75rem 1.5rem; border: none; border-radius: 6px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-family: inherit; } .cookie-btn:focus { outline: 3px solid #4fa3ff; outline-offset: 2px; } .cookie-btn-primary { background: linear-gradient(135deg, #4fa3ff 0%, #2979ff 100%); color: #ffffff; } .cookie-btn-primary:hover { background: linear-gradient(135deg, #2979ff 0%, #1565c0 100%); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79, 163, 255, 0.4); } .cookie-btn-secondary { background: transparent; color: #ffffff; border: 2px solid #4fa3ff; } .cookie-btn-secondary:hover { background: rgba(79, 163, 255, 0.1); border-color: #80c1ff; } .cookie-btn-text { background: transparent; color: #b0b0b0; padding: 0.75rem 1rem; text-decoration: underline; } .cookie-btn-text:hover { color: #ffffff; } /* Preferences Modal */ #cookie-preferences-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); z-index: 10000; display: none; align-items: center; justify-content: center; padding: 1rem; animation: fadeIn 0.3s ease-out; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .cookie-modal-content { background: #ffffff; border-radius: 12px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); animation: slideDown 0.3s ease-out; } @keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .cookie-modal-header { padding: 1.5rem; border-bottom: 2px solid #e0e0e0; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #ffffff; border-radius: 12px 12px 0 0; } .cookie-modal-header h2 { margin: 0; font-size: 1.5rem; font-weight: 600; } .cookie-modal-close { background: transparent; border: none; font-size: 1.75rem; cursor: pointer; color: #ffffff; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s ease; padding: 0; min-width: auto; } .cookie-modal-close:hover { background: rgba(255, 255, 255, 0.1); } .cookie-modal-close:focus { outline: 3px solid #4fa3ff; } #cookie-cancel-preferences { color: #1a1a2e; background: transparent; border: 2px solid #4fa3ff; } #cookie-cancel-preferences:hover { background: rgba(79, 163, 255, 0.1); border-color: #80c1ff; color: #1a1a2e; } .cookie-modal-body { padding: 1.5rem; color: #333333; } .cookie-modal-body p { margin: 0 0 1.5rem 0; line-height: 1.6; color: #555555; } .cookie-category { margin-bottom: 1.5rem; padding: 1rem; border: 2px solid #e0e0e0; border-radius: 8px; transition: border-color 0.2s ease; } .cookie-category:hover { border-color: #4fa3ff; } .cookie-category-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; } .cookie-category-title { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1.1rem; color: #1a1a2e; } .cookie-category-badge { font-size: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 4px; background: #e0e0e0; color: #555555; } .cookie-category-badge.required { background: #4fa3ff; color: #ffffff; } .cookie-toggle { position: relative; display: inline-block; width: 52px; height: 28px; } .cookie-toggle input { opacity: 0; width: 0; height: 0; } .cookie-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: 0.3s; border-radius: 28px; } .cookie-toggle-slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: 0.3s; border-radius: 50%; } .cookie-toggle input:checked + .cookie-toggle-slider { background-color: #4fa3ff; } .cookie-toggle input:checked + .cookie-toggle-slider:before { transform: translateX(24px); } .cookie-toggle input:disabled + .cookie-toggle-slider { opacity: 0.5; cursor: not-allowed; } .cookie-toggle input:focus + .cookie-toggle-slider { box-shadow: 0 0 0 3px rgba(79, 163, 255, 0.3); } .cookie-category-description { font-size: 0.9rem; color: #666666; line-height: 1.5; margin: 0; } .cookie-modal-footer { padding: 1.5rem; border-top: 2px solid #e0e0e0; display: flex; gap: 0.75rem; justify-content: flex-end; flex-wrap: wrap; background: #f9f9f9; border-radius: 0 0 12px 12px; } /* Sticky Cookie Settings Button */ .cookie-settings-floating-btn { position: fixed; bottom: 20px; right: 20px; z-index: 9998; display: none; /* Hidden by default, shown by JS after consent */ align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; background: #ffffff; border: 2px solid #e0e0e0; border-radius: 50%; font-size: 28px; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transition: all 0.3s ease; font-family: inherit; line-height: 1; } .cookie-settings-floating-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); border-color: #4fa3ff; } .cookie-settings-floating-btn:focus { outline: 3px solid #4fa3ff; outline-offset: 2px; } .cookie-settings-floating-btn:active { transform: translateY(-1px) scale(1.02); } /* Responsive Design */ @media (max-width: 768px) { #cookie-consent-banner { padding: 1rem; } .cookie-banner-content { flex-direction: column; gap: 1rem; } .cookie-banner-actions { width: 100%; flex-direction: column; } .cookie-btn { width: 100%; text-align: center; } .cookie-modal-content { margin: 1rem; } .cookie-modal-header h2 { font-size: 1.25rem; } .cookie-modal-footer { flex-direction: column; } .cookie-modal-footer .cookie-btn { width: 100%; } /* Mobile-friendly floating button */ .cookie-settings-floating-btn { bottom: 15px; right: 15px; width: 50px; height: 50px; font-size: 24px; } } /* Print styles - hide banner */ @media print { #cookie-consent-banner, #cookie-preferences-modal, .cookie-settings-floating-btn { display: none !important; } } /* High contrast mode support */ @media (prefers-contrast: high) { #cookie-consent-banner { border: 3px solid #ffffff; } .cookie-btn-primary { border: 2px solid #ffffff; } } /* Reduced motion support */ @media (prefers-reduced-motion: reduce) { #cookie-consent-banner, #cookie-preferences-modal, .cookie-modal-content { animation: none; } .cookie-btn { transition: none; } }