/* === Replace English tab labels with Romanian (robust selectors + fallbacks) === /
/ hide the original label spans if present /
.wp-block-jetpack-recurring-payments .jetpack-recurring-payments-tabs button span,
.wp-block-jetpack-payment-button .jetpack-recurring-payments-tabs button span,
button[aria-label="One-time"] span,
button[aria-label*="Monthly"] span,
button[aria-label*="Yearly"] span {
display: none !important;
}

/* insert Romanian text using attribute selectors if aria-labels exist /
button[aria-label="One-time"]::after { content: "O singură dată" !important; display:inline-block; padding: .35em .75em; }
button[aria-label*="Monthly"]::after { content: "Lunar" !important; display:inline-block; padding: .35em .75em; }
button[aria-label*="Yearly"]::after { content: "Anual" !important; display:inline-block; padding: .35em .75em; }

/* fallback: use nth-child if markup is tabs in order */

.wp-block-jetpack-recurring-payments .jetpack-recurring-payments-tabs button:nth-child(1)::after,
.wp-block-jetpack-payment-button .jetpack-recurring-payments-tabs button:nth-child(1)::after {
  content: "O singură dată" !important;
  display: inline-block;
  padding: .35em .75em;
}

.wp-block-jetpack-recurring-payments .jetpack-recurring-payments-tabs button:nth-child(2)::after,
.wp-block-jetpack-payment-button .jetpack-recurring-payments-tabs button:nth-child(2)::after {
  content: "Lunar" !important;
  display: inline-block;
  padding: .35em .75em;
}

.wp-block-jetpack-recurring-payments .jetpack-recurring-payments-tabs button:nth-child(3)::after,
.wp-block-jetpack-payment-button .jetpack-recurring-payments-tabs button:nth-child(3)::after {
  content: "Anual" !important;
  display: inline-block;
  padding: .35em .75em;
}

/* hover */

.wp-block-jetpack-recurring-payments button:hover,
.wp-block-jetpack-payment-button button:hover {
  filter: brightness(.95) !important;
}

/* small visual polish */

.wp-block-jetpack-recurring-payments .jetpack-recurring-payments-tabs button::after,
.wp-block-jetpack-payment-button .jetpack-recurring-payments-tabs button::after {
  border-radius: 6px;
}

.wp-block-jetpack-donations .donations__nav-item:first-child {
  text-transform: none;
  background-color: #ffffff;
}

.wp-block-jetpack-donations .donations__nav-item.is-active {
  background-color: #ffca0a;
}