:root {
    --popup-background: #fff;
    --popup-border-color: #d9dbe9;
    --popup-border-radius: 0;
    --popup-padding: 20px;
    --popup-margin: 20px;
    --popup-fonts: inherit;
    --popup-heading-color: #10182f;
    --popup-subheading-color: #10182f;
    --popup-body-color: #484848;
    --popup-heading-size: 18px;
    --popup-subheading-size: 14px;
    --popup-body-size: 12px;
    --popup-button-size: 14px;
    --primary-btn-bg: #2d5ebd;
    --primary-btn-hover-bg: #2d5ebd;
    --primary-btn-color: #fff;
    --primary-btn-hover-color: #fff;
    --primary-btn-border: #3971dd;
    --primary-btn-hover-border: #2d5ebd;
    --outline-btn-bg: #fff;
    --outline-btn-hover-bg: #484848;
    --outline-btn-color: #484848;
    --outline-btn-hover-color: #fff;
    --outline-btn-border: #484848;
    --outline-btn-hover-border: #484848;
    --banner-background: #fff;
    --banner-body-color: #484848;
    --banner-heading-color: #484848;
    --banner-heading-size: 18px;
    --banner-body-size: 14px;
}

* {
    box-sizing: border-box;
    font-family: var(--popup-fonts);
}

body.cookie-settings-open {
    overflow: hidden;
}

#darwin-gdpr-banner,
#darwin-gdpr-modal {
    font-family: var(--popup-fonts);
}

.darwin-consent-saved #darwin-gdpr-banner {
    display: none !important;
}

.darwin-consent-saved .darwin-gdpr-reopen {
    display: inline-flex !important;
}

.cookie-consent {
    background: var(--popup-background);
    border: 1px solid var(--popup-border-color);
    border-radius: var(--popup-border-radius);
    bottom: var(--popup-margin);
    box-shadow: 0 14px 42px 0 rgba(8, 15, 52, 0.06);
    color: var(--banner-body-color);
    opacity: 0;
    padding: var(--popup-padding);
    position: fixed;
    max-width: calc(100vw - var(--popup-margin) * 2);
    right: var(--popup-margin);
    transform: translateY(20px);
    transition: 0.3s ease;
    width: min(480px, calc(100vw - var(--popup-margin) * 2));
    z-index: 9999;
}

.cookie-consent__header {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cookie-consent__title {
    color: var(--banner-heading-color);
    font-size: var(--banner-heading-size);
    font-weight: 500;
    line-height: 1.5;
}

.cookie-consent__body p {
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 15px;
}

.cookie-consent__body p,
.cookie-consent__body p a {
    color: var(--banner-body-color);
    font-size: var(--banner-body-size);
}

.cookie-consent__body p a:hover {
    color: var(--banner-heading-color);
}

.cookie-consent__actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.cookie-settings__footer-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.cookie-consent__btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    font-size: var(--popup-button-size);
    font-weight: 400;
    justify-content: center;
    letter-spacing: 0.24px;
    line-height: 1.6;
    min-width: 0;
    padding: 10px 20px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.2s ease;
    white-space: normal;
    width: 100%;
}

.cookie-consent__btn svg {
    height: auto;
    width: 15px;
}

.cookie-consent__btn--primary {
    background: var(--primary-btn-bg);
    border-color: var(--primary-btn-border);
    color: var(--primary-btn-color);
}

.cookie-consent__btn--primary:hover {
    background: var(--primary-btn-hover-bg);
    border-color: var(--primary-btn-hover-border);
    color: var(--primary-btn-hover-color);
}

.cookie-consent__btn--outline {
    background: var(--outline-btn-bg);
    border-color: var(--outline-btn-border);
    color: var(--outline-btn-color);
}

.cookie-consent__btn--outline:hover {
    background: var(--outline-btn-hover-bg);
    border-color: var(--outline-btn-hover-border);
    color: var(--outline-btn-hover-color);
}

.cookie-consent--wide {
    max-width: 960px;
    width: calc(100% - var(--popup-margin) * 2);
}

.cookie-consent--wide .cookie-consent__body {
    display: block;
}

.cookie-consent--wide .cookie-consent__body p {
    margin: 0 0 15px;
}

.cookie-consent--wide .cookie-consent__body .cookie-consent__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cookie-consent--left {
    left: var(--popup-margin);
    right: auto;
}

.cookie-consent--right {
    left: auto;
    right: var(--popup-margin);
}

.cookie-consent--center {
    left: 50%;
    right: auto;
    transform: translate(-50%, 20px);
}

.cookie-consent--center.cookie-consent--active {
    transform: translate(-50%);
}

.cookie-consent--top {
    bottom: auto;
    top: var(--popup-margin);
    transform: translateY(-20px);
}

.cookie-consent--active {
    opacity: 1;
    transform: translateY(0);
}

.cookie-settings {
    align-items: center;
    background: rgba(0, 0, 0, 0.65);
    color: #10182f;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    position: fixed;
    transition: 0.3s ease;
    visibility: hidden;
    z-index: 10000;
}

.cookie-settings--active {
    opacity: 1;
    visibility: visible;
}

.cookie-settings--active .cookie-settings__dialog {
    transform: translateY(0);
}

.cookie-settings__dialog {
    background: var(--popup-background);
    border-radius: var(--popup-border-radius);
    box-shadow: 5px 15px 20px rgba(0, 0, 0, 0.25);
    max-height: 95vh;
    max-width: 95%;
    overflow-y: auto;
    padding: 25px;
    transform: translateY(20px);
    transition: 0.3s ease;
    width: 630px;
}

