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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 480px;
    width: 100%;
}

.es-logo {
    display: block;
    max-width: 180px;
    height: auto;
    margin: 0 auto 20px;
}

h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.subtitle {
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
}

.amount-display {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.amount-display .label {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-display .value {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 4px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    margin-bottom: 24px;
}

.info-row .key {
    color: #888;
}

.info-row .val {
    color: #1a1a1a;
    font-weight: 500;
}

.cardx-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.paid-message {
    text-align: center;
    background: #d4edda;
    color: #155724;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

.error-message {
    display: none;
    background: #f8d7da;
    color: #721c24;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.result-msg {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.result-msg.success {
    color: #155724;
}

.result-msg.error {
    color: #721c24;
}

.result-msg-sub {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.result-section {
    display: none;
    padding-top: 0;
}

.result-section.visible {
    display: block;
}

.result-section h2 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.result-row .key {
    color: #888;
}

.result-row .val {
    color: #1a1a1a;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
}

.status-badge.error {
    background: #f8d7da;
    color: #721c24;
}
