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

.cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9998;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #d8d8d8;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.14);
    color: #222;
}

.cookie-consent__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    gap: 24px;
}

.cookie-consent__copy {
    max-width: 640px;
}

.cookie-consent h2,
.cookie-preferences h2,
.cookie-preferences h3 {
    margin-top: 0;
    color: #222;
}

.cookie-consent h2 {
    margin-bottom: 6px;
    font-size: 20px;
}

.cookie-consent p,
.cookie-preferences p {
    margin-bottom: 0;
    line-height: 1.5;
}

.cookie-consent__actions,
.cookie-preferences__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-consent__button {
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid #007704;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
}

.cookie-consent__button--primary {
    background: #007704;
    color: #fff;
}

.cookie-consent__button--secondary {
    background: #fff;
    color: #006b03;
}

.cookie-consent__button:focus,
.cookie-preferences__close:focus,
[data-cookie-settings]:focus {
    outline: 3px solid rgba(0, 119, 4, 0.3);
    outline-offset: 2px;
}

.cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.58);
}

.cookie-preferences__dialog {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 24px;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-size: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.cookie-preferences__dialog h2 {
    font-size: 24px;
}

.cookie-preferences__dialog h3 {
    font-size: 18px;
}

.cookie-preferences__dialog p {
    font-size: 14px;
    line-height: 1.6;
}

.cookie-preferences__dialog .cookie-consent__button,
.cookie-preferences__required {
    font-size: 14px;
}

.cookie-preferences__dialog > p {
    margin-bottom: 18px;
}

.cookie-preferences__close {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.cookie-preferences__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid #e3e3e3;
}

.cookie-preferences__category h3 {
    margin-bottom: 4px;
}

.cookie-preferences__category input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.cookie-preferences__required {
    flex: 0 0 auto;
    color: #006b03;
    font-weight: 600;
}

.cookie-preferences__actions {
    justify-content: flex-end;
    margin-top: 20px;
}

.cookie-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 180px;
    padding: 20px;
    background: #f3f3f3;
    color: #333;
    text-align: center;
}

.cookie-media-placeholder p {
    margin: 0 0 10px;
}

@media (max-width: 767px) {
    .cookie-consent__content {
        display: block;
    }

    .cookie-consent__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 12px;
    }

    .cookie-consent__button {
        width: 100%;
        min-width: 0;
        padding-right: 8px;
        padding-left: 8px;
    }

    .cookie-consent__actions .cookie-consent__button--primary {
        grid-column: 1 / -1;
    }

    .cookie-preferences__category {
        align-items: flex-start;
    }
}
