.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 1050;
    width: min(1120px, calc(100% - 2rem));
    background: #ffffff;
    border: 1px solid #d7dfe0;
    border-radius: 1rem;
    box-shadow: 0 14px 36px rgba(5, 46, 49, 0.12);
    padding: 1rem 1.25rem;
}

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

.cookie-consent__container {
    width: 100%;
}

.cookie-consent__main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-consent__content {
    flex: 1;
}

.cookie-consent__title {
    margin: 0 0 0.5rem 0;
    color: #052e31;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.cookie-consent__description {
    margin: 0;
    color: #5f777b;
    font-size: 0.875rem;
    line-height: 1.6;
}

.cookie-consent__policy-link {
    margin-left: 0.25rem;
    color: #0caf60;
    text-decoration: none;
}

.cookie-consent__policy-link:hover {
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-consent__btn {
    cursor: pointer;
    border-radius: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-consent__btn--accept,
.cookie-consent__btn--save {
    border: 1px solid #0caf60;
    background: #0caf60;
    color: #ffffff;
}

.cookie-consent__btn--accept:hover,
.cookie-consent__btn--save:hover {
    border-color: #0a9f57;
    background: #0a9f57;
}

.cookie-consent__btn--reject {
    border: 2px solid #0caf60;
    background: #ffffff;
    color: #0caf60;
}

.cookie-consent__btn--reject:hover {
    background: #0caf60;
    color: #ffffff;
}

.cookie-consent__btn--settings,
.cookie-consent__btn--cancel {
    border: 1px solid #d7dfe0;
    background: #f5f5f5;
    color: #5f777b;
}

.cookie-consent__btn--settings:hover,
.cookie-consent__btn--cancel:hover {
    border-color: #0caf60;
    color: #0caf60;
}

.cookie-consent__settings {
    margin-top: 1.5rem;
    border-top: 1px solid #d7dfe0;
    padding-top: 1.5rem;
}

.cookie-consent__settings-title {
    margin: 0 0 1rem 0;
    color: #052e31;
    font-size: 1rem;
    font-weight: 600;
}

.cookie-consent__category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: background-color 0.2s ease;
}

.cookie-consent__category:not(.cookie-consent__category--required) {
    cursor: pointer;
}

.cookie-consent__category + .cookie-consent__category {
    margin-top: 0.75rem;
}

.cookie-consent__category:hover {
    background: #f9fafb;
}

.cookie-consent__category--required {
    background: #f9fafb;
}

.cookie-consent__category-content {
    flex: 1;
    min-width: 0;
}

.cookie-consent__category-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-consent__category-name {
    color: #052e31;
    font-size: 0.875rem;
    font-weight: 600;
}

.cookie-consent__required-badge {
    border-radius: 999px;
    background: rgba(12, 175, 96, 0.1);
    padding: 0.125rem 0.5rem;
    color: #0caf60;
    font-size: 0.75rem;
    line-height: 1.2;
}

.cookie-consent__category-description {
    margin: 0.25rem 0 0 0;
    color: #5f777b;
    font-size: 0.75rem;
    line-height: 1.5;
}

.cookie-consent__switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5rem;
}

.cookie-consent__checkbox {
    margin-top: 0.1rem;
}

.cookie-consent__switch--disabled .cookie-consent__checkbox {
    opacity: 0.5;
}

.cookie-consent__settings-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #d7dfe0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .cookie-consent__actions,
    .cookie-consent__settings-actions {
        width: auto;
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .cookie-consent__main {
        flex-direction: row;
        align-items: center;
    }
}
