/* Invoice Frontend Styles – same as Stripe version */

body.invoice-fullpage {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f0f2f5;
}
.invoice-fullpage-wrap {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}
.invoice-fullpage-wrap .invoice-container {
    flex: 1;
    max-width: 960px;
    width: 100%;
    margin: 0;
    padding: 32px 24px 48px;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
}
.invoice-fullpage-wrap .invoice-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.invoice-container {
    max-width: 960px;
    margin: 40px auto;
    padding: 24px;
    box-sizing: border-box;
}
.invoice-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.invoice-header-content { flex: 1; }
.invoice-title { margin: 0 0 20px 0; font-size: 28px; font-weight: 600; text-transform: uppercase; }
.company-info { display: flex; align-items: center; gap: 15px; }
.company-name { font-size: 18px; font-weight: 600; }
.company-badge { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.2); padding: 8px 16px; border-radius: 20px; font-size: 14px; }
.badge-check { color: #4ade80; font-weight: bold; }
.badge-text { opacity: 0.9; }

.invoice-info-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 24px;
    color: #333;
    min-width: 280px;
    text-align: right;
}
.info-box-header { font-size: 12px; font-weight: 600; color: #667eea; text-transform: uppercase; margin-bottom: 16px; }
.info-box-content { margin-bottom: 16px; }
.info-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.info-row .label { color: #666; font-weight: 500; }
.info-row .value { color: #333; font-weight: 600; }
.invoice-amount { font-size: 28px; font-weight: 700; color: #667eea; border-top: 2px solid #eee; padding-top: 16px; }

.invoice-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    border-bottom: 1px solid #eee;
}
.invoice-section-label { font-size: 12px; font-weight: 600; color: #667eea; text-transform: uppercase; margin-bottom: 12px; }
.details-group { display: flex; gap: 12px; }
.details-icon { font-size: 24px; opacity: 0.6; }
.details-content { flex: 1; }
.details-title { font-size: 12px; font-weight: 600; color: #667eea; margin-bottom: 4px; }
.customer-name, .customer-email, .customer-address, .company-billing-name, .company-billing-team { font-size: 14px; color: #333; margin-bottom: 4px; line-height: 1.6; }

.invoice-items-section { padding: 0 40px; }
.invoice-items-table { width: 100%; border-collapse: collapse; margin: 30px 0; }
.invoice-items-table thead { background: #f5f5f5; }
.invoice-items-table th { padding: 12px; text-align: left; font-size: 12px; font-weight: 600; color: #667eea; text-transform: uppercase; }
.invoice-items-table td { padding: 16px 12px; border-bottom: 1px solid #eee; font-size: 14px; color: #333; }
.col-no { width: 5%; }
.col-description { flex: 1; }
.col-price { width: 15%; text-align: right; }
.col-quantity { width: 12%; text-align: center; }
.col-amount { width: 15%; text-align: right; font-weight: 600; }

.invoice-total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}
.total-info { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #333; }
.total-icon { font-size: 16px; opacity: 0.6; }
.total-amount { font-size: 24px; font-weight: 700; color: #333; }

.invoice-description { padding: 20px 40px; background: #fafafa; border-bottom: 1px solid #eee; font-size: 14px; color: #555; line-height: 1.6; }
.invoice-description strong { color: #333; }
.invoice-description p { margin: 8px 0 0 0; }

.invoice-payment-section { padding: 40px; text-align: right; background: white; }
.invoice-onramp-wrap { text-align: left; min-height: 320px; }
.invoice-onramp-wrap #invoice-onramp-element { min-height: 300px; }

.button-checkout-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 48px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.button-checkout-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6); }
.button-checkout-card:active { transform: translateY(0); }
.button-checkout-card:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.invoice-payment-section.loading .button-checkout-card { opacity: 0.6; pointer-events: none; }

/* Bank details block */
.onramp-bank-details { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px; margin-top: 16px; text-align: left; }
.onramp-bank-details h3 { margin: 0 0 12px 0; font-size: 16px; color: #333; }
.onramp-bank-details .amount-due { font-size: 18px; font-weight: 700; color: #667eea; margin-bottom: 16px; }
.onramp-bank-details .payment-link-btn { display: inline-block; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 12px 24px; border-radius: 6px; text-decoration: none; font-weight: 600; margin-top: 12px; }
.onramp-bank-details .payment-link-btn:hover { opacity: 0.95; color: #fff; }
.onramp-bank-details pre, .onramp-bank-details .bank-line { font-size: 13px; color: #374151; margin: 4px 0; font-family: inherit; }
.onramp-bank-details .bank-notes { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e5e7eb; font-size: 12px; color: #6b7280; }
.onramp-bank-details img.qr-img { max-width: 200px; margin-top: 12px; }

@media (max-width: 768px) {
    .invoice-fullpage-wrap .invoice-container { padding: 20px 16px 32px; }
    .invoice-header { flex-direction: column; gap: 20px; padding: 30px 20px; }
    .invoice-info-box { min-width: auto; text-align: left; }
    .invoice-details { grid-template-columns: 1fr; gap: 30px; padding: 30px 20px; }
    .invoice-items-section { padding: 0 20px; overflow-x: auto; }
    .invoice-items-table { font-size: 12px; }
    .invoice-items-table th, .invoice-items-table td { padding: 10px 6px; }
    .invoice-total-section { flex-direction: column; gap: 15px; padding: 20px; text-align: right; }
    .invoice-payment-section { padding: 20px; }
    .button-checkout-card { width: 100%; padding: 12px 24px; }
}
