.analytics-consent {
    position: relative;
    z-index: 10000;
    color: #2c2d3f;
    font-family: "Roboto", sans-serif;
}

.analytics-consent [hidden] {
    display: none !important;
}

.analytics-consent-open {
    overflow: hidden;
}

.analytics-consent__banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    box-shadow: 0 10px 32px rgba(44, 45, 63, 0.18);
}

.analytics-consent__content {
    flex: 1 1 auto;
}

.analytics-consent h2 {
    margin: 0 0 8px;
    color: #2c2d3f;
    font-size: 1.15rem;
    font-weight: 600;
}

.analytics-consent p {
    margin: 0 0 8px;
    color: #5a5a5a;
    font-size: 0.9rem;
    line-height: 1.55;
}

.analytics-consent__banner h2 {
    margin-bottom: 4px;
}

.analytics-consent__banner p {
    margin-bottom: 5px;
    line-height: 1.45;
}

.analytics-consent__policy-link {
    color: #1a76d1;
    font-size: 0.86rem;
    text-decoration: underline;
}

.analytics-consent__actions,
.analytics-consent__dialog-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.analytics-consent__actions {
    gap: 8px;
}

.analytics-consent__action {
    min-width: 112px;
    padding: 10px 14px;
    color: #1a76d1;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    background: #fff;
    border: 1px solid #1a76d1;
    border-radius: 5px;
    cursor: pointer;
}

.analytics-consent__action:hover,
.analytics-consent__action:focus-visible {
    color: #fff;
    background: #1a76d1;
    outline: none;
}

.analytics-consent__action:focus-visible,
.analytics-consent__policy-link:focus-visible,
.analytics-preferences-link:focus-visible {
    outline: 3px solid rgba(26, 118, 209, 0.35);
    outline-offset: 2px;
}

.analytics-consent__backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(23, 32, 42, 0.55);
}

.analytics-consent__dialog {
    width: min(100%, 560px);
    max-height: calc(100vh - 40px);
    padding: 24px;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
}

.analytics-consent__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #d9e2ec;
    border-radius: 6px;
}

.analytics-consent__option label {
    display: block;
    margin: 0 0 3px;
    color: #2c2d3f;
    font-weight: 600;
}

.analytics-consent__option small {
    display: block;
    color: #6c757d;
    line-height: 1.4;
}

.analytics-consent__option input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    accent-color: #1a76d1;
}

.analytics-consent__dialog-actions {
    justify-content: flex-end;
    margin-top: 20px;
}

.analytics-preferences-link {
    padding: 0;
    color: #ddd;
    font: inherit;
    font-size: inherit;
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
}

.analytics-preferences-link:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .analytics-consent__banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        display: block;
        padding: 16px;
    }

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

    .analytics-consent__action {
        min-width: 0;
        padding: 10px 8px;
    }
}

@media (max-width: 420px) {
    .analytics-consent__dialog-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}
