/* Cookie Management Platform Styles */
:root {
    --cmp-primary: #009ef7;
    --cmp-text: #3f4254;
    --cmp-bg: #ffffff;
    --cmp-border: #e4e6ef;
    --cmp-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#cmp-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--cmp-bg);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 2000000;
    /* Highest priority */
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: none;
    /* Hidden by default until JS loads */
    border-top: 1px solid var(--cmp-border);
}

.cmp-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cmp-text h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--cmp-text);
}

.cmp-text p {
    margin: 0;
    font-size: 14px;
    color: #7e8299;
    line-height: 1.5;
}

.cmp-buttons {
    display: flex;
    gap: 10px;
}

.cmp-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.cmp-btn-primary {
    background: var(--cmp-primary);
    color: white;
}

.cmp-btn-primary:hover {
    background: #0095e8;
}

.cmp-btn-secondary {
    background: #f5f8fa;
    color: var(--cmp-text);
    border-color: var(--cmp-border);
}

.cmp-btn-secondary:hover {
    background: #e4e6ef;
}

.cmp-btn-link {
    background: transparent;
    color: var(--cmp-primary);
    text-decoration: underline;
}

/* Modal */
#cmp-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    box-shadow: var(--cmp-shadow);
    z-index: 2000001;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#cmp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000000;
    display: none;
}

.cmp-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--cmp-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cmp-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.cmp-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--cmp-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f9f9f9;
}

/* Toggles */
.cmp-category-item {
    border: 1px solid var(--cmp-border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.cmp-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cmp-cat-title {
    font-weight: 600;
    color: var(--cmp-text);
}

.cmp-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

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

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

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

input:checked+.cmp-slider {
    background-color: var(--cmp-primary);
}

input:checked+.cmp-slider:before {
    transform: translateX(16px);
}

input:disabled+.cmp-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mini Badge */
#cmp-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--cmp-bg);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cmp-border);
}

#cmp-badge img {
    width: 24px;
    height: 24px;
}