/* Approved light messenger buttons. Existing gallery and Telegram handlers are unchanged. */
#menclub-study .mc-contact-actions {
  order: 3;
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

#menclub-study .mc-contact-actions > .mc-contact-button {
  /* Reset the old Telegram order so the two buttons follow their DOM order. */
  order: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 12px;
  border: 0;
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease;
}

#menclub-study .mc-contact-button .mc-contact-label {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

#menclub-study .mc-contact-actions > .mc-telegram {
  background: #e9f4fb;
  color: #14658a;
}

#menclub-study .mc-contact-actions > .mc-whatsapp {
  background: #eaf7ee;
  color: #1f6b3b;
}

#menclub-study .mc-contact-actions > .mc-telegram:hover { background: #ddeef8; }
#menclub-study .mc-contact-actions > .mc-whatsapp:hover { background: #dbefdf; }
#menclub-study .mc-contact-actions > .mc-contact-button:active { filter: brightness(.96); }
#menclub-study .mc-contact-actions > .mc-contact-button:focus-visible {
  outline: 2px solid #176bba;
  outline-offset: 4px;
}

#menclub-study .mc-contact-icon {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--mc-contact-icon) center / contain no-repeat;
  mask: var(--mc-contact-icon) center / contain no-repeat;
}

#menclub-study .mc-contact-icon--telegram { --mc-contact-icon: url('assets/icons/contact-telegram.svg'); }
#menclub-study .mc-contact-icon--whatsapp { --mc-contact-icon: url('assets/icons/contact-whatsapp.svg'); }

@container (max-width: 599px) {
  #menclub-study .mc-contact-actions { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  #menclub-study .mc-contact-actions > .mc-contact-button { transition: none; }
}
