/**
 * استایل فرانت‌اند افزونه کارمزد درگاه اقساطی
 * Version: 1.0.0
 */

/* ====== صفحه محصول: دکمه قسط ماهیانه ====== */
.kgd-product-installment-wrap {
    margin: 18px 0 12px;
    padding: 0;
    clear: both;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.kgd-product-installment-wrap .kgd-installment-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}

.kgd-product-installment-wrap .kgd-installment-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #e74c3c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.28);
    line-height: 1.4;
    white-space: nowrap;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
}

.kgd-product-installment-wrap .kgd-installment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.38);
    filter: brightness(1.05);
}

.kgd-product-installment-wrap .kgd-installment-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.25);
}

.kgd-product-installment-wrap .kgd-installment-button .kgd-installment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.kgd-product-installment-wrap .kgd-installment-button .kgd-installment-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.kgd-product-installment-wrap .kgd-installment-button .kgd-installment-text {
    font-size: 15px;
    font-weight: 700;
}

.kgd-product-installment-wrap .kgd-installment-message {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #fdf2f0;
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    flex: 1 1 auto;
    min-width: 180px;
}

.kgd-product-installment-wrap .kgd-installment-message .kgd-installment-msg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kgd-product-installment-wrap .kgd-installment-summary {
    margin-top: 10px;
    font-size: 12.5px;
    color: #e74c3c;
    font-weight: 500;
    line-height: 1.6;
    padding: 0 4px;
}

.kgd-product-installment-wrap .kgd-installment-summary strong {
    font-weight: 700;
}

/* ====== صفحه پرداخت: توضیحات زیر درگاه ====== */
.kgd-gateway-notice {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 13px;
    color: #8a6d3b;
    line-height: 1.6;
}

.kgd-gateway-tag {
    display: inline-block;
    background: #e74c3c;
    color: #ffffff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    margin-right: 4px;
    font-weight: 600;
    vertical-align: middle;
}

/* ====== موبایل ====== */
@media (max-width: 768px) {
    .kgd-product-installment-wrap .kgd-installment-row {
        flex-direction: column;
        align-items: stretch;
    }

    .kgd-product-installment-wrap .kgd-installment-button {
        width: 100%;
        justify-content: center;
        padding: 13px 18px;
        font-size: 14px;
    }

    .kgd-product-installment-wrap .kgd-installment-message {
        text-align: center;
        justify-content: center;
        min-width: 0;
    }

    .kgd-product-installment-wrap .kgd-installment-summary {
        text-align: center;
        font-size: 12px;
    }
}

/* ====== آپدیت زنده هنگام بارگذاری ====== */
.kgd-product-installment-wrap.kgd-loading {
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
