/**
 * @file
 * Button — Modal SDC. Outline pill with plus icon; opens a Modal by ID.
 *
 * Figma desktop 29999:57107 > 29727:97467 — 48px height, 3px border, 19px label,
 *   padding 12px 16px 10px 24px, gap 8px, hug width.
 * Figma mobile 29999:57211 > 28965:98460 — full width, same padding/border, no fixed height.
 */

button.btn.btn-modal {
  --size-button: 19px;

  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  height: 48px;
  padding: 12px 16px 10px 24px;
  border: 3px solid var(--color-dark-coral);
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-dark-coral);
  font-family: var(--font-agenda);
  font-size: var(--size-button);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

button.btn.btn-modal:hover {
  background: var(--color-coral);
  border-color: var(--color-coral);
  color: var(--color-white);
}

button.btn.btn-modal:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-outer);
  outline-offset: var(--focus-ring-width);
  box-shadow: 0 0 0 var(--focus-ring-width) var(--focus-ring-inner);
}

button.btn.btn-modal .btn__label {
  line-height: 1;
}

button.btn.btn-modal .btn__icon {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  overflow: visible;
  fill: currentColor;
  stroke: currentColor;
}

@media (max-width: 767px) {

  button.btn.btn-modal {
    width: 100%;
    height: auto;
    min-height: 48px;
    white-space: normal;
  }

}

@media (prefers-reduced-motion: reduce) {

  button.btn.btn-modal {
    transition: none;
  }

}
