/* CMP - Bazapro */

#cmp-root {
    font-family: inherit;
}

#cmp-banner {
    position: fixed;
    z-index: 999999;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    color: #252525;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.22);
    padding: 25px;
    box-sizing: border-box;
}

#cmp-banner * {
    box-sizing: border-box;
}

#cmp-banner h2 {
    margin: 0 0 12px;
    color: #222222;
    font-size: 22px;
    line-height: 1.3;
}

#cmp-banner h3 {
    margin: 20px 0 12px;
    font-size: 17px;
}

#cmp-banner p {
    margin: 0 0 14px;
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
}

.cmp-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-top: 1px solid #eeeeee;
}

.cmp-category strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.cmp-category p {
    margin: 0;
    font-size: 13px;
}

.cmp-category > span {
    flex-shrink: 0;
    color: #666666;
    font-size: 12px;
}

.cmp-category label {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    cursor: pointer;
}

.cmp-category input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.cmp-switch {
    display: block;
    width: 42px;
    height: 23px;
    background: #bdbdbd;
    border-radius: 20px;
    transition: background 0.2s;
}

.cmp-switch:after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 17px;
    height: 17px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.cmp-category input:checked + .cmp-switch {
    background: #c70468;
}

.cmp-category input:checked + .cmp-switch:after {
    transform: translateX(19px);
}

.cmp-category input:focus + .cmp-switch {
    outline: 2px solid #970448;
    outline-offset: 3px;
}

.cmp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cmp-actions button,
#cmp-open-settings {
    min-height: 43px;
    padding: 11px 17px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cmp-actions button:hover,
#cmp-open-settings:hover {
    border-color: #c70468;
    color: #c70468;
}

.cmp-actions #cmp-accept-all {
    background: #c70468;
    border-color: #c70468;
    color: #ffffff;
}

.cmp-actions #cmp-accept-all:hover {
    background: #970448;
    border-color: #970448;
}

.cmp-actions #cmp-save {
    background: #c70468;
    border-color: #c70468;
    color: #ffffff;
}

.cmp-actions #cmp-save:hover {
    background: #970448;
    border-color: #970448;
}

#cmp-message {
    margin-top: 12px;
    font-size: 13px;
    color: #b00020;
}

#cmp-open-settings {
    position: fixed;
    z-index: 999998;
    left: 15px;
    bottom: 15px;
    background: #ffffff;
    border-color: #c70468;
    color: #c70468;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

@media (max-width: 600px) {
    #cmp-banner {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px 16px;
        border-radius: 12px 12px 0 0;
    }

    #cmp-banner h2 {
        font-size: 19px;
    }

    .cmp-actions {
        flex-direction: column;
    }

    .cmp-actions button {
        width: 100%;
        min-height: 46px;
    }

    #cmp-open-settings {
        left: 10px;
        bottom: 10px;
    }
}
