/* Lecteurs tiers sans consentement (voir inc/embeds.php) : un encart compact et
   centré, le lecteur prend sa place au clic. Les règles du thème sur les
   paragraphes et boutons sont neutralisées à l'intérieur. */
.gs-embed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 26rem;
  margin: 1rem auto !important;
  padding: 0 !important;
  color: var(--wp--preset--color--text-main);
  text-align: center;
}

.gs-embed > *,
.gs-embed label input {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.gs-embed p:empty,
.gs-embed br {
  display: none;
}

.gs-embed .gs-embed-lancer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  padding: 0.6rem 1.3rem !important;
  border: 1px solid var(--wp--preset--color--text-main);
  border-radius: 999px;
  background: var(--wp--preset--color--text-main);
  color: var(--wp--preset--color--background-main);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gs-embed .gs-embed-lancer::before {
  content: "";
  border-style: solid;
  border-width: 0.4em 0 0.4em 0.65em;
  border-color: transparent transparent transparent currentColor;
}

.gs-embed .gs-embed-lancer:hover,
.gs-embed .gs-embed-lancer:focus-visible {
  background: var(--wp--preset--color--background-main);
  color: var(--wp--preset--color--text-main);
}

.gs-embed .gs-embed-info {
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0.8;
}

.gs-embed .gs-embed-toujours {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  line-height: 1.3;
  cursor: pointer;
}


/* Bandeau de consentement. Les trois boutons ont le même poids (CNIL). */
.gs-consent {
  position: fixed;
  z-index: 9999;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  box-sizing: border-box;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--wp--preset--color--text-main);
  border-radius: 10px;
  background: var(--wp--preset--color--background-main);
  color: var(--wp--preset--color--text-main);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  line-height: 1.45;
}

.gs-consent[hidden] {
  display: none;
}

.gs-consent p {
  margin: 0 0 0.6rem !important;
  padding: 0 !important;
}

.gs-consent .gs-consent-titre {
  font-size: 1rem;
  font-weight: 700;
}

.gs-consent a {
  color: inherit;
  text-decoration: underline;
}

.gs-consent-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0.4rem 0 0.8rem;
}

.gs-consent-services[hidden] {
  display: none;
}

.gs-consent-service {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.gs-consent-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.gs-consent-boutons button,
.gs-consent-ouvrir {
  flex: 1 1 9rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--wp--preset--color--text-main);
  border-radius: 999px;
  background: var(--wp--preset--color--text-main);
  color: var(--wp--preset--color--background-main);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gs-consent-boutons button:hover,
.gs-consent-boutons button:focus-visible,
.gs-consent-ouvrir:hover,
.gs-consent-ouvrir:focus-visible {
  background: var(--wp--preset--color--background-main);
  color: var(--wp--preset--color--text-main);
}

.gs-consent-ouvrir {
  flex: none;
}
