
body {
    /* Poppins for English (LTR), Cairo for Arabic (RTL) */
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: block !important;
}

/* Arabic font support - applies to all elements when page is RTL/Arabic */
body[dir="rtl"],
html[lang="ar"] body,
body[dir="rtl"] *,
html[lang="ar"] body *,
[dir="rtl"],
[dir="rtl"] {
    font-family: 'Cairo', 'Poppins', sans-serif !important;
}

.container {
    position: relative;
    max-width: 600px;
    margin: auto;
    background-color: #F5F5F5;
    width: 100%;
    /* border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    padding: 20px;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 30px;
}

.logo img {
    width: 107px;
    height: 107px;
    border-radius: 50%;
}

.greeting {
    text-align: center;
    margin-bottom: 20px;
}

.greeting h1 {
    font-size: 24px;
    margin: 0;
    color: #333;
}

.greeting p {
    font-size: 16px;
    margin: 2px 0 0;
}

.ads_container {
    width: 100%; 
}

.ads_container iframe {
    width: 100%;
    height: 300px; 
    border: none;
}

.feedback-card div {
    margin: 5px;
}

.card,
.payment-details,
.feedback-card,
.social-media-card,
.support-card,
.terms-card,
.secured-card {
    background-color: #FFFFFF !important;
    border-radius: 24px;
    box-shadow: 0 8px 24px 0 rgba(170, 170, 170, 0.12);
    min-width: min(337px, 100%);
    padding: 20px;
    margin: 0 auto;
    margin-top: 20px;
}

.card h2,
.payment-details h2 {
    font-size: 18px;
    margin: 0;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px dotted #EDEDED;
}

.invoice-item {
    padding: 15px 0;
    border-bottom: 2px dashed #EDEDED;
    transition: display 0.3s ease;
}

.invoice-item:last-child {
    border-bottom: none;
}

.invoice-item .item-name {
    font-size: 16px;
    font-weight: bold;
    color: #4B4E52;
}

.invoice-item .item-details {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.item-details .quantity,
.item-details .price {
    font-weight: bold;
}

.payment-info {
    color: #1F1F1F;
    font-weight: 600;
}

.payment-info [data-key] {
    color: #707070;
    font-weight: 400;
}

.payment-info {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}

.payment-info .total-payment {
    font-weight: bold;
}

.payment-info .status {
    display: flex;
    padding: 5px 10px;
    background-color: #e0f4e1;
    border-radius: 15px;
    color: #28a745;
    font-weight: bold;
    justify-content: space-between;
    width: 100px;
}

.status image {
    margin-left: 5px;
    width: 14px;
    height: 14px;
}

.feedback-card,
.social-media-card,
.support-card,
.terms-card,
.secured-card {
    text-align: center;
}

.feedback-card p,
.social-media-card p,
.support-card p,
.terms-card p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.feedback-icons,
.social-media-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.feedback-icons div {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

.feedback-icons .happy {
    background-color: #28a745;
}

.feedback-icons .neutral {
    background-color: #ffc107;
}

.feedback-icons .sad {
    background-color: #dc3545;
}

.social-media-icons img {
    width: 30px;
    height: 30px;
}

.support-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.support-card .support-text {
    text-align: left;
}

.support-card .support-text p {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.support-card .support-icon {
    font-size: 24px;
    color: #007bff;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #3498db;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Styling for the button */
.show-details-btn {
    background-color: #0A4584;
    color: white;
    border: none;
    padding: 15px;
    font-size: 14px;
    border-radius: 10px;
    text-transform: none;
    display: flex;
    gap: 8px;
    align-items: center;
    border-radius: 20px;
    margin: 20px auto 0px;
    font-weight: 500;
}

/* Styling for the button */
.show-details-btn:hover{
    background-color: white;
    color: #0A4584;
    border: 1px solid #0A4584;
}

.show-details-btn.hide-details-btn {
    background-color: white;
    color: #0A4584;
    border: 1px solid #0A4584;
}

.show-details-btn.hide-details-btn:hover {
    background-color: #0A4584;
    color: white;
    border: none;
}

/* Hide details initially */
.details {
    display: none;
    transition: display 0.3s ease;
    border-top: 2px dashed #EDEDED;
}

#download_receipt {
    position: fixed;
    bottom: 20px; /* Distance from the bottom of the card */
    left: auto; /* Distance from the right side of the card */
    text-decoration: none;
    cursor: pointer;
    z-index: 1000;
}

