/**
 * Payment Gateway - Checkout Styles
 */

.pm-iframe-wrapper {
    position: relative;
    min-height: 200px;
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
}

.pm-iframe-wrapper .pm-processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.pm-iframe-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #64748b;
}

.pm-iframe-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: pm-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

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

#pm-checkout-iframe {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
}

.pm-secure-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.pm-secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
}

.pm-secure-badge svg {
    color: #22c55e;
}

/* Validation message */
.pm-validation-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

/* Error states */
.pm-iframe-wrapper.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.pm-iframe-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc2626;
}

.pm-iframe-error h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.pm-iframe-error p {
    margin: 0 0 16px 0;
    color: #991b1b;
}

.pm-iframe-error button {
    padding: 10px 24px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.pm-iframe-error button:hover {
    background: #b91c1c;
}

/* Card icons */
.payment-card-icons {
    display: inline-flex;
    gap: 4px;
    vertical-align: middle;
    margin-left: 8px;
}

.payment-card-icons svg,
.payment-card-icons img {
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 480px) {
    .pm-iframe-wrapper {
        border-radius: 8px;
    }

    .pm-iframe-loading {
        padding: 40px 16px;
    }

    .pm-secure-footer {
        padding: 10px;
    }
}
