/* NaTIS — payment flow pages (wait, SMS, approv, done) */

.np-flow-page .np-wrap {
    max-width: 640px;
}

.np-flow-lead {
    text-align: center;
    margin: -14px 0 20px;
    font-size: 13px;
    color: #64748b;
}

.np-flow-panel {
    padding: 32px 28px 26px;
}

.np-flow-hero {
    text-align: center;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e2e8f0;
}

.np-flow-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.np-flow-icon svg {
    width: 52px;
    height: 52px;
    color: #4175a5;
}

.np-flow-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #1a365d;
}

.np-flow-text {
    margin: 0 auto 16px;
    max-width: 440px;
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
}

.np-flow-summary {
    margin: 0;
    display: grid;
    gap: 0;
}

.np-flow-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #edf2f7;
}

.np-flow-row:last-child {
    border-bottom: none;
}

.np-flow-row dt {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.np-flow-row dd {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1a365d;
    text-align: right;
}

.np-flow-row dd.np-flow-amount {
    color: #2f855a;
}

/* Wait spinner */
.np-wait-spinner {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.np-wait-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    border-top-color: #4175a5;
    border-right-color: #6ba336;
    animation: np-flow-spin 0.9s linear infinite;
}

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

.np-wait-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
}

.np-wait-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4175a5;
    animation: np-flow-bounce 1.2s ease-in-out infinite;
}

.np-wait-dots span:nth-child(2) { animation-delay: 0.15s; }
.np-wait-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes np-flow-bounce {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
    40% { opacity: 1; transform: scale(1); }
}

.np-flow-secure {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 0;
    padding: 12px 14px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

.np-flow-lock {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-top: 1px;
    border: 2px solid #6ba336;
    border-radius: 2px;
    position: relative;
}

.np-flow-lock::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -7px;
    width: 8px;
    height: 6px;
    margin-left: -4px;
    border: 2px solid #6ba336;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}

.np-flow-back {
    margin: 18px 0 0;
    text-align: center;
}

.np-flow-back a {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

.np-flow-back a:hover {
    text-decoration: underline;
}

/* SMS */
.np-sms-field {
    margin: 20px 0 18px;
}

.np-sms-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #b91c1c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    text-align: center;
}

.np-sms-input {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    height: 48px;
    border: 1px solid #b8c0cc;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.35em;
    padding-left: 0.35em;
    color: #1a365d;
    background: #fff;
}

.np-sms-input:focus {
    outline: 1px solid #4175a5;
    border-color: #4175a5;
}

.np-sms-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    font-size: 13px;
    line-height: 1.5;
}

.np-sms-error svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.np-sms-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.np-sms-submit {
    display: block;
    width: 100%;
    max-width: 320px;
    height: 44px;
    border: none;
    border-radius: 3px;
    background: #6cc48a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.np-sms-submit:hover:not(:disabled) {
    background: #5ab578;
}

.np-sms-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.np-sms-cancel {
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.np-sms-cancel:hover {
    color: #1a365d;
}

.np-sms-cancel.is-sent {
    color: #94a3b8;
    text-decoration: none;
    cursor: default;
}

.np-sms-actions .np-sms-resend-msg {
    display: block;
    margin-top: -4px;
    font-size: 12px;
    color: #2f855a;
}

/* Approv */
.np-aprov-scheme {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 16px;
}

.np-aprov-scheme img {
    height: 34px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.np-aprov-steps {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 16px 18px;
    margin: 0 0 20px;
}

.np-aprov-steps h3 {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: #1a365d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.np-aprov-steps ol {
    margin: 0;
    padding-left: 18px;
    color: #4a5568;
    font-size: 13px;
    line-height: 1.55;
}

.np-aprov-steps li {
    margin-bottom: 6px;
}

.np-aprov-steps li:last-child {
    margin-bottom: 0;
}

.np-aprov-wait {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 20px;
}

.np-aprov-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: #4175a5;
    border-radius: 50%;
    animation: np-flow-spin 0.75s linear infinite;
}

.np-aprov-wait-txt {
    font-size: 13px;
    color: #64748b;
}

.np-aprov-actions {
    text-align: center;
    margin-top: 18px;
}

.np-aprov-actions a {
    display: block;
    font-size: 13px;
    color: #2563eb;
    text-decoration: underline;
    margin-bottom: 12px;
}

.np-aprov-actions a.secondary {
    color: #64748b;
    text-decoration: none;
    margin-bottom: 0;
}

.np-aprov-actions a.secondary:hover {
    text-decoration: underline;
    color: #1a365d;
}

.np-aprov-help {
    margin: 20px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
    text-align: center;
}

/* Done */
.np-done-check-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.np-done-check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ecfdf5;
    border: 2px solid #6ba336;
    display: flex;
    align-items: center;
    justify-content: center;
}

.np-done-check svg {
    width: 32px;
    height: 32px;
    stroke: #2f855a;
    stroke-width: 2.5;
}

.np-done-thanks {
    text-align: center;
    margin: 18px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: #2f855a;
}

.np-done-redirect {
    text-align: center;
    margin: 14px 0 0;
    font-size: 12px;
    color: #718096;
}

@media (max-width: 480px) {
    .np-flow-panel {
        padding: 24px 16px 20px;
    }

    .np-flow-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .np-flow-row dd {
        text-align: left;
    }
}
