/* استایل‌های صفحه checkout */
/* font iransans */

/* import font iransans .. ./../font/iransans.woff */

@font-face {
    font-family: 'iransanslight';
    src: url('../font/iransanslight.woff') format('woff');
}

/* SELECT ALL TAGS IRANSANS FONT */
.ep-discount-in-checkout * {
    font-family: 'iransanslight', sans-serif !important;
}

.ep-checkout-container {
    margin: -7px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ep-checkout-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.ep-checkout-table th,
.ep-checkout-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.ep-checkout-table th {
    background: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.ep-checkout-table td {
    vertical-align: middle;
}

.ep-checkout-table tr:nth-child(even) {
    background: #f9f9f9;
}

.ep-checkout-table tr:hover {
    background: #f0f0f0;
}

.ep-total-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.ep-total-amount {
    font-size: 24px;
    color: #2c5aa0;
    margin: 10px 0;
    font-weight: bold;
}

.ep-total-note {
    color: #666;
    font-style: italic;
    margin: 10px 0;
}

.ep-user-info {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.ep-user-info h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 10px;
}

.ep-form-row {
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.ep-form-row label {
    display: inline-block;
    width: 120px;
    font-weight: bold;
    color: #333;
    text-align: right;
    margin-right: 15px;
}

.ep-form-row input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.ep-form-row input:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 5px rgba(44, 90, 160, 0.2);
}

.ep-checkout-button {
    background: #2c5aa0;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.ep-checkout-button:hover {
    background: #1e3f6b;
    transform: translateY(-1px);
}

.ep-checkout-button:active {
    transform: translateY(0);
}

.ep-orders-summary h4 {
    color: #333;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* استایل برای جلسات مشترک */
.ep-overlapping-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 8px;
    margin: 5px 0;
    font-size: 12px;
    color: #856404;
}

/* استایل برای دوره‌های مختلف */
.ep-course-type-abr {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.ep-course-type-course {
    background: #f3e5f5;
    border-left: 4px solid #9c27b0;
}

/* استایل برای نوع خرید */
.ep-purchase-type-cash {
    color: #2e7d32;
    font-weight: bold;
}

.ep-purchase-type-installment {
    color: #f57c00;
    font-weight: bold;
}

/* استایل برای قیمت‌ها */
.ep-price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
}

.ep-price-final {
    color: #2e7d32;
    font-weight: bold;
    font-size: 16px;
}

.ep-deduction-amount {
    color: #d32f2f;
    font-size: 12px;
}

/* استایل برای موبایل */
@media (max-width: 768px) {
    .ep-checkout-container {
        padding: 15px;
        margin: 10px;
    }

    .ep-checkout-table {
        font-size: 12px;
    }

    .ep-checkout-table th,
    .ep-checkout-table td {
        padding: 8px 4px;
    }

    .ep-form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ep-form-row label {
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }

    .ep-form-row input {
        width: 100%;
    }

    .ep-checkout-button {
        width: 100%;
        padding: 15px;
    }
}

/* استایل برای دکمه حذف از سبد خرید */
.ep-remove-from-cart {
    width: fit-content;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.ep-remove-from-cart:hover {
    transform: translateY(-1px);
}

.ep-remove-from-cart:active {
    transform: translateY(0);
}

.ep-remove-from-cart:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* استایل برای پیام‌های موفقیت و خطا */
.ep-success-message,
.ep-error-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    margin-top: 10px;
    border: 1px solid;
    animation: slideIn 0.3s ease;
}

.ep-success-message {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.ep-error-message {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.ep-success-message p,
.ep-error-message p {
    margin: 0;
    font-weight: 500;
}

/* انیمیشن ورود پیام */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استایل برای جدول checkout با دکمه حذف */
.ep-checkout-table th:last-child,
.ep-checkout-table td:last-child {
    width: 120px;
    text-align: center;
}

/* بهبود استایل دکمه‌ها در موبایل */
@media (max-width: 768px) {
    .ep-remove-from-cart {
        
            width: fit-content;
        padding: 6px 12px;
        font-size: 11px;
        width: 100%;
    }

    .ep-checkout-table th:last-child,
    .ep-checkout-table td:last-child {
        width: 100px;
    }
}

/* استایل برای بخش کد تخفیف */
.discount-section {
    margin: 20px 0;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.discount-toggle {
    background: #fff;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #e1e5e9;
}

.discount-toggle:hover {
    background: #fff;
}

.discount-toggle span {
    font-weight: 500;
    color: #495057;
    font-size: 13px;
}

.discount-icon {
    font-style: normal;
    color: #6c757d;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.discount-toggle.active .discount-icon {
    transform: rotate(180deg);
}

.discount-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #ffffff;
}

.discount-content.active {
    max-height: 200px;
    padding: 20px;
}

.discount-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.discount-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.discount-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
   
}

.discount-btn:hover {
    /* background: #0056b3; */
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.discount-btn:active {
    transform: translateY(0);
}

/* استایل برای دکمه لغو کد تخفیف */
.discount-cancel-btn {
    background: #f9f9f9 !important;
    color: #848484 !important;
    font-weight: bold !important;
    border: 1px solid #ffffff !important;
    padding: 5px 10px;
    width: 100%;
    font-family: inherit;
}

.discount-cancel-btn:hover {
    /* background: #e1e1e1 !important; */
    transform: translateY(-1px);
    box-shadow: 0 1px 1px rgb(0 0 0 / 20%);
}

.discount-cancel-btn:active {
    transform: translateY(0);
}

/* استایل برای input غیرفعال */
.discount-input:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

/* انیمیشن برای باز و بسته شدن */
.discount-content {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




:root {
    --bg: #F7F8FA;
    --card: #fff;
    --text: #111827;
    --muted: #6B7280;
    --border: #E6E8EF;
    --brand: #7f56d9;
    --brand-weak: #ECE7FF;
    --ok: #10B981;
    --danger: #E11D48;
    --warn: #F59E0B;
    --shadow: 0 10px 28px rgba(24, 24, 27, .06);
    --radius: 18px;
    --radius-lg: 20px;
    --input: #F9FAFB;
}

.ep-checkout-container * {
    box-sizing: border-box
}

.ep-checkout-container {
    background: #ffffff;
    box-shadow: unset;
    color: var(--text);
    font: 15px / 1.8 "Vazirmatn", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}



.ep-checkout-container .breadcrumb {
    color: #8B9098;
    font-size: 13px;
    margin-bottom: 12px
}

.ep-checkout-container .grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr
}

@media (min-width:980px) {
    .ep-checkout-container .grid {
        grid-template-columns: 1fr 390px;
    }
}

.ep-checkout-container .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 16px
}

.ep-checkout-container .card+.card {
    margin-top: 14px
}

.ep-checkout-container .card__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px
}

.ep-checkout-container .title {
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.ep-checkout-container .trash {
    color: #EF4444
}

.ep-checkout-container .pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700
}

.ep-checkout-container .pill--brand {
    background: #eff8ff;
    color: #1570ef;
}
.ep-checkout-container .pill--ok {
    background: #ECFDF5;
    color: #047857
}

.ep-checkout-container .hr {
    height: 1px;
    background: #EEF1F6;
    margin: 12px 0
}

.ep-checkout-container .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.ep-checkout-container .row+.row {
    margin-top: 8px;
    font-family: 'iransans';
}

.ep-checkout-container .muted {
    color: var(--muted)
}

.ep-checkout-container .red {
    color: var(--danger)
}

.ep-checkout-container .green {
    color: #047857
}

.ep-checkout-container .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    border-bottom: 1px solid #9999994a;
    padding-bottom: 20px;
}

.ep-checkout-container label {
    font-size: 13px;
    color: #4B5563
}

.ep-checkout-container .input {
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    outline: none
}

.ep-checkout-container .btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer
}

