/* Cregis Payment Return Page Styles */

body.cregis-return-page {
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

.cregis-payment-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.cregis-return-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.cregis-return-header {
    padding: 40px 32px 32px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.cregis-return-header-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    font-weight: bold;
}

.cregis-return-header-icon.success { background: #d4edda; color: #28a745; }
.cregis-return-header-icon.warning { background: #fff3cd; color: #ffc107; }
.cregis-return-header-icon.info { background: #cce5ff; color: #0d9373; }

.cregis-return-header h1 {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.cregis-return-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.cregis-return-body {
    padding: 32px;
}

.cregis-order-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.cregis-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.cregis-order-row:last-child { border-bottom: none; }

.cregis-order-row.total {
    font-weight: 600;
    font-size: 16px;
    padding-top: 16px;
    margin-top: 4px;
    border-top: 2px solid #dee2e6;
    border-bottom: none;
}

.cregis-order-label { color: #666; font-size: 14px; }
.cregis-order-value { font-weight: 500; color: #1a1a1a; }
.cregis-order-value.success { color: #28a745; }
.cregis-order-value.danger { color: #dc3545; font-weight: 600; }

.cregis-section { margin-bottom: 24px; }

.cregis-info-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.cregis-info-box.success { background: #d4edda; border-left: 4px solid #28a745; }
.cregis-info-box.success strong { color: #155724; }

.cregis-info-box.warning { background: #fff3cd; border-left: 4px solid #ffc107; }
.cregis-info-box.warning strong { color: #856404; }

.cregis-info-box.danger { background: #f8d7da; border-left: 4px solid #dc3545; }
.cregis-info-box.danger strong { color: #721c24; }

.cregis-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.cregis-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.cregis-btn-primary {
    background: #0d9373;
    color: #fff;
}

.cregis-btn-primary:hover { background: #0a7960; }

.cregis-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.cregis-btn-secondary:hover { background: #e0e0e0; }

/* Fallback header/footer styles when theme header/footer not available */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .site-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.site-logo-link {
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.main-navigation a:hover { color: #1a1a1a; }

.site-footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.site-info {
    font-size: 13px;
    color: #999;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .cregis-actions {
        flex-direction: column;
    }

    .cregis-return-header {
        padding: 32px 24px 24px;
    }

    .cregis-return-body {
        padding: 24px;
    }
}
