/**
 * Search & Select — available on all themes
 * Applied when options_style=search-select on a dropdown field.
 * Shows a live search input above a scrollable radio-row list.
 */

.tf-ss-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

/* Search row */
.tf-ss-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1.5px solid #e5e7eb;
    background: #f9fafb;
}

.tf-ss-search-icon {
    font-size: 14px;
    flex-shrink: 0;
    opacity: 0.6;
}

.tf-ss-search {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
    outline: none;
    /* padding: 0; */
}

.tf-ss-search::placeholder {
    color: #9ca3af;
}

/* Scrollable list */
.tf-ss-list {
    max-height: 320px;
    overflow-y: auto;
}

/* Each row */
.tf-ss-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.1s;
}

.tf-ss-row:last-child {
    border-bottom: none;
}

.tf-ss-row:hover {
    background: #f9fafb;
}

.tf-ss-row.tf-ss-active {
    background: #fff8ee;
}

/* Custom radio dot */
.tf-ss-radio-wrap {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-ss-radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
    flex-shrink: 0;
}

.tf-ss-row.tf-ss-active .tf-ss-radio-dot {
    border-color: #f08f00;
    background: #f08f00;
}

.tf-ss-row.tf-ss-active .tf-ss-radio-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

/* Label + price */
.tf-ss-row-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.tf-ss-label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.tf-ss-price {
    font-size: 12px;
    color: #6b7280;
}
