#kp-consent[hidden],
#kp-settings[hidden] {
    display: none !important;
}

/* Compact КОЛЕГИУМ.мк-style consent bar. */
.kp-consent {
    position: fixed;
    z-index: 2147483000;
    left: 50%;
    bottom: 14px;
    width: min(1040px, calc(100% - 28px));
    transform: translateX(-50%);
    padding: 10px 12px;
    background: #111;
    color: #f4f4f4;
    border: 1px solid #383838;
    border-left: 4px solid #e16e1d;
    border-radius: 2px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .38);
    font: inherit;
}

.kp-consent__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.kp-consent__copy {
    min-width: 0;
    flex: 1 1 auto;
}

.kp-consent__title {
    display: block;
    margin: 0 0 2px;
    font-size: 15px;
    line-height: 1.2;
    color: #fff;
}

.kp-consent__title-link {
    width: fit-content;
    color: #fff;
    text-decoration: none;
}

.kp-consent__title-link:hover,
.kp-consent__title-link:focus-visible {
    color: #f07a27;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kp-consent__title-link:focus-visible {
    outline: 2px solid #e16e1d;
    outline-offset: 2px;
}

.kp-consent p {
    display: inline;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.35;
    color: #d7d7d7;
}


.kp-consent__actions {
    flex: 0 0 auto;
    display: flex;
    gap: 7px;
    align-items: center;
}

.kp-btn,
.kp-settings,
.kp-settings-link {
    font: inherit;
    cursor: pointer;
}

.kp-btn {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.kp-btn--primary {
    background: #e16e1d;
    border-color: #e16e1d;
    color: #fff;
}

.kp-btn--secondary {
    background: #2d2d2d;
    border-color: #555;
    color: #fff;
}

.kp-btn:hover,
.kp-btn:focus-visible,
.kp-settings:hover,
.kp-settings:focus-visible {
    outline: 2px solid #e16e1d;
    outline-offset: 2px;
}

.kp-btn--primary:hover,
.kp-btn--primary:focus-visible {
    background: #f07a27;
    border-color: #f07a27;
}

.kp-btn--secondary:hover,
.kp-btn--secondary:focus-visible {
    background: #3a3a3a;
}

.kp-settings {
    position: fixed;
    z-index: 2147482000;
    left: 0;
    bottom: 12px;
    width: 14px;
    height: 44px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
    border: 1px solid #333;
    border-left: 4px solid #e16e1d;
    border-radius: 0 2px 2px 0;
    background: rgba(17, 17, 17, .96);
    color: #ddd;
    font-size: 10.5px;
    line-height: 1.15;
    touch-action: manipulation;
    transition: width .18s ease, background-color .18s ease, border-color .18s ease;
}

.kp-settings__label {
    display: block;
    width: 132px;
    padding: 0 8px 0 7px;
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity .12s ease, transform .18s ease;
}

/* Roll out the full label only on devices that genuinely support hover. */
@media (hover: hover) and (pointer: fine) {
    .kp-settings:hover {
        width: 148px;
        background: rgba(17, 17, 17, .99);
        border-color: #555;
        border-left-color: #e16e1d;
    }

    .kp-settings:hover .kp-settings__label {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Keyboard users get the same expanded state as mouse users. */
.kp-settings:focus-visible {
    width: 148px;
    background: rgba(17, 17, 17, .99);
    border-color: #555;
    border-left-color: #e16e1d;
}

.kp-settings:focus-visible .kp-settings__label {
    opacity: 1;
    transform: translateX(0);
}

.kp-settings-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 760px) {
    .kp-consent {
        bottom: 8px;
        width: calc(100% - 16px);
        padding: 10px;
    }

    .kp-consent__inner {
        display: block;
    }

    .kp-consent__title {
        font-size: 14px;
    }

    .kp-consent p {
        font-size: 12px;
    }

    .kp-consent__actions {
        margin-top: 9px;
        width: 100%;
    }

    .kp-btn {
        flex: 1 1 50%;
        min-height: 36px;
    }
}

/*
 * On touch phones/tablets there is no hover. Keep only the tiny tab visible;
 * tapping it opens the full consent controls immediately.
 */
@media (pointer: coarse) {
    .kp-settings {
        width: 12px;
        height: 42px;
        bottom: 10px;
    }
}

.kp-settings-link:focus-visible {
    outline: 2px solid #e16e1d;
    outline-offset: 2px;
}

