/**
 * RedotPay Checkout Styles
 */

/* Checkout Fields Container */
.rdp-checkout-fields {
    margin: 20px 0;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

/* Instructions Section */
.rdp-instructions-section {
    margin-bottom: 20px;
}

.rdp-instructions-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.rdp-instructions-list {
    margin: 0 0 0 20px;
    padding: 0;
}

.rdp-instructions-list li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #4b5563;
}

.rdp-instructions-list li:last-child {
    margin-bottom: 0;
}

/* Download Button */
.rdp-button-section {
    margin-bottom: 20px;
}

.rdp-download-button {
    display: inline-flex !important;
    align-items: center;
    background: linear-gradient(135deg, #E8363A 0%, #C42B2E 100%) !important;
    color: #fff !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: all 0.3s ease;
    border: none !important;
    box-shadow: 0 4px 14px rgba(232, 54, 58, 0.4);
}

.rdp-download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 54, 58, 0.6);
    background: linear-gradient(135deg, #F04448 0%, #D63539 100%) !important;
    color: #fff !important;
}

/* RedotPay ID Section */
.rdp-id-section {
    margin-bottom: 20px;
}

.rdp-id-box {
    background: #fff;
    border: 2px solid #E8363A;
    border-radius: 8px;
    padding: 16px;
}

.rdp-id-label {
    display: block;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin-bottom: 10px;
}

.rdp-id-value-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rdp-id-value {
    background: #fef2f2;
    padding: 10px 16px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #E8363A;
    border: 1px solid #fecaca;
    flex: 1;
    letter-spacing: 1px;
}

.rdp-copy-id-btn {
    background: #E8363A !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rdp-copy-id-btn:hover {
    background: #C42B2E !important;
}

/* QR Code Section */
.rdp-qr-section {
    margin-bottom: 20px;
    text-align: center;
}

.rdp-qr-label {
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 12px;
    font-size: 14px;
}

.rdp-qr-wrapper {
    display: inline-block;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rdp-qr-image {
    max-width: 250px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Amount Confirmation Section */
.rdp-confirm-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.rdp-confirm-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.rdp-amount-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.rdp-amount-input:focus {
    outline: none;
    border-color: #E8363A;
    box-shadow: 0 0 0 3px rgba(232, 54, 58, 0.1);
}

.rdp-amount-input.error {
    border-color: #ef4444;
}

.rdp-amount-input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.rdp-error-message {
    display: block;
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

.rdp-amount-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    background: #fef3c7;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #f59e0b;
}

/* Notification Toast */
.rdp-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1f2937;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-size: 14px;
}

.rdp-notification-show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .rdp-checkout-fields {
        padding: 16px;
    }

    .rdp-download-button {
        width: 100%;
        justify-content: center;
    }

    .rdp-id-value-row {
        flex-direction: column;
        align-items: stretch;
    }

    .rdp-id-value {
        text-align: center;
    }

    .rdp-copy-id-btn {
        width: 100%;
        text-align: center;
    }

    .rdp-qr-image {
        max-width: 200px;
    }

    .rdp-notification {
        left: 16px;
        right: 16px;
        bottom: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .rdp-id-value {
        font-size: 16px;
    }

    .rdp-amount-input {
        font-size: 16px;
        padding: 10px 14px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .rdp-download-button,
    .rdp-notification,
    .rdp-copy-id-btn {
        animation: none;
        transition: none;
    }

    .rdp-download-button:hover {
        transform: none;
    }
}
