.wfc-pro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-size: 16px;
    font-weight: normal;
    direction: rtl;
}

.wfc-pro-title {
    text-align: center;
    color: #003459;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
}

.wfc-pro-wizard {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 52, 89, 0.1);
}

.wfc-pro-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.wfc-pro-progress-step {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #e0e0e0;
    color: #666;
    font-weight: bold;
    border-right: 1px solid #ccc;
    font-size: 16px;
}

.wfc-pro-progress-step:last-child {
    border-right: none;
}

.wfc-pro-progress-step.active {
    background: #00adef;
    color: #fff;
}

.wfc-pro-step {
    display: none;
}

.wfc-pro-step:not(.hidden) {
    display: block;
}

.wfc-pro-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.wfc-pro-category {
    flex: 1 1 200px;
    min-width: 200px;
}

.wfc-pro-form, .wfc-pro-input-group-horizontal, .wfc-pro-electrical-form {
    margin-top: 20px;
}

.wfc-pro-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.wfc-pro-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 16px;
}

.wfc-pro-input-group input,
.wfc-pro-input-group select {
    width: 100%;
    max-width: 220px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.5;
}

/* استایل برای چیدمان افقی برچسب و ورودی */
.wfc-pro-inline-input {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.wfc-pro-inline-input label {
    display: inline-block;
    margin-bottom: 0;
    font-size: 14px;
    white-space: nowrap;
    line-height: 1.5;
}

.wfc-pro-inline-input input,
.wfc-pro-inline-input select {
    flex: 1;
    min-width: 0;
    max-width: 220px;
    line-height: 1.5;
}

/* کاهش طول خشاب‌ها در بخش فیلتراسیون */
.wfc-pro-filter-settings .wfc-pro-inline-input input,
.wfc-pro-filter-settings .wfc-pro-inline-input select {
    max-width: 150px;
}

.wfc-pro-input-group-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* فاصله استاندارد بین فیلدها */
    justify-content: flex-start;
    margin-bottom: 0px;
    margin-top: 0px;
}

.wfc-pro-input-group-horizontal .wfc-pro-inline-input {
    flex: 1 1 200px;
    min-width: 200px;
    margin: 0px;
}

/* تنظیم چیدمان عمودی برای تنظیمات پمپ آبنما */
.wfc-pro-fountain-settings .wfc-pro-input-group-horizontal {
    flex-direction: column;
    gap: 8px;
}

/* تنظیم عرض فیلدها در ردیف دوم (پنج فیلد) */
.wfc-pro-nozzle-group .wfc-pro-input-group-horizontal:nth-child(2) .wfc-pro-inline-input {
    flex: 1 1 120px;
    min-width: 120px;
}

/* تنظیم عرض ورودی‌ها در ردیف دوم */
.wfc-pro-nozzle-group .wfc-pro-input-group-horizontal:nth-child(2) .wfc-pro-inline-input input {
    max-width: 120px;
    line-height: 1.5;
}

.wfc-pro-select-icon {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5H7z"/></svg>');
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 14px;
    padding-left: 28px;
    padding-right: 10px;
    text-align: right;
    font-size: 14px;
    font-weight: normal;
}

.wfc-pro-select-icon option {
    padding-left: 28px;
    font-size: 14px;
    font-weight: normal;
}

.wfc-pro-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.wfc-pro-nozzle-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.wfc-pro-effect-buttons-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 15px;
    order: 2;
    flex: 1;
}

.wfc-pro-nav-button-left {
    order: 1;
}

.wfc-pro-nav-button-right {
    order: 3;
}

.wfc-pro-button {
    padding: 10px 20px;
    background: #00adef;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.wfc-pro-button:hover {
    background: #00273f;
    color: #fff;
}

.wfc-pro-icon {
    fill: #fff;
    width: 20px;
    height: 20px;
}

