.uwfix-analytics-consent[hidden],
.uwfix-privacy-settings[hidden] {
    display: none !important;
}

.uwfix-analytics-consent {
    position: fixed;
    z-index: 99998;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    width: min(760px, calc(100% - 20px));
    max-height: calc(100dvh - 20px);
    margin: 0 auto;
    padding: 15px;
    overflow: auto;
    color: #13202b;
    background: #ffffff;
    border: 1px solid #c9d2d8;
    border-radius: 8px;
    box-shadow: 0 10px 32px rgba(15, 28, 38, 0.2);
    font-size: 15px;
    line-height: 1.45;
}

.uwfix-analytics-consent__copy,
.uwfix-analytics-consent__copy p {
    min-width: 0;
    margin: 0;
}

.uwfix-analytics-consent__title {
    display: block;
    margin: 0 0 3px;
    color: #0b1620;
    font-size: 16px;
    line-height: 1.3;
}

.uwfix-analytics-consent__copy a {
    color: #075f4a;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.uwfix-analytics-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 8px;
    align-items: stretch;
}

.uwfix-analytics-consent__button,
.uwfix-analytics-consent__close,
.uwfix-privacy-settings {
    min-height: 44px;
    padding: 9px 13px;
    border: 2px solid #126348;
    border-radius: 5px;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    cursor: pointer;
}

.uwfix-analytics-consent__button {
    color: #ffffff;
    background: #126348;
}

.uwfix-analytics-consent__button--necessary {
    color: #13202b;
    background: #ffffff;
    border-color: #4d5c67;
}

.uwfix-analytics-consent__close {
    grid-column: 1 / -1;
    min-height: 36px;
    padding: 6px 10px;
    color: #34444f;
    background: #f3f6f7;
    border-color: #c4ced4;
}

.uwfix-analytics-consent__button:hover,
.uwfix-analytics-consent__button:focus-visible {
    color: #ffffff;
    background: #0b4d38;
    border-color: #0b4d38;
}

.uwfix-analytics-consent__button--necessary:hover,
.uwfix-analytics-consent__button--necessary:focus-visible,
.uwfix-analytics-consent__close:hover,
.uwfix-analytics-consent__close:focus-visible {
    color: #0b1620;
    background: #e8edef;
    border-color: #34444f;
}

.uwfix-analytics-consent :focus-visible,
.uwfix-privacy-settings:focus-visible {
    outline: 3px solid #f2b544;
    outline-offset: 2px;
}

.uwfix-privacy-settings {
    position: fixed;
    z-index: 99997;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    min-height: 40px;
    padding: 7px 11px;
    color: #13202b;
    background: #ffffff;
    border: 1px solid #87959e;
    box-shadow: 0 5px 16px rgba(15, 28, 38, 0.16);
    font-size: 13px;
}

.uwfix-privacy-settings:hover {
    background: #edf2f3;
    border-color: #52616a;
}

@media (max-width: 620px) {
    .uwfix-analytics-consent {
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        left: 8px;
        display: block;
        width: calc(100% - 16px);
        max-height: calc(100dvh - 16px);
        padding: 12px;
        font-size: 14px;
    }

    .uwfix-analytics-consent__actions {
        margin-top: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .uwfix-analytics-consent__button {
        min-width: 0;
        padding-right: 8px;
        padding-left: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uwfix-analytics-consent *,
    .uwfix-privacy-settings {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* UWF:CONSENT-MOBILE-FLOW:START */
@media (max-width: 620px) {
    .uwfix-privacy-settings {
        position: static;
        z-index: auto;
        right: auto;
        bottom: auto;
        left: auto;
        display: block;
        width: max-content;
        max-width: calc(100% - 20px);
        min-height: 44px;
        margin: 12px 10px calc(10px + env(safe-area-inset-bottom, 0px));
        box-shadow: none;
    }
}
/* UWF:CONSENT-MOBILE-FLOW:END */

/* UWF:CONSENT-DESKTOP-FLOW:START */
@media (min-width: 621px) {
    .uwfix-privacy-settings {
        position: static;
        z-index: auto;
        right: auto;
        bottom: auto;
        left: auto;
        display: block;
        width: max-content;
        max-width: calc(100% - 20px);
        min-height: 44px;
        margin: 12px 10px 10px;
        box-shadow: none;
    }
}
/* UWF:CONSENT-DESKTOP-FLOW:END */
