/* ---------- Banner Container ---------- */
.cmplz-cookiebanner {
    background: #fefefe;
    color: #333;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    width: 560px;
    font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
    padding: 20px 24px;
    position: fixed;
    z-index: 99999;
    left: 20px;
    bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.cmplz-cookiebanner.show {
    opacity: 1;
    transform: translateY(0);
}

.cmplz-banner-checkbox input[type="checkbox"] {
    accent-color: #D295A8 !important;
}

.cmplz-category {
    background: #fff9fb;
    padding: 12px;
    border-radius: 8px;
}



.cmplz-category-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
}

.cmplz-always-active {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
}


/* ---------- Header ---------- */
.cmplz-header {
    display: flex;
    align-items: left;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-direction: column
}

.cmplz-logo img {
    width: 200px;
    border-radius: 6px;
    object-fit: contain;
    object-position: top left;
}

.cmplz-title {
    font-weight: 600;
    font-size: 17px;
    line-height: 1.2;
    flex: 1;
}

/* ---------- Close Button ---------- */
.cmplz-close {
    position: absolute;
    right: 24px !important;
    margin-left: auto;
    cursor: pointer;
    padding: 6px;
    color: #888;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cmplz-close:hover {
    color: #555;
    transform: rotate(90deg);
}

/* ---------- Body & Categories ---------- */
.cmplz-body {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 8px;
    gap: 24px !important;
    display: flex;
    flex-direction: column;
}

.cmplz-row {
    display: none !important;
    flex-direction: row !important;
    gap: 0 !important;
    width: 100% !important;
    margin-top: 20px;
}

.cmplz-categories-init-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
}

.cmplz-categories {
    display: none;
}

.cmplz-functional {
    border-top: none !important;
}

.cmplz-init {
    padding: 30px !important;
    border: 1px solid #e1e1e1 !important;
    width: 30%;
    justify-content: center !important;
}

.cmplz-categories {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.cmplz-categories.show {
    display: flex;
}


.cmplz-categories details {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    background: #fff;
    border-radius: 6px;
}


.cmplz-categories summary {
    cursor: pointer;
    font-weight: 600;
}

.cmplz-category-title {
    color: #595959;
    font-weight: 600;
}

.cmplz-description {
    padding: 8px 0px;
    font-size: 13px;
    color: #555;
    max-width: 500px;
}

/* ---------- Buttons ---------- */
.cmplz-buttons {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cmplz-btn {
    flex: 1;
    padding: 14px 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #D295A8;
    transition: all 0.2s ease;
    border-radius: 6px !important;
}

.cmplz-btn.cmplz-accept {
    background: #D295A8;
    color: #fff;
}

.cmplz-btn.cmplz-accept:hover {
    background: #D295A8;
    color: #fff;
    border: 1px solid #D295A8;
}

.cmplz-btn.cmplz-deny {
    background: #fff;
    color: #D295A8;
    border: 1px solid #D295A8;
}

.cmplz-btn.cmplz-deny:hover {
    background: #fff;
    color: #D295A8;
    border: 1px solid #D295A8;
    border: 1px solid #D295A8;
}

.cmplz-btn.cmplz-save-preferences {
    background: #D295A8;
    color: #fff;
}

.cmplz-btn.cmplz-save-preferences:hover {
    background: #D295A8;
    color: #fff;
    border: 1px solid #D295A8;
}

.cmplz-btn.cmplz-view-preferences {
    background: #fff;
    color: #D295A8;
    border: 1px solid #D295A8;
}

.cmplz-btn.cmplz-view-preferences:hover {
    background: #fff;
    color: #D295A8;
    border: 1px solid #D295A8;
}

/* ---------- Links ---------- */
.cmplz-links {
    margin-top: 10px;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cmplz-link {
    color: #D295A8;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cmplz-link:hover {
    color: #D295A8;
}

/* ---------- Footer Divider ---------- */
.cmplz-divider {
    margin: 10px 0;
    border-top: 1px solid #eee;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 767px) {

    .cmplz-logo img {
        width: 100px !important;
    }


    .cmplz-cookiebanner {
        left: 16px !important;
        bottom: 10px;
        max-width: 90%;
        padding: 16px 18px;
    }


    .cmplz-title {
        font-size: 16px;
    }

    .cmplz-buttons {
        flex-direction: column;
    }
}


/* ---------- Toggle Switch ---------- */
.cmplz-banner-checkbox {
    position: relative !important;
    display: inline-block !important;
    width: 50px !important;
    height: 24px !important;
}

.cmplz-banner-checkbox input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.cmplz-banner-checkbox label {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #fff !important;
    transition: background-color 0.2s ease !important;
    border-radius: 24px !important;
}

.cmplz-banner-checkbox label::before {
    position: absolute !important;
    content: "" !important;
    height: 20px !important;
    width: 20px !important;
    left: 2px !important;
    bottom: 2px !important;
    background-color: #D295A8 !important;
    transition: transform 0.2s ease !important;
    border-radius: 50% !important;
}

.cmplz-banner-checkbox input:checked+label {
    background-color: #D295A8 !important;
}

.cmplz-banner-checkbox input:checked+label::before {
    transform: translateX(26px) !important;
    background-color: #fff !important;
}

.cmplz-banner-checkbox input:disabled+label::before {
    background-color: #D295A8ba !important;
}

/* Disabled state for Functional toggle */
.cmplz-banner-checkbox input:disabled+label {
    background-color: #FFFFFF !important;
    cursor: not-allowed !important;
}

.cmplz-label {
    box-shadow: 0 4px 4px #00000040;
}







#ccby-post-consent-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

/* Icon initially behind banner */
#ccby-post-consent {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

#ccby-post-consent.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

#ccby-post-consent-small {
    visibility: hidden;
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

#ccby-post-consent-small.show {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.ccby-icon-button {
    background: #D295A8;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ccby-icon-button img {
    width: 40px;
    height: 40px;
}

.ccby-small-container {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #fefefe;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
}

.ccby-small-btn {
    background: #D295A8;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

.ccby-small-btn:hover {
    background: #D295A8;
    border: 1px solid #D295A8;
}

#ccby-reset-consent:hover {
    background: #D295A8;
    border: 1px solid #D295A8 !important;
}