/**
 * Frontend styles for Vigilance OGM buttons inserted by the CKEditor 5 plugin.
 * The inline style set by the editor (background-color, color) wins over these
 * defaults — these set the baseline, the size presets and the border-radius.
 */
.vigilanceogm-button {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 7rem;
  background-color: #a5c439;
  color: #fff;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  transition: opacity 0.2s ease;
}

.vigilanceogm-button:hover,
.vigilanceogm-button:focus {
  opacity: 0.85;
  text-decoration: none;
  color: inherit;
}

/* Size presets. */
.vigilanceogm-button.vog-size-m {
  padding: 10px 22px;
  font-size: 14px;
}

.vigilanceogm-button.vog-size-l {
  padding: 14px 30px;
  font-size: 16px;
}

.vigilanceogm-button.vog-size-xl {
  padding: 18px 42px;
  font-size: 19px;
}

/* Centered modifier — works with any size preset. */
.vigilanceogm-button.vog-centered {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Below 768px (Bootstrap md breakpoint), tone down L and XL so they fit
 * comfortably on narrow viewports. M stays as-is. */
@media (max-width: 767.98px) {
  .vigilanceogm-button.vog-size-l {
    padding: 12px 24px;
    font-size: 15px;
  }
  .vigilanceogm-button.vog-size-xl {
    padding: 14px 28px;
    font-size: 16px;
  }
}