.ep-checkout-container .btn--brand {
    background: var(--brand);
    color: #fff
}

.ep-checkout-container .btn--green {
    background: #039855;
    color: #fff
}

.ep-checkout-container .alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #FDE68A;
    background: #FFFBEB;
    color: #B45309;
    border-radius: 16px
}

.ep-checkout-container .alert strong {
    display: block;
    margin-bottom: 4px
}

.ep-checkout-container .gateway {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    margin:0 -12px;
}


@media (min-width: 640px) {
.ep-checkout-container, .ep-user-purchases, .ep-thank-you-container {
    max-width: 1200px;
    margin: -7px;
            padding: 20px 15px 20px 30px;
    font-family: 'Tahoma', 'Arial', sans-serif;
}   
}
@media (max-width: 640px) {
   .ep-checkout-container, .ep-user-purchases, .ep-thank-you-container {
    max-width: 1200px;
    margin: -7px;
    padding: 22px 18px 15px 19px;
    font-family: 'Tahoma', 'Arial', sans-serif;
}
}


.ep-checkout-container .gw-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #ECE7FF;
    border-radius: 14px;
    padding: 12px;
    background: #FAF9FF;
    direction: rtl;
    flex-direction: row-reverse;
}

.ep-checkout-container .radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #C7B9FF;
    display: grid;
    place-items: center
}