.wfc-pro-tabs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.wfc-pro-tab-btn {
    padding: 10px 20px;
    background: #e0e0e0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

.wfc-pro-tab-btn.active {
    background: #003459;
    color: #fff;
}

.wfc-pro-tab-content {
    display: none;
    margin-top: 20px;
}

.wfc-pro-tab-content.active {
    display: block;
}

.wfc-pro-results-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.wfc-pro-results, .wfc-pro-filtration-results, .wfc-pro-electrical-results {
    flex: 1;
    min-width: 300px;
}

.wfc-pro-electrical-results.hidden {
    display: none;
}

.wfc-pro-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.wfc-pro-result-card {
    background: #fff;
    background: #f3f3f3;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.wfc-pro-result-card h4 {
    margin: 0 0 10px;
    color: #003459;
    font-size: 16px;
    font-weight: bold;
}

.wfc-pro-result-card p {
    margin: 5px 0;
    color: #555;
    font-size: 16px;
    font-weight: normal;
}

.wfc-pro-result-card .sub {
    font-size: 14px;
    color: #777;
}

.wfc-pro-filtration-equipment {
    margin-top: 20px;
}

.wfc-pro-equipment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.wfc-pro-equipment-option {
    display: flex;
    align-items: center;
    gap: 0;
}

.wfc-pro-equipment-options span {
    font-weight: bold;
    color: #003459;
    margin-right: 2px;
    font-size: 14px;
}

.wfc-pro-equipment-options input[type="checkbox"] {
    display: none;
}

.wfc-pro-equipment-options label {
    display: block;
    width: 44px;
    height: 26px;
    border-radius: 100px;
    transition: all 0.2s ease-in-out;
    background-color: #E6E9EC;
    margin-right: 2px;
}

.wfc-pro-equipment-options label i {
    height: 22px;
    width: 22px;
    background: #ffffff;
    display: inline-block;
    border-radius: 100px;
    margin-top: 2px;
    margin-right: 2px;
    transition: all 0.2s ease-in-out;
    pointer-events: none;
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0);
}

.wfc-pro-equipment-options label:hover i {
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.20);
    transform: scale(1.01);
}

.wfc-pro-equipment-options input:checked + label i {
    margin-right: 20px;
}

.wfc-pro-equipment-options label:active {
    background-color: #A6B9CB;
}

.wfc-pro-equipment-options label:active i {
    width: 28px;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.20);
}

.wfc-pro-equipment-options input:checked + label {
    background-color: #83d664;
}

.wfc-pro-filtration-results {
    margin-top: 30px;
}

.wfc-pro-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 52, 89, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.wfc-pro-modal:not(.hidden) {
    display: flex;
}

.wfc-pro-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.wfc-pro-modal-content h4 {
    margin-top: 0;
    font-size: 16px;
    font-weight: bold;
    color: #003459;
}

.wfc-pro-modal-content ul {
    padding-right: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: normal;
}

.wfc-pro-modal-content button {
    display: block;
    margin: 0 auto;
    font-size: 16px;
    font-weight: bold;
    background: #003459;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.wfc-pro-modal-content button:hover {
    background: #00273f;
    color: #fff;
}

.wfc-pro-add-effect-btn,
.wfc-pro-remove-effect-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wfc-pro-add-effect-btn {
    border-color: #28a745;
    background-color: #28a745;
}

.wfc-pro-remove-effect-btn {
    border-color: #dc3545;
    background-color: #dc3545;
}

.wfc-pro-add-effect-btn .wfc-pro-icon path {
    fill: #fff;
    transition: fill 0.2s ease;
}

.wfc-pro-remove-effect-btn .wfc-pro-icon path {
    fill: #fff;
    transition: fill 0.2s ease;
}

.wfc-pro-add-effect-btn:hover {
    background-color: #28a745;
    border-color: #fff;
}

.wfc-pro-remove-effect-btn:hover {
    background-color: #dc3545;
    transform: scale(1.05);
}

.wfc-pro-add-effect-btn:hover .wfc-pro-icon path,
.wfc-pro-remove-effect-btn:hover .wfc-pro-icon path {
    fill: #fff;
}

.wfc-pro-remove-effect-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.wfc-pro-remove-effect-btn:disabled:hover {
    background-color: transparent;
}

.wfc-pro-remove-effect-btn:disabled:hover .wfc-pro-icon path {
    fill: #dc3545;
}

.wfc-pro-add-effect-btn .wfc-pro-icon,
.wfc-pro-remove-effect-btn .wfc-pro-icon {
    width: 18px;
    height: 18px;
}

