/* Minerva Community Buttons: all selectors are intentionally scoped to .mcb-. */
.mcb-community {
  --mcb-surface: #ffffff;
  --mcb-border: #dbe4ee;
  --mcb-heading: #172033;
  --mcb-muted: #526176;
  --mcb-whatsapp: #087f4d;
  --mcb-whatsapp-dark: #05643c;
  --mcb-telegram: #0969b5;
  --mcb-telegram-dark: #07518c;
  display: block;
  width: min(100%, 760px);
  margin: 20px auto;
  padding: 16px;
  box-sizing: border-box;
  background: var(--mcb-surface);
  border: 1px solid var(--mcb-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-wrap: anywhere;
}

.mcb-community,
.mcb-community * {
  box-sizing: border-box;
}

.mcb-community__heading {
  margin: 0 0 12px;
  color: var(--mcb-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.mcb-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.mcb-community--stacked .mcb-buttons {
  grid-template-columns: minmax(0, 1fr);
}

.mcb-community--single .mcb-buttons {
  grid-template-columns: minmax(0, 1fr);
}

.mcb-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  touch-action: manipulation;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.mcb-button:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
}

.mcb-button:active {
  transform: translateY(0) scale(0.98);
}

.mcb-button:focus-visible {
  outline: 3px solid #172033;
  outline-offset: 3px;
}

.mcb-button--whatsapp {
  background: var(--mcb-whatsapp);
  box-shadow: 0 4px 12px rgba(8, 127, 77, 0.22);
}

.mcb-button--whatsapp:hover {
  background: var(--mcb-whatsapp-dark);
}

.mcb-button--telegram {
  background: var(--mcb-telegram);
  box-shadow: 0 4px 12px rgba(9, 105, 181, 0.22);
}

.mcb-button--telegram:hover {
  background: var(--mcb-telegram-dark);
}

.mcb-button__icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: currentColor;
}

.mcb-button__label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mcb-button__arrow {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 640px) {
  .mcb-community {
    width: 100%;
    margin: 16px auto;
    padding: 14px;
    border-radius: 10px;
  }

  .mcb-buttons,
  .mcb-community--inline .mcb-buttons,
  .mcb-community--responsive .mcb-buttons {
    grid-template-columns: minmax(0, 1fr);
  }

  .mcb-button {
    min-height: 50px;
    padding: 13px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mcb-button {
    transition: none;
  }

  .mcb-button:hover,
  .mcb-button:active {
    transform: none;
  }
}
