:root {
    --cookie-primary: #3afb30;
    --cookie-dark: #1f1f1f;
    --cookie-light: #ffffff;
    --cookie-shadow: rgba(0, 0, 0, 0.25);
}

[hidden] {
  display:none!important
}

.cookie-consent-banner {
    position: fixed;
    left: 1.5rem;
    /*! right: 1.5rem; */
    bottom: 1.5rem;
    z-index: 10000;
    background: var(--cookie-light);
    color: var(--cookie-dark);
    /*border-radius: 5px;*/
    box-shadow: 0 20px 35px -25px var(--cookie-shadow);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-consent-banner.is-hidden {
    transform: translateY(30px);
    opacity: 0;
    pointer-events: none;
}

.cookie-consent-banner__body {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-consent-banner__icon {
    font-size: 1rem;
    line-height: 1.2;
}

.cookie-consent-banner__content h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.cookie-consent-banner__content p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent-banner__content a {
    color: var(--cookie-primary);
}

.cookie-consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-btn {
    background: var(--cookie-primary);
    border: none;
    color: var(--cookie-dark);
    padding: .8rem 1.5rem;
    font-size: .8em;
    cursor: pointer;
    border: 1px solid var(--cookie-primary);
    transition: background 0.2s ease, transform 0.2s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.cookie-btn:hover,
.cookie-btn:focus {
    background: #ffffff;
    border: 1px solid var(--cookie-primary);
}

.cookie-btn--ghost {
    background: transparent;
    border: 1px solid var(--cookie-primary);
    color: var(--cookie-dark);
}

.cookie-btn--ghost:hover,
.cookie-btn--ghost:focus {
    background: var(--cookie-primary);
    color: var(--cookie-dark);
}

.cookie-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
}

.cookie-consent-modal.is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.cookie-consent-modal__dialog {
    position: relative;
    max-width: 720px;
    min-width: 0;
    background: var(--cookie-light);
    color: var(--cookie-dark);
    border-radius: 16px;
    box-shadow: 0 25px 60px -20px var(--cookie-shadow);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.cookie-consent-modal__header,
.cookie-consent-modal__footer {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    background: var(--cookie-light);
}

.cookie-consent-modal__footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.cookie-consent-modal__content {
    padding: 1.25rem 1.75rem;
    overflow-y: auto;
}

.cookie-consent-modal__header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.cookie-consent-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--cookie-dark);
}

.cookie-preference {
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1rem;
    background: #fafafa;
}

.cookie-preference header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-preference p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.cookie-preference__details {
    margin-top: 0.75rem;
}

.cookie-preference__details[hidden] {
    display: none;
}

.cookie-preference__details-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--cookie-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cookie-preference__details-toggle:hover,
.cookie-preference__details-toggle:focus {
    color: var(--cookie-primary);
}

.cookie-preference__toggle-icon {
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.cookie-preference.is-open .cookie-preference__toggle-icon {
    transform: rotate(-135deg);
    margin-top: 1px;
}

.cookie-preference.is-open .cookie-preference__details-toggle {
    color: var(--cookie-primary);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    overflow: auto;
}

.cookie-table th,
.cookie-table td {
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.cookie-table th {
    background: rgba(42, 110, 187, 0.1);
    font-weight: 600;
}

.cookie-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.cookie-toggle input {
    appearance: none;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-toggle input:checked {
    background: var(--cookie-primary);
}

.cookie-toggle input:disabled {
    background: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
}

.cookie-toggle input::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--cookie-light);
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cookie-toggle input:checked::after {
    transform: translateX(18px);
}

.cookie-toggle input:disabled::after {
    background: rgba(255, 255, 255, 0.7);
}

.cookie-toggle__indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-toggle input:checked + .cookie-toggle__indicator {
    background: #2ecc71;
    border-color: #2ecc71;
}

.cookie-toggle input:disabled + .cookie-toggle__indicator {
    background: rgb(46, 204, 113);
    border-color: rgb(46, 204, 113);
}

.cookie-toggle__label {
    font-weight: 600;
}

.cookie-consent-manage {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--cookie-primary);
    border: 1px solid var(--cookie-primary);
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    z-index: 9999;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px -20px var(--cookie-shadow);
    transition: background 0.2s ease, color 0.2s ease;
}

.cookie-consent-manage:hover,
.cookie-consent-manage:focus {
    background: var(--cookie-primary);
    color: var(--cookie-light);
}

.cookie-consent--modal-open {
    overflow: hidden;
}

.cookie-consent-modal__content {
  overflow-y: auto;
  overflow-x: hidden; 
}

.cookie-consent-block {
  background-color: #f7f8f9;
  border: 1px solid rgba(21, 29, 40, 0.12);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.cookie-consent-block p {
  color: #151d28;
  margin-bottom: 0;
}

.cookie-consent-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.cookie-consent-block.is-hidden {
  display: none;
}

[data-cookieconsent-src][data-cookieconsent-blocked="true"] {
  display: none;
}

.cookie-consent-media {
  position: relative;
  min-height: 320px;
}

.cookie-consent-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cookie-consent-media .cookie-consent-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.cookie-consent-media .cookie-consent-block__actions {
  width: 100%;
}

@media (max-width: 680px) {
    .cookie-consent-banner {
        left: 0;
        right: 0;
        bottom: 0;
    }
    .cookie-consent-banner__body {
        flex-direction: column;
    }
    .cookie-consent-banner__actions {
        justify-content: flex-start;
    }
    .cookie-consent-modal__footer {
        justify-content: center;
    }
}
