@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/vazirmatn/Vazir-Regular-FD.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/vazirmatn/Vazir-Medium-FD.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/vazirmatn/Vazir-Bold-FD.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazir-FD';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/vazirmatn/Vazir-Regular-FD.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazir-FD';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/vazirmatn/Vazir-Medium-FD.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazir-FD';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/vazirmatn/Vazir-Bold-FD.woff2') format('woff2');
}

/* Global RTL & Persian Typography */
html[dir="rtl"],
body.rtl,
.fct-thank-you-page,
.fct-receipt-page,
.invoice-card,
.fluent_cart_customer_profile,
.fct_customer_profile_app,
#receipt {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Vazir-FD', 'Vazirmatn', 'Tahoma', 'Segoe UI', sans-serif !important;
}

.fct-thank-you-page *,
.fct-receipt-page *,
.invoice-card *,
.fluent_cart_customer_profile *,
.fct_customer_profile_app *,
#receipt * {
    font-family: 'Vazir-FD', 'Vazirmatn', 'Tahoma', 'Segoe UI', sans-serif !important;
}

.fct-thank-you-page a,
.fct_receipt_content a,
.fct-receipt-page a {
    margin: 0 5px !important;
    display: inline-block !important;
}

/* Pagination Select Box Width Fix */
.el-pagination .el-select,
.el-pagination .el-input,
.fct-pagination .el-select,
.el-pagination__sizes .el-select {
    width: auto !important;
    min-width: 95px !important;
}

.el-pagination__sizes .el-input__inner {
    padding-left: 20px !important;
    padding-right: 8px !important;
    text-align: center !important;
    font-size: 13px !important;
}

/* Align columns and tables in RTL */
.fct-receipt-header-date,
.fct-receipt-header-invoice-no {
    text-align: left !important;
}

.fct-receipt-header td:first-child {
    text-align: right !important;
}

.fct-transaction-table th,
.fct-transaction-table td {
    text-align: right !important;
}

.fct-transaction-table td:last-child,
.fct-transaction-table th:last-child {
    text-align: left !important;
}

/* Hide Address sections when Digital Goods mode is active */
body.fcpg-hide-addresses div.fct-form-container[aria-labelledby*="address-section-title"],
body.fcpg-hide-addresses div[aria-labelledby="address-section-title-billing"],
body.fcpg-hide-addresses div[aria-labelledby="address-section-title-shipping"],
body.fcpg-hide-addresses #address-section-title-billing,
body.fcpg-hide-addresses #address-section-title-shipping,
body.fcpg-hide-addresses .fct-customer-dashboard-address,
body.fcpg-hide-addresses .fct-customer-address-wrap,
body.fcpg-hide-addresses .fct-customer-address-section,
body.fcpg-hide-addresses .fct-customer-address-list,
body.fcpg-hide-addresses .fct-global-address-component,
body.fcpg-hide-addresses .fct-receipt-customer-address,
body.fcpg-hide-addresses .fct-customer-table-address-col,
body.fcpg-hide-addresses .fct-customer-address-block,
body.fcpg-hide-addresses .fct-receipt-address,
body.fcpg-hide-addresses .fct-address-info,
body.fcpg-hide-addresses .invoice-address-block,
body.fcpg-hide-addresses .fct-address-copy-wrap,
body.fcpg-hide-addresses .fct-receipt-shipping-address,
body.fcpg-hide-addresses .fct-receipt-billing-address,
body.fcpg-hide-addresses .fct-receipt-page-store-address-address,
body.fcpg-hide-addresses .fct-receipt-page-store-address-vat,
body.fcpg-hide-addresses .invoice-card .address-row,
body.fcpg-hide-addresses #receipt .fct-receipt-customer-address,
body.fcpg-hide-addresses [class*="customer-dashboard-address"],
body.fcpg-hide-addresses [class*="customer-address-block"],
body.fcpg-hide-addresses .fct-customer-address-business-details {
    display: none !important;
}

/* Modern Invoice Styling */
#receipt, .fluent_cart_pdf_content {
    max-width: 820px !important;
    margin: 24px auto !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 36px 32px !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
    box-sizing: border-box !important;
}

