|
| 1 | +/* Cookie Consent Banner Styles */ |
| 2 | +.cookie-consent-banner { |
| 3 | + position: fixed; |
| 4 | + bottom: 0; |
| 5 | + left: 0; |
| 6 | + right: 0; |
| 7 | + z-index: 10000; |
| 8 | + padding: 1rem; |
| 9 | + background-color: var(--bg-primary, #ffffff); |
| 10 | + border-top: 2px solid var(--border-color, #e0e0e0); |
| 11 | + box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); |
| 12 | + transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; |
| 13 | +} |
| 14 | + |
| 15 | +.cookie-consent-banner.hidden { |
| 16 | + transform: translateY(100%); |
| 17 | + opacity: 0; |
| 18 | + pointer-events: none; |
| 19 | +} |
| 20 | + |
| 21 | +.cookie-consent-content { |
| 22 | + max-width: 1200px; |
| 23 | + margin: 0 auto; |
| 24 | + display: flex; |
| 25 | + flex-wrap: wrap; |
| 26 | + align-items: center; |
| 27 | + gap: 1rem; |
| 28 | +} |
| 29 | + |
| 30 | +.cookie-consent-text { |
| 31 | + flex: 1; |
| 32 | + min-width: 250px; |
| 33 | +} |
| 34 | + |
| 35 | +.cookie-consent-title { |
| 36 | + margin: 0 0 0.5rem 0; |
| 37 | + font-size: 1.25rem; |
| 38 | + font-weight: 600; |
| 39 | + color: var(--text-primary, #000000); |
| 40 | +} |
| 41 | + |
| 42 | +.cookie-consent-message { |
| 43 | + margin: 0; |
| 44 | + font-size: 0.9rem; |
| 45 | + line-height: 1.5; |
| 46 | + color: var(--text-secondary, #666666); |
| 47 | +} |
| 48 | + |
| 49 | +.cookie-consent-link { |
| 50 | + color: var(--link-color, #0066cc); |
| 51 | + text-decoration: underline; |
| 52 | +} |
| 53 | + |
| 54 | +.cookie-consent-link:hover, |
| 55 | +.cookie-consent-link:focus { |
| 56 | + color: var(--link-hover-color, #0052a3); |
| 57 | + outline: 2px solid var(--link-color, #0066cc); |
| 58 | + outline-offset: 2px; |
| 59 | +} |
| 60 | + |
| 61 | +.cookie-consent-buttons { |
| 62 | + display: flex; |
| 63 | + gap: 0.75rem; |
| 64 | + flex-shrink: 0; |
| 65 | +} |
| 66 | + |
| 67 | +.cookie-consent-button { |
| 68 | + padding: 0.75rem 1.5rem; |
| 69 | + font-size: 1rem; |
| 70 | + font-weight: 500; |
| 71 | + border: 2px solid transparent; |
| 72 | + border-radius: 4px; |
| 73 | + cursor: pointer; |
| 74 | + transition: all 0.2s ease; |
| 75 | + min-width: 100px; |
| 76 | +} |
| 77 | + |
| 78 | +.cookie-consent-accept { |
| 79 | + background-color: var(--primary-color, #0066cc); |
| 80 | + color: var(--text-on-primary, #ffffff); |
| 81 | + border-color: var(--primary-color, #0066cc); |
| 82 | +} |
| 83 | + |
| 84 | +.cookie-consent-accept:hover, |
| 85 | +.cookie-consent-accept:focus { |
| 86 | + background-color: var(--primary-hover-color, #0052a3); |
| 87 | + border-color: var(--primary-hover-color, #0052a3); |
| 88 | + outline: 2px solid var(--primary-color, #0066cc); |
| 89 | + outline-offset: 2px; |
| 90 | +} |
| 91 | + |
| 92 | +.cookie-consent-decline { |
| 93 | + background-color: transparent; |
| 94 | + color: var(--text-primary, #000000); |
| 95 | + border-color: var(--border-color, #666666); |
| 96 | +} |
| 97 | + |
| 98 | +.cookie-consent-decline:hover, |
| 99 | +.cookie-consent-decline:focus { |
| 100 | + background-color: var(--bg-secondary, #f5f5f5); |
| 101 | + border-color: var(--text-primary, #000000); |
| 102 | + outline: 2px solid var(--border-color, #666666); |
| 103 | + outline-offset: 2px; |
| 104 | +} |
| 105 | + |
| 106 | +/* Dark mode support */ |
| 107 | +[data-theme="dark"] .cookie-consent-banner { |
| 108 | + background-color: var(--bg-primary, #1a1a1a); |
| 109 | + border-top-color: var(--border-color, #333333); |
| 110 | +} |
| 111 | + |
| 112 | +[data-theme="dark"] .cookie-consent-title { |
| 113 | + color: var(--text-primary, #ffffff); |
| 114 | +} |
| 115 | + |
| 116 | +[data-theme="dark"] .cookie-consent-message { |
| 117 | + color: var(--text-secondary, #cccccc); |
| 118 | +} |
| 119 | + |
| 120 | +[data-theme="dark"] .cookie-consent-decline { |
| 121 | + color: var(--text-primary, #ffffff); |
| 122 | + border-color: var(--border-color, #666666); |
| 123 | +} |
| 124 | + |
| 125 | +[data-theme="dark"] .cookie-consent-decline:hover, |
| 126 | +[data-theme="dark"] .cookie-consent-decline:focus { |
| 127 | + background-color: var(--bg-secondary, #2a2a2a); |
| 128 | +} |
| 129 | + |
| 130 | +/* Mobile responsiveness */ |
| 131 | +@media (max-width: 768px) { |
| 132 | + .cookie-consent-content { |
| 133 | + flex-direction: column; |
| 134 | + align-items: stretch; |
| 135 | + } |
| 136 | + |
| 137 | + .cookie-consent-buttons { |
| 138 | + width: 100%; |
| 139 | + flex-direction: column; |
| 140 | + } |
| 141 | + |
| 142 | + .cookie-consent-button { |
| 143 | + width: 100%; |
| 144 | + } |
| 145 | + |
| 146 | + .cookie-consent-title { |
| 147 | + font-size: 1.1rem; |
| 148 | + } |
| 149 | + |
| 150 | + .cookie-consent-message { |
| 151 | + font-size: 0.85rem; |
| 152 | + } |
| 153 | +} |
| 154 | + |
| 155 | +/* Accessibility: Focus visible */ |
| 156 | +.cookie-consent-button:focus-visible { |
| 157 | + outline: 3px solid var(--focus-color, #0066cc); |
| 158 | + outline-offset: 2px; |
| 159 | +} |
0 commit comments