.rich-text {
  position: relative;
  background-color: rgb(var(--color-page-background));
  max-width:var(--width-max);
  margin-left:auto;
  margin-right:auto;
}

.rich-text .block-heading {
  width: 100%;
}

.rich-text .block-button-group .button {
  white-space: normal;
}

.rich-text__background-image {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  user-select: none;
}

.rich-text__background-image img,
.rich-text__background-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rich-text__content {
  position: relative;
}

.rich-text__content .block-heading,
.rich-text__content .rte,
.rich-text__content .block-button-group {
  position: relative;
  z-index: 3;
}

/* AV1-T597 — Shopline "Line" button style injecte un border-bottom: 2px solid
   sur .container avec width: 100%, créant une ligne pleine largeur indésirable.
   On la neutralise ici. Class "line-button-group" = native Shopline, absente du repo. */
.rich-text__buttons.line-button-group .container {
  border-bottom: none;
}
