/* Opus Next — case de paiement Stripe (sous le CTA de l'offre) */
.opus-pay[hidden],
.opus-pay [hidden] {
  display: none !important;
}

.opus-pay-cta-hidden {
  display: none !important;
}

.opus-pay {
  position: relative;
  z-index: 1;
  margin: 4px 0 18px;
  padding: 18px 16px 16px;
  background: #fff;
  border: 1px solid #E6EAF1;
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(15, 25, 55, 0.02), 0 18px 40px -24px rgba(15, 25, 55, 0.35);
  color: #0B1220;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-align: left;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.opus-pay.is-open {
  opacity: 1;
  transform: none;
}

.opus-pay *,
.opus-pay *::before,
.opus-pay *::after {
  box-sizing: border-box;
}

.opus-pay__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #EEF1F6;
}

.opus-pay__heading:focus {
  outline: none;
}

.opus-pay__title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #0B1220;
}

.opus-pay__sub {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: #5B6577;
}

.opus-pay__price {
  flex: none;
  text-align: right;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #1D62F1;
}

.opus-pay__price small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  color: #8893A4;
}

.opus-pay__test {
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

.opus-pay__form {
  margin: 0;
}

.opus-pay__element + .opus-pay__element {
  margin-top: 14px;
}

.opus-pay__skeleton {
  display: grid;
  gap: 12px;
  margin-bottom: 4px;
}

.opus-pay__skeleton span {
  display: block;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(90deg, #F1F4F9 0%, #E7ECF4 50%, #F1F4F9 100%);
  background-size: 200% 100%;
  animation: opus-pay-shimmer 1.2s ease-in-out infinite;
}

.opus-pay__skeleton span:nth-child(2) {
  height: 92px;
}

@keyframes opus-pay-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.opus-pay__error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FEF2F2;
  color: #B91C1C;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.opus-pay__submit {
  position: relative;
  width: 100%;
  margin-top: 16px;
  padding: 16px 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #1D62F1, #154BFF);
  box-shadow: 0 10px 24px rgba(11, 92, 255, 0.24);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.opus-pay__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(11, 92, 255, 0.28);
}

.opus-pay__submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.opus-pay__submit:focus-visible {
  outline: 3px solid rgba(29, 98, 241, 0.35);
  outline-offset: 2px;
}

.opus-pay__spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: opus-pay-spin 0.7s linear infinite;
}

.opus-pay.is-submitting .opus-pay__submit {
  opacity: 1;
}

.opus-pay.is-submitting .opus-pay__submit-label {
  visibility: hidden;
}

.opus-pay.is-submitting .opus-pay__spinner {
  display: block;
}

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

.opus-pay__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #5B6577;
  text-align: center;
}

.opus-pay__fallback {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #5B6577;
  text-align: center;
}

.opus-pay__fallback a {
  color: #1D62F1 !important;
  font-weight: 700;
  text-decoration: underline !important;
}

.opus-pay__result {
  padding: 8px 4px 6px;
  text-align: center;
}

.opus-pay__check {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #16A34A;
  box-shadow: 0 10px 22px -10px rgba(22, 163, 74, 0.7);
}

.opus-pay.is-pending .opus-pay__check {
  background: #1D62F1;
  box-shadow: 0 10px 22px -10px rgba(29, 98, 241, 0.7);
}

.opus-pay__result-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  color: #0B1220;
}

.opus-pay__result-text {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #5B6577;
}

@media (prefers-reduced-motion: reduce) {
  .opus-pay,
  .opus-pay__submit {
    transition: none;
  }
  .opus-pay__skeleton span,
  .opus-pay__spinner {
    animation-duration: 2s;
  }
}
