/* ดีไซน์ให้กลมกลืนกับ Flatsome Theme */
.fpf-widget-container {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.fpf-widget-container .widget-title {
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.fpf-group-title {
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #444;
}

.mt-half { margin-top: 20px; }

/* Checkbox Style (Custom UX) */
.fpf-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}
.fpf-category-list::-webkit-scrollbar { width: 5px; }
.fpf-category-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

.fpf-category-list li { margin-bottom: 10px; }

.fpf-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 0.95em;
    user-select: none;
}

.fpf-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 18px;
    width: 18px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.fpf-checkbox:hover input ~ .checkmark { background-color: #e6e6e6; }
.fpf-checkbox input:checked ~ .checkmark { background-color: #446084; border-color: #446084; } /* สีน้ำเงินสไตล์ Flatsome */

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.fpf-checkbox input:checked ~ .checkmark:after { display: block; }

.fpf-label-text { flex-grow: 1; color: #555; transition: color 0.2s; }
.fpf-checkbox:hover .fpf-label-text { color: #000; }
.fpf-count { color: #999; font-size: 0.85em; }

/* Price Inputs */
.fpf-price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fpf-input-price {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}
.fpf-dash { color: #888; }

/* Loader Animation */
.fpf-action-wrapper { position: relative; min-height: 20px; }
.fpf-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #446084;
    border-radius: 50%;
    animation: fpf-spin 1s linear infinite;
    margin: 0 auto;
}
.fpf-loader.is-active { display: block; }

@keyframes fpf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fix product transition for Flatsome */
.products.row { transition: opacity 0.3s ease; }