/* All styles are scoped to the new contact forms; the original email URL remains the source of the player email. */
.co-baseball-email-card,
.co-baseball-email-card * ,
.co-baseball-dm-tools,
.co-baseball-dm-tools * { box-sizing: border-box; }
.co-baseball-email-card {
  width: 100%; max-width: 100%; min-width: 0;
  margin: 24px auto; padding: clamp(18px, 3vw, 30px);
  border: 1px solid #dedede; border-radius: 14px;
  background: #fff; color: #1c1c1c;
  box-shadow: 0 3px 14px rgba(0,0,0,.055);
  overflow-wrap: anywhere;
}
.co-baseball-email-card h2 { margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 29px); line-height: 1.2; color: #171717; }
.co-baseball-email-card .co-email-intro { margin: 0 0 20px; line-height: 1.55; color: #535353; }
.co-baseball-email-card .co-email-fields {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px; row-gap: 14px; margin-bottom: 17px;
}
.co-baseball-email-card .co-email-field { min-width: 0; }
.co-baseball-email-card .co-email-field-wide { grid-column: 1 / -1; }
.co-baseball-email-card label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 650; line-height: 1.35; }
.co-baseball-email-card .co-email-required { color: #ab3434; }
.co-baseball-email-card input,
.co-baseball-email-card textarea {
  display: block; width: 100%; max-width: 100%; min-width: 0;
  margin: 0; padding: 11px 12px; background: #fff; color: #171717;
  border: 1px solid #bdbdbd; border-radius: 7px;
  font: inherit; font-size: 15px; line-height: 1.4;
}
.co-baseball-email-card textarea { min-height: 85px; resize: vertical; }
.co-baseball-email-card input:focus,
.co-baseball-email-card textarea:focus { outline: 2px solid #195b8d; outline-offset: 1px; }
.co-baseball-email-card .co-email-preview-label { display: block; margin: 12px 0 7px; font-weight: 700; font-size: 16px; }
.co-baseball-email-card .co-email-subject-label { display: block; margin: 0 0 8px; font-size: 14px; overflow-wrap: anywhere; }
.co-baseball-email-card .co-email-preview {
  width: 100%; max-width: 100%; min-height: 220px; max-height: 380px;
  margin: 0 0 15px; padding: 15px;
  overflow: auto; overflow-wrap: anywhere; white-space: pre-wrap;
  border-radius: 8px; border: 1px solid #e3e3e3;
  background: #f7f8f9; color: #202020;
  font: inherit; font-size: 14px; line-height: 1.65;
}
.co-baseball-email-card .co-email-actions,
.co-baseball-dm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.co-baseball-email-card .co-email-btn,
.co-baseball-dm-tools .co-dm-copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  max-width: 100%; min-height: 44px; padding: 11px 16px;
  border: 1px solid #1b1b1b; border-radius: 7px;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.25;
  text-align: center; cursor: pointer;
}
.co-baseball-email-card .co-email-btn-primary { background: #191919; color: #fff; }
.co-baseball-email-card .co-email-btn-secondary,
.co-baseball-dm-tools .co-dm-copy-btn { background: #fff; color: #1b1b1b; }
.co-baseball-email-card .co-email-btn:hover,
.co-baseball-dm-tools .co-dm-copy-btn:hover { filter: brightness(.91); }
.co-baseball-email-card .co-email-status,
.co-baseball-dm-tools .co-dm-status { display: block; margin: 11px 0 0; font-size: 14px; font-weight: 600; }
.co-baseball-email-card .co-email-status[data-state="error"],
.co-baseball-dm-tools .co-dm-status[data-state="error"] { color: #a12626; }
.co-baseball-email-card .co-email-status[data-state="success"],
.co-baseball-dm-tools .co-dm-status[data-state="success"] { color: #18603e; }
.co-baseball-email-card .co-email-footnote { font-size: 13px; line-height: 1.45; color: #666; margin: 13px 0 0; }
.co-baseball-dm-tools { margin-top: 12px; }
.co-baseball-dm-card { margin-top: 14px; }
.co-baseball-dm-card .co-dm-preview { min-height: 130px; max-height: 290px; }
.co-baseball-dm-card .co-email-footnote { margin-bottom: 0; }
@media (max-width: 620px) {
  .co-baseball-email-card .co-email-fields { grid-template-columns: minmax(0,1fr); }
  .co-baseball-email-card .co-email-field-wide { grid-column: auto; }
  .co-baseball-email-card .co-email-actions > button { flex: 1 1 100%; }
}
/* These styles affect only the contact tools, never the broader Gutenberg layout. */
.co-baseball-email-card .co-email-template-source { display:none !important; }
.co-baseball-email-card .co-demo-banner { margin:0 0 12px; padding:10px 12px; border-left:4px solid #8a5d00; background:#fff7df; color:#60410d; font-size:13px; }
.co-baseball-email-card a.co-email-btn { text-decoration:none; }
.co-baseball-email-card a.co-email-btn:focus-visible { outline:3px solid #125387; outline-offset:3px; }
.co-baseball-email-card .co-email-btn-gmail { background:#fff; color:#1b1b1b; border-color:#888; }
.co-baseball-email-card .co-email-actions > a { flex: 0 1 auto; }
.co-baseball-email-card .co-email-preview { overflow-wrap:anywhere; }
@media (max-width: 620px) { .co-baseball-email-card .co-email-actions > a { flex:1 1 100%; } }
