.cookie-consent,
.cookie-consent * {
box-sizing: border-box;
}
.cookie-consent {
position: fixed;
bottom: 20px;
width: 100%;
max-width: 840px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
z-index: 1000;
padding: 20px;
border-radius: 8px;
}
.cookie-consent[data-position="center"] {
left: 50%;
transform: translateX(-50%);
}
.cookie-consent[data-position="left"] {
left: 20px;
}
.cookie-consent[data-position="right"] {
right: 20px;
}
.cookie-consent.theme-light {
background: #ffffff;
color: #000000;
border: 2px solid #f4a261;
--checkbox-color: #0073aa;
--checkbox-border: #999999;
}
.cookie-consent.theme-light h2,
.cookie-consent.theme-light p {
color: #000000;
}
.cookie-consent.theme-light button#reject-all,
.cookie-consent.theme-light button#customize,
.cookie-consent.theme-light button#accept-all {
background: #666666;
color: #ffffff;
}
.cookie-consent.theme-light button#save-selection {
background: #0073aa;
color: #ffffff;
}
.cookie-consent.theme-light .cookie-expanded-header a {
color: #0073aa;
}
.cookie-consent.theme-dark {
background: #1a202c;
color: #e2e8f0;
border: none;
--checkbox-color: #3182ce;
--checkbox-border: #4a5568;
}
.cookie-consent.theme-dark h2,
.cookie-consent.theme-dark p {
color: #e2e8f0;
}
.cookie-consent.theme-dark button#reject-all,
.cookie-consent.theme-dark button#customize,
.cookie-consent.theme-dark button#accept-all {
background: #4a5568;
color: #ffffff;
}
.cookie-consent.theme-dark button#save-selection {
background: #3182ce;
color: #ffffff;
}
.cookie-consent.theme-dark .cookie-expanded-header a {
color: #63b3ed;
}
.cookie-consent.theme-minimal {
background: #f7fafc;
color: #2d3748;
border: 2px solid #cbd5e0;
--checkbox-color: #4a5568;
--checkbox-border: #a0aec0;
}
.cookie-consent.theme-minimal h2,
.cookie-consent.theme-minimal p {
color: #2d3748;
}
.cookie-consent.theme-minimal button#reject-all,
.cookie-consent.theme-minimal button#customize,
.cookie-consent.theme-minimal button#accept-all {
background: #e2e8f0;
color: #2d3748;
}
.cookie-consent.theme-minimal button#save-selection {
background: #4a5568;
color: #ffffff;
}
.cookie-consent.theme-minimal .cookie-expanded-header a {
color: #4a5568;
}
.cookie-consent.theme-custom {
background: var(--banner-bg);
color: var(--text-color);
border: 2px solid var(--border-color);
--checkbox-color: var(--accept-bg);
--checkbox-border: var(--reject-bg);
}
.cookie-consent.theme-custom h2,
.cookie-consent.theme-custom p {
color: var(--text-color);
}
.cookie-consent.theme-custom button#accept-all {
background: var(--accept-bg);
color: var(--button-text-color);
}
.cookie-consent.theme-custom button#reject-all,
.cookie-consent.theme-custom button#customize {
background: var(--reject-bg);
color: var(--button-text-color);
}
.cookie-consent.theme-custom button#save-selection {
background: var(--save-bg);
color: var(--button-text-color);
}
.cookie-consent.theme-custom .cookie-expanded-header a {
color: var(--accept-bg);
}
.cookie-consent h2 {
margin-top: 0;
font-size: 1rem;
font-weight: bold;
}
.cookie-consent p {
font-size: 0.8rem;
margin-bottom: 1rem;
}
.cookie-initial-buttons,
.cookie-options {
margin-top: 1rem;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.cookie-expanded-header {
display: flex;
justify-content: space-between;
margin-bottom: 1rem;
}
.cookie-expanded-header a {
text-decoration: underline;
font-size: 0.9rem;
}
.cookie-options label {
display: flex;
align-items: center;
font-size: 0.9rem;
}
.cookie-options input[type="checkbox"] {
appearance: none;
-webkit-appearance: none;
width: 18px;
height: 18px;
min-width: 18px;
border: 2px solid var(--checkbox-border, currentColor);
border-radius: 3px;
margin-right: 0.5rem;
cursor: pointer;
position: relative;
transition: background-color 0.2s, border-color 0.2s;
background: transparent;
}
.cookie-options input[type="checkbox"]:checked {
border-color: var(--checkbox-color);
background: var(--checkbox-color);
}
.cookie-options input[type="checkbox"]:checked::after {
content: '';
position: absolute;
left: 4px;
top: 1px;
width: 5px;
height: 9px;
border: solid #fff;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
.cookie-options input[type="checkbox"]:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.cookie-consent button {
padding: 0.5rem 1rem;
border: none;
border-radius: 0.25rem;
cursor: pointer;
font-size: 0.9rem;
transition: background-color 0.2s;
}
.cookie-consent button:hover {
opacity: 0.9;
}
#save-selection {
margin-top: 16px;
}
.cookie-consent.fade-out {
opacity: 0;
transition: opacity 0.4s ease;
pointer-events: none;
}
@media (max-width: 600px) {
.cookie-consent {
bottom: 5px;
width: calc(100% - 10px);
border-radius: 0;
}
.cookie-consent button {
width: 100%;
margin-bottom: 0rem;
height: auto;
padding: 5px 14px;
font-size: 14px;
}
.cookie-consent p {
font-size: 11px;
margin-bottom: -6px;
}
}