/**
Theme Name: AO Design
Author: Autograph
Author URI: https://autograph.ir
Description: Design for You.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ao-design
Template: astra
*/

/*
@font-face {
    font-family: 'VazirMatn';
    src: url('fonts/vazirmatn-fanum.woff2') format('woff2 supports variations'),
    url('fonts/vazirmatn-fanum.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body, h1, h2, h3, h4, h5 {
    font-family: 'VazirMatn', sans-serif;
}
*/

button.bookly-close.bookly-js-close {
    padding: 7px;
}
.bookly-form .bookly-payment-nav > div > label > * {
    font-family: 'KalamehWeb';
}

/*استایلستیک فونت دانا*/
.ss02 {
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}

/*
|--------------------------------------------------------------------------
| استایل‌های سفارشی برای صفحه تشکر ووکامرس
|--------------------------------------------------------------------------
*/

/* استایل کلی برای همه باکس‌های اصلی */
.mmp-thankyou-message,
.mmp-payment-failed-notice,
.mmp-custom-order-summary {
    direction: rtl;
    text-align: right;
    padding: 30px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    font-family: 'DanaNFa', sans-serif;
    line-height: 1.7;
}

/* --- استایل باکس پیام موفقیت‌آمیز (سبز) --- */
.mmp-thankyou-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-right: 5px solid #22c55e;
    color: #166534;
}
.mmp-thankyou-message h3 {
    color: #15803d;
    margin-top: 0;
    font-size: 1.4em;
}
.mmp-thankyou-message h3::before {
    content: "✅ ";
    font-size: 1.1em;
}

/* --- استایل باکس پیام خطا (قرمز) --- */
.mmp-payment-failed-notice {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-right: 5px solid #ef4444;
    color: #991b1b;
}
.mmp-payment-failed-notice h3 {
    color: #b91c1c;
    margin-top: 0;
    font-size: 1.4em;
}
.mmp-payment-failed-notice h3::before {
    content: "⚠️ ";
    font-size: 1.1em;
}
.mmp-payment-failed-notice .button {
    display: inline-block;
    background-color: #ef4444;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.mmp-payment-failed-notice .button:hover {
    background-color: #dc2626;
}

/* --- استایل باکس خلاصه سفارش (خاکستری) --- */
.mmp-custom-order-summary {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #1f2937;
}
.mmp-custom-order-summary h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #111827;
    border-bottom: 2px solid #374151;
    padding-bottom: 10px;
}

/* استایل‌های داخلی خلاصه سفارش */
.mmp-custom-order-summary p {
    margin-bottom: 10px;
}
.mmp-custom-order-summary p strong {
    color: #374151;
}

/* استایل جدول محصولات */
.mmp-order-items {
    margin-top: 20px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    overflow: hidden; /* برای گرد کردن گوشه‌های داخلی */
}
.mmp-item-header,
.mmp-item-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
}
.mmp-item-header {
    background-color: #f3f4f6;
    font-weight: bold;
    color: #374151;
    border-bottom: 1px solid #d1d5db;
}
.mmp-item-row {
    border-bottom: 1px solid #e5e7eb;
}
.mmp-item-row:last-child {
    border-bottom: none;
}
.mmp-item-name {
    flex-grow: 1;
}
.mmp-item-price {
    flex-shrink: 0;
    font-weight: 500;
}

/* استایل جمع مبلغ */
.mmp-order-total {
    text-align: left;
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #111827;
}

/* --- واکنش‌گرایی برای موبایل --- */
@media (max-width: 768px) {
    .mmp-thankyou-message,
    .mmp-payment-failed-notice,
    .mmp-custom-order-summary {
        padding: 20px;
    }

    .mmp-item-header,
    .mmp-item-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .mmp-item-price {
        margin-top: 5px;
        align-self: flex-end;
    }
    .mmp-order-total {
        text-align: center;
    }
}

/* استایل کانتینر جزئیات محصول */
.mmp-item-details {
    display: flex;
    flex-direction: column;
}

/* استایل لیست جزئیات (خروجی wc_display_item_meta) */
.mmp-item-details dl {
    margin: 5px 0 0; 
    font-size: 0.9em; 
    color: #6b7280; 
}

/* استایل برای هر جفت ویژگی و مقدار */
.mmp-item-details dt,
.mmp-item-details dd {
    display: inline;
    margin: 0;
    padding: 0;
}

/* اضافه کردن دو نقطه بعد از نام ویژگی (مثلا: "رنگ:") */
.mmp-item-details dt::after {
    content: ": ";
    font-weight: bold;
}

/* استایل برای مقدار ویژگی */
.mmp-item-details dd {
    font-weight: normal;
}

/* حذف مبلغ و تعداد */
.mmp-price-in-details {
    display: none;
}
.mmp-item-details .mmp-item-name {
    display:none;
}
.mmp-item-details .product-quantity {
    display:none;
}

/* --- پیام های ووکامرس --- */
ul.woocommerce-error {
    font-family: 'KalamehWeb';
    font-weight: 500;
    background: #f8baba;
    border-right: 3px solid #ba0404;
    border-top: 0;
    border-radius: 10px;
    padding-top: 25px;
    padding-bottom: 25px;
    padding-right: 70px;
}
.woocommerce-error::before {
    padding-top: 2px;
    font-size: 25px;
}
.cart-empty.woocommerce-info {
    background: #abd0f4;
    color: #075baf;
    font-family: 'KalamehWeb';
    border-radius: 10px;
}
.woocommerce-message {
    background: #bbedf2;
    color: #075baf;
    font-family: 'KalamehWeb';
    border-radius: 10px;
    border-color: #2b94fd;
}
a.button.wc-backward {
    font-family:'kalamehweb';
    border-radius:10px
}


/* --- قسمت سفارش شما در تسویه حساب --- */
.cart_item .product-name {
    max-width:200px !important;
}

/* --- قسمت سفارش شما در تسویه حساب --- */
#bookly-tbs table.dataTable thead th {
    color:#ffffff;
    font-weight:600;
    text-align:center !important;
    background: #046bd2
}

.elementor-menu-cart__product .variation dd {
    grid-column-start: 2;
    margin-inline-start: -65px !important;
}