[hidden] {
    display: none !important;
}

.cookie-consent,
.cookie-modal {
    box-sizing: border-box;
    font-family: inherit;
}

.cookie-consent *,
.cookie-modal * {
    box-sizing: border-box;
}

.cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    padding: 18px 20px;
    background: #ffffff;
    border-top: 3px solid #FE5E01;
    box-shadow: 0 -8px 28px rgba(29, 29, 27, 0.16);
    color: #1D1D1B;
}

.cookie-consent__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 1220px;
    margin: 0 auto;
}

.cookie-consent__content {
    min-width: 0;
}

.cookie-consent__title {
    margin: 0 0 7px;
    color: #1D1D1B;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
}

.cookie-consent__description {
    max-width: 780px;
    margin: 0;
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent__link,
.cookie-modal a {
    color: #FE5E01;
    text-decoration: underline;
}

.cookie-consent__actions,
.cookie-modal__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.cookie-button {
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid #FE5E01;
    border-radius: 2px;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-button:focus-visible,
.cookie-modal__close:focus-visible,
.cookie-settings-link:focus-visible {
    outline: 2px solid #1D1D1B;
    outline-offset: 2px;
}

.cookie-button_primary {
    background: #FE5E01;
    color: #ffffff;
}

.cookie-button_primary:hover {
    background: #d94e00;
    border-color: #d94e00;
}

.cookie-button_secondary {
    background: #ffffff;
    color: #FE5E01;
}

.cookie-button_secondary:hover {
    background: #fff2eb;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 1110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(29, 29, 27, 0.62);
}

.cookie-modal__dialog {
    position: relative;
    width: min(100%, 680px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 30px;
    background: #ffffff;
    border-top: 3px solid #FE5E01;
    box-shadow: 0 12px 40px rgba(29, 29, 27, 0.28);
    color: #1D1D1B;
}

.cookie-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555555;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.cookie-modal__title {
    margin: 0 42px 8px 0;
    font-size: 22px;
    line-height: 1.3;
}

.cookie-modal__description {
    margin: 0 0 20px;
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid #e7e7e7;
}

.cookie-option input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #FE5E01;
}

.cookie-option__text {
    flex: 1 1 auto;
}

.cookie-option label {
    display: block;
    color: #1D1D1B;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.cookie-option input:disabled + .cookie-option__text label {
    cursor: default;
}

.cookie-option p {
    margin: 4px 0 0;
    color: #666666;
    font-size: 13px;
    line-height: 1.4;
}

.cookie-option__status {
    flex: 0 0 auto;
    color: #777777;
    font-size: 12px;
    line-height: 1.4;
}

.cookie-modal__actions {
    margin-top: 22px;
}

.cookie-settings-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-analytics-mount {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    pointer-events: none;
}

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

    .cookie-consent__actions {
        justify-content: flex-start;
        margin-top: 14px;
    }
}

@media (max-width: 540px) {
    .cookie-consent {
        padding: 15px;
    }

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

    .cookie-button {
        width: 100%;
    }

    .cookie-modal {
        padding: 10px;
    }

    .cookie-modal__dialog {
        max-height: calc(100vh - 20px);
        padding: 24px 18px 18px;
    }

    .cookie-option {
        flex-wrap: wrap;
    }

    .cookie-option__status {
        width: 100%;
        padding-left: 30px;
    }
}