.download-btn {
    background-color: #2E7CF6;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
    margin-top: 10px;
    text-transform: none;
    display: flex;
    gap: 8px;
    align-items: center;
    border-radius: 20px;
    margin: auto;
}

.download-btn:hover{
    background-color: #1976d2;
    text-decoration: none;
}

.connect-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 10px;
    margin-top: 10px;
}

.type_invoices {
    font-size: 14px;
    color: #666;
}

/* Greeting Card - Typography Hierarchy */
.greeting .new-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #121212;
    font-size: 22px;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Main greeting text - "Thank you for shopping with [Company]" */
.greeting .new-greeting {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #474747;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Make company name stand out within the greeting */
.greeting .new-greeting span:last-child {
    font-weight: 600;
    color: #121212;
}

/* Invoice type text - "Tax invoice" or "Simplified Tax Invoice" */
.type_invoices {
    font-size: 15px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Order/Invoice number - should be prominent but not overwhelming */
.type_invoices .new-greeting {
    font-size: 18px;
    font-weight: 600;
    color: #121212;
    margin-bottom: 4px;
    margin-top: 0;
}

/* Prevent number reversal in RTL - numbers should always be LTR */
.invoice-number-ltr {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* Prevent date number reversal in RTL */
.date-ltr {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

.new-greeting.order-number {
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 4px;
}

.new-date {
    font-size: 12px;
    color: #888;
    font-weight: 400;
    margin-top: 4px;
}
.language-toggle-container {
    display: flex;
    unicode-bidi: isolate;
    justify-content: space-between;
    direction: ltr !important;
}

.language-toggle {
    background-color: #FFFFFF;
    width: 50px;
    border-radius: 12px;
    height: 27px;
    padding: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.title-header {
    font-weight: 600; /* Medium weight for Poppins */
    font-size: 18px; /* Font size of 16px */
    line-height: 24px; /* Line height of 24px */
    border-bottom: 2px dashed #EDEDED;
    padding-bottom: 20px;
    padding-top: 10px;
    color: #121212;
}

.header-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
}

.div-total-amount {
    background-color: #E5F4ED;
    font-size: 16px;
    color: #121212;
}

.div-total-amount.payment-info [data-key] {
    color: #121212;
    font-weight: bold;
}

.status-tag.approved {
    display: inline-flex;
    align-items: center;
    background-color: #E5F4ED; /* Green background */
    padding: 4px 14px;
    border-radius: 20px; /* Rounded corners */
    font-weight: 500;
    font-size: 14px;
    gap: 8px;
    justify-content: space-between;
}
.status-tag.approved [data-key] {
    color: #23A26D;
}

.check-icon {
    font-size: 14px;  /* Size of the check icon */
    color: #23A26D;  /* White color for the check icon */
}

.show-details-btn-hide {
    display: block;
    margin: 20px auto;
    padding: 2px 8px;
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
    border: 2px solid #f9f9f9;
    border-radius: 10px;
    cursor: pointer !important;
}

/* Styling for the button */
.show-details-btn-hide:hover{
    background-color: rgba(31, 30, 30, 0.05);
}

#comment {
    border-radius: 10px;
}

.terms-style {
    color: #707070;
    font-size: 15px;

}
.card-header {
    border-bottom: 2px dashed #EDEDED;
    padding-bottom: 10px;
}

/* Base nested class */
.nested {
    display: none;
    margin-top: 10px;
    background-color: #FAFAFA;
    border-radius: 8px;
    padding-block: 8px;
}

/* Level 1: Combo items, top-level options */
.nested-ltr {
    margin-left: 20px;
    padding-left: 10px;
    border-left: 2px solid #6B7280;
    padding-right: 8px;
}

.nested-rtl {
    margin-right: 20px;
    padding-right: 10px;
    border-right: 2px solid #6B7280;
    padding-left: 8px;
}

/* Level 2: Options within combo children - deeper hierarchy */
.nested-deep {
    margin-top: 5px;
    background-color: #F5F5F5;
    font-size: 0.9em;
    opacity: 0.92;
}

.nested-deep-ltr {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #9CA3AF;
    padding-right: 16px;
}

.nested-deep-rtl {
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid #9CA3AF;
    padding-left: 16px;
}

/* Price container - align currency and amount on same level */
.price,
.total-payment {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Currency icon styling */
.currency-icon {
    font-size: 10px;
    display: flex;
    align-items: center;
}

/* When currency-icon contains an img (SVG) */
.currency-icon img {
    width: 16px;
    height: 10px;
}