#wfc-pro-back-btn,
#wfc-pro-calculate-btn {
    min-width: 120px;
    margin: 0;
}

.wfc-pro-nozzle-group {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 52, 89, 0.1);
}

.wfc-pro-result-group {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 52, 89, 0.1);
    padding-bottom: 20px;
}

.wfc-pro-electrical-settings {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 52, 89, 0.1);
}

.wfc-pro-electrical-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: stretch;
}

.wfc-pro-electrical-section {
    flex: 1 1 calc(33.33% - 10px);
    min-width: 250px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0, 52, 89, 0.1);
}

.wfc-pro-electrical-section h4 {
    margin: 0 0 8px;
    font-size: 14px;
}

.wfc-pro-electrical-section .wfc-pro-input-group-horizontal {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    background: #f3f3f3;
    padding: inherit;
    border-radius: 8px;
}

.wfc-pro-electrical-section .wfc-pro-inline-input {
    flex: 1 1 100%;
    min-width: 0;
}

.wfc-pro-electrical-section .wfc-pro-inline-input label {
    font-size: 12px;
}

.wfc-pro-electrical-section .wfc-pro-inline-input input,
.wfc-pro-electrical-section .wfc-pro-inline-input select {
    max-width: 100px;
    font-size: 12px;
    padding: 6px;
    margin-bottom: 5px;
}

/* استایل‌های خاص برای تنظیمات برق پمپ فیلتراسیون */
.wfc-pro-filter-settings.wfc-pro-electrical-section {
    padding: 8px; /* کاهش پدینگ */
    gap: 0px !important; /* فاصله عمودی ثابت و کم (مثلاً 4px) */
    margin-bottom: 0; /* حذف حاشیه اضافی */
}

.wfc-pro-filter-settings.wfc-pro-electrical-section h4 {
    margin: 0 0 6px; /* کاهش فاصله عنوان */
    font-size: 13px; /* کاهش اندازه فونت */
}

.wfc-pro-filter-settings .wfc-pro-input-group-horizontal {
    flex-direction: column; /* چیدمان افقی برای دو فیلد */
    gap: 8px; /* کاهش فاصله بین دو فیلد */
    margin-bottom: 0;
}

.wfc-pro-filter-settings .wfc-pro-inline-input {
    min-width: 150px; /* حداقل عرض برای هر فیلد */
}

.wfc-pro-filter-settings .wfc-pro-inline-input input,
.wfc-pro-filter-settings .wfc-pro-inline-input select {
    max-width: 150px; /* کاهش عرض ورودی‌ها */
    font-size: 12px;
    padding: 5px; /* کاهش پدینگ ورودی */
}

.wfc-pro-electrical-results {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.wfc-pro-electrical-results .wfc-pro-result-group {
    flex: 0 0 calc(25% - 12px);
    width: calc(25% - 12px);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 52, 89, 0.1);
}

div.wfc-pro-container .wfc-pro-light-settings div,
div.wfc-pro-container .wfc-pro-light-settings section,
div.wfc-pro-container .wfc-pro-light-settings span {
    margin: 0;
    padding: 0;
}

div.wfc-pro-container .wfc-pro-light-settings h4,
div.wfc-pro-container .wfc-pro-light-settings h3 {
    margin: 0 0 8px;
    padding: 0;
}

