/* CookieYes Style - Clean and Optimized */
.cky-overlay {
    background: rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999999;
}

/* Cookie Bar Styles */
.cky-consent-container {
    position: fixed;
    width: 440px;
    box-sizing: border-box;
    z-index: 9999999;
    border-radius: 6px;
}

.cky-box-bottom-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    top: 0;
    width: 100%;
    background: #0000006b;
}

.cky-consent-bar {
    background: #ffffff;
    border: 1px solid #F4F4F4;
    padding: 20px 26px;
    box-shadow: 0 -1px 10px rgba(172, 171, 171, 0.3);
    border-radius: 6px;
    width: 440px;
}

.cky-notice .cky-title {
    color: #212121;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    margin: 0 0 12px 0;
}

.cky-notice-des {
    color: #212121;
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
}

.cky-notice-des p {
    color: inherit;
    margin-top: 0;
    margin-bottom: 0;
    overflow-wrap: break-word;
    line-height: 24px;
}

.cky-notice-btn-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.cky-btn {
    flex: auto;
    max-width: 100%;
    font-size: 14px;
    font-family: inherit;
    line-height: 24px;
    padding: 8px 16px;
    font-weight: 500;
    margin: 0 8px 0 0;
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
    min-height: 0;
    text-shadow: none;
    box-shadow: none;
}
.cky-btn:hover {
    opacity: .8;
}
.cky-btn-customize {
    color: #1863dc;
    background: transparent;
    border: 2px solid #1863dc;
}
.cky-btn-customize:hover {
    border: 2px solid #1863dc;
}
.cky-btn-reject:hover {
    border: 2px solid #1863dc;
}
.cky-btn-accept:hover {
    border: 2px solid #1863dc;
}
.cky-btn-preferences:hover {
    border: 2px solid #1863dc;
}

.cky-btn-reject {
    color: #1863dc;
    background: transparent;
    border: 2px solid #1863dc;
}

.cky-btn-accept {
    background: #1863dc;
    color: #ffffff;
    border: 2px solid #1863dc;
}

.cky-btn-preferences {
    color: #1863dc;
    background: transparent;
    border: 2px solid #1863dc;
}

.cky-btn:last-child {
    margin-right: 0;
}

/* Modal Styles */
.cky-modal {
    box-shadow: 0 32px 68px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    position: fixed;
    max-width: 100%;
    background: #ffffff;
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    border-radius: 6px;
    z-index: 999999999;
    color: #212121;
    transform: translate(-50%, -50%);
    visibility: hidden;
    transition: all 0.3s ease;
}

.cky-modal.cky-modal-open {
    display: flex;
    visibility: visible;
}

.cky-preference-center {
    max-height: 79vh;
    width: 845px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
}

.cky-preference-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #F4F4F4;
}

.cky-preference-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}

.cky-btn-close {
    margin: 0;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    width: auto;
    height: auto;
    min-height: 0;
}

.cky-btn-close img {
    margin: 0;
    height: 10px;
    width: 10px;
}

.cky-preference-body-wrapper {
    padding: 0 24px;
    flex: 1;
    overflow: auto;
    box-sizing: border-box;
}

.cky-preference-content-wrapper {
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
    padding: 12px 0;
    border-bottom: 1px solid #F4F4F4;
    position: relative;
    padding-bottom: 20px;
}
.cky-preference-content-wrapper p {
    line-height: 24px;
    padding: 9px 0px;
}
.cky-show-desc-btn {
    font-size: 14px;
    color: #1863dc !important;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
}

/* Accordion Styles */
.cky-accordion-wrapper {
    margin-bottom: 10px;
}

.cky-accordion {
    border-bottom: 1px solid #F4F4F4;
}

.cky-accordion:last-child {
    border-bottom: none;
}

.cky-accordion-item {
    display: flex;
    margin-top: 10px;
}

.cky-accordion-header-wrapper {
    cursor: pointer;
    width: 100%;
}

.cky-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cky-accordion-btn {
    font-size: 16px;
    color: #212121;
    background: none;
    border: none;
    font-weight: 700;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
}

.cky-always-active {
    color: #008000;
    font-weight: 600;
    font-size: 14px;
}

.cky-accordion-header-des p{
    font-size: 14px;
    line-height: 24px;
    margin: 10px 0 16px 0;
}

.cky-accordion-chevron {
    margin-right: 22px;
    position: relative;
    cursor: pointer;
}