.fct-receipt-page-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 20px !important;
    margin-bottom: 24px !important;
    border-bottom: 2px solid #f1f5f9 !important;
}

.fct-receipt-page-order-number-date {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 10px 18px !important;
    display: inline-flex !important;
    gap: 20px !important;
    align-items: center !important;
}

/* Buyer & Seller Parties Full Width Cards */
.fct-receipt-page-store-address {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin: 16px 0 !important;
    clear: both !important;
}

.fct-receipt-page-order-items-addresses {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 16px 0 24px 0 !important;
}

.fct-receipt-page-order-items-addresses-bill-to {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
}

.fct-receipt-page-store-address-name,
.fct-receipt-page-order-items-addresses-bill-to-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin: 0 0 10px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 1px dashed #cbd5e1 !important;
}

.fct-receipt-page-order-items-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 24px 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.fct-receipt-page-order-items-table thead th {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.fct-receipt-page-order-items-table th:first-child,
.fct-receipt-page-order-items-table td:first-child {
    text-align: right !important;
    width: auto !important;
}

.fct-receipt-page-order-items-table th:nth-child(2),
.fct-receipt-page-order-items-table td:nth-child(2) {
    text-align: center !important;
    width: 70px !important;
}

.fct-receipt-page-order-items-table th:nth-child(3),
.fct-receipt-page-order-items-table td:nth-child(3),
.fct-receipt-page-order-items-table th:nth-child(4),
.fct-receipt-page-order-items-table td:nth-child(4) {
    text-align: left !important;
    width: 140px !important;
}

.fct-receipt-page-order-items-table tbody td {
    padding: 16px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #1e293b !important;
    font-size: 14px !important;
}

.fct-receipt-page-order-items-footer-table {
    min-width: 290px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
}

#print-button {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3) !important;
}

/* Modern Thank You Page Design */
.fluent_cart_order_confirmation,
.fct-thank-you-page {
    max-width: 820px !important;
    margin: 20px auto !important;
    padding: 0 !important;
    direction: rtl !important;
    text-align: right !important;
    box-shadow: none !important;
}

/* 1. Sleek Compact Success Header */
.fct-thank-you-page-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 14px !important;
    padding: 18px 20px !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    box-shadow: none !important;
}

.fct-thank-you-page-header-icon {
    width: 40px !important;
    height: 40px !important;
    margin: 0 auto 8px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #10b981 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    padding: 8px !important;
    box-shadow: none !important;
}

.fct-thank-you-page-header-title {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #065f46 !important;
    margin: 6px 0 0 0 !important;
    line-height: 1.4 !important;
}