@media (max-width: 768px) {
    .wfc-pro-container {
        padding: 5px;
    }

    .wfc-pro-wizard {
        padding: 5px;
    }

    .wfc-pro-nozzle-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .wfc-pro-effect-buttons-container {
        order: 1;
        margin: 8px 0;
    }
    
    .wfc-pro-nav-button-left {
        order: 2;
    }
    
    .wfc-pro-nav-button-right {
        order: 3;
    }
    
    #wfc-pro-back-btn,
    #wfc-pro-calculate-btn {
        width: 100%;
        max-width: 150px;
        padding: 8px 16px;
        font-size: 14px;
    }

    .wfc-pro-button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .wfc-pro-progress-step {
        padding: 8px;
        font-size: 14px;
    }

    .wfc-pro-tab-btn {
        padding: 8px 16px;
        font-size: 14px;
        max-width: 150px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .wfc-pro-electrical-row {
        flex-direction: column;
        gap: 8px;
    }

    .wfc-pro-electrical-section {
        flex: 0 0 calc(100% - 10px);
        width: calc(100% - 10px);
        margin: 0 5px 10px 5px;
    }

    .wfc-pro-electrical-results .wfc-pro-result-group {
        flex: 0 0 calc(50% - 10px);
        width: calc(50% - 10px);
        margin: 0 5px 15px 5px;
    }

    .wfc-pro-filter-settings .wfc-pro-inline-input,
    .wfc-pro-light-settings .wfc-pro-inline-input {
        flex: 1 1 150px;
        min-width: 150px;
    }

    .wfc-pro-filter-settings .wfc-pro-inline-input input,
    .wfc-pro-filter-settings .wfc-pro-inline-input select {
        max-width: 120px;
    }

    .wfc-pro-inline-input {
        display: flex;
        align-items: center;
        gap: 6px;
        line-height: 1.5;
    }

    .wfc-pro-inline-input label {
        margin-bottom: 0;
        font-size: 12px;
        white-space: nowrap;
        line-height: 1.5;
    }

    .wfc-pro-inline-input input,
    .wfc-pro-inline-input select {
        max-width: 160px;
        font-size: 12px;
        line-height: 1.5;
    }

    .wfc-pro-input-group-horizontal {
        gap: 8px;
    }

    .wfc-pro-nozzle-group .wfc-pro-input-group-horizontal:nth-child(2) .wfc-pro-inline-input {
        flex: 1 1 100px;
        min-width: 100px;
    }

    .wfc-pro-nozzle-group .wfc-pro-input-group-horizontal:nth-child(2) .wfc-pro-inline-input input {
        max-width: 100px;
        line-height: 1.5;
    }

    .wfc-pro-select-icon {
        background-size: 12px;
        padding-left: 26px;
    }

    /* تنظیمات خاص برای پمپ فیلتراسیون در موبایل */
    .wfc-pro-filter-settings .wfc-pro-input-group-horizontal {
        flex-direction: column; /* چیدمان عمودی در موبایل */
        gap: 6px;
    }

    .wfc-pro-filter-settings .wfc-pro-inline-input {
        flex: 1 1 100%;
        min-width: 0;
    }

    .wfc-pro-filter-settings .wfc-pro-inline-input input,
    .wfc-pro-filter-settings .wfc-pro-inline-input select {
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .wfc-pro-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .wfc-pro-tab-btn {
        width: 100%;
        max-width: none;
        padding: 12px 16px;
        font-size: 16px;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }
}

@media (max-width: 768px) {
    .wfc-pro-electrical-results {
        display: flex;
        flex-direction: column; /* چیدمان ستونی */
        align-items: center; /* متمرکز کردن کارت‌ها */
        gap: 10px; /* فاصله بین کارت‌ها */
        width: 100%; /* عرض کامل */
        justify-content: center; /* اطمینان از مرکز بودن */
    }

    .wfc-pro-electrical-results .wfc-pro-result-group {
        flex: 0 0 100%; /* عرض کامل برای هر کارت */
        width: 100%; /* عرض کامل نسبت به والد */
        max-width: 400px; /* حداکثر عرض برای خوانایی */
        margin: 0 0 10px 0; /* حذف حاشیه‌های کناری */
        padding: 10px; /* کاهش پدینگ برای موبایل */
        box-sizing: border-box; /* محاسبه صحیح عرض */
    }
}

.wfc-pro-nozzle-image {
    max-width: 100px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 2px;
    background: #fff;
    object-fit: cover;
}

@media (max-width: 768px) {
    .wfc-pro-nozzle-image {
        max-width: 60px !important;
    }
}

@media (max-width: 768px) {
    /* سایر استایل‌های موجود... */
    
    /* استایل‌های جدید برای تصاویر نازل در حالت موبایل */
    .wfc-pro-fountain-settings .wfc-pro-nozzle-image,
    .wfc-pro-light-settings .wfc-pro-nozzle-image {
        max-width: 200px !important;
        height: auto;
    }
    
    .wfc-pro-fountain-settings h4,
    .wfc-pro-light-settings h4 {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .wfc-pro-fountain-settings > div,
    .wfc-pro-light-settings > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .wfc-pro-electrical-section {
        overflow: hidden;
    }
    
    .wfc-pro-electrical-section .wfc-pro-input-group-horizontal {
        flex-direction: inherit;
    }
}

@media (max-width: 768px) {
    .wfc-pro-input-group-horizontal {
        flex-direction: column !important; /* چیدمان عمودی برای موبایل */
        gap: 8px; /* فاصله بین فیلدها */
        width: 100%; /* اطمینان از اینکه عرض با والد هماهنگه */
        margin: 0; /* حذف حاشیه‌های اضافی */
        padding: 0; /* حذف پدینگ اضافی */
    }

    .wfc-pro-input-group-horizontal .wfc-pro-inline-input {
        flex: 1 1 100%; /* عرض کامل برای هر فیلد */
        min-width: 0; /* جلوگیری از سرریز شدن */
        max-width: 100%; /* محدود کردن عرض به والد */
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .wfc-pro-input-group-horizontal .wfc-pro-inline-input label {
        font-size: 12px; /* کاهش اندازه فونت برچسب */
        white-space: nowrap; /* جلوگیری از شکستن متن برچسب */
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px; /* محدود کردن عرض برچسب */
    }

    .wfc-pro-input-group-horizontal .wfc-pro-inline-input input,
    .wfc-pro-input-group-horizontal .wfc-pro-inline-input select {
        max-width: 180px; /* محدود کردن عرض ورودی‌ها */
        width: 100%; /* استفاده از عرض کامل در دسترس */
        font-size: 12px; /* کاهش اندازه فونت ورودی */
        padding: 6px; /* پدینگ مناسب برای موبایل */
        box-sizing: border-box; /* اطمینان از محاسبه صحیح عرض */
    }

    /* تنظیمات خاص برای بخش‌های نازل، فیلتراسیون و برق */
    .wfc-pro-nozzle-group .wfc-pro-input-group-horizontal:nth-child(2) .wfc-pro-inline-input {
        flex: 1 1 100%; /* عرض کامل برای ردیف دوم */
        min-width: 0;
        max-width: 100%;
    }

    .wfc-pro-nozzle-group .wfc-pro-input-group-horizontal:nth-child(2) .wfc-pro-inline-input input {
        max-width: 160px; /* عرض ورودی‌ها در ردیف دوم */
        width: 100%;
    }

    /* اطمینان از اینکه والد اصلی بیش از حد باز نشه */
    .wfc-pro-container {
        padding: 5px;
        overflow-x: hidden; /* جلوگیری از سرریز افقی */
    }

    .wfc-pro-wizard {
        padding: 5px;
        overflow-x: hidden; /* جلوگیری از سرریز افقی */
    }
}

/* استایل برای جداسازی ردیف‌ها */
.wp-list-table.widefat tr.wfc-pro-main-row {
    border-bottom: 2px solid #ccc; /* خط افقی ضخیم بین ردیف‌ها */
}

/* رنگ متناوب برای ردیف‌های اصلی */
.wp-list-table.widefat tr.wfc-pro-main-row:nth-child(odd) {
    background-color: #f9f9f9; /* پس‌زمینه خاکستری روشن برای ردیف‌های فرد */
}

.wp-list-table.widefat tr.wfc-pro-main-row:nth-child(even) {
    background-color: #ffffff; /* پس‌زمینه سفید برای ردیف‌های زوج */
}

/* استایل برای ردیف‌های جزئیات */
.wp-list-table.widefat tr.wfc-pro-details-row {
    background-color: #f0f4f8; /* پس‌زمینه متفاوت برای ردیف‌های جزئیات */
    border-bottom: 2px solid #ccc;
}

/* بهبود فاصله‌گذاری در سلول‌ها */
.wp-list-table td {
    padding: 12px 8px; /* افزایش فاصله داخلی برای خوانایی بهتر */
    vertical-align: middle;
}

/* استایل برای سرستون‌ها */
.wp-list-table th {
    background-color: #003459; /* رنگ پس‌زمینه سرستون */
    color: #fff; /* رنگ متن سرستون */
    font-weight: bold;
    padding: 10px 8px;
}

/* استایل برای آیکون علامت سوال */
.wfc-pro-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #03A9F4;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 5px;
    transition: background 0.3s ease;
}

.wfc-pro-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #03A9F4;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-right: 5px;
    margin-left: 5px;
    transition: background 0.3s ease;
    position: relative;
}

.wfc-pro-tooltip-icon:hover {
    background: #00273f;
}

/* استایل برای tooltip */
.wfc-pro-tooltip {
    display: none;
    position: absolute;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    font-weight: normal;
    max-width: 250px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 52, 89, 0.2);
    text-align: right;
    direction: rtl;
}

