/* Checkout minimalista (AC509): modal "Pago recibido, validando…" que
   functions.js (pmShowPaymentVerified) muestra antes de recargar a la
   pantalla de aprobado. El candado se cierra mientras gira el anillo. */
.pm-verify {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 8px 0 4px;
    font-family: inherit;
}

.pm-verify-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 6px;
    color: #121633;
}

.pm-verify-ring {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 3px solid #e2e5f0;
    border-top-color: #1c2bab;
    border-radius: 50%;
    animation: pm-verify-spin 0.9s linear infinite;
}

.pm-verify-shackle {
    transform: translateY(-3px);
    animation: pm-verify-lock 0.45s 0.5s ease forwards;
}

.pm-verify strong {
    color: #121633;
    font-size: 1.05rem;
}

.pm-verify small {
    color: #6b7093;
    font-size: 0.85rem;
}

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

@keyframes pm-verify-lock {
    to {
        transform: translateY(0);
    }
}

/* Aviso "Pago exitoso": el círculo aparece y el check se dibuja */
.pm-verify-check {
    animation: pm-verify-pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

.pm-verify-check path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: pm-verify-draw 0.4s 0.2s ease forwards;
}

@keyframes pm-verify-pop {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
}

@keyframes pm-verify-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pm-verify-ring,
    .pm-verify-shackle,
    .pm-verify-check,
    .pm-verify-check path {
        animation: none;
    }

    .pm-verify-check path {
        stroke-dashoffset: 0;
    }
}
