/* Cookie consent banner and modal */

.cc-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 1.25rem 1.5rem;
    z-index: 9999;
    display: none;
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
}

.cc-banner.cc-open { display: block; }

.cc-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cc-banner__text {
    flex: 1 1 320px;
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0;
}

.cc-banner__text a {
    color: #0966e6;
    text-decoration: underline;
}

.cc-banner__buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cc-btn {
    padding: 0.55rem 1.1rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}

.cc-btn--accept {
    background: #0966e6;
    color: #ffffff;
}
.cc-btn--accept:hover { background: #074fb3; }

.cc-btn--reject {
    background: #ffffff;
    color: #0966e6;
    border-color: #0966e6;
}
.cc-btn--reject:hover { background: #f0f6ff; }

.cc-btn--config {
    background: transparent;
    color: #555555;
    border-color: #cccccc;
}
.cc-btn--config:hover { background: #f5f5f5; }

/* Modal */

.cc-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
}

.cc-modal.cc-open { display: flex; }

.cc-modal__dialog {
    background: #ffffff;
    border-radius: 8px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.cc-modal__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #1a1a1a;
}

.cc-modal__intro {
    font-size: 0.95rem;
    color: #555555;
    margin: 0 0 1rem;
    line-height: 1.45;
}

.cc-modal__intro a {
    color: #0966e6;
    text-decoration: underline;
}

.cc-modal__category {
    border-top: 1px solid #eeeeee;
    padding: 1rem 0;
}

.cc-modal__category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.cc-modal__category-name {
    font-weight: 600;
    color: #1a1a1a;
}

.cc-modal__category-desc {
    font-size: 0.85rem;
    color: #555555;
    margin: 0;
    line-height: 1.4;
}

.cc-modal__footer {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.cc-toggle {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
}
.cc-toggle input { opacity: 0; width: 0; height: 0; }

.cc-toggle__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cccccc;
    border-radius: 11px;
    transition: 0.2s;
}
.cc-toggle__slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.2s;
}
.cc-toggle input:checked + .cc-toggle__slider { background: #0966e6; }
.cc-toggle input:checked + .cc-toggle__slider::before { transform: translateX(16px); }
.cc-toggle input:disabled + .cc-toggle__slider { opacity: 0.55; cursor: not-allowed; }

/* Placeholder para iframes bloqueados */

.cc-iframe-placeholder {
    background: #f5f7fa;
    border: 1px dashed #ccd6e4;
    border-radius: 5px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #555555;
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
}

.cc-iframe-placeholder__icon {
    font-size: 2rem;
    color: #0966e6;
    margin-bottom: 0.75rem;
}

.cc-iframe-placeholder__text {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}
