/* 可選樣式：各站可覆蓋 */
.yifu-payuni-form {
  display: grid;
  gap: 0.75rem;
  max-width: none;
  width: 100%;
  font-family: system-ui, sans-serif;
}
.yp-field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
}
.yp-field input,
.yp-field textarea {
  padding: 0.55rem 0.65rem;
  border: 1px solid #cfd6e0;
  border-radius: 8px;
  font: inherit;
  /* ≥16px，避免 iOS 聚焦時整頁放大 */
  font-size: 16px;
}
.yp-breakdown {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #5a6577;
  display: grid;
  gap: 0.35rem;
}
.yp-breakdown p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.yp-breakdown p > span:first-child {
  font-weight: 600;
}
.yp-breakdown [data-tax],
.yp-breakdown [data-fee],
.yp-breakdown [data-total] {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}
.yp-total {
  margin: 0.15rem 0 0;
  padding-top: 0.35rem;
  border-top: 1px solid #e2e8f0;
  font-size: 1.05rem;
  color: inherit;
}
.yp-total:only-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.yp-total span:first-child {
  font-weight: 700;
}
.yp-total strong {
  font-weight: 800;
  font-size: 1.12em;
}
.yp-loading {
  margin: 0;
  color: #5a6577;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  min-height: 8rem;
  width: 100%;
}
.yp-spinner {
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid #cfd6e0;
  border-top-color: #2168ac;
  border-radius: 50%;
  animation: yp-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes yp-spin {
  to {
    transform: rotate(360deg);
  }
}
.yp-error {
  color: #b42318;
  margin: 0;
  font-size: 0.9rem;
}
.yp-submit {
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 8px;
  background: #2168ac;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.yp-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
