.woocommerce table.form-table th {
    padding: 20px 10px 20px 0;
}

.woocommerce table.form-table td {
    padding: 15px 10px;
}


.woocommerce table.form-table td select[multiple] {
    width: 350px;
    height: 200px;
}

/* Select2 field styling */
.woocommerce table.form-table td .select2-container {
    min-width: 350px;
}

.select2-container--default .select2-selection--multiple {
    border-color: #8c8f94;
}

/* Fee repeater styling */
#multiple-fees-container {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Header styling */
.fee-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #eef0f3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.fee-header .fee-title {
    width: 180px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fee-header .fee-amount-title {
    width: 120px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fee-header .fee-action {
    width: 40px;
}

/* Fee row styling */
.fee-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.fee-row:hover {
    background: #ffffff;
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Input fields styling */
.fee-row input {
    transition: all 0.3s ease;
}

.fee-row input.fee-name {
    width: 180px;
    height: 40px;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    padding: 0 15px;
    font-size: 14px;
    background: #fff;
}

.fee-row input.fee-amount {
    width: 120px;
    height: 40px;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    padding: 0 15px;
    font-size: 14px;
    background: #fff;
}

.fee-row input:hover {
    border-color: #2271b1;
}

.fee-row input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Button styling */
.fee-row button {
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 6px !important;
    border: 2px solid #dcdcde !important;
    background: #fff !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.fee-row button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fee-row button .dashicons {
    margin-top: 10px;
    font-size: 20px;
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.add-fee {
    color: #2271b1 !important;
}

.add-fee:hover {
    background: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
}

.add-fee:hover .dashicons {
    color: #fff;
}

.remove-fee {
    color: #dc3232 !important;
}

.remove-fee:hover {
    background: #dc3232 !important;
    border-color: #dc3232 !important;
    color: #fff !important;
}

.remove-fee:hover .dashicons {
    color: #fff;
}

/* WooCommerce enhanced select styling */
.woocommerce table.form-table .select2-container {
    min-width: 350px;
}

.select2-container--default .select2-selection--multiple {
    border: 2px solid #dcdcde !important;
    border-radius: 6px !important;
    padding: 5px !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Section titles */
/* .woocommerce h2 {
    font-size: 1.5em;
    margin: 2em 0 1em;
    padding: 0 0 0.8em;
    border-bottom: 2px solid #2271b1;
    color: #1d2327;
    clear: both;
    font-weight: 600;
} */

/* Description text */
.woocommerce table.form-table .description {
    color: #646970;
    font-style: italic;
    margin: 0.5em 0 0;
    font-size: 13px;
    line-height: 1.5;
}

/* Responsive design */
@media screen and (max-width: 782px) {
    .fee-header, .fee-row {
        padding: 12px;
        gap: 12px;
    }

    .fee-header .fee-title,
    .fee-row input.fee-name {
        width: calc(100% - 120px);
    }

    .fee-header .fee-amount-title,
    .fee-row input.fee-amount {
        width: 100px;
    }

    .fee-row button {
        width: 35px !important;
        height: 35px !important;
    }

    .fee-row button .dashicons {
        margin-top: 8px;
    }
}

/* Animation for new rows */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fee-row:last-child {
    animation: slideDown 0.3s ease-out;
} 



.fee-name, .fee-amount {
    width: unset !important;
}

