/* AdStrome Cookie Consent Styles */

:root {
    --cc-primary: #0d6efd;
    --cc-primary-hover: #0b5ed7;
    --cc-bg: #1a1a1a;
    --cc-text: #ffffff;
    --cc-text-secondary: #cccccc;
    --cc-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --cc-font: 'Inter', sans-serif;
    --cc-z-index: 10000;
}

/* Base */
#cc-banner,
#cc-modal {
    font-family: var(--cc-font);
    box-sizing: border-box;
    font-size: 14px;
}

/* Banner */
#cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--cc-bg);
    color: var(--cc-text);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: var(--cc-z-index);
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    flex-wrap: wrap;
    gap: 1rem;
}

#cc-banner.cc-visible {
    transform: translateY(0);
}

.cc-content {
    flex: 1 1 500px;
}

.cc-content p {
    margin: 0;
    line-height: 1.5;
    color: var(--cc-text-secondary);
}

.cc-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cc-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 0.9em;
    white-space: nowrap;
}

.cc-btn-primary {
    background: var(--cc-primary);
    color: white;
}

.cc-btn-primary:hover {
    background: var(--cc-primary-hover);
}

.cc-btn-secondary {
    background: transparent;
    border: 1px solid var(--cc-text-secondary);
    color: var(--cc-text-secondary);
}

.cc-btn-secondary:hover {
    border-color: white;
    color: white;
}

/* Modal */
#cc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: var(--cc-z-index);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s;
}

#cc-modal-overlay.cc-show {
    display: flex;
    opacity: 1;
}

#cc-modal {
    background: white;
    color: #333;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--cc-shadow);
    max-height: 90vh;
    overflow-y: auto;
}

.cc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.cc-modal-header h2 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
}

.cc-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.cc-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f9f9f9;
}

.cc-toggle-info h3 {
    font-size: 1rem;
    margin: 0 0 0.2rem 0;
}

.cc-toggle-info p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Switch */
.cc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.cc-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.cc-slider {
    background-color: var(--cc-primary);
}

input:checked+.cc-slider:before {
    transform: translateX(20px);
}

input:disabled+.cc-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cc-modal-footer {
    text-align: right;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    #cc-banner {
        flex-direction: column;
        text-align: center;
    }

    .cc-actions {
        justify-content: center;
        width: 100%;
    }
}
