/* Event / Donate CTA block */

/* Wrapper must not paint its own button chrome — colors live on the link only. */
.wp-block-youdonatefoundation-event-cta.ydf-event-cta {
  display: contents;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ydf-event-cta .wp-block-button {
  margin: 0;
}

.ydf-event-cta .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 9999px !important;
  border: none !important;
  font-weight: 600;
  text-decoration: none;
}

.ydf-event-cta.ydf-donate-btn .wp-block-button__link {
  color: #ffffff !important;
  background-color: var(--wp--preset--color--orange, #ef6a08) !important;
}

.ydf-event-cta.ydf-donate-btn .wp-block-button__link:hover {
  color: #ffffff !important;
  background-color: var(--wp--preset--color--forest, #022c57) !important;
}

.ydf-event-cta__hint {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  opacity: 0.85;
  text-align: center;
  width: 100%;
}

.ydf-event-cta__icon {
  line-height: 1;
}

/* Reuse theme arrow when no custom after-icon is set. */
.ydf-event-cta--theme-arrow.ydf-donate-btn .wp-block-button__link::after {
  content: "";
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Header CTA — no arrow (hero and other CTAs keep theme-arrow). */
.ydf-header-bar
  .ydf-event-cta--theme-arrow.ydf-donate-btn
  .wp-block-button__link::after {
  display: none !important;
  content: none !important;
}

/* Site editor preview */
.block-editor-block-list__block .ydf-event-cta .wp-block-button__link {
  cursor: default;
}

.block-editor-block-list__block
  .ydf-event-cta
  .wp-block-button__link:not(.has-background) {
  color: #ffffff !important;
  background-color: var(--wp--preset--color--orange, #ef6a08) !important;
}
