.paypal-button-block {
  width: 100%;
  margin: 10px 0;
}

.paypal-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  font: inherit;
  transition: opacity 0.2s;
}

.paypal-button:hover {
  opacity: 0.85;
}

.paypal-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Colors */
.paypal-button--default {
  background-color: #61cbff;
  color: #000;
}

.paypal-button--white {
  background-color: #fff;
  color: #000;
  border: 1px solid #ccc;
}

.paypal-button--black {
  background-color: #000;
  color: #fff;
}

/* Shapes */
.paypal-button--default:not(.paypal-button--sharp):not(.paypal-button--pill) {
  border-radius: 4px;
}

.paypal-button--sharp {
  border-radius: 0;
}

.paypal-button--pill {
  border-radius: 50px;
}

.paypal-button__text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Layout-critical properties are pinned with specific selectors +
   !important: merchant themes ship generic image rules (`img { margin-bottom }`,
   `.product__info img { position: relative; top }`, `display: block`,
   `max-width: 100%; height: auto`) that knock the wordmark off the text line —
   in this flex row a bottom margin alone lifts it by half its value. */
.paypal-button-block .paypal-button__logo {
  display: block !important;
  height: 18px !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  float: none !important;
  position: static !important;
  inset: auto !important;
  align-self: center !important;
  box-shadow: none !important;
  vertical-align: middle !important;
  transform: translateY(1px) !important;
}

/* The product button ships its wordmark hidden until the CTA copy arrives;
   the pinned display above must not reveal it next to the spinner. */
.paypal-button-block .paypal-button__logo[hidden] {
  display: none !important;
}

@keyframes paypal-button-spin {
  to { transform: rotate(360deg); }
}

.paypal-button__spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: paypal-button-spin 0.6s linear infinite;
  vertical-align: middle;
}

.paypal-button-error {
  color: #e22120;
  font-size: 14px;
  margin-top: 8px;
}

.paypal-button-promo {
  margin-top: 10px;
  padding: 1em;
  background-color: #f2f2f2;
  color: #000;
  line-height: 1.5;
  text-align: left;
}


.paypal-button-promo__detail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  color: #000;
  opacity: 0.8;
}

.paypal-button-promo__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.paypal-button-promo__detail-text {
  margin: 0;
}

.paypal-button-promo__learn-more {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.paypal-button-promo__learn-more:hover {
  opacity: 0.7;
}
