:root{
  --ux-rgpd-primary:#164BFF;
  --ux-rgpd-primary-dark:#0A2EA8;
  --ux-rgpd-accent:#20E0FF;
  --ux-rgpd-panel-bg:#FFFFFF;
  --ux-rgpd-text:#0B1220;
  --ux-rgpd-muted:#526173;
  --ux-rgpd-border:#D7DEE9;
  --ux-rgpd-soft:#F5F7FB;
  --ux-rgpd-shadow:0 18px 50px rgba(11,18,32,.14);
  --ux-rgpd-radius:20px;
  --ux-rgpd-radius-sm:14px;
}

#unizox-rgpd-root[hidden], .unizox-rgpd-float[hidden], [hidden][data-unizox-open-preferences]{display:none !important;}

.unizox-rgpd{
  position:fixed; inset:0; z-index:999999; font-family:inherit;
}
.unizox-rgpd__backdrop{
  position:absolute; inset:0; background:rgba(9,15,26,.48); backdrop-filter:blur(2px);
}
.unizox-rgpd__panel{
  position:relative; z-index:2; width:min(960px, calc(100vw - 24px)); max-height:calc(100vh - 32px); overflow:auto;
  margin:16px auto; background:var(--ux-rgpd-panel-bg); color:var(--ux-rgpd-text); border:1px solid var(--ux-rgpd-border);
  border-radius:28px; box-shadow:var(--ux-rgpd-shadow); padding:30px;
}
.unizox-rgpd__x{
  appearance:none; border:0; background:#d9b06e; color:#2b2115; width:42px; height:42px; border-radius:999px; cursor:pointer;
  position:absolute; top:18px; right:18px; font-size:23px; line-height:1;
}
.unizox-rgpd__badge{
  display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:999px; background:var(--ux-rgpd-soft); color:var(--ux-rgpd-primary);
  border:1px solid var(--ux-rgpd-border); font-weight:700; letter-spacing:.03em; font-size:14px;
}
.unizox-rgpd__badge::before{content:""; width:10px; height:10px; border-radius:50%; background:linear-gradient(135deg,var(--ux-rgpd-accent),var(--ux-rgpd-primary));}
.unizox-rgpd__intro h2{font-size:clamp(28px, 3vw, 42px); line-height:1.05; margin:16px 0 12px; color:var(--ux-rgpd-text);}
.unizox-rgpd__intro p{margin:0 0 14px; color:var(--ux-rgpd-muted); font-size:17px; line-height:1.65;}
.unizox-rgpd__links{display:flex; flex-wrap:wrap; gap:22px; margin-top:10px !important;}
.unizox-rgpd__links a{color:var(--ux-rgpd-primary); text-decoration:none; font-weight:700;}
.unizox-rgpd__links a:hover{text-decoration:underline;}
.unizox-rgpd__notice,
.unizox-rgpd__status{
  margin-top:14px; padding:14px 16px; border-radius:14px; background:var(--ux-rgpd-soft); border:1px solid var(--ux-rgpd-border); color:var(--ux-rgpd-muted);
}
.unizox-rgpd__settings{margin-top:22px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px;}
.unizox-rgpd__category{
  display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px; border-radius:18px; background:#fff; border:1px solid var(--ux-rgpd-border);
  color:var(--ux-rgpd-text);
}
.unizox-rgpd__category span{display:block; min-width:0;}
.unizox-rgpd__category strong{display:block; font-size:20px; line-height:1.2; margin-bottom:6px;}
.unizox-rgpd__category small{display:block; font-size:15px; line-height:1.45; color:var(--ux-rgpd-muted);}
.unizox-rgpd__category-status{display:inline-block; margin-top:10px; color:var(--ux-rgpd-primary-dark); font-size:13px; font-style:normal; font-weight:700;}
.unizox-rgpd__category input{
  position:absolute; opacity:0; pointer-events:none;
}
.unizox-rgpd__category i{
  position:relative; width:52px; height:30px; border-radius:999px; background:#cdd6e2; flex:0 0 auto; transition:background .2s ease;
}
.unizox-rgpd__category i::after{
  content:""; position:absolute; width:22px; height:22px; top:4px; left:4px; border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.18); transition:transform .2s ease;
}
.unizox-rgpd__category input:checked + i,
.unizox-rgpd__category--locked i{background:var(--ux-rgpd-primary);}
.unizox-rgpd__category input:checked + i::after,
.unizox-rgpd__category--locked i::after{transform:translateX(22px);}
.unizox-rgpd__actions{display:flex; flex-wrap:wrap; gap:14px; align-items:center; justify-content:flex-end; border-top:1px solid var(--ux-rgpd-border); padding-top:22px; margin-top:22px;}
.unizox-rgpd__btn{
  appearance:none !important; border:1px solid transparent !important; min-height:54px; padding:0 22px !important; border-radius:999px !important; cursor:pointer; font-weight:800 !important;
  letter-spacing:.01em; font-size:17px !important; line-height:1.1 !important; text-decoration:none !important; box-shadow:none !important;
}
.unizox-rgpd__btn--ghost{background:#d9b06e !important; color:#2b2115 !important;}
.unizox-rgpd__btn--soft{background:#e9eef7 !important; color:var(--ux-rgpd-primary-dark) !important; border-color:var(--ux-rgpd-border) !important;}
.unizox-rgpd__btn--primary{background:linear-gradient(135deg,var(--ux-rgpd-primary),var(--ux-rgpd-primary-dark)) !important; color:#fff !important;}
.unizox-rgpd__btn:hover{transform:translateY(-1px);}

.unizox-rgpd-float{
  position:fixed; z-index:999990; bottom:18px; appearance:none; border:0; border-radius:999px; padding:13px 18px; background:#fff; color:var(--ux-rgpd-text);
  box-shadow:0 10px 30px rgba(11,18,32,.16); cursor:pointer; font-weight:800;
}
.unizox-rgpd-float--bottom-right{right:18px;}
.unizox-rgpd-float--bottom-left{left:18px;}

.unizox-cookie-status-box{
  background:#fff; border:1px solid var(--ux-rgpd-border); border-radius:18px; padding:18px; color:var(--ux-rgpd-text); box-shadow:0 10px 26px rgba(11,18,32,.06);
}
.unizox-cookie-status-box__head{display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:12px;}
.unizox-cookie-status-box__badge{display:inline-flex; background:var(--ux-rgpd-soft); color:var(--ux-rgpd-primary); border-radius:999px; padding:7px 12px; font-weight:700; border:1px solid var(--ux-rgpd-border);}
.unizox-cookie-status-box__list{list-style:none; padding:0; margin:14px 0; display:grid; gap:8px;}
.unizox-cookie-status-box__button,
.unizox-cookie-settings-link{display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 16px; border-radius:999px; background:var(--ux-rgpd-primary); color:#fff !important; font-weight:700; text-decoration:none; border:0; cursor:pointer;}

.unizox-rgpd-embed{border:1px solid var(--ux-rgpd-border); border-radius:18px; background:var(--ux-rgpd-soft); display:flex; align-items:center; justify-content:center; padding:16px; overflow:hidden;}
.unizox-rgpd-embed__inner{text-align:center; max-width:580px; color:var(--ux-rgpd-text);}
.unizox-rgpd-embed__inner strong{display:block; font-size:22px; margin-bottom:8px;}
.unizox-rgpd-embed__inner p{margin:0 0 12px; color:var(--ux-rgpd-muted);}
.unizox-rgpd-embed__inner button{appearance:none; border:0; border-radius:999px; min-height:44px; padding:0 16px; background:var(--ux-rgpd-primary); color:#fff; font-weight:700; cursor:pointer;}

.unizox-rgpd-form-consent{
  margin-top:18px !important; padding:16px !important; background:#fff !important; border:1px solid var(--ux-rgpd-border) !important; border-radius:18px !important;
  box-shadow:0 8px 22px rgba(11,18,32,.05) !important; clear:both;
}
.unizox-rgpd-form-consent__box{
  overflow:auto; background:var(--ux-rgpd-soft) !important; border:1px solid var(--ux-rgpd-border) !important; border-radius:14px !important; padding:16px !important; color:var(--ux-rgpd-text) !important;
}
.unizox-rgpd-form-consent__box-head{
  display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; align-items:center; margin-bottom:12px;
}
.unizox-rgpd-form-consent__box-head strong{font-size:17px !important; color:var(--ux-rgpd-text) !important;}
.unizox-rgpd-form-consent__box-head span{font-size:12px; font-weight:700; color:var(--ux-rgpd-primary); background:#fff; border:1px solid var(--ux-rgpd-border); border-radius:999px; padding:4px 9px;}
.unizox-rgpd-form-consent__privacy,
.unizox-rgpd-form-consent__privacy *{font-size:14px; line-height:1.55; color:var(--ux-rgpd-text);}
.unizox-rgpd-form-consent__privacy h1,
.unizox-rgpd-form-consent__privacy h2,
.unizox-rgpd-form-consent__privacy h3,
.unizox-rgpd-form-consent__privacy h4{font-size:20px; margin:0 0 10px; line-height:1.2;}
.unizox-rgpd-form-consent__privacy h3{font-size:18px;}
.unizox-rgpd-form-consent__privacy h4{font-size:16px;}
.unizox-rgpd-form-consent__privacy ul,
.unizox-rgpd-form-consent__privacy ol{padding-left:18px; margin:10px 0;}
.unizox-rgpd-form-consent__links{display:flex; flex-wrap:wrap; gap:12px 18px; margin:14px 0 0 !important;}
.unizox-rgpd-form-consent__links a{font-weight:700; color:var(--ux-rgpd-primary) !important; text-decoration:none !important;}

/* FIX principal solicitado: checkbox claramente a la izquierda del texto */
.unizox-rgpd-form-consent__check{
  display:flex !important; align-items:flex-start !important; justify-content:flex-start !important; gap:12px !important;
  margin:16px 0 0 !important; padding:0 !important; width:100% !important; text-align:left !important; cursor:pointer; position:relative;
}
.unizox-rgpd-form-consent__check input[type="checkbox"]{
  position:absolute !important; left:0 !important; top:2px !important; width:22px !important; height:22px !important; margin:0 !important; opacity:0 !important; pointer-events:none !important;
}
.unizox-rgpd-form-consent__fake-check{
  display:inline-block !important; order:0 !important; flex:0 0 22px !important; width:22px !important; height:22px !important; margin:0 !important; border-radius:7px !important;
  border:2px solid var(--ux-rgpd-border) !important; background:#fff !important; position:relative !important; top:1px !important;
}
.unizox-rgpd-form-consent__fake-check::after{
  content:""; position:absolute; left:5px; top:1px; width:7px; height:12px; border-right:3px solid #fff; border-bottom:3px solid #fff; transform:rotate(45deg) scale(0); transform-origin:center; transition:transform .16s ease;
}
.unizox-rgpd-form-consent__check input[type="checkbox"]:checked + .unizox-rgpd-form-consent__fake-check{
  background:var(--ux-rgpd-primary) !important; border-color:var(--ux-rgpd-primary) !important;
}
.unizox-rgpd-form-consent__check input[type="checkbox"]:checked + .unizox-rgpd-form-consent__fake-check::after{transform:rotate(45deg) scale(1);}
.unizox-rgpd-form-consent__check input[type="checkbox"]:focus + .unizox-rgpd-form-consent__fake-check{
  outline:3px solid color-mix(in srgb,var(--ux-rgpd-primary) 18%, transparent); outline-offset:2px;
}
@supports not (color: color-mix(in srgb, black 50%, white)) {
  .unizox-rgpd-form-consent__check input[type="checkbox"]:focus + .unizox-rgpd-form-consent__fake-check { outline:3px solid rgba(22,75,255,.18); }
}
.unizox-rgpd-form-consent__check-text{
  display:block !important; order:1 !important; flex:1 1 auto !important; margin:0 !important; padding:0 !important; color:var(--ux-rgpd-text) !important;
  font-weight:700 !important; font-size:16px !important; line-height:1.45 !important; text-align:left !important;
}

@media (max-width: 767px){
  .unizox-rgpd__panel{padding:22px 18px 18px; border-radius:22px;}
  .unizox-rgpd__settings{grid-template-columns:1fr;}
  .unizox-rgpd__actions{justify-content:stretch;}
  .unizox-rgpd__btn{width:100%;}
}
