/* Baner główny */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 900px;
    background-color: #ffffff;
    color: #222222;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 99998;
    box-sizing: border-box;
    font-family: inherit;
}

.cb-title {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111111;
}

.cb-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #444444;
}

.cb-text a {
    color: #0056b3;
    text-decoration: underline;
}

.cb-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

/* Przyciski */
.cb-btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.cb-btn:hover {
    opacity: 0.8;
}

.cb-necessary, .cb-settings, .cb-accept {
    background-color: #f1f3f5;
    color: #333333;
    border: 1px solid #dcdcdc;
}

/* Modal ustawień */
#cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
    font-family: inherit;
}

.csm-body {
    background-color: #ffffff;
    color: #222222;
    padding: 30px;
    border-radius: 10px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.csm-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111111;
}

.csm-text {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #555555;
}

.csm-row {
    margin-bottom: 12px;
}

.csm-row-last {
    margin-bottom: 25px;
}

.csm-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1.3;
}

.csm-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
}

.csm-label-checked {
    color: #777777;
    cursor: not-allowed;
}

.csm-label-checked input[type="checkbox"] {
    cursor: not-allowed;
}

/* Przyciski */
.csm-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.csm-buttons {
    flex: 1;
}

.csm-save {
    background-color: #0056b3;
    color: #ffffff;
}

.csm-cancel {
    background-color: #e9ecef;
    color: #333333;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 600px) {
    #cookie-banner {
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 10px 10px 0 0;
        padding: 20px;
        padding-bottom: 30px;
    }

    .cb-buttons, .csm-buttons {
        flex-direction: column;
    }

    .cb-btn {
        width: 100%;
    }
}