:root {
  --gdpr-button-color: red;
  --gdpr-buttontext-color: white;
  --gdpr-title-color: red;
  --gdpr-link-color: red;
  --gdpr-text-color: white;
  --gdpr-background-color: rgba(0, 0, 0, 0.85);

  /* extras para look moderno (no rompen nada si no los tocas) */
  --gdpr-border-color: rgba(255, 255, 255, 0.10);
  --gdpr-shadow: 0 12px 28px rgba(0,0,0,.35);
  --gdpr-radius: 14px;
}

body.aio-body-noscroll{
  overflow: hidden;
}

#gdpr-cookie-small-button{
  position: fixed;
  bottom: 0;
  padding: 2px 9px;
  font-size: 12px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  z-index: 99999990;
  left: 7px;
  cursor: pointer;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background: #000;
  color: #fff;
  display: none;
}

#gdpr-cookie-small-button.visible{
  display: block;
}

body.iframe #gdpr-cookie-small-button{
  display: none;
}

#gdpr-cookie-small-button span{
  text-indent: -9999px;
  display: none;
}

#gdpr-cookie-small-button img{
  width: 20px;
  height: 20px;
  margin: 0;
  max-height: 30px;
  margin-top: 4px;
  margin-bottom: 2px;
}

/* -------------------------------- */
/* COOKIE MESSAGE (base + variantes) */
/* -------------------------------- */

#gdpr-cookie-message{
  position: fixed;
  max-width: 420px;
  background-color: var(--gdpr-background-color);
  padding: 18px;
  border-radius: var(--gdpr-radius);
  box-shadow: var(--gdpr-shadow);
  border: 1px solid var(--gdpr-border-color);
  font-family: system-ui;
  z-index: 9999999999999;
  display:none;
}

/* posiciones flotantes (compatibles con tu selector actual) */
#gdpr-cookie-message,
#gdpr-cookie-message.bottomright{
  right: 30px;
  bottom: 30px;
}

#gdpr-cookie-message.bottomleft{
  left: 30px;
  right: auto;
  bottom: 30px;
}

#gdpr-cookie-message.bottomcenter{
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: 30px;
}

/* NUEVO: barra inferior 100% */
#gdpr-cookie-message.bottom100{
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: 100%;
  max-width: none;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  padding: 14px 18px;
}

/* visibilidad */
#gdpr-cookie-message.visible{
  display:block;
}

/* cuando es barra 100%, el layout pasa a horizontal */
#gdpr-cookie-message.bottom100.visible{
  display:flex;
  align-items: center;
  gap: 16px;
}

/* tipografía */
#gdpr-cookie-message div.h4,
#gdpr-cookie-message div.h5{
  color: var(--gdpr-title-color);
  font-family: system-ui;
  font-weight: 650;
  margin: 0 0 10px 0;
}

#gdpr-cookie-message .h4{
  font-size: 16px;
  line-height: 1.2;
  text-align: left;
}

#gdpr-cookie-message .h5{
  font-size: 14px;
  line-height: 1.2;
}

/* texto */
#gdpr-cookie-message p,
#gdpr-cookie-message ul{
  color: var(--gdpr-text-color);
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 14px 0;
}

/* en barra horizontal el texto ocupa el espacio */
#gdpr-cookie-message.bottom100 p{
  margin: 0;
  flex: 1 1 auto;
  min-width: 280px;
}

/* enlaces */
#gdpr-cookie-message a{
  color: var(--gdpr-link-color);
  text-decoration: none;
  font-size: 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,.25);
  transition: border-color .2s ease, opacity .2s ease;
}

#gdpr-cookie-message a:hover{
  border-bottom-color: rgba(255,255,255,.55);
  opacity: .95;
}

/* lista de cookies */
#gdpr-cookie-message li{
  width: 49%;
  display: inline-block;
}

#gdpr-cookie-message input[type="checkbox"]{
  float: left;
  margin-top: 4px;
  margin-right: 5px;
}

/* botones */
#gdpr-cookie-message .buttons,
#gdpr-cookie-message .buttonsave{
  margin-bottom: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#gdpr-cookie-message button,
button#ihavecookiesBtn{
  border: 1px solid transparent;
  background: var(--gdpr-button-color);
  color: var(--gdpr-buttontext-color);
  font-family: system-ui;
  font-size: 13px;
  padding: 10px 14px !important;
  border-radius: 999px;
  margin-left: 0;
  cursor: pointer;
  transition: transform .12s ease, opacity .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  line-height: 1;
}

#gdpr-cookie-message button:hover{
  transform: translateY(-1px);
  opacity: .95;
}

/* secundarios (rechazar/ajustar/guardar) con look moderno */
#gdpr-cookie-message button#gdpr-cookie-reject,
#gdpr-cookie-message button#gdpr-cookie-advanced,
#gdpr-cookie-message button#gdpr-cookie-save{
  background: rgba(255,255,255,.10);
  color: var(--gdpr-text-color);
  border-color: rgba(255,255,255,.16);
}

#gdpr-cookie-message button:active{
  transform: translateY(0);
}

#gdpr-cookie-message button:disabled{
  opacity: 0.3;
  transform: none;
}

/* en barra 100% alinea botones a la derecha */
#gdpr-cookie-message.bottom100 .buttons,
#gdpr-cookie-message.bottom100 .buttonsave{
  flex: 0 0 auto;
  justify-content: flex-end;
}

/* responsive */
@media only screen and (max-width: 999px){
  #gdpr-cookie-message{
    padding: 12px;
    max-width: 420px;
  }

  #gdpr-cookie-message,
  #gdpr-cookie-message.bottomright{
    right: 10px;
    left: 10px;;
    bottom: 10px;
  }

  #gdpr-cookie-message.bottomleft{
    left: 15px;
    bottom: 15px;
  }

  #gdpr-cookie-message.bottomcenter{
    bottom: 15px;
  }

  #gdpr-cookie-message.bottom100{
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
  }

  #gdpr-cookie-message div.h4,
  #gdpr-cookie-message div.h5{
    margin-bottom: 6px;
  }

  #gdpr-cookie-message .h4{
    font-size: 15px;
  }

  #gdpr-cookie-message .h5{
    font-size: 13px;
  }

  #gdpr-cookie-message p,
  #gdpr-cookie-message ul{
    font-size: 13px;
    margin: 0 0 10px 0;
  }
}

/* móvil: la barra 100% apila, botones full width */
@media only screen and (max-width: 720px){
  #gdpr-cookie-message.bottom100.visible{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #gdpr-cookie-message.bottom100 p{
    min-width: 0;
  }

  #gdpr-cookie-message.bottom100 .buttons,
  #gdpr-cookie-message.bottom100 .buttonsave{
    width: 100%;
  }

  #gdpr-cookie-message.bottom100 button{
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
  }
}

@media only screen and (max-width: 480px){
  #gdpr-cookie-small-button{
    text-indent: -99999px;
    padding: 0;
  }

  #gdpr-cookie-small-button .iconcookie{
    max-width: fit-content;
    margin: 0;
    height: 30px;
    width: 30px;
    color: #fff;
    position: absolute;
    top: -11px;
    left: -3px;
    background: #000;
    padding: 4px;
    border-radius: 5px;
  }

  #gdpr-cookie-small-button img{
    display: block;
  }

  #gdpr-cookie-small-button span{
    display: none;
  }
}