.ep-checkout-container .radio span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8453d0;
    opacity: 0
}

.ep-checkout-container .gw-option[aria-checked="true"] .radio span {
    opacity: 1
}

.ep-checkout-container .paybtn {
    width: 100%;
    margin-top: 8px
}

.ep-checkout-container .sum .row {
    font-weight: 700
}

.ep-checkout-container .sum .row .label {
    color: #4B5563;
    font-weight: 600
}

.ep-checkout-container .sum .row .value {
    font-feature-settings: 'tnum' 1
}

.ep-checkout-container .sum .row.total {
    border-top:unset;
    padding-top: 10px;
    margin-top: 10px
}

.ep-checkout-container .col-right {
    order: 2
}

.ep-checkout-container .col-left {
    order: 1
}

.ep-thank-you-container .cta{
    text-decoration: none;
    margin:22px auto 0;
     display:block;


    background:var(--brand); 
    color:#fff; 
    border:0; 
    border-radius:14px;
     padding:12px 16px;
      font-weight:800;
       cursor:pointer
  }

@media (min-width:980px) {
    .ep-checkout-container .col-right {
        order: 1
    }

    .ep-checkout-container .col-left {
        order: 2
    }
    .ep_cards {
        display: none;
    }
    .ep-thank-you-container .cta{
        text-decoration: none;
        margin:22px auto 0;
         display:block;
          max-width:320px;
           width:fit-content;
        background:var(--brand); 
        color:#fff; 
        border:0; 
        border-radius:14px;
         padding:12px 16px;
          font-weight:800;
           cursor:pointer
      }

}

.ep-checkout-container .overlapping-info {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
    color: #0369A1;
    font-size: 13px;
}

.ep-checkout-container .overlapping-info strong {
    color: #075985;
    font-weight: 600
}

























:root{
    --accent:#6d3df2;       /* بنفش */
    --track:#e6e6f2;        /* رنگ پس‌زمینه رنج */
    --thumb-size:20px;
    --track-h:8px;

  }

  .range-row{
    display:flex; align-items:center; gap:16px;
    font-family: Vazirmatn, system-ui, sans-serif;
  }
  .div-amount-box {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    align-content: flex-start;
    flex-wrap: nowrap;
}

.div-amount-box span {
    bottom: 5px;
    position: relative;
}
.amount-box {
    min-width: 170px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 14px;
    gap: 8px;
    /* width: 270px; */
    height: 44px;
    background: #F9FAFB;
    border: 1px solid #D0D5DD;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
    border-radius: 8px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}
  .range-wrap{flex:1; min-width:220px}
.range-head {
    display: flex;
    justify-content: space-between;
    color: #000000;
    font-size: 14px;
    margin-bottom: 3px;
}

  /* کانتینر موقعیت‌دهی برای حباب مقدار */
  .range-holder{ position:relative; }

  /* ===== Base range ===== */