.wfc-pro-tooltip.active {
    display: block;
}

/* تنظیم موقعیت tooltip */
.wfc-pro-category {
    position: relative; /* برای موقعیت‌دهی tooltip نسبت به والد */
}

.wfc-pro-tooltip-icon:hover + .wfc-pro-tooltip,
.wfc-pro-tooltip.active {
    display: block;
    bottom: 100%; /* tooltip در بالای آیکون قرار می‌گیرد */
    right: 0;
    margin-bottom: 5px; /* فاصله کم از آیکون */
}

/* موبایل: چیدمان عمودی + تنظیمات کامل */
@media (max-width: 768px) {
    /* ۱. چیدمان اصلی: عمودی */
    .wfc-pro-categories {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .wfc-pro-category {
        flex-direction: row !important;
        display: flex !important;
        gap: 6px !important;
        padding: 8px 0 !important;
    }

    /* ۲. عنوان */
    .wfc-pro-category h4 {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.4 !important;
        font-size: 15px !important;
        white-space: normal !important;
        text-align: right !important;
        white-space: normal !important;
    }

    /* ۳. منوی کشویی */
    .wfc-pro-category select {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        font-size: 14px !important;
    }

    /* ۴. tooltip در موبایل */
    .wfc-pro-tooltip {
        max-width: 180px !important;
        font-size: 12px !important;
        padding: 8px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        bottom: 100% !important;
        margin-bottom: 6px !important;
    }

    /* ۵. آیکون ? */
    .wfc-pro-tooltip-icon {
        font-size: 14px !important;
    }
}


.wfc-pro-tooltip-icon-step2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #03A9F4;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-right: 5px;
    margin-left: 5px;
    transition: background 0.3s ease;
    position: relative;
}

