.mcpp-card {
  --mcpp-white: #ffffff;
  --mcpp-text: #111111;
  --mcpp-text-soft: #333333;
  --mcpp-muted: #666666;
  --mcpp-blue: #00467b;
  --mcpp-blue-soft: #dfe9f2;
  --mcpp-border: #e3e3e3;
  --mcpp-border-dark: #d6d6d6;
  --mcpp-error: #9b1c1c;
  width: 100%;
  max-width: 100%;
  margin: 14px 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--mcpp-text);
  background: var(--mcpp-white);
  border: 1px solid var(--mcpp-border);
  border-radius: 10px;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.7;
}

.mcpp-card,
.mcpp-card * {
  box-sizing: border-box;
}

.mcpp-card__header {
  padding: 16px 18px 0;
}

.mcpp-brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.mcpp-paypal-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mcpp-paypal-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f5f8fb;
  color: #003087;
  border: 1px solid #e1e7ee;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.mcpp-paypal-badge__word {
  display: inline-flex;
  align-items: baseline;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mcpp-paypal-badge__word-dark {
  color: #003087;
}

.mcpp-paypal-badge__word-light {
  color: #009cde;
}

.mcpp-brandrow__meta {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  background: #f7f7f7;
  border: 1px solid var(--mcpp-border);
  border-radius: 999px;
  color: var(--mcpp-text-soft);
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
}

.mcpp-card__title {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--mcpp-text);
}

.mcpp-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--mcpp-text-soft);
}

.mcpp-card__footer {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mcpp-muted);
}

.mcpp-form {
  display: block;
  width: 100%;
  padding: 16px 18px 18px;
  background: var(--mcpp-white);
  border: 0;
}

.mcpp-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.mcpp-field {
  min-width: 0;
}

.mcpp-label {
  display: block;
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--mcpp-text-soft);
}

.mcpp-input,
.mcpp-select {
  display: block;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--mcpp-border-dark);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--mcpp-text);
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.mcpp-input::placeholder {
  color: #8a8a8a;
}

.mcpp-input:focus,
.mcpp-select:focus {
  outline: none;
  border-color: #bcc9d8;
  box-shadow: 0 0 0 2px rgba(0, 70, 123, 0.06);
}

.mcpp-input--error,
.mcpp-input--error:focus {
  border-color: #c64b4b;
  box-shadow: 0 0 0 2px rgba(198, 75, 75, 0.07);
}

.mcpp-amount-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.mcpp-select {
  min-width: 118px;
  background: #ffffff;
}

.mcpp-currency-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 0 14px;
  border: 1px solid var(--mcpp-border);
  border-radius: 8px;
  background: #f7f7f7;
  font-size: 15px;
  font-weight: 500;
  color: #444444;
}

.mcpp-error {
  min-height: 18px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--mcpp-error);
}

.mcpp-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
  padding: 11px 14px;
  text-align: center;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--mcpp-blue);
  background: #f5f5f5;
  border: 1px solid var(--mcpp-border-dark);
  border-radius: 8px;
  box-shadow: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  cursor: pointer;
}

.mcpp-button:hover,
.mcpp-button:focus {
  background: #eeeeee;
  color: #000000;
  border-color: #cfcfcf;
  outline: none;
  transform: translateY(-1px);
}

.mcpp-button[disabled] {
  opacity: .8;
  cursor: wait;
  transform: none;
}

.mcpp-button__main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mcpp-button.is-loading .mcpp-button__main::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 70, 123, 0.2);
  border-top-color: #00467b;
  border-radius: 50%;
  animation: mcpp-spin .7s linear infinite;
}

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

.mcpp-notice {
  margin: 16px 18px 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.mcpp-notice--error {
  background: #fff4f4;
  border: 1px solid #efcaca;
  color: #8d1f1f;
}

.mcpp-notice--success {
  background: #f2fbf4;
  border: 1px solid #c9e8cf;
  color: #1f6e31;
}

@media (max-width: 767px) {
  .mcpp-card__header {
    padding: 14px 12px 0;
  }

  .mcpp-form {
    padding: 14px 12px 16px;
  }

  .mcpp-brandrow {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .mcpp-paypal-badge__word {
    font-size: 20px;
  }

  .mcpp-card__title {
    font-size: 18px;
  }

  .mcpp-card__text,
  .mcpp-input,
  .mcpp-select,
  .mcpp-button {
    font-size: 16px;
  }

  .mcpp-amount-wrap {
    grid-template-columns: 1fr;
  }
}
