/* Estilos del módulo de cookies (CSS puro, sin Sass).
   Opcional: definir --cookie-accent / --cookie-accent-dark / --cookie-accent-soft / --cookie-ink en el sitio. */
#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000000;
}

#cookieSettingsPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    z-index: 1000001;
    width: min(960px, 96vw);
    max-width: 96vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.tab-buttons-cookie {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tab-link-cookie {
    padding: 0.5rem 1rem;
    background: var(--cookie-accent-soft, #e8eefc);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--cookie-ink, #242424);
    min-height: 44px;
}

.tab-link-cookie.active {
    background: var(--cookie-accent, #0b1f6e);
    color: #fff;
    font-weight: 700;
}

.buttons-cookie-div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.button-cookie {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    background-color: var(--cookie-accent, #0b1f6e);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-cookie:hover {
    background-color: var(--cookie-accent-dark, #071447);
}

.tab-content-cookie {
    display: none;
}

.tab-content-cookie label.cookie-service {
    display: block;
    margin-bottom: 0.85rem;
    color: #555;
    font-size: 0.95rem;
}

.tab-content-cookie h6 {
    color: var(--cookie-ink, #242424);
    margin-bottom: 0.35rem;
}

.cookie-group {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0.85rem 1rem 0.35rem;
    margin-bottom: 1rem;
}

.cookie-group legend {
    font-weight: 700;
    float: none;
    width: auto;
    padding: 0 0.35rem;
    font-size: 1rem;
}

.cookie-group-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    font-weight: 700;
    margin: 0;
}

.cookie-group-toggle input[disabled] {
    cursor: not-allowed;
}

.cookie-group-desc {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.cookie-inline-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--cookie-accent, #0b1f6e);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.cookie-inventory-details {
    margin: -0.35rem 0 1rem 0.25rem;
}

.cookie-inventory-details summary {
    cursor: pointer;
    color: var(--cookie-accent, #0b1f6e);
    font-size: 0.85rem;
}

.cookie-inventory-service {
    margin-bottom: 1.25rem;
}

.cookie-inventory-table-wrap {
    overflow-x: auto;
}

.cookie-inventory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.cookie-inventory-table th,
.cookie-inventory-table td {
    border: 1px solid #e5e5e5;
    padding: 0.45rem 0.55rem;
    text-align: left;
    vertical-align: top;
}

.cookie-inventory-table th {
    background: #f6f7f6;
    font-weight: 700;
    white-space: nowrap;
}

.cookie-inventory-table code {
    font-size: 0.8rem;
    word-break: break-all;
}

@media (max-width: 600px) {
    .tab-buttons-cookie,
    .buttons-cookie-div {
        flex-direction: column;
    }

    .button-cookie,
    .tab-link-cookie {
        width: 100%;
    }
}

.cookie-blocked-chat {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.cookie-blocked-chat__bubble {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: var(--cookie-accent, #0b1f6e);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-blocked-chat__bubble:hover {
    background: var(--cookie-accent-dark, #071447);
}

.cookie-blocked-chat__panel {
    width: min(320px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    color: #555;
    font-size: 0.9rem;
}

.cookie-blocked-chat__panel p {
    margin-bottom: 0.75rem;
}

.cookie-blocked-chat__panel .button-cookie {
    width: 100%;
}

.cookie-blocked-chat__title {
    font-weight: 700;
    color: var(--cookie-ink, #242424);
    margin-bottom: 0.35rem;
}
