/* mbcookies */
.mbc-root { --mbc-color: #333; --mbc-btn-text: #fff; font-size: 14px; line-height: 1.45; color: #333; }
.mbc-root [hidden] { display: none !important; }
.mbc-root *, .mbc-root *::before, .mbc-root *::after { box-sizing: border-box; }

.mbc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000;
  background: #fff; box-shadow: 0 -4px 24px rgba(0, 0, 0, .18); border-top: 1px solid #e5e5e5;
}
.mbc-banner-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; gap: 24px;
}
.mbc-banner-text { flex: 1 1 auto; min-width: 0; }
.mbc-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: #222; }
.mbc-desc, .mbc-desc p { margin: 0 0 4px; color: #444; }
.mbc-more { margin: 4px 0 0; }
.mbc-link, .mbc-link:visited { color: var(--mbc-color); text-decoration: underline; }

.mbc-actions { display: flex; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.mbc-btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 4px;
  padding: 10px 18px; min-width: 140px; text-align: center; line-height: 1.2;
  border: 2px solid var(--mbc-color); transition: opacity .15s;
}
.mbc-btn:hover { opacity: .85; }
.mbc-btn:focus-visible, .mbc-close:focus-visible, .mbc-float:focus-visible { outline: 3px solid #4a90e2; outline-offset: 2px; }
/* «Aceptar» y «Rechazar» comparten exactamente el mismo estilo (Guía AEPD) */
.mbc-btn-main { background: var(--mbc-color); color: var(--mbc-btn-text); }
.mbc-btn-outline { background: #fff; color: var(--mbc-color); }

.mbc-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mbc-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, .5); }
.mbc-dialog {
  position: relative; background: #fff; border-radius: 8px; max-width: 640px; width: 100%;
  max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.mbc-dialog:focus { outline: none; }
.mbc-close {
  position: absolute; top: 8px; right: 10px; border: 0; background: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: #666; padding: 4px 8px;
}
.mbc-cat { border: 1px solid #e5e5e5; border-radius: 6px; padding: 12px 14px; margin: 12px 0; }
.mbc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; cursor: pointer; font-weight: 400; }
.mbc-cat-name { font-weight: 700; color: #222; }
.mbc-always { font-size: 13px; color: #2e7d32; font-weight: 600; }
.mbc-cat-desc { margin: 6px 0 0; font-size: 13px; color: #555; }
.mbc-actions-modal { margin-top: 18px; }

.mbc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.mbc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.mbc-slider { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #bbb; border-radius: 26px; transition: background .2s; }
.mbc-slider::before {
  content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .2s;
}
.mbc-switch input:checked + .mbc-slider { background: var(--mbc-color); }
.mbc-switch input:checked + .mbc-slider::before { transform: translateX(20px); }
.mbc-switch input:focus-visible + .mbc-slider { outline: 3px solid #4a90e2; outline-offset: 2px; }

.mbc-float {
  position: fixed; left: 14px; bottom: 14px; z-index: 2147482999;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--mbc-color); color: var(--mbc-btn-text);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25); opacity: .85;
}
.mbc-float:hover { opacity: 1; }

@media (max-width: 767px) {
  .mbc-banner-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; max-height: 70vh; overflow-y: auto; }
  .mbc-actions { justify-content: stretch; }
  .mbc-btn { flex: 1 1 100%; min-width: 0; }
  .mbc-dialog { padding: 18px; }
}
