* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0055a4;
    --secondary-color: #3a86ff;
    --text-color: #333;
    --bg-color: #f5f7fa;
    --card-color: #fff;
    --border-color: #ddd;
    --success-color: #4caf50;
    --error-color: #f44336;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    margin-bottom: 20px;
}

h1 {
    color: #2c3e50;
    margin: 0;
}

.payment-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.payment-details {
    max-width: 600px;
    margin: 0 auto;
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: right;
}

.order-items {
    margin-bottom: 30px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-item.total {
    font-weight: bold;
    border-bottom: none;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #2980b9;
}

.button-small {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    margin-bottom: 15px;
}

.payment-iframe-container {
    width: 100%;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

#payment-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .payment-section {
        padding: 20px;
    }
    
    .iframe-wrapper {
        height: 500px;
    }
}

.payment-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}