/* Product components: scoped styles for theme and page-builder grids. */
/* =========================================
   جدول امکان پرداخت اقساطی (صفحه محصول)
   ========================================= */

html body .cheque-availability-table-wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    font-family: var(--cheque-font-family, inherit);
    margin: 20px 0;
    border: var(--cheque-border-style);
    border-radius: var(--cheque-border-radius);
    overflow: hidden;
    background: var(--cheque-bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

html body .cheque-availability-table-wrapper .cheque-availability-header {
    background: var(--cheque-primary-bg-light);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--cheque-border-color);
}

html body .cheque-availability-table-wrapper .cheque-availability-icon {
    color: var(--cheque-availability-icon-color, var(--cheque-primary-color));
    font-size: 20px;
    font-weight: bold;
}

html body .cheque-availability-table-wrapper .cheque-availability-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--cheque-availability-header-color, var(--cheque-text-color));
    margin: 0;
}

html body .cheque-availability-table-wrapper .cheque-availability-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

html body .cheque-availability-table-wrapper .cheque-availability-table th {
    padding: 15px 20px;
    border-bottom: var(--cheque-inner-border-style);
    background: var(--cheque-bg-alt);
    font-size: var(--cheque-font-size, 12px);
    font-weight: bold;
    color: var(--cheque-text-muted);
}

html body .cheque-availability-table-wrapper .cheque-availability-table td {
    padding: 15px 20px;
    border-bottom: var(--cheque-inner-border-style);
    font-size: 13px;
    color: var(--cheque-text-color);
}

html body .cheque-availability-table-wrapper .cheque-availability-table tbody tr:hover {
    background: var(--cheque-bg-alt);
}

html body .cheque-plan-name {
    font-weight: bold;
}

html body .cheque-plan-down-payment {
    font-weight: bold;
    color: var(--cheque-primary-color);
    direction: ltr;
    text-align: right;
}

html body .cheque-plan-installment {
    font-weight: bold;
    direction: ltr;
    text-align: right;
}

html body .cheque-plan-count {
    font-weight: bold;
    direction: ltr;
    text-align: right;
}

html body .cheque-plan-fee {
    font-weight: bold;
    direction: ltr;
    text-align: right;
}

html body .cheque-plan-no-coupon {
    display: block;
    font-size: 11px;
    color: var(--cheque-text-muted);
    font-weight: normal;
    margin-top: 4px;
}

/* =========================================
   Badge امکان پرداخت اقساطی (حلقه محصولات)
   ========================================= */

html body .cheque-eligible-badge {
    display: block;
    position: static;
    float: none;
    clear: both;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: var(--cheque-font-family, inherit);
    text-align: center;
    margin: 5px 0;
}

html body .cheque-eligible-badge .cheque-eligible-badge-inner {
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--cheque-badge-bg, color-mix(in srgb, #10b981 12%, transparent));
    padding: 5px 12px;
    border-radius: var(--cheque-badge-border-radius, 6px);
    font-size: var(--cheque-font-size, 12px);
    font-weight: bold;
    color: var(--cheque-badge-text-color, #10b981);
    border: 1px solid var(--cheque-badge-border-color, #10b981);
    line-height: 1.5;
    transition: all 0.2s ease;
    font-family: inherit;
}

html body .cheque-eligible-badge .cheque-eligible-badge-inner .cheque-badge-icon {
    font-size: 14px;
    line-height: 1;
}

/* هاور - افکت ملایم */
html body .cheque-eligible-badge .cheque-eligible-badge-inner:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--cheque-badge-border-color, #10b981) 25%, transparent);
}


html body .cheque-eligible-badge .cheque-eligible-badge-inner .cheque-badge-text,
html body .cheque-eligible-badge .cheque-eligible-badge-inner .cheque-badge-icon {
    color: inherit;
    font-family: inherit;
    text-transform: none;
}

html body .cheque-availability-table-wrapper .cheque-availability-table tbody tr:nth-child(even) {
    background: var(--cheque-availability-row-alt-color, var(--cheque-bg-alt));
}

@media (max-width: 600px) {
    html body .cheque-availability-table-wrapper .cheque-availability-table th,
    html body .cheque-availability-table-wrapper .cheque-availability-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
}
