PluginProbe
CookieAdmin – Cookie Consent Banner / 1.2.6
CookieAdmin – Cookie Consent Banner v1.2.6
1.2.6 1.2.5 1.2.4 1.2.3 1.2.2 1.2.1 1.2.0 1.1.9 trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 All 26 releases
← All changes | assets/css/consent.css +423 -100 1.2.3 → 1.2.6 View file →
@@ -15,8 +15,26 @@
15 15 --cookieadmin-warning-color: #e9b306;
16 16 --cookieadmin-red-color: #dd2727;
17 17 }
18 18
19 +/* Typography baseline for the banner, modal and reconsent button. Everything inside
20 + inherits from these roots instead of the theme's body (font, fluid size, line-height,
21 + color, letter-spacing). Any explicit value here beats inheritance, whatever the theme's specificity. */
22 +.cookieadmin_law_container,
23 +.cookieadmin_cookie_modal,
24 +.cookieadmin_reconsent_wrap{
25 + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
26 + font-size: 16px;
27 + font-weight: 400;
28 + font-style: normal;
29 + line-height: 1.5;
30 + letter-spacing: normal;
31 + word-spacing: normal;
32 + text-transform: none;
33 + text-align: left;
34 + color: #1f2937;
35 +}
36 +
19 37 /* Consent page css */
20 38
21 39 .cookieadmin_cookie_modal label, .cookieadmin_cookie_modal input {
22 40 padding: 5px;
@@ -93,13 +111,16 @@
93 111 align-content: center;
94 112 display: flex;
95 113 justify-content: space-evenly;
96 114 flex-wrap: wrap;
115 + gap: 8px;
97 116 }
98 117
118 +/* Percentage widths below stay; the cap stops the box growing on very wide screens */
99 119 .cookieadmin_box{
100 120 /*position: fixed;*/
101 121 width: 25%;
122 + max-width: 440px;
102 123 box-sizing: border-box;
103 124 display: none;
104 125 }
105 126
@@ -111,28 +132,43 @@
111 132 }
112 133
113 134
114 135 .cookieadmin_consent_inside{
115 - color: black;
116 - background-color: #FFFFFF;
117 - border: 1px solid #f4f4f4;
136 + color: #1f2937;
137 + background-color: #ffffff;
138 + border: 1px solid #ffffff;
118 139 padding:15px;
119 140 border-radius: 4px;
120 141 box-shadow:1px 3px 10px rgba(0, 0, 0, 0.2);
121 142 }
122 143
123 -#cookieadmin_notice_title{
124 - font-weight: 601;
125 - margin: 0px;
126 - padding-left: 5px;
144 +/* Title and notice are <p>s: scoped by ID so theme paragraph sizes/margins don't apply.
145 + No side padding, so text lines up with the buttons and links. */
146 +.cookieadmin_law_container p#cookieadmin_notice_title{
147 + margin: 0 0 6px;
148 + padding: 0;
149 + font-size: 16px;
150 + font-weight: 700;
151 + line-height: 1.4;
127 152 }
128 153
154 +.cookieadmin_law_container p#cookieadmin_notice{
155 + margin: 0;
156 + padding: 0;
157 + font-size: 14px;
158 + line-height: 22px;
159 +}
160 +
129 161 .cookieadmin_notice_con{
130 - font-size: initial;
131 - padding: 0px 6px;
162 + padding: 0;
132 163 flex: 1;
133 164 }
134 165
166 +/* Box layout: space between the notice and the buttons (footer layout uses the group's gap) */
167 +.cookieadmin_consent_inside > .cookieadmin_consent_btns{
168 + margin-top: 12px;
169 +}
170 +
135 171 .cookieadmin_cookie_modal{
136 172 display: none;
137 173 flex-direction: column;
138 174 position: fixed;
@@ -180,48 +216,102 @@
180 216 top: 0;
181 217 left: 0;
182 218 width: 100%;
183 219 height: 100%;
184 - background-color: rgba(0, 0, 0, 0.5);
220 + background-color: rgba(0, 0, 0, 0.4);
185 221 z-index: 1000;
186 222 }
187 223
224 +/* Centered, not baseline: the CSS-drawn close button has no text baseline */
188 225 .cookieadmin_mod_head{
189 226 display: flex;
190 227 justify-content: space-between;
228 + align-items: center;
229 + gap: 12px;
230 + padding: 14px 20px;
231 + border-bottom: 1px solid #CCCCCC;
191 232 }
192 233
193 -.cookieadmin_mod_head, .cookieadmin_wrapper{
194 - padding: 15px;
195 - border-bottom: 1px solid #CCCCCC;
234 +/* Close icon drawn in CSS, font-size 0 hides any glyph left in filtered templates.
235 + "all: unset" + (0,3,1) selector keeps theme button/hover styles out, same as the category buttons. */
236 +.cookieadmin_cookie_modal .cookieadmin_mod_head button.cookieadmin_close_pref{
237 + all: unset;
238 + display: inline-block;
239 + position: relative;
240 + flex-shrink: 0;
241 + width: 32px;
242 + height: 32px;
243 + border-radius: 4px;
244 + color: #6b7280;
245 + font-size: 0;
246 + cursor: pointer;
247 + transition: color .15s, background-color .15s;
196 248 }
197 249
198 -.cookieadmin_close_pref{
199 - background: none;
200 - border: none;
201 - align-self: baseline;
202 - color: gray;
203 - cursor: pointer;
204 - padding: 0px;
250 +.cookieadmin_cookie_modal .cookieadmin_mod_head button.cookieadmin_close_pref::before,
251 +.cookieadmin_cookie_modal .cookieadmin_mod_head button.cookieadmin_close_pref::after{
252 + content: "";
253 + position: absolute;
254 + top: 50%;
255 + left: 50%;
256 + width: 16px;
257 + height: 2px;
258 + background-color: currentColor;
259 + border-radius: 1px;
260 + transform: translate(-50%, -50%) rotate(45deg);
205 261 }
206 262
263 +.cookieadmin_cookie_modal .cookieadmin_mod_head button.cookieadmin_close_pref::after{
264 + transform: translate(-50%, -50%) rotate(-45deg);
265 +}
266 +
267 +.cookieadmin_cookie_modal .cookieadmin_mod_head button.cookieadmin_close_pref:hover{
268 + color: #111827;
269 + background-color: rgba(0, 0, 0, 0.06);
270 +}
271 +
272 +.cookieadmin_cookie_modal .cookieadmin_mod_head button.cookieadmin_close_pref:focus-visible{
273 + outline: 2px solid var(--cookieadmin-secondary-color);
274 + outline-offset: 2px;
275 +}
276 +
207 277 .cookieadmin_preference_title{
278 + margin: 0;
208 279 font-size: 20px;
209 - font-weight: 801;
210 - margin: 9px;
280 + font-weight: 700;
281 + line-height: 1.3;
211 282 }
212 283
284 +/* 5px + the wrapper's 15px lines the intro up with the title's 20px */
213 285 .cookieadmin_preference_details{
214 - padding: 0px 10px;
286 + padding: 0px 5px;
215 287 }
216 288
289 +/* break-word (not overflow:auto) so long URLs wrap instead of adding an inner scrollbar */
217 290 .cookieadmin_preference{
218 - overflow: auto;
219 - font-size: 15px;
220 - height: auto;
221 291 padding: 10px 0px;
292 + font-size: 14px;
293 + line-height: 28px;
294 + overflow-wrap: break-word;
222 295 }
223 296
297 +/* Admin-entered HTML: keep theme paragraph margins and link colors out */
298 +.cookieadmin_cookie_modal .cookieadmin_preference p{
299 + margin: 0 0 8px;
300 + padding: 0;
301 + font-size: inherit;
302 + line-height: inherit;
303 +}
304 +
305 +.cookieadmin_cookie_modal .cookieadmin_preference p:last-child{
306 + margin-bottom: 0;
307 +}
308 +
309 +.cookieadmin_cookie_modal .cookieadmin_preference a{
310 + color: inherit;
311 + text-decoration: underline;
312 +}
313 +
224 314 .cookieadmin_details_wrapper{
225 315 padding: 0px 15px;
226 316 height: calc(100% - 6%);
227 317 overflow: auto;
@@ -237,31 +327,45 @@
237 327 display: flex;
238 328 justify-content: space-between;
239 329 }
240 330
241 -.cookieadmin_header > span > label{
242 - cursor:pointer;
331 +
332 +/* Clickable header text, e.g. Pro's "Override GPC" label */
333 +.cookieadmin_header label[for]{
334 + cursor: pointer;
243 335 }
244 336
245 -.cookieadmin_remark{
337 +/* Header labels get explicit displays scoped to .cookieadmin_header so theme rules
338 + like "label { display: block }" can't push them onto their own line */
339 +.cookieadmin_header label.stitle{
340 + display: inline;
341 +}
342 +
343 +.cookieadmin_header .cookieadmin_remark{
246 344 display:none;
247 345 justify-self:right;
248 346 }
249 347
250 -.cookieadmin_act{
348 +.cookieadmin_header .cookieadmin_act{
251 349 display: inline;
252 350 color: #1863dc;
253 351 }
254 352
353 +/* Lines up with .cookieadmin_desc; the old 4rem right margin squeezed cards on phones */
255 354 .cookieadmin-modal-cookies-list{
256 355 display:none;
257 - padding:1px;
258 - border-radius: 10px;
259 - margin: 0px 20px;
260 - margin-right: 4rem;
261 - font-size: smaller;
262 - font-size: 1rem;
356 + margin: 8px 20px 4px;
357 + font-size: 14px;
358 + text-align: left;
359 +}
360 +
361 +.cookieadmin-modal-cookies-list .cookieadmin-nocookie-cat{
362 + display: block;
363 + padding: 4px 0;
364 + font-size: 13px;
365 + font-weight: 600;
263 366 text-align: center;
367 + opacity: 0.7;
264 368 }
265 369
266 370 .cookieadmin_desc{
267 371 padding:5px 20px;
@@ -275,108 +379,255 @@
275 379 flex-wrap: wrap;
276 380 width: 100%;
277 381 }
278 382
383 +/* Padding matches the header */
279 384 .cookieadmin_modal_footer{
280 - left: 0px;
281 - padding: 15px;
385 + display: flex;
386 + padding: 14px 20px;
282 387 flex-wrap: wrap;
388 + gap: 8px;
283 389 border-top: 1px solid #CCCCCC;
284 390 }
285 391
286 -button.cookieadmin_btn{
392 +/* GPC block and links take their own row above/below the buttons */
393 +.cookieadmin_modal_footer > :not(.cookieadmin_btn){
394 + flex-basis: 100%;
395 +}
396 +
397 +/* Side panel is narrow: stack everything. nowrap matters, a wrapping column
398 + overflows into extra columns beside the panel when height is limited. */
399 +.cookieadmin_side .cookieadmin_modal_footer{
400 + flex-direction: column;
401 + flex-wrap: nowrap;
402 +}
403 +
404 +.cookieadmin_cookie_modal.cookieadmin_side .cookieadmin_modal_footer > *{
405 + flex: none;
406 +}
407 +
408 +/* Scoped to the containers so common theme rules (e.g. ".elementor-kit-N button") don't win.
409 + Colors stay admin-controlled via the inline styles set in consent.js. */
410 +.cookieadmin_law_container button.cookieadmin_btn,
411 +.cookieadmin_cookie_modal button.cookieadmin_btn{
412 + display: inline-flex;
413 + align-items: center;
414 + justify-content: center;
415 + flex: 1 1 0;
416 + min-height: 40px;
417 + margin: 0;
418 + padding: 8px 16px;
287 419 background-color: transparent;
288 - border: 1px solid gray;
420 + background-image: none;
421 + border: 1px solid rgba(0, 0, 0, 0.2);
422 + border-radius: 4px;
423 + box-shadow: none;
289 424 color: #1863dc;
290 - padding: 0.4rem 0.9rem;
291 - border-radius: 4px;
292 - margin: 2px 5px;
425 + font-family: inherit;
426 + font-size: 14px;
427 + font-weight: 600;
428 + line-height: 1;
429 + letter-spacing: normal;
430 + text-align: center;
431 + text-decoration: none;
432 + text-shadow: none;
433 + text-transform: none;
434 + text-wrap: auto;
293 435 cursor: pointer;
294 - flex: auto;
295 - text-wrap: auto;
436 + transition: filter .15s;
296 437 }
297 438
298 -.cookieadmin_btn:hover{
299 - opacity: 0.8;
439 +/* Footer buttons size to their labels so "Save My Preferences" doesn't wrap;
440 + they still fill the row. The banner keeps equal widths. */
441 +.cookieadmin_modal_footer button.cookieadmin_btn{
442 + flex: 1 1 auto;
300 443 }
301 444
302 -.cookieadmin_show_pref_cookies{
445 +/* Banner box is narrow (25% of the screen at 1366px = ~338px): size buttons to their labels
446 + with tighter padding so "Accept All" stays on one line; they still fill the row. */
447 +.cookieadmin_consent_inside > .cookieadmin_consent_btns button.cookieadmin_btn{
448 + flex: 1 1 auto;
449 + padding-left: 12px;
450 + padding-right: 12px;
451 +}
452 +
453 +.cookieadmin_law_container button.cookieadmin_btn:hover,
454 +.cookieadmin_cookie_modal button.cookieadmin_btn:hover{
455 + filter: brightness(0.92);
456 +}
457 +
458 +.cookieadmin_law_container button.cookieadmin_btn:focus-visible,
459 +.cookieadmin_cookie_modal button.cookieadmin_btn:focus-visible{
460 + outline: 2px solid var(--cookieadmin-secondary-color);
461 + outline-offset: 2px;
462 +}
463 +
464 +/* Category name + chevron in one accordion button. "all: unset" drops theme button styles;
465 + the selector (0,3,1) outranks state rules like ".elementor-kit-N button:hover".
466 + Scoped to .cookieadmin_header: Pro reuses this class for a shortcode button. */
467 +.cookieadmin_types .cookieadmin_header button.cookieadmin_show_pref_cookies{
468 + all: unset;
469 + display: inline-flex;
470 + align-items: center;
471 + gap: 8px;
472 + padding: 5px 0;
473 + color: inherit;
474 + font: inherit;
475 + font-size: 15px;
476 + font-weight: 700;
477 + line-height: 1.4;
303 478 cursor: pointer;
304 - font-size: 18px;
305 - font-family: initial;
306 - background: none;
307 - border: none;
308 - padding: 0;
309 - color: inherit;
310 479 }
311 480
312 -button.cookieadmin_re_consent{
481 +.cookieadmin_types .cookieadmin_header button.cookieadmin_show_pref_cookies::before{
482 + content: "";
483 + flex-shrink: 0;
484 + width: 7px;
485 + height: 7px;
486 + border-right: 2px solid currentColor;
487 + border-bottom: 2px solid currentColor;
488 + transform: rotate(-45deg);
489 + transition: transform .2s;
490 +}
491 +
492 +.cookieadmin_types .cookieadmin_header button.cookieadmin_show_pref_cookies.dwn::before{
493 + transform: rotate(45deg);
494 +}
495 +
496 +/* all: unset removes the outline, so the focus ring is added back */
497 +.cookieadmin_types .cookieadmin_header button.cookieadmin_show_pref_cookies:focus-visible{
498 + outline: 2px solid var(--cookieadmin-secondary-color);
499 + outline-offset: 2px;
500 + border-radius: 2px;
501 +}
502 +
503 +/* Reconsent: all:unset drops theme button styles (min-height, hover/focus rules); the
504 + wrapper selector (0,2,2) outranks ".elementor-kit-N button:hover". Plain selector kept
505 + for templates filtered without the wrapper class. JS toggles display inline (none/block). */
506 +button.cookieadmin_re_consent,
507 +body .cookieadmin_reconsent_wrap button.cookieadmin_re_consent{
508 + all: unset;
313 509 display: none;
314 510 position: fixed;
315 511 bottom: 15px;
316 512 left: 15px;
513 + z-index: 99999;
514 + box-sizing: border-box;
515 + width: 50px;
516 + height: 50px;
517 + padding: 5px;
518 + border-radius: 50%;
317 519 background-color: #374FD4;
318 - height: 50px;
319 - width: 50px;
320 - border-radius: 50% !important;
520 + box-shadow: -4px 5px 10px rgba(0, 0, 0, 0.4);
321 521 cursor: pointer;
322 - border: 0px;
323 - z-index: 99999;
324 - padding: 5px !important;
325 - box-shadow: -4px 5px 10px rgba(0, 0, 0, 0.4);
326 - align-items: center;
327 - justify-content: center;
522 + transition: filter .15s;
328 523 }
329 524
525 +button.cookieadmin_re_consent:hover,
526 +body .cookieadmin_reconsent_wrap button.cookieadmin_re_consent:hover{
527 + filter: brightness(0.92);
528 +}
529 +
530 +button.cookieadmin_re_consent:focus-visible,
531 +body .cookieadmin_reconsent_wrap button.cookieadmin_re_consent:focus-visible{
532 + outline: 2px solid var(--cookieadmin-secondary-color);
533 + outline-offset: 3px;
534 +}
535 +
536 +/* Block + the button's 5px padding centres the 40px icon; theme img rules kept out */
537 +.cookieadmin_re_consent img.cookieadmin_reconsent_img{
538 + display: block;
539 + width: 40px;
540 + height: 40px;
541 + max-width: none;
542 + margin: 0;
543 + padding: 0;
544 + border: 0;
545 + border-radius: 0;
546 + box-shadow: none;
547 +}
548 +
549 +/* Flat card: theme font, 4px corners like the buttons. Muted text uses opacity so it
550 + works on any admin-chosen modal background. */
330 551 .cookieadmin-cookie-card {
331 - /* background: ghostwhite; */
332 - border: 1px solid ghostwhite;
333 - border-radius: 10px;
334 - padding: 16px;
335 - font-family: 'Open Sans', 'Segoe UI', sans-serif;
336 - box-shadow: 0 2px 6px rgba(0,0,0,0.1);
337 - margin: 10px auto;
552 + margin: 0 0 8px;
553 + padding: 12px 14px;
554 + border: 1px solid rgb(187 187 187 / 12%);
555 + border-radius: 4px;
338 556 text-align: left;
339 557 }
340 558
341 559 .cookieadmin-cookie-header {
342 560 display: flex;
561 + flex-wrap: wrap;
343 562 justify-content: space-between;
344 - font-size: 1rem;
345 - margin-bottom: 6px;
563 + gap: 2px 12px;
564 + font-size: 14px;
346 565 }
347 566
348 567 .cookieadmin-cookie-name {
349 - font-weight: bold;
350 - color: #333;
568 + font-weight: 600;
569 + word-break: break-word;
570 + overflow-wrap: anywhere;
351 571 }
352 572
353 573 .cookieadmin-cookie-duration {
354 - font-size: 0.85rem;
574 + font-size: 13px;
575 + opacity: 0.75;
355 576 }
356 577
357 578 .cookieadmin-cookie-duration > b {
358 - font-weight: bold;
579 + font-weight: 600;
359 580 }
360 581
361 -.cookieadmin-cookie-description {
362 - font-size: 0.9rem;
363 - margin-bottom: 12px;
582 +/* Scoped so theme paragraph margins/sizes don't apply */
583 +.cookieadmin-cookie-card p.cookieadmin-cookie-description {
584 + margin: 6px 0 0;
585 + padding: 0;
586 + font-size: 13px;
587 + line-height: 1.5;
364 588 }
365 589
366 590 .cookieadmin-cookie-tags {
367 - display: flex;
368 - gap: 8px;
591 + display: flex;
592 + gap: 8px;
593 + margin-top: 8px;
369 594 }
370 595
371 596 .cookieadmin-tag {
372 - background: #e0e0e0;
373 - padding: 4px 10px;
374 - border-radius: 12px;
375 - font-size: 0.75rem;
376 - color: #333;
597 + background: rgba(0, 0, 0, 0.06);
598 + padding: 2px 8px;
599 + border-radius: 4px;
600 + font-size: 12px;
377 601 }
378 602
603 +/* Pro DPDP contact box. Keyed on the ID (not a new class) so it also restyles
604 + older Pro versions that still output the shared .cookieadmin-cookie-card class. */
605 +#cookieadmin_dpdp_contact {
606 + margin: 4px 0 12px;
607 + padding: 12px 14px;
608 + background: rgba(0, 0, 0, 0.04);
609 + border: 1px solid rgba(0, 0, 0, 0.08);
610 + border-radius: 4px;
611 + box-shadow: none;
612 + font-family: inherit;
613 + font-size: 14px;
614 + line-height: 1.5;
615 + text-align: left;
616 +}
617 +
618 +#cookieadmin_dpdp_contact a {
619 + color: inherit;
620 + text-decoration: underline;
621 +}
622 +
623 +/* "Exercise your rights" link, the card's main action */
624 +#cookieadmin_dpdp_contact > a {
625 + display: inline-block;
626 + margin-top: 6px;
627 + font-weight: 600;
628 +}
629 +
379 630 /* Website consent box End*/
380 631
381 632
382 633
@@ -383,23 +634,46 @@
383 634
384 635
385 636 /* Checkbox switch Start */
386 637
387 -.cookieadmin_toggle {
638 +/* Box matches the 34x21 slider; the modal's generic label/input padding is cancelled
639 + so the switch no longer overflows its box */
640 +.cookieadmin_toggle,
641 +.cookieadmin_cookie_modal .cookieadmin_toggle {
388 642 position: relative;
389 643 display: inline-block;
390 - width: 24px;
391 - height: 11px;
644 + flex-shrink: 0;
645 + width: 34px;
646 + height: 21px;
647 + margin: 0;
648 + padding: 0;
392 649 }
393 650
394 651 /* Hide the checkbox input */
395 -.cookieadmin_toggle input{
652 +.cookieadmin_toggle input,
653 +.cookieadmin_cookie_modal .cookieadmin_toggle input{
396 654 /* display: none; */
655 + position: absolute;
397 656 opacity: 0;
398 657 width: 0;
399 658 height: 0;
659 + margin: 0;
660 + padding: 0;
400 661 }
401 662
663 +/* Text for screen readers / a11y checkers only, so toggle labels aren't empty */
664 +.cookieadmin_sr_only {
665 + position: absolute;
666 + width: 1px;
667 + height: 1px;
668 + padding: 0;
669 + margin: -1px;
670 + overflow: hidden;
671 + clip: rect(0, 0, 0, 0);
672 + white-space: nowrap;
673 + border: 0;
674 +}
675 +
402 676 /* Keyboard accessibility: When the checkbox is focused, add a visible outline to indicate focus. */
403 677 .cookieadmin_show_pref_cookies:focus-visible{
404 678 outline: 1px solid #000;
405 679 }
@@ -506,25 +780,48 @@
506 780 /* Policy Links */
507 781 .cookieadmin_policy_link_box{
508 782 display: flex;
509 783 justify-content: space-around;
784 + gap: 4px 16px;
785 + margin-top: 8px;
510 786 font-size: 13px;
511 787 flex-wrap: wrap;
512 788 }
513 789
790 +/* Same treatment as the modal links, so theme link colors don't apply */
791 +.cookieadmin_law_container .cookieadmin_policy_link_box a{
792 + color: inherit;
793 + text-decoration: underline;
794 +}
795 +
514 796 .cookieadmin_modal_policy_link_box{
515 797 display: flex;
516 - gap: 5px;
798 + gap: 4px 16px;
517 799 font-size: 13px;
518 800 flex-wrap: wrap;
519 801 }
520 802
803 +/* Same treatment as the intro and DPDP links, so theme link colors don't apply */
804 +.cookieadmin_cookie_modal .cookieadmin_modal_policy_link_box a{
805 + color: inherit;
806 + text-decoration: underline;
807 +}
808 +
809 +/* Footer gap handles spacing; the old 9px side margins pushed links out of line with the buttons */
521 810 .cookieadmin_modal_footer_links{
522 811 display:flex;
812 + flex-wrap: wrap;
813 + align-items: center;
523 814 justify-content:space-between;
524 - margin:9px 9px 0 9px;
815 + gap: 8px 16px;
816 + margin-top: 4px;
525 817 }
526 818
819 +/* Hidden when there are no policy links and "Powered by" is off (Pro) */
820 +.cookieadmin_modal_footer_links:not(:has(*)){
821 + display: none;
822 +}
823 +
527 824 /* CSS for phones only */
528 825 @media (max-width: 767px) {
529 826
530 827 .cookieadmin_center{
@@ -536,10 +833,14 @@
536 833 .cookieadmin_show_pref_cookies{
537 834 font-size: 14px;
538 835 }
539 836
540 - .cookieadmin_law_container, .cookieadmin_box{
541 - width: 90%;
837 + /* Even 16px on both sides; the footer bar keeps its 100% width */
838 + .cookieadmin_box{
839 + left: 16px;
840 + right: 16px;
841 + width: auto;
842 + max-width: none;
542 843 }
543 844
544 845 .cookieadmin_side{
545 846 width: 100%;
@@ -584,16 +885,38 @@
584 885
585 886 .cookieadmin_consent_btns {
586 887 flex-shrink: 0;
587 888 }
889 +
890 + /* Footer layout: the button group sizes to its content, so equal-width (flex-basis 0)
891 + buttons would shrink and wrap their labels. Size them to their labels instead. */
892 + .cookieadmin_footer .cookieadmin_consent_btns button.cookieadmin_btn{
893 + flex: 0 0 auto;
894 + }
588 895 }
589 896
590 897 @media (max-width:480px){
591 - .cookieadmin_consent_inside .cookieadmin_btn {
592 - width: 100%;
593 - margin: 5px 0;
898 + .cookieadmin_preference_title{
899 + font-size: 18px;
594 900 }
595 901
902 + /* 28px leaves no room for the categories on phones */
903 + .cookieadmin_preference{
904 + line-height: 22px;
905 + }
906 +
907 + .cookieadmin_law_container button.cookieadmin_btn,
908 + .cookieadmin_cookie_modal button.cookieadmin_btn,
909 + .cookieadmin_consent_inside > .cookieadmin_consent_btns button.cookieadmin_btn{
910 + flex-basis: 100%;
911 + }
912 +
596 913 .cookieadmin_modal_footer{
597 - padding: 8px;
914 + padding: 12px 16px;
598 915 }
599 -}
916 +}
917 +
918 +@media (prefers-reduced-motion: reduce){
919 + .cookieadmin_law_container *, .cookieadmin_cookie_modal *{
920 + transition: none !important;
921 + }
922 +}