#ccm-banner, #ccm-modal {
    position: fixed;
    background: #fff;
    color: #000;
    padding: 20px;
    z-index: 9999;
    top: 30px;
    max-width: 992px;
    width: 90%;
    display: block;
    margin: 0 auto;
    left: calc(50% - 499px);
    box-shadow: 0 8px 48px rgba(0, 0, 0, .15) !important;
    border-radius: 4px;
    box-sizing: border-box;
    overflow: auto;
    max-height: calc(100vh - 60px);
}


.ccm-banner-content, .ccm-modal-content {
    margin: 0 auto;
    text-align: justify;
    font-size: 14px;
    line-height: 1.5;
}

.ccm-banner-content strong, .ccm-modal-content strong {
    font-weight: 700;
}

.ccm-banner-content p, .ccm-modal-content p {
    padding-bottom: 10px;
}

.ccm-banner-content a, .ccm-modal-content a {
    color: #000000;
}

.ccm-buttons {
    float: right;
    margin-top: 20px;
}

.ccm-buttons button, #ccm-manage-preferences {
    margin: 5px;
    background-color: #CE0000;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px 32px;
    border-radius: 64px;
}

#ccm-manage-preferences {
    border: 1px solid #ffffff;
    padding: 8px 10px;
    z-index: 999999;
}

#ccm-manage-preferences img {
    width: 26px;
}


.ccm-buttons button:hover, #ccm-manage-preferences:hover {
    background-color: #161616;
}

.ccm-buttons button#ccm-customize {
    background-color: #161616;
}


.ccm-buttons button#ccm-customize:hover {
    background-color: #CE0000;
}

#ccm-manage-preferences {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

#ccm-banner.ccm-hidden, #ccm-modal.ccm-hidden {
    display: none;
}

.tooltip-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* spațiu între text și icon */
    font-family: sans-serif;
    font-size: 16px;
}

.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #007bff;
    font-weight: bold;
}

.tooltip-container .tooltip-text {
    visibility: hidden;
    width: 180px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 8px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-container .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.ccm-category {
    border-top: 1px solid #ccc;
    padding: 10px 0;
}

.ccm-category-toggle {
    background: none;
    border: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

.ccm-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.ccm-category.open .ccm-arrow {
    transform: rotate(90deg);
}

.ccm-category-content {
    display: none;
    margin-top: 10px;
}

.ccm-category.open .ccm-category-content {
    display: block;
}

/*.ccm-category.alwaysOpen .ccm-category-content {*/
/*    display: block;*/
/*}*/

.ccm-category {
    position: relative;
}

.ccm-category .ccm-category-content .ccm-switch {
    position: absolute;
    right: 0;
    display: block;
    top: 10px;
}


.ccm-category .ccm-switch {
    position: absolute;
    right: 0;
    top: 10px;
    display: block;
}

.ccm-category.alwaysOpen .ccm-switch {
    width: 80px;
    color: green;
    font-weight: 700;
}

.ccm-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-right: 10px;
}

.ccm-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ccm-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}

.ccm-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.ccm-switch input:checked + .ccm-slider {
    background-color: #CE0000;
}

.ccm-switch input:checked + .ccm-slider:before {
    transform: translateX(20px);
}

.ccm-modal-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.ccm-modal-buttons button {
    margin: 5px;
    background-color: #161616;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px 32px;
    border-radius: 64px;
}

.ccm-modal-buttons button:hover {
    background-color: #CE0000;
}


.ccm-modal-buttons button#ccm-accept-all-modal {
    background-color: #CE0000;
}


.ccm-modal-buttons button#ccm-accept-all-modal:hover {
    background-color: #161616;
}

#ccm-close-modal {
    margin: 5px;
    background-color: #161616;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px 32px;
    border-radius: 64px;
}

#ccm-close-modal:hover {
    background-color: #CE0000;
}

.ccm-cookie-table {
    display: flex;
    flex-direction: column;
    margin-top: 1em;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.95em;
}

.ccm-cookie-row {
    display: flex;
    flex-direction: row;
    padding: 0.6em 0.8em;
}

.ccm-cookie-row:nth-child(odd) {
    background-color: #f9f9f9;
}

.ccm-cookie-row:nth-child(even) {
    background-color: #e9e9e9;
}

.ccm-cookie-name {
    width: 30%;
    font-weight: bold;
    color: #333;
}

.ccm-cookie-description {
    width: 70%;
    color: #555;
}


@media screen and (max-width: 1200px) {
    #ccm-banner, #ccm-modal {
        left: 2%;
    }
}

@media screen and (max-width: 767px) {
    #ccm-modal {
        left: 10px;
        width: calc(100vw - 20px);
    }

    .ccm-modal-buttons {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .ccm-modal-buttons button {
        width: 300px;
    }

    .ccm-cookie-row {
        flex-direction: column;
    }
}
