/*
 * Banner de cookies de /my/ (_partials/gx-consent.tpl). «Rechazar» y «Aceptar todo»
 * con el mismo peso: rechazar tiene que ser tan fácil como aceptar (guía de cookies
 * de la AEPD). Todo cuelga de #gx-consent para no chocar con el tema.
 */
#gx-consent.gx-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  padding: 0 16px 16px;
  pointer-events: none;
}

#gx-consent.gx-consent[hidden],
#gx-consent [hidden] {
  display: none !important;
}

#gx-consent .gx-consent-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.5;
  color: #1d1d1f;
  text-align: left;
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, .18);
  pointer-events: auto;
}

#gx-consent .gx-consent-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
}

#gx-consent .gx-consent-text {
  margin: 0 0 14px;
  color: #475467;
}

#gx-consent .gx-consent-text a {
  font-weight: 600;
  color: #007299;
  text-decoration: underline;
}

#gx-consent .gx-consent-options {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

#gx-consent .gx-consent-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  font-weight: 400;
  color: #475467;
  cursor: pointer;
}

#gx-consent .gx-consent-option input {
  flex: 0 0 auto;
  margin-top: 4px;
}

#gx-consent .gx-consent-option strong {
  color: #1d1d1f;
}

#gx-consent .gx-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

#gx-consent .gx-consent-btn {
  min-width: 140px;
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 42px;
  color: #fff;
  text-transform: none;
  background: #007299;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

#gx-consent .gx-consent-btn:hover,
#gx-consent .gx-consent-btn:focus {
  background: #005a7a;
}

#gx-consent .gx-consent-btn.gx-consent-link {
  min-width: 0;
  height: auto;
  margin-right: auto;
  padding: 0;
  line-height: 1.5;
  color: #007299;
  text-decoration: underline;
  background: none;
}

#gx-consent .gx-consent-btn.gx-consent-link:hover,
#gx-consent .gx-consent-btn.gx-consent-link:focus {
  color: #005a7a;
  background: none;
}

@media (max-width: 575px) {
  #gx-consent.gx-consent {
    padding: 0;
  }

  #gx-consent .gx-consent-box {
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 14px 14px 0 0;
  }

  #gx-consent .gx-consent-actions .gx-consent-btn {
    flex: 1 1 40%;
    min-width: 0;
  }

  #gx-consent .gx-consent-actions .gx-consent-btn.gx-consent-link {
    flex: 1 1 100%;
    order: 3;
    margin: 0;
    text-align: center;
  }
}

/* Enlaces del pie (_partials/footer.tpl). */
.gx-consent-footer {
  margin: 0;
  padding: 14px 0;
  font-size: 13px;
  text-align: center;
  color: rgba(255, 255, 255, .6);
}

.gx-consent-footer a {
  color: rgba(255, 255, 255, .85);
  text-decoration: underline;
}

/* Pie del checkout (blanco). */
.gx-consent-footer.gx-consent-footer--light {
  color: #98a2b3;
}

.gx-consent-footer.gx-consent-footer--light a {
  color: #667085;
}

/* Dentro de la app no hay banner ni enlaces (html.gx-app, marcado en head.tpl). */
html.gx-app #gx-consent,
html.gx-app .gx-consent-footer {
  display: none !important;
}
