.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 10px;
    bottom: 10px;
    z-index: 1200;
    width: min(526px, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 12px;
    background: #fff;
    border: 0;
    box-shadow: rgba(0, 0, 0, 0.19) 0 10px 20px, rgba(0, 0, 0, 0.23) 0 6px 6px;
}

.cookie-banner-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    grid-column: 1 / -1;
}

.cookie-banner-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #222;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    justify-self: center;
    grid-column: 1;
}

.cookie-banner-copy {
    margin: 0;
    color: #222;
    font-size: 12px;
    line-height: 1.5;
    word-wrap: break-word;
}

.cookie-banner-close {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 15px;
    right: 20px;
    border: 0;
    background: transparent;
    color: #222;
    cursor: pointer;
    padding: 0;
    font-size: 20px;
    line-height: 20px;
    transition: color 0.2s ease;
}

.cookie-banner-close:hover {
    background: transparent;
    color: #000;
}

.cookie-banner-close i {
    font-size: 20px;
    line-height: 1;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
}

.cookie-banner-button,
.cookie-banner-text-button {
    font: inherit;
    cursor: pointer;
}

.cookie-banner-button {
    flex: 1 1 0;
    width: auto;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-banner-button.is-primary {
    background: var(--kom-orange);
    border-color: var(--kom-orange);
    color: #fff;
}

.cookie-banner-button.is-primary:hover {
    background: var(--kom-orange);
    border-color: var(--kom-orange);
    color: #fff;
}

.cookie-banner-button.is-secondary {
    background: #f9f9f9;
    border-color: #f2f2f2;
    color: #333;
}

.cookie-banner-button.is-secondary:hover {
    background: #f9f9f9;
    border-color: #f2f2f2;
    color: #333;
}

.cookie-banner-preferences[hidden] {
    display: none !important;
}

.cookie-banner-preferences {
    display: grid;
    gap: 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.cookie-banner-preference {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 10px;
    border-radius: 4px;
    background: rgba(239, 239, 239, 0.5);
}

.cookie-banner-preference-copy {
    display: grid;
    gap: 6px;
}

.cookie-banner-preference-copy strong,
.cookie-banner-preference-copy p {
    margin: 0;
}

.cookie-banner-preference-copy strong {
    color: #222;
    font-size: 14px;
    font-weight: 500;
}

.cookie-banner-preference-copy p {
    color: #222;
    font-size: 12px;
    line-height: 1.5;
}

.cookie-banner-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.cookie-banner-status.is-required {
    background: transparent;
    color: green;
}

.cookie-banner-status.is-optional {
    background: transparent;
    color: #222;
}

.cookie-banner-text-button {
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--kom-hyperlink-color, #e8ac63);
    font-size: 12px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-text-button:hover,
.cookie-banner-policy-link:hover {
    color: var(--kom-orange-deep);
}

.cookie-banner-policy-link {
    display: block;
    margin-inline: auto;
    color: var(--kom-orange);
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 2px;
}
