#cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100000;
    padding: 15px 20px;
    box-sizing: border-box;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    font-family: inherit;
    font-size: 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(100%);
}

#cookie-notice.cookie-notice-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-notice-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.cn-text-container {
    flex-grow: 1;
    max-width: 700px;
}

.cn-buttons-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cn-button {
    border: none;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.cn-button-outline {
    background-color: transparent;
}

.cn-button:hover {
    opacity: 0.8;
}

/* Modal */
.mcn-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcn-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
}

.mcn-modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.mcn-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mcn-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: inherit;
}

.mcn-modal-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.mcn-modal-body {
    padding: 20px;
}

.mcn-cookie-category {
    display: flex;
    margin-top: 20px;
    gap: 15px;
    align-items: flex-start;
}

.mcn-category-info h4 {
    margin: 0 0 5px 0;
    color: inherit;
}

.mcn-category-info p {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}

/* Toggle Switch */
.mcn-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.mcn-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
.mcn-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.mcn-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}
input:checked + .mcn-slider {
    background-color: #00a99d;
}
input:focus + .mcn-slider {
    box-shadow: 0 0 1px #00a99d;
}
input:checked + .mcn-slider:before {
    transform: translateX(20px);
}
.mcn-slider.round {
    border-radius: 24px;
}
.mcn-slider.round:before {
    border-radius: 50%;
}
input:disabled + .mcn-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.mcn-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: right;
}

/* Floating Reopen Button */
#mcn-floating-revoke {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 99999;
    transition: transform 0.3s ease;
    display: none; /* hidden by default until consent is set */
}

#mcn-floating-revoke:hover {
    transform: scale(1.1);
}

.mcn-reopen-preferences {
    cursor: pointer;
}
.cn-close-icon {
        background-color: transparent;
        border: none;
        color: inherit;
    }

@media (max-width: 768px) {
    .cookie-notice-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cn-text-container {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cn-close-icon {
        position: absolute;
        top: 10px;
        right: 10px;
    }
}

.mcn-save-bar{
    display: flex;
    justify-content: space-between;
}