html.ys-consent-open {
    padding-bottom: 230px;
}

html.ys-consent-set .ys-consent {
    display: none;
}

.ys-consent {
    position: fixed;
    z-index: 100000;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
    background: #1a1c1e;
    color: #f4f5f6;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.18);
}

.ys-consent:focus {
    outline: none;
}

.ys-consent__inner {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.ys-consent__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 22px;
    align-items: center;
}

.ys-consent__title {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ys-consent p {
    margin: 0;
    color: #f4f5f6;
    font-size: 15px;
    line-height: 1.5;
}

.ys-consent__links {
    margin-top: 8px;
}

.ys-consent a {
    color: #ffffff;
    font-weight: 700;
    text-underline-offset: 3px;
}

.ys-consent__actions {
    display: flex;
    gap: 12px;
}

.ys-consent__btn,
.ys-consent__save {
    box-sizing: border-box;
    flex: 1 1 0;
    width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #ffffff;
    border-radius: 4px;
    background: #ffffff;
    color: #1a1c1e;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.ys-consent__btn:hover,
.ys-consent__btn:focus,
.ys-consent__btn:active,
.ys-consent__save:hover,
.ys-consent__save:focus,
.ys-consent__save:active {
    background: #ffffff;
    border-color: #ffffff;
    color: #1a1c1e;
}

.ys-consent__btn:focus-visible,
.ys-consent__save:focus-visible,
.ys-consent__manage:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.ys-consent__manage {
    display: block;
    width: 100%;
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.ys-consent__prefs {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.ys-consent__prefs[hidden] {
    display: none;
}

.ys-consent__choice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #f4f5f6;
    font-size: 14px;
    line-height: 1.45;
}

.ys-consent__choice input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: #ffffff;
    flex: 0 0 auto;
}

.ys-consent__save {
    width: 100%;
    margin-top: 4px;
}

@media (max-width: 720px) {
    html.ys-consent-open {
        padding-bottom: 340px;
    }

    .ys-consent__layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ys-consent__actions {
        flex-direction: column;
    }

    .ys-consent__btn {
        width: 100%;
    }
}

@media print {
    html.ys-consent-open {
        padding-bottom: 0;
    }

    .ys-consent {
        display: none !important;
    }
}
