/* Professional Trust-Enhanced Dark Theme Checkout Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.sirmax-checkout-page-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #141414 50%, #1a1a1a 100%);
    color: #f9fafb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.55;
}

/* Trust Header */
.sirmax-trust-header {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sirmax-trust-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sirmax-trust-badges {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.sirmax-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sirmax-trust-badge svg {
    color: #3b82f6;
}

/* Main Layout */
.sirmax-checkout-page {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    box-sizing: border-box;
}

.sirmax-checkout-layout {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Product Column */
.sirmax-checkout-product {
    animation: fadeInUp 0.5s ease-out;
}

.sirmax-checkout-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    border: 1px solid #2f2f2f;
    margin-bottom: 20px;
}

.sirmax-image-container {
    position: relative;
    overflow: hidden;
}

.sirmax-checkout-thumb {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sirmax-image-container:hover .sirmax-checkout-thumb {
    transform: scale(1.05);
}

.sirmax-checkout-summary {
    padding: 28px;
}

.sirmax-product-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.sirmax-checkout-title {
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #f9fafb 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.5;
}

.sirmax-license-details {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #2a2a2a;
}

.sirmax-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
}

.sirmax-detail-row:last-child {
    border-bottom: none;
}

.sirmax-detail-label {
    font-weight: 500;
    color: #9ca3af;
}

.sirmax-detail-value {
    font-weight: 600;
    color: #f9fafb;
}

/* Trust Section */
.sirmax-trust-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border: 1px solid #2a2a2a;
}

.sirmax-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.sirmax-trust-item svg {
    flex-shrink: 0;
    color: #3b82f6;
}

.sirmax-trust-text {
    display: flex;
    flex-direction: column;
}

.sirmax-trust-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #f9fafb;
}

.sirmax-trust-text span {
    font-size: 11px;
    color: #9ca3af;
}

/* Payment Column */
.sirmax-checkout-payment-wrapper {
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

.sirmax-payment-header {
    margin-bottom: 20px;
}

.sirmax-payment-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #f9fafb 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sirmax-payment-header p {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

.sirmax-checkout-payment {
    background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border: 1px solid #2f2f2f;
}

/* Payment Methods */
.sirmax-checkout-methods {
    display: flex;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 10px;
}

.sirmax-checkout-method {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #3a3a3a;
    background: rgba(255, 255, 255, 0.03);
    color: #9ca3af;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
    font-family: inherit;
}

.sirmax-checkout-method:hover {
    border-color: #3b82f6;
    color: #f9fafb;
    background: rgba(59, 130, 246, 0.14);
    filter: brightness(1.05);
}

.sirmax-checkout-method.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: #f9fafb;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.22);
}

/* Customer Info */
.sirmax-checkout-customer {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid #2a2a2a;
}

.sirmax-checkout-label {
    font-size: 14px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: -8px;
    line-height: 1.5;
}

.sirmax-checkout-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #2f2f2f;
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    font-family: inherit;
    background: #1f1f1f;
    color: #f9fafb;
    line-height: 1.5;
}

.sirmax-checkout-input::placeholder {
    color: #9ca3af;
}

.sirmax-checkout-input:focus {
    border-color: #4b5563;
    box-shadow: none;
    outline: none;
    background: #212121;
}

/* Total Section */
.sirmax-checkout-total {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #2f2f2f;
}

.sirmax-checkout-total h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #f9fafb;
}

.sirmax-total-note {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
}

.sirmax-total-price {
    font-size: 28px;
    font-weight: 800;
    color: #60a5fa;
}

#sirmax-total-usd,
#sirmax-total-kes {
    font-size: 16px;
    font-weight: 700;
    color: #60a5fa;
}

/* Payment Panels */
.sirmax-checkout-panel {
    border: 1px solid #2f2f2f;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.2);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sirmax-checkout-panel.hidden {
    display: none;
}

.hidden {
    display: none;
}

/* Pay Button */
.sirmax-checkout-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 12px 20px;
    min-height: 44px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: filter 0.2s ease;
    font-family: inherit;
}

.sirmax-checkout-pay:hover:not(:disabled) {
    filter: brightness(1.05);
}

.sirmax-checkout-pay:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Payment Security Footer */
.sirmax-payment-security {
    margin-top: 20px;
    text-align: center;
}

.sirmax-security-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sirmax-security-logos span {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
}

.sirmax-security-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.sirmax-security-text svg {
    color: #3b82f6;
}

/* Status Message */
.sirmax-checkout-status {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    color: #9ca3af;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid #2a2a2a;
    line-height: 1.5;
}

.sirmax-checkout-status.is-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-left: 3px solid #10b981;
}

.sirmax-checkout-status.is-error {
    background: rgba(220, 38, 38, 0.14);
    color: #fca5a5;
    border-left: 3px solid #dc2626;
}

/* Error State */
.sirmax-error-state {
    text-align: center;
    padding: 60px 40px;
}

.sirmax-error-state svg {
    color: #f59e0b;
    margin-bottom: 24px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .sirmax-checkout-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 600px;
    }
    
    .sirmax-trust-section {
        grid-template-columns: 1fr;
    }
    
    .sirmax-trust-badges {
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .sirmax-checkout-payment {
        padding: 20px;
    }
    
    .sirmax-checkout-summary {
        padding: 20px;
    }
    
    .sirmax-checkout-title {
        font-size: 22px;
    }
    
    .sirmax-checkout-methods {
        flex-direction: column;
    }
    
    .sirmax-trust-header {
        display: none;
    }
}

@media (max-width: 480px) {
    .sirmax-checkout-page {
        padding: 16px;
    }
    
    .sirmax-checkout-payment {
        padding: 16px;
    }
    
    .sirmax-checkout-total {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}