.cookie-settings__header {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cookie-settings__footer {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.cookie-settings__title {
    color: var(--popup-heading-color);
    font-size: var(--popup-heading-size);
    font-weight: 500;
    line-height: 1.5;
}

.cookie-settings__body p {
    font-size: var(--popup-body-size);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 20px;
}

.cookie-settings__body p,
.cookie-settings__body p a {
    color: var(--popup-body-color);
}

.cookie-settings__body p a:hover {
    color: var(--popup-heading-color);
}

.cookie-settings__option {
    padding: 15px 20px;
}

.cookie-settings__option:not(:last-of-type) {
    border-bottom: 1px solid hsla(204, 2%, 55%, 0.3);
}

.cookie-settings__option-wrapper {
    border: 1px solid hsla(204, 2%, 55%, 0.3);
    margin-bottom: 25px;
}

.cookie-settings__option-title {
    color: var(--popup-subheading-color);
    font-size: var(--popup-subheading-size);
    font-weight: 700;
    margin-bottom: 10px;
}

.cookie-settings__option-body {
    align-items: center;
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.cookie-settings__option p {
    color: var(--popup-body-color);
    font-size: var(--popup-body-size);
    line-height: 1.6;
    margin: 0;
}

.cookie-settings__credit {
    align-items: center;
    color: #989a9f;
    display: flex;
    font-size: 10px;
    font-weight: 400;
    gap: 8px;
}

.cookie-settings__credit > * {
    opacity: 0.5;
}

.cookie-settings__credit-icon {
    color: #989a9f;
    display: flex;
}

.cookie-settings__credit svg {
    height: auto;
    width: 15px;
}

.cookie-consent__close,
.cookie-settings__close {
    align-items: center;
    background: none;
    border: none;
    color: var(--popup-body-color);
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.cookie-consent__close svg,
.cookie-settings__close svg {
    height: auto;
    width: 10px;
}

.cookie-toggle {
    flex-shrink: 0;
    height: 22px;
    position: relative;
    width: 42px;
}

.cookie-toggle input {
    height: 0;
    opacity: 0;
    width: 0;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
    background: var(--primary-btn-bg);
}

.cookie-toggle input:checked + .cookie-toggle__slider:before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
    cursor: not-allowed;
    opacity: 0.55;
}

.cookie-toggle input:disabled + .cookie-toggle__slider:before {
    background: hsla(0, 0%, 100%, 0.95);
}

.cookie-toggle__slider {
    background: #ccc;
    border-radius: 20px;
    cursor: pointer;
    inset: 0;
    position: absolute;
    transition: 0.3s;
}

.cookie-toggle__slider:before {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 18px;
    left: 2px;
    position: absolute;
    top: 2px;
    transition: 0.3s;
    width: 18px;
}

.darwin-gdpr-reopen {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    text-decoration: none;
}

.darwin-gdpr-reopen--left {
    left: var(--popup-margin);
    right: auto;
}

.darwin-gdpr-reopen--right {
    left: auto;
    right: var(--popup-margin);
}

.darwin-gdpr-reopen--center {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.darwin-gdpr-reopen--floating-icon,
.darwin-gdpr-reopen--floating-link {
    bottom: var(--popup-margin);
    position: fixed;
    z-index: 9999;
}

.darwin-gdpr-reopen--floating-icon {
    background: var(--primary-btn-bg);
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    height: 56px;
    width: 56px;
}

.darwin-gdpr-reopen--floating-icon img {
    height: 32px;
    width: 32px;
}

.darwin-gdpr-reopen--floating-link {
    background: var(--primary-btn-bg);
    border: 1px solid var(--primary-btn-border);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    color: var(--primary-btn-color);
    min-height: 44px;
    padding: 10px 16px;
}

.darwin-gdpr-reopen--floating-link:hover {
    background: var(--primary-btn-hover-bg);
    border-color: var(--primary-btn-hover-border);
    color: var(--primary-btn-hover-color);
}

.darwin-gdpr-reopen--inline-link {
    color: var(--primary-btn-bg);
    font-weight: 600;
}

.darwin-gdpr-reopen--inline-link:hover {
    color: var(--primary-btn-hover-bg);
    text-decoration: underline;
}

.darwin-hidden {
    display: none !important;
}

@media (max-width: 991.98px) {
    .cookie-consent--wide {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .cookie-consent--top {
        bottom: auto;
        top: 0;
    }

    .cookie-consent,
    .cookie-consent--left {
        border-radius: 0;
        bottom: 0;
        left: 0;
        max-width: 100%;
        padding: 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: 0;
        width: auto;
    }

    .cookie-consent--wide {
        width: auto;
    }

    .cookie-consent--wide .cookie-consent__body {
        display: block;
    }

    .cookie-consent--wide .cookie-consent__body p {
        margin-bottom: 15px;
    }

    .cookie-consent__actions,
    .cookie-settings__footer-actions {
        align-items: stretch;
    }

    .cookie-consent__actions {
        grid-template-columns: 1fr;
    }

    .cookie-settings__footer-actions {
        grid-template-columns: 1fr;
    }

    .cookie-consent__btn {
        flex: none;
        min-width: 0;
        width: 100%;
    }

    .cookie-settings__footer {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .cookie-settings {
        align-items: flex-end;
    }

    .cookie-settings__dialog {
        border-radius: 0;
        max-width: 100%;
        padding: 15px 20px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .cookie-settings__body p {
        font-size: 12px;
    }

    .cookie-settings__option {
        padding: 15px 12px;
    }

    .cookie-settings__option-body {
        flex-direction: row-reverse;
        gap: 15px;
    }

    .cookie-consent__btn {
        white-space: normal;
    }
}
