/*
 * استایل پیش‌فرض ویجت همکاری در فروش (Elementor)
 * فاصله‌ها و پس‌زمینه‌ها در CSS پایه؛ تنظیمات المنتور با {{WRAPPER}} override می‌شوند.
 */

.td-affiliate-widget,
.td-affiliate-widget *,
.td-affiliate-widget *::before,
.td-affiliate-widget *::after {
    box-sizing: border-box;
}

.td-affiliate-widget {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    padding: 40px;
    margin: 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.td-affiliate-widget__header {
    margin: 0 0 30px;
    padding: 0;
}

.td-affiliate-widget__title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.4;
}

.td-affiliate-widget__subtitle {
    color: #cbd5e1;
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

.td-affiliate-widget__commission {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 8px;
    padding: 24px;
    margin: 30px 0;
}

.td-affiliate-widget__commission-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
}

.td-affiliate-widget__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.td-affiliate-widget__btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
    text-decoration: none;
}

.td-affiliate-widget__info-btn {
    background-color: #475569;
    color: #ffffff;
}

.td-affiliate-widget__info-btn:hover {
    background-color: #334155;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3);
}

.td-affiliate-widget__action-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.td-affiliate-widget__action-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.td-affiliate-widget__action-btn.is-copied {
    background: #10b981 !important;
    background-image: none !important;
    color: #ffffff !important;
}

.td-affiliate-widget--disabled-notice {
    text-align: center;
}

.td-affiliate-widget__notice {
    color: #64748b;
    margin: 0;
}

@media (max-width: 768px) {
    .td-affiliate-widget__title {
        font-size: 18px;
    }

    .td-affiliate-widget__subtitle {
        font-size: 13px;
    }

    .td-affiliate-widget__actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .td-affiliate-widget__btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}