.cky-accordion-chevron i::before {
    content: "";
    position: absolute;
    border-right: 1.4px solid #212121;
    border-bottom: 1.4px solid #212121;
    height: 6px;
    width: 6px;
    transform: rotate(-45deg);
    transition: all 0.2s ease-in-out;
    top: 8px;
}

.cky-accordion.cky-accordion-active .cky-accordion-chevron i::before {
    transform: rotate(45deg);
}

/* Ensure accordion bodies are hidden by default */
.cky-accordion-body {
    display: none;
}

.cky-accordion.cky-accordion-active .cky-accordion-body {
    display: block;
    padding: 0 22px;
    margin-bottom: 16px;
}

/* Audit Table Styles - ADDED MISSING STYLES */
.cky-audit-table {
    background: #f4f4f4;
    border-radius: 6px;
}

.cky-audit-table .cky-cookie-des-table {
    font-size: 12px;
    line-height: 24px;
    font-weight: normal;
    padding: 15px 10px;
    border-bottom: 1px solid;
    border-bottom-color: inherit;
    margin: 0;
}

.cky-audit-table .cky-cookie-des-table:last-child {
    border-bottom: none;
}

.cky-audit-table .cky-cookie-des-table li {
    list-style-type: none;
    display: flex;
    padding: 3px 0;
}

.cky-audit-table .cky-cookie-des-table li:first-child {
    padding-top: 0;
}

.cky-cookie-des-table li div:first-child {
    width: 100px;
    font-weight: 600;
    word-break: break-word;
    word-wrap: break-word;
}

.cky-cookie-des-table li div:last-child {
    flex: 1;
    word-break: break-word;
    word-wrap: break-word;
    margin-left: 8px;
}


/* Toggle Switch Styles */
.cky-switch {
    display: flex !important;
    align-items: center;
}

.cky-switch input[type="checkbox"] {
    position: relative;
    width: 44px;
    height: 24px;
    margin: 0;
    background: #d0d5d2;
    -webkit-appearance: none;
    border-radius: 50px;
    cursor: pointer;
    outline: 0;
    border: none;
    transition: background-color 0.3s ease;
    display: block !important;
    visibility: visible !important;
}

.cky-switch input[type="checkbox"]:checked {
    background: #1863dc;
}

.cky-switch input[type="checkbox"]:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    border-radius: 50%;
    background-color: white;
    transition: transform 0.3s ease;
    margin: 0;
}

.cky-switch input[type="checkbox"]:checked:before {
    transform: translateX(20px);
}

/* Footer Styles */
.cky-footer-wrapper {
    position: relative;
}

.cky-prefrence-btn-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 22px 24px;
    border-top: 1px solid #F4F4F4;
}

.cky-prefrence-btn-wrapper .cky-btn {
    flex: auto;
    max-width: 100%;
}

/* Floating Settings Button */
.cky-btn-revisit-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0056a7;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    position: fixed;
    z-index: 999999;
    cursor: pointer;
}

.cky-revisit-bottom-left {
    bottom: 15px;
    left: 15px;
}

.cky-btn-revisit {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.cky-btn-revisit img {
    height: 30px;
    width: 30px;
    filter: brightness(0) invert(1);
}

.cky-btn-revisit:hover {
    background: none;
    border: none;
}

/* Responsive Design */
@media (max-width: 576px) {
    .cky-box-bottom-center {
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
    }
    
    .cky-consent-bar {
        padding: 20px;
    }
    
    .cky-notice-btn-wrapper {
        flex-direction: column;
        margin-top: 0;
    }
    
    .cky-btn {
        width: 100%;
        margin: 10px 0 0 0;
    }
    
    .cky-btn-accept {
        order: 1;
        margin-top: 16px;
    }
    
    .cky-btn-customize {
        order: 2;
    }
    
    .cky-btn-reject {
        order: 3;
    }
}

@media (max-width: 845px) {
    .cky-modal {
        max-width: calc(100% - 16px);
    }
}

@media (max-width: 576px) {
    .cky-modal {
        max-width: 100%;
    }
    
    .cky-preference-center {
        max-height: 100vh;
    }
    
    .cky-prefrence-btn-wrapper {
        flex-direction: column;
    }
    
    .cky-prefrence-btn-wrapper .cky-btn {
        width: 100%;
        margin: 10px 0 0 0;
    }
    
    .cky-prefrence-btn-wrapper .cky-btn-accept {
        order: 1;
        margin-top: 0;
    }
    
    .cky-prefrence-btn-wrapper .cky-btn-preferences {
        order: 2;
    }
    
    .cky-prefrence-btn-wrapper .cky-btn-reject {
        order: 3;
    }
}