#gi-insurance-box {

    margin: 20px 0;
    padding: 15px;

    border: 1px solid #e5e5e5;

    border-radius: 8px;

    background: #fafafa;

}



#gi-insurance-box label {

    display: flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    font-size: 14px;

}



.gi-required-insurance {

    padding: 12px;

    background: #fff8e5;

    border: 1px solid #f0c36d;

    border-radius: 6px;

    font-size: 14px;

}
.gi-insurance-price {

    margin-top:10px;

    font-size:14px;

    font-weight:600;

}


.gi-required-insurance .gi-insurance-price {

    margin-top:12px;

}


/* ============================================================
   باکس بیمه در صفحه‌ی محصول (Single Product) — طبق طرح مرجع
   ============================================================ */

.gi-product-box {
    direction: rtl;
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: #1c1c1e;
    color: #fff;
    font-family: inherit;
}

.gi-product-box__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.gi-product-box__title {
    font-size: 14px;
    font-weight: 600;
}

.gi-product-box__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #cfcfcf;
}

.gi-product-box__status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    line-height: 1;
}

.gi-product-box__status-icon--active {
    background: #2fbf71;
    color: #fff;
}

.gi-product-box__status-icon--removed {
    background: #e5484d;
    color: #fff;
}

.gi-product-box__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gi-product-box__price {
    font-size: 16px;
    font-weight: 700;
}

.gi-product-box--removed .gi-product-box__price {
    text-decoration: line-through;
    opacity: 0.5;
    font-weight: 400;
}

.gi-product-box__toggle-btn {
    border: 1px solid #e5484d;
    color: #e5484d;
    background: transparent;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s, color .15s;
}

.gi-product-box__toggle-btn:hover {
    background: #e5484d;
    color: #fff;
}

.gi-product-box--removed .gi-product-box__toggle-btn {
    border-color: #2fbf71;
    color: #2fbf71;
}

.gi-product-box--removed .gi-product-box__toggle-btn:hover {
    background: #2fbf71;
    color: #fff;
}

/* هنگام محاسبه‌ی مبلغ برای variation جدید (بین کلیک روی attribute و
   برگشتن پاسخ AJAX)، مبلغ کمی محو می‌شود تا کاربر متوجه‌ی به‌روزرسانی
   شود، بدون اینکه پرش ناگهانی در layout ایجاد شود. */
.gi-product-box--loading .gi-product-box__price {
    opacity: 0.45;
    transition: opacity .15s;
}


/* ============================================================
   لیست بیمه‌ی آیتم‌های سبد در صفحه‌ی Checkout
   ============================================================ */

.gi-checkout-box {
    direction: rtl;
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
}

.gi-checkout-box__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gi-checkout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #ececec;
    flex-wrap: wrap;
}

.gi-checkout-item:first-of-type {
    border-top: none;
}

.gi-checkout-item__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gi-checkout-item__name {
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.gi-checkout-item__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.gi-checkout-item__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.gi-checkout-item__price {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.gi-checkout-item--removed .gi-checkout-item__price {
    text-decoration: line-through;
    opacity: 0.5;
    font-weight: 400;
}

.gi-checkout-item__toggle-btn {
    border: 1px solid #e5484d;
    color: #e5484d;
    background: transparent;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.gi-checkout-item--removed .gi-checkout-item__toggle-btn {
    border-color: #2fbf71;
    color: #2fbf71;
}

.gi-checkout-box__total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ececec;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}


/* ============================================================
   پاپ‌آپ الزام بیمه برای درگاه OrdiPay
   ============================================================ */

.gi-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gi-popup {
    direction: rtl;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 360px;
    width: calc(100% - 40px);
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.gi-popup__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff4e5;
    color: #f0ad4e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 14px;
}

.gi-popup__text {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.gi-popup__actions {
    display: flex;
    gap: 10px;
}

.gi-popup__actions button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    border: 0;
}

.gi-popup__btn-confirm {
    background: #2fbf71;
    color: #fff;
}

.gi-popup__btn-cancel {
    background: #f2f2f2;
    color: #333;
}