/* 2. Main Container Body (No outer border/padding/shadow so inner cards fill 100% naturally) */
.fct-thank-you-page-body {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.fct-thank-you-page-body-inner,
.fct-thank-you-page-body-content,
.fct-thank-you-page-body-content-inner {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* 3. Greeting Banner */
.fct-thank-you-page .no-print {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    box-shadow: none !important;
}

.fct-thank-you-page .no-print-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
}

.fct-thank-you-page .no-print p {
    margin: 0 !important;
    color: #475569 !important;
    font-size: 14px !important;
}

/* 4. Order Items Unified Table Card */
.fct-thank-you-page-order-items {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.fct-thank-you-page-order-items-header {
    background: #f8fafc !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 18px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    color: #475569 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.fct-thank-you-page-order-items-list {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 16px 18px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.fct-thank-you-page-order-items-list:last-child {
    border-bottom: none !important;
}

.fct-thank-you-page-order-items-list-title {
    text-align: right !important;
}

.fct-thank-you-page-order-items-list-quantity {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #0f172a !important;
    margin: 0 !important;
}

.fct-thank-you-page-order-items-list-variant-title,
.fct-thank-you-page-order-items-list-payment-info {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 4px 0 0 0 !important;
}

.fct-thank-you-page-order-items-list-price {
    text-align: left !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #0f172a !important;
}

/* Unified Totals Section */
.fct-thank-you-page-order-items-total,
.fct-thank-you-page-order-items-footer {
    background: #f8fafc !important;
    padding: 12px 18px !important;
    border: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.fct-thank-you-page-order-items-total-list,
.fct-thank-you-page-order-items-footer-row,
.fct-thank-you-page-order-items-total > div {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 14px !important;
    color: #475569 !important;
}

.fct-thank-you-page-order-items-total-list span:first-child,
.fct-thank-you-page-order-items-footer-row span:first-child,
.fct-thank-you-page-order-items-total > div > *:first-child {
    text-align: right !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

.fct-thank-you-page-order-items-total-list span:last-child,
.fct-thank-you-page-order-items-footer-row span:last-child,
.fct-thank-you-page-order-items-total > div > *:last-child {
    text-align: left !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

/* Total row highlight */
.fct-thank-you-page-order-items-total-list:last-child,
.fct-thank-you-page-order-items-footer-row:last-child,
.fct-thank-you-page-order-items-total > div:last-child {
    border-top: 1px dashed #cbd5e1 !important;
    margin-top: 8px !important;
    padding-top: 10px !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

/* 5. Consistent Subtle Cards: Subscriptions, Downloads, Licenses, Buyer */
.fct-thank-you-page-order-items-subscriptions,
.fct-thank-you-page-subscription-details,
.fct-thank-you-page-order-items-downloads,
.fct-thank-you-page-download-files,
.fct-thank-you-page-order-items-licenses,
.fct-thank-you-page-licenses,
.fct-thank-you-page-order-items-addresses,
.fct-thank-you-page-addresses {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    margin-bottom: 14px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* Remove internal borders from customer details */
.fct-thank-you-page-order-items-addresses-bill-to,
.fct-thank-you-page-order-items-addresses-ship-to,
.fct-thank-you-page-addresses .fct-thank-you-page-order-items-addresses-bill-to,
.fct-thank-you-page-order-items-addresses .fct-thank-you-page-order-items-addresses-bill-to {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.fct-thank-you-page-order-items-subscriptions-heading,
.fct-thank-you-page-subscription-details-heading,
.fct-thank-you-page-order-items-downloads-heading,
.fct-thank-you-page-download-files-heading,
.fct-thank-you-page-order-items-licenses-heading,
.fct-thank-you-page-licenses-heading,
.fct-thank-you-page-order-items-addresses-bill-to-title {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 10px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1.4 !important;
}

/* Reset all inner tables & wrappers so there are 0 nested borders */
.fct-thank-you-page-order-items-subscriptions-table,
.fct-thank-you-page-order-items-subscriptions-table table,
.fct-thank-you-page-order-items-subscriptions-table tbody,
.fct-thank-you-page-order-items-subscriptions-table tr,
.fct-thank-you-page-order-items-subscriptions-table td,
.fct-thank-you-page-order-items-downloads-table,
.fct-thank-you-page-order-items-downloads-table table,
.fct-thank-you-page-order-items-downloads-table tbody,
.fct-thank-you-page-order-items-downloads-table tr,
.fct-thank-you-page-order-items-downloads-table td,
.fct-thank-you-page-order-items-licenses-table,
.fct-thank-you-page-order-items-licenses-table table,
.fct-thank-you-page-order-items-licenses-table tbody,
.fct-thank-you-page-order-items-licenses-table tr,
.fct-thank-you-page-order-items-licenses-table td {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
}

/* Hide heavy default notices that create huge empty gaps */
.fct-thank-you-page-order-items-downloads-notice,
.fct-thank-you-page-order-items-licenses-notice {
    display: none !important;
}

/* Subscriptions Content */
.fct-thank-you-page-order-items-subscriptions-table-file p {
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.5 !important;
}

.fct-thank-you-page-order-items-subscriptions-billing-infos div {
    margin: 0 !important;
    padding: 0 !important;
}

.fct-thank-you-page-order-items-subscriptions-billing-infos span {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    display: inline-block !important;
}

.fct-thank-you-page-order-items-subscriptions-billing-infos-next-billing {
    margin: 2px 0 0 0 !important;
    font-size: 12px !important;
    color: #64748b !important;
}

/* Single Download Row - Clean and Borderless inside subtle card */
.fct-thank-you-page-order-items-downloads-table tr,
.fct-thank-you-page-download-files-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 2px 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.fct-thank-you-page-order-items-downloads-table-file {
    flex: 1 !important;
    text-align: right !important;
    padding: 0 !important;
    margin: 0 !important;
}

.fct-thank-you-page-order-items-downloads-table-file p {
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    word-break: break-all !important;
    line-height: 1.4 !important;
}

.fct-thank-you-page-order-items-downloads-button {
    padding: 0 0 0 10px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
}

/* Download Icon Button */
.fct-thank-you-page-order-items-downloads-button a,
.fct-thank-you-page-download-files-item a {
    font-size: 0 !important;
    color: transparent !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.fct-thank-you-page-order-items-downloads-button a:hover,
.fct-thank-you-page-download-files-item a:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    transform: translateY(-1px) !important;
}

.fct-thank-you-page-order-items-downloads-button a::before,
.fct-thank-you-page-download-files-item a::before {
    content: "" !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    background-color: #ffffff !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22currentColor%22 stroke-width=%222.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4%22%3E%3C/path%3E%3Cpolyline points=%227 10 12 15 17 10%22%3E%3C/polyline%3E%3Cline x1=%2212%22 y1=%2215%22 x2=%2212%22 y2=%223%22%3E%3C/line%3E%3C/svg%3E") no-repeat center / contain !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22currentColor%22 stroke-width=%222.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4%22%3E%3C/path%3E%3Cpolyline points=%227 10 12 15 17 10%22%3E%3C/polyline%3E%3Cline x1=%2212%22 y1=%2215%22 x2=%2212%22 y2=%223%22%3E%3C/line%3E%3C/svg%3E") no-repeat center / contain !important;
}

/* Clean License Section */
.fct-thank-you-page-licenses-item,
.fct-thank-you-page-order-items-licenses-table-file p {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-family: monospace, Tahoma !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 !important;
    line-height: 1.7 !important;
    word-break: break-all !important;
    box-shadow: none !important;
}

/* Clean Buyer Details */
.fct-thank-you-page-order-items-addresses-bill-to p,
.fct-thank-you-page-order-items-addresses-bill-to span {
    margin: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
}

/* 6. Action Buttons */
.fct-thank-you-page-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    margin-top: 24px !important;
    padding-bottom: 20px !important;
}

.fct-thank-you-page-actions a:first-child {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.fct-thank-you-page-actions a:last-child {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Mobile Responsive Rules for Thank You & Receipt Pages */
@media (max-width: 768px) {
    /* 1. Subscription Details: Stack title & billing info */
    .fct-thank-you-page-order-items-subscriptions-table,
    .fct-thank-you-page-order-items-subscriptions-table tbody,
    .fct-thank-you-page-order-items-subscriptions-table tr,
    .fct-thank-you-page-order-items-subscriptions-table-file,
    .fct-thank-you-page-order-items-subscriptions-billing-infos {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: right !important;
    }

    .fct-thank-you-page-order-items-subscriptions-billing-infos {
        margin-top: 8px !important;
        padding-top: 6px !important;
        border-top: 1px dashed #e2e8f0 !important;
    }

    /* 2. Downloads on mobile: Keep on same row with icon button */
    .fct-thank-you-page-order-items-downloads-table tr {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* 3. Licenses: Line Height 1.7 */
    .fct-thank-you-page-order-items-licenses,
    .fct-thank-you-page-order-items-licenses-table,
    .fct-thank-you-page-order-items-licenses-table-file,
    .fct-thank-you-page-order-items-licenses-table-file p,
    .fct-thank-you-page-licenses,
    .fct-thank-you-page-licenses-item {
        line-height: 1.7 !important;
        word-break: break-all !important;
    }

    /* Action buttons on mobile */
    .fct-thank-you-page-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .fct-thank-you-page-actions a {
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
}

/* Print Invoice Styling */
@media print {
    @page {
        size: auto;
        margin: 0mm !important;
    }
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }
    #receipt,
    .fluent_cart_pdf_content,
    .fct-receipt-page,
    .fluent_cart_order_confirmation {
        border: none !important;
        box-shadow: none !important;
        padding: 10mm 15mm !important;
        box-sizing: border-box !important;
    }
    #print-button, .no-print, .no-print-title {
        display: none !important;
    }
}