.spektrum-cookie-banner,
.spektrum-cookie-preferences {
    font-family: "Poppins", Arial, sans-serif;
}

.spektrum-cookie-banner[hidden],
.spektrum-consent-placeholder[hidden],
[data-consent-category="externalMedia"][hidden] {
    display: none !important;
}

.spektrum-cookie-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100000;
    width: min(370px, calc(100vw - 32px));
    padding: 24px;
    color: #1e2c33;
    background: #fff;
    border: 1px solid rgba(87, 126, 109, .16);
    border-radius: 22px;
    box-shadow: 0 18px 54px rgba(25, 45, 37, .17);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity .25s ease, transform .25s ease;
}

.spektrum-cookie-banner.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.spektrum-cookie-banner h2,
.spektrum-cookie-preferences h2 {
    margin: 0;
    color: #1e2c33;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.35px;
}

.spektrum-cookie-banner p {
    margin: 13px 0 20px;
    color: #526069;
    font-size: 13.5px;
    line-height: 1.65;
}

.spektrum-cookie-banner a,
.spektrum-cookie-preferences a {
    color: #436b5a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.spektrum-cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.spektrum-cookie-button {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.spektrum-cookie-button:hover {
    transform: translateY(-1px);
}

.spektrum-cookie-button:focus-visible,
.spektrum-cookie-link-button:focus-visible,
.spektrum-cookie-switch input:focus-visible + span {
    outline: 3px solid rgba(87, 126, 109, .28);
    outline-offset: 2px;
}

.spektrum-cookie-button--accept,
.spektrum-cookie-button--save {
    color: #fff;
    background: #577e6d;
    border-color: #577e6d;
}

.spektrum-cookie-button--accept:hover,
.spektrum-cookie-button--save:hover {
    background: #466b5b;
    border-color: #466b5b;
}

.spektrum-cookie-button--reject {
    color: #4d5357;
    background: #eef0ef;
    border-color: #e3e7e5;
}

.spektrum-cookie-button--reject:hover {
    background: #e4e8e6;
}

.spektrum-cookie-link-button {
    display: block;
    width: 100%;
    margin: 13px 0 0;
    padding: 0;
    color: #577e6d;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.spektrum-cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(18, 28, 24, .5);
}

.spektrum-cookie-preferences.is-visible {
    display: flex;
}

.spektrum-cookie-preferences__panel {
    width: min(520px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow-y: auto;
    padding: 28px;
    color: #425058;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
}

.spektrum-cookie-preferences__intro {
    margin: 12px 0 20px;
    font-size: 13.5px;
    line-height: 1.65;
}

.spektrum-cookie-category {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: start;
    padding: 16px 0;
    border-top: 1px solid #e9eeeb;
}

.spektrum-cookie-category h3 {
    margin: 0 0 4px;
    color: #263a32;
    font-size: 15px;
    font-weight: 600;
}

.spektrum-cookie-category p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
}

.spektrum-cookie-always-on {
    color: #577e6d;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.spektrum-cookie-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.spektrum-cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.spektrum-cookie-switch span {
    position: relative;
    width: 44px;
    height: 24px;
    background: #c9cfcc;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease;
}

.spektrum-cookie-switch span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
    content: "";
    transition: transform .2s ease;
}

.spektrum-cookie-switch input:checked + span {
    background: #577e6d;
}

.spektrum-cookie-switch input:checked + span::after {
    transform: translateX(20px);
}

.spektrum-cookie-preferences__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

.spektrum-cookie-policy {
    margin: 45px auto 70px;
    padding: 34px;
    color: #505d64;
    background: #f7f9f8;
    border: 1px solid #e4ebe7;
    border-radius: 18px;
}

.spektrum-cookie-policy h2 {
    margin: 0 0 15px;
    color: #315545;
    font-size: 28px;
}

.spektrum-cookie-policy h3 {
    margin: 25px 0 10px;
    color: #315545;
    font-size: 19px;
}

.spektrum-cookie-policy p,
.spektrum-cookie-policy li {
    font-size: 14px;
    line-height: 1.75;
}

.spektrum-cookie-table-wrap {
    overflow-x: auto;
    margin: 18px 0;
}

.spektrum-cookie-policy table {
    width: 100%;
    min-width: 690px;
    border-collapse: collapse;
    background: #fff;
}

.spektrum-cookie-policy th,
.spektrum-cookie-policy td {
    padding: 12px 14px;
    border: 1px solid #dfe7e3;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: left;
    vertical-align: top;
}

.spektrum-cookie-policy th {
    color: #315545;
    background: #edf3f0;
    font-weight: 600;
}

.spektrum-footer-cookie-settings {
    color: inherit;
}

.spektrum-consent-placeholder {
    display: flex;
    min-height: 450px;
    align-items: center;
    justify-content: center;
    padding: 28px;
    color: #4f6058;
    background: #f2f6f4;
    border: 1px solid #dfe9e4;
    text-align: center;
}

.spektrum-consent-placeholder__inner {
    max-width: 440px;
}

.spektrum-consent-placeholder h3 {
    margin: 0 0 8px;
    color: #315545;
    font-size: 20px;
}

.spektrum-consent-placeholder p {
    margin: 0 0 16px;
    font-size: 13.5px;
    line-height: 1.65;
}

@media (max-width: 767px) {
    .spektrum-cookie-banner {
        right: 16px;
        bottom: 16px;
        width: calc(100vw - 32px);
        padding: 20px;
        border-radius: 18px;
    }

    .spektrum-cookie-banner h2,
    .spektrum-cookie-preferences h2 {
        font-size: 21px;
    }

    .spektrum-cookie-banner p {
        margin: 11px 0 17px;
        font-size: 13px;
    }

    .spektrum-cookie-preferences {
        align-items: flex-end;
        padding: 10px;
    }

    .spektrum-cookie-preferences__panel {
        max-height: calc(100vh - 20px);
        padding: 22px 20px;
        border-radius: 18px;
    }

    .spektrum-cookie-policy {
        margin: 30px 15px 50px;
        padding: 24px 20px;
    }

    .spektrum-cookie-policy h2 {
        font-size: 23px;
    }
}

@media (max-width: 340px) {
    .spektrum-cookie-actions,
    .spektrum-cookie-preferences__actions {
        grid-template-columns: 1fr;
    }

    .spektrum-cookie-button {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spektrum-cookie-banner,
    .spektrum-cookie-button,
    .spektrum-cookie-switch span,
    .spektrum-cookie-switch span::after {
        transition: none;
    }
}
