/**
 * beshop_consent - Estilos mínimos. El aspecto de la casilla lo da el tema beshop
 * (beshop_checkbox / beshop_checkboxbox / beshop_checkboxtext); aquí solo espaciado,
 * desplegable y errores. Colores sobreescribibles con variables CSS desde el tema.
 */
.beshop_consent {
  --ctn-error: #c62828;
  --ctn-muted: inherit;
  margin: 0.75rem 0;
  text-align: left;
}

.beshop_consent__item {
  margin-bottom: 0.6rem;
}

.beshop_consent__item .beshop_checkboxtext a,
.beshop_consent__info a,
.beshop_consent__moretext a {
  text-decoration: underline;
}

.beshop_consent__info {
  font-size: 0.875em;
  line-height: 1.5;
  color: var(--ctn-muted);
}

.beshop_consent__req {
  color: var(--ctn-error);
}

/* Desplegable nativo: funciona sin JS y cada bloque abre solo el suyo. */
.beshop_consent__more {
  margin: 0.25rem 0 0;
  font-size: 0.8125em;
  line-height: 1.5;
}

.beshop_consent__more > summary {
  display: inline-block;
  cursor: pointer;
  text-decoration: underline;
  list-style: none;
}

.beshop_consent__more > summary::-webkit-details-marker {
  display: none;
}

.beshop_consent__more-close,
.beshop_consent__more[open] .beshop_consent__more-open {
  display: none;
}

.beshop_consent__more[open] .beshop_consent__more-close {
  display: inline;
}

.beshop_consent__moretext {
  margin-top: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-left: 2px solid currentColor;
  opacity: 0.9;
}

.beshop_consent__moretext p {
  margin: 0 0 0.4rem;
}

.beshop_consent__error {
  margin: 0.25rem 0 0;
  font-size: 0.8125em;
  color: var(--ctn-error);
}

.beshop_consent__item.has-error .beshop_checkboxbox {
  border-color: var(--ctn-error) !important;
  outline: 1px solid var(--ctn-error);
}

.beshop_consent__captcha-wrap {
  margin-top: 0.75rem;
}

/* El widget de Google mide 304px: en móviles muy estrechos se escala para no desbordar. */
@media (max-width: 340px) {
  .beshop_consent__captcha {
    transform: scale(0.88);
    transform-origin: 0 0;
  }
}

.beshop_consent__more > summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
