/* MemberPress PayPal Card Fields v2 */

.mepr-ppcf-wrapper {
  margin: 20px 0;
  padding: 24px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

/* Heading */
.mepr-ppcf-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mepr-ppcf-heading h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.mepr-ppcf-card-icons img {
  height: 24px;
}

/* Field rows */
.mepr-ppcf-field-row {
  margin-bottom: 14px;
}

.mepr-ppcf-field-row label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

/* PayPal hosted-field containers */
.mepr-ppcf-hosted-field {
  min-height: 45px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mepr-ppcf-hosted-field:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Half-width rows */
.mepr-ppcf-row-half {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.mepr-ppcf-half {
  flex: 1;
}

/* Billing address inputs (native HTML inputs) */
.mepr-ppcf-billing {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.mepr-ppcf-billing input[type="text"] {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mepr-ppcf-billing input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mepr-ppcf-billing label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

/* Errors */
.mepr-ppcf-errors {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #dc2626;
  font-size: 14px;
  line-height: 1.5;
}

/* Processing */
.mepr-ppcf-processing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #1d4ed8;
  font-size: 14px;
}

.mepr-ppcf-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #bfdbfe;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: ppcf-spin 0.6s linear infinite;
}

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

/* Separator */
.mepr-ppcf-separator {
  display: flex;
  align-items: center;
  margin: 24px 0 16px;
  color: #6b7280;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mepr-ppcf-separator::before,
.mepr-ppcf-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d1d5db;
}

.mepr-ppcf-separator span {
  padding: 0 12px;
}

/* PayPal button container */
.mepr-ppcf-pp-buttons {
  max-width: 400px;
}

.payment-option-paypal_card_fields span:before {
  content: '';
  background: url(https://duramatertesting.com/wp-content/plugins/mepr-paypal-card-fields/paypal.png);
  width: 30px;
  height: 30px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  margin: 0 15px;
}

.payment-option-paypalcommerce span:before {
  content: '';
  background: url(https://duramatertesting.com/wp-content/plugins/memberpress/images/checkout/paypal.png);
  width: 30px;
  height: 30px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  margin: 0 15px;
}

/* Responsive */
@media (max-width: 480px) {
  .mepr-ppcf-wrapper {
    padding: 16px;
  }

  .mepr-ppcf-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .mepr-ppcf-row-half {
    flex-direction: column;
    gap: 10px;
  }
}