/* Banner GDPR - MÁS ANCHO */
#gdpr-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--theme-palette-color-8);
  border: 1px solid var(--theme-palette-color-5);
  padding: 24px 28px;
  z-index: 9999;
  box-shadow: 0px 12px 18px -6px rgba(34, 56, 101, 0.04);
  font-family: var(--theme-font-family);
  max-width: 500px;
  width: 500px;
  border-radius: 15px;
}

/* Texto del banner */
#gdpr-banner p {
  margin: 0;
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
  color: var(--theme-palette-color-7, #374151);
}

/* Cabecera con logo */
#gdpr-banner .gdpr-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.gdpr-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Botones */
#gdpr-banner .gdpr-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin-bottom: 20px;
}

#gdpr-banner .gdpr-actions button,
#gdpr-banner #gdpr-save {
  min-height: var(--theme-button-min-height, 40px);
  box-shadow: var(--theme-button-shadow, none);
  transform: var(--theme-button-transform, none);
  color: var(--theme-button-text-initial-color, #ffffff);
  background: var(--theme-button-background-initial-color, var(--theme-palette-color-1));
  border: var(--theme-button-border, none);
  padding: var(--theme-button-padding, 5px 20px);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#gdpr-banner .gdpr-actions button:hover,
#gdpr-banner #gdpr-save:hover {
  color: var(--theme-button-text-hover-color, #ffffff);
  background: var(--theme-button-background-hover-color, var(--theme-palette-color-2));
}

/* RECHAZAR y SELECCIONAR con estilo secundario */
#gdpr-reject,
#gdpr-custom {
  --theme-button-text-initial-color: var(--theme-palette-color-2, #374151);
  --theme-button-text-hover-color: #ffffff;
  --theme-button-background-initial-color: transparent;
  --theme-button-background-hover-color: var(--theme-palette-color-2, #e1e5e9);
  --theme-button-border: 1px solid var(--theme-palette-color-1);
}

/* Opciones */
#gdpr-options {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--theme-palette-color-5, #e1e5e9);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--theme-palette-color-5, #e1e5e9);
}

#gdpr-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--theme-palette-color-7, #374151);
  cursor: pointer;
}

#gdpr-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--theme-palette-color-1, #3b82f6);
}

/* Placeholder iframes */
.gdpr-iframe {
  border: 1px solid var(--theme-palette-color-5, #e1e5e9);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.05);
}

.gdpr-iframe p {
  margin: 0 0 16px 0;
  color: var(--theme-palette-color-3, #6b7280);
  font-size: 14px;
}

.gdpr-iframe button {
  padding: var(--theme-button-padding, 5px 20px);
  min-height: var(--theme-button-min-height, 40px);
  background: var(--theme-button-background-initial-color, var(--theme-palette-color-1));
  color: var(--theme-button-text-initial-color, #ffffff);
  border: var(--theme-button-border, none);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gdpr-iframe button:hover {
  background: var(--theme-button-background-hover-color, var(--theme-palette-color-2));
}

/* Enlaces legales al pie */
#gdpr-banner .gdpr-legal-links {
  display: flex;
  justify-content: space-around;
  margin-top: 8px;
  color: var(--theme-palette-color-4);
  text-transform: uppercase;
  font-family: var(--theme-font-family);
  font-weight: 700;
  font-size: 10px;
  line-height: 1.3;
}

#gdpr-banner .gdpr-legal-links a {
  color: inherit;
  text-decoration: none;
}

#gdpr-banner .gdpr-legal-links a:hover {
  color: var(--theme-palette-color-2, #374151);
}

/* Botón flotante tipo pestaña lateral */
#gdpr-float {
  position: fixed;
  bottom: 24px;
  left: 0;
  width: 50px;
  height: 60px;
  border-radius: 0 20px 20px 0;
  background: var(--theme-palette-color-8);
  border: 1px solid var(--theme-palette-color-5);
  border-left: none;
  box-shadow: 4px 12px 20px -6px rgba(34, 56, 101, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 8px;
  z-index: 9998;
  transition: all 0.3s ease;
  transform: translateX(-30px);
}

#gdpr-float svg {
  width: 32px;
  height: 32px;
  color: var(--theme-palette-color-3);
  transition: transform 0.3s ease, margin-left 0.3s ease;
}

#gdpr-float:hover {
  transform: translateX(0);
  box-shadow: 0 16px 30px -8px rgba(34, 56, 101, 0.2);
}

#gdpr-float:hover svg {
  margin-left: 0;
  transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
  #gdpr-banner {
    left: 16px;
    right: 16px;
    max-width: none;
    width: auto;
  }
  
  #gdpr-banner .gdpr-actions {
    flex-direction: column;
    gap: 10px;
  }

  #gdpr-float {
    bottom: 20px;
    height: 56px;
    width: 50px;
    transform: translateX(-26px);
  }

  #gdpr-float:hover {
    transform: translateX(0);
  }
}
