/**
 * Sokopay Frontend Styles
 */

.sokopay-payment-instructions {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.payment-header {
    text-align: center;
    margin-bottom: 30px;
}

.payment-header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 24px;
}

.payment-header p {
    color: #7f8c8d;
    font-size: 16px;
}

.payment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .payment-details {
        grid-template-columns: 1fr;
    }
}

.payment-amount,
.payment-address {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.payment-amount h4,
.payment-address h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.amount-display {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.amount-display .amount {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 5px;
    font-family: 'Monaco', 'Consolas', monospace;
}

.amount-display .coin {
    font-size: 14px;
    color: #7f8c8d;
    text-transform: uppercase;
    font-weight: 600;
}

.address-container {
    display: flex;
    gap: 10px;
}

.address-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    background: #f8f9fa;
    color: #2c3e50;
}

.copy-address-btn {
    padding: 12px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.copy-address-btn:hover {
    background: #2980b9;
}

.qr-code {
    grid-column: 1 / -1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    text-align: center;
}

.qr-container {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.qr-container:hover {
    transform: scale(1.05);
}

.qr-container svg {
    display: block;
    max-width: 200px;
    height: auto;
}

.qr-help {
    margin-top: 15px;
    color: #7f8c8d;
    font-size: 14px;
}

.payment-status {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    margin-bottom: 30px;
    text-align: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.status-icon {
    font-size: 24px;
}

.status-text {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.payment-status.confirmed {
    border-color: #27ae60;
    background: #d5f4e6;
}

.payment-status.confirmed .status-text {
    color: #27ae60;
}

.payment-status.pending {
    border-color: #f39c12;
    background: #fdf2e9;
}

.payment-status.pending .status-text {
    color: #f39c12;
}

.payment-status.failed,
.payment-status.expired {
    border-color: #e74c3c;
    background: #fadbd8;
}

.payment-status.failed .status-text,
.payment-status.expired .status-text {
    color: #e74c3c;
}

.payment-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.payment-actions .button {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.payment-actions .button:not(.button-secondary) {
    background: #3498db;
    color: white;
}

.payment-actions .button:not(.button-secondary):hover {
    background: #2980b9;
}

.payment-actions .button-secondary {
    background: #95a5a6;
    color: white;
}

.payment-actions .button-secondary:hover {
    background: #7f8c8d;
}

.payment-help {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.payment-help h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 18px;
}

.payment-help ul {
    margin: 15px 0;
    padding-left: 20px;
}

.payment-help li {
    margin-bottom: 8px;
    color: #555;
}

.support-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
    text-align: center;
}

.support-info a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.support-info a:hover {
    text-decoration: underline;
}

/* Notification styles */
.sokopay-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.sokopay-notification.show {
    transform: translateX(0);
}

.sokopay-notification.success {
    background: #27ae60;
}

/* Loading state */
.sokopay-payment-instructions.loading {
    opacity: 0.7;
    pointer-events: none;
}

.sokopay-payment-instructions.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3498db;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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