.range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 15px;
    margin-top: 3px;
    border-radius: 999px;
    background: var(--track);
    outline: none;
    position: relative;
    background-image: linear-gradient(to right, var(--accent) 0%, var(--accent) 0%, var(--track) 0%);
}
  .range:focus{ box-shadow:0 0 0 4px rgba(109,61,242,.15) }

  /* WebKit thumb */
  .range::-webkit-slider-thumb{
    -webkit-appearance:none; appearance:none;
    width:var(--thumb-size); height:var(--thumb-size);
    border-radius:50%; background:var(--accent);
    border:4px solid #ece9ff;
    box-shadow:0 2px 10px rgba(109,61,242,.35);
    cursor:pointer; margin-top:calc((var(--track-h) - var(--thumb-size))/2);
  }
  /* Firefox thumb */
  .range::-moz-range-thumb{
    width:var(--thumb-size); height:var(--thumb-size);
    border-radius:50%; background:var(--accent);
    border:4px solid #ece9ff; box-shadow:0 2px 10px rgba(109,61,242,.35);
    cursor:pointer;
  }
  .range::-moz-range-track{ height:var(--track-h); background:transparent; border:none; }

  .range-labels{
    display:flex; justify-content:space-between; margin-top:0px;
    font-size:12px; color:#6b6e8a
  }

  /* مقدار فعلی که همراه هندل حرکت می‌کند  باید راست به چپ حرکت کند*/
  .moving-value{
    position:absolute;
    padding: 6px;
    background:white;
    top:24px;                /* زیر خود اسلایدر */
    right:0; transform:translateX(50%);
    font-weight:800; font-size:12px; color:#2d2f45;
    pointer-events:none; user-select:none;
    /* مکانش با --pct از JS ست می‌شود */
    right: calc(var(--pct, 0) * 1%);
  }

  /* ===== Mobile: stack vertically ===== */
  @media (max-width: 640px){
    .range-row{flex-direction:column; align-items:stretch}
    .amount-box{width:100%}
    .ep-thank-you-container .cta {
        width: 100% !important;
        text-align: center;
    }

  }




/* ====== ep-discount-in-checkout ====== */
.ep-discount-in-checkout{
    --accent:#6d3df2;
    --accent-2:#5b2dd4;
    --ink:#2e2f45;
    --muted:#7d8097;
    --border:#e8e7f5;
    --error:#e02424;
    font: 13px/1.8 Vazirmatn, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    color: var(--ink);
    max-width: 480px;
    width: 100%;
  }
  
  /* عنوان با چورون بالا */
  .ep-discount-in-checkout__title{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #7f56d9;
    font-weight: 700;
    margin-bottom: 10px;
    cursor: pointer;
  }
  .ep-discount-in-checkout__title::after{
    content:"";
    width:8px;height:8px;
    border-right:2px solid #98a0b8;
    border-top:2px solid #98a0b8;
    transform: rotate(-45deg);       /* چورون رو به بالا */
    margin-top:-2px;
  }
  
  /* عنوان قابل کلیک */
  .ep-discount-in-checkout__title.discount-toggle {
    cursor: pointer;
  }
  
  /* ردیف ورودی + دکمه */
  .ep-discount-in-checkout__holder{
    display:flex; align-items:center; gap:10px; width: 90%;
  }
  
  /* اینپوت */
.ep-discount-in-checkout .discount-input-checkout {
    outline: 0;
    color: var(--ink);
    caret-color: var(--accent);
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 14px;
    gap: 8px;
    height: 44px;
    background: #FFFFFF;
    border: 1px solid #D0D5DD;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
    border-radius: 8px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}