.wfc-pro-tooltip-icon-step2:hover {
    background: #00273f;
}

.wfc-pro-tooltip-step2 {
    display: none;
    position: absolute;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: normal;
    max-width: 220px;
    width: 220px;
    height: flex;    
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    
    /* تنظیمات متن برای فارسی */
    text-align: right;
    direction: rtl;
    line-height: 1.6;
    white-space: normal;
    word-wrap: break-word;
    word-break: normal;
    writing-mode: horizontal-tb;
    
    /* موقعیت‌دهی */
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
}

/* پیکان کوچک برای tooltip */
.wfc-pro-tooltip-step2::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.wfc-pro-tooltip-icon-step2:hover .wfc-pro-tooltip-step2 {
    display: block;
}

/* پاسخ‌گویی برای موبایل */
@media (max-width: 768px) {
    .wfc-pro-tooltip-step2 {
        max-width: 180px;
        font-size: 12px;
        padding: 8px 10px;
        bottom: 100%;
        left: 0;
        transform: none;
        margin-bottom: 6px;
    }
    
    .wfc-pro-tooltip-step2::after {
        left: 15px;
        transform: none;
    }
    
    .wfc-pro-tooltip-icon-step2 {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
}

/* کاهش فاصله بین عنوان و منوی کشویی */
.wfc-pro-category {
    display: flex;
    align-items: center;
    gap: 8px; /* فاصله کم بین عنوان و منو */
    flex-wrap: nowrap;
    padding: 8px 0; /* کمی فاصله عمودی */
}



.wfc-pro-category select {
    flex: 1;
    max-width: 160px;
    min-width: 120px;
    margin: 0;
}

/* کاهش فاصله بین فیلدها */
.wfc-pro-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 16px; /* فاصله عمودی: 12px، افقی: 16px */
    align-items: start;
}