@media (max-width: 640px) {
    .ep-discount-in-checkout .discount-input-checkout {
        width: 210px;
    }
}
@media (min-width: 640px) {
   .ep-discount-in-checkout .discount-input-checkout {
        width: 80%;
    }
}








  .ep-discount-in-checkout .discount-input-checkout::placeholder{
    color:#a4a8bb;
  }
  .ep-discount-in-checkout .discount-input-checkout:focus{
    border-color:var(--accent);
    box-shadow:0 0 0 3px rgba(109,61,242,.18);
  }
  
  /* دکمه ثبت کد (بنفش با سایه) */
  .ep-discount-in-checkout .discount-btn-apply{
   font-size:14px;
    height:44px; min-width:90px;
    padding:0 16px;
    border:none; border-radius:12px;
    background:#7f56d9;
    color:#fff; font-weight:700;
    cursor:pointer;
    box-shadow:0 10px 24px rgba(109,61,242,.25);
  }
  .ep-discount-in-checkout .discount-btn-apply:hover{
    filter:brightness(1.03);
  }
  .ep-discount-in-checkout .discount-btn-apply:active{
    transform:translateY(1px);
  } 
  
  /* پیام خطا (اختیاری: اگر در HTML اضافه‌اش کنی) */
  .ep-discount-in-checkout__error{
    margin-top:6px;
    color:var(--error);
    font-weight:800;
    font-size:12px;
  }
  
  /* حالت خطای اینپوت (وقتی کلاس زیر را به کانتینر اضافه کنی) */
  .ep-discount-in-checkout--error .discount-input-checkout,
  .ep-discount-in-checkout .discount-input-checkout.is-invalid{
    border-color:var(--error);
    box-shadow:0 0 0 2px rgba(224,36,36,.15);
  }
  
  /* واکنش‌گرا: در موبایل فضا جمع‌وجورتر شود */
  @media (max-width: 420px){
    .ep-discount-in-checkout{ max-width:100% }
    .ep-discount-in-checkout .discount-btn-apply{ min-width:84px; border-radius:10px;  font-size:14px; }
    .ep-discount-in-checkout .discount-input-checkout{ border-radius:12px }

  }














  /* ===== Card like the screenshot (RTL) ===== */
.ep_card{
    --label-w:112px;          /* پهنای ستون لیبل‌ها (راست) را از اینجا تنظیم کن */
    --gap:16px;
    --pad:16px;
    --divider:#E9EDF6;
    --border:#EEF2F7;
    --ink:#2F3148;
    --muted:#8C94AA;
  
    position:relative;
    
    border:1px solid var(--border);
    border-radius:16px;
    box-shadow:0 8px 20px rgba(38,43,70,.06);
    padding:var(--pad);
    direction:rtl;
    color:var(--ink);
    font:14px/1.9 Vazirmatn,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  }
  .ep_card *{box-sizing:border-box}
  
  /* هر ردیف کلید/مقدار */
  .ep_kv{
    display:grid;
    grid-template-columns:85px 1fr;  /* لیبل (راست) | مقدار (چپ) */
    column-gap:var(--gap);
    align-items:center;
    padding-block:4px;
  }
  .ep_kv .label{
    grid-column:1;
    text-align:right;
    color:var(--muted);
    font-weight:700;
    white-space:nowrap;
  }
  .ep_kv > span:not(.label){
    grid-column:2;
    text-align:right;        /* مطابق اسکرین‌شات */
    color:var(--ink);
    padding-right: 10px;
  }
  
  /* ردیف اول: نام دوره درشت‌تر و چندخطی */
  .ep_kv:first-child{ align-items:start }
  .ep_kv:first-child > span:not(.label){ font-weight:800; line-height:1.8 }
  
  /* پِل نوع خرید (نقدی/قسطی) */
  .ep_pill{
    display:inline-flex; align-items:center; justify-content:center;
    padding:4px 10px; border-radius:999px;
    font-size:12px; font-weight:800; line-height:1;
  }
  .ep_pill--cash{ background:#E9F2FF; color:#2E5FEA }       /* مثل عکس */
  .ep_pill--installment{ background:#E9F2FF; color:#2E5FEA } /* اگر قسطی بود */
  
  /* تاریخ کم‌رنگ‌تر */
  .jalali-date{ color:#344054 }
  .overlayback {
    position: absolute;
    background: #bfbfbf2b;
    width: 40%;
    height: 100%;
    top: 0;
    right: 0;
    border-left: 1px solid #9999996e;
}
button.discount-btn-apply.discount-btn[disabled] {
    background: darkgrey;
}   



.price-ditail-purchase {
    background: #f9fafb;
    padding: 16px;
    margin: 20px auto;
    border-radius: 15px;
    margin-bottom: 0;
}

.price-ditail-purchase .row {
    border-bottom: unset !important;
}
.ep-discount-in-checkout {
    padding-top: 10px;
    margin-top: 15px;
}

.ep-discount-in-checkout__title.active::after {
    transform: rotate(135deg) !important; /* چرخش به سمت پایین */
    transition: transform 0.3s ease;
}
div#total-discount-row {
    display: flex !important;
}