.vewi_custom_icon_list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.vewi_custom_icon_list_item {
    position: relative;
    cursor: pointer;
}

.vewi_custom_icon_list_item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vewi_custom_icon_list_item .vewi_item_icon_preview {
    width: 100%;
    height: 60px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    padding: 5px;
}
.vewi_custom_icon_list_item:has(input[type="radio"]:checked) .vewi_item_icon_preview {
    border: 2px solid #000;
}


/* Category checkboxes */
.vewi-category-checklist {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.vewi-category-checklist li {
    margin: 0;
    padding: 0;
}

.vewi-category-checklist label {
    display: block;
    padding: 5px 0;
    cursor: pointer;
}

.vewi-category-checklist input[type="checkbox"] {
    margin-right: 8px;
}

.customize-control-description {
    display: block;
    font-style: italic;
    margin-bottom: 8px;
    color: #666;
}
.ui.buttons {
    display: flex !important;
    width: 100%;
}
.ui.buttons .button.active {
    background-color: #2185D0 !important;
    color: #fff !important;
}
.ui.buttons .button {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
 
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.vewi-range-wrapper {
    display: flex;
   
    gap: 10px;
}
.vewi-range-wrapper .vewi-range-input-wrapper {
    position: relative;
    flex: 9;
}
.vewi-range-wrapper input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
    padding: 0;
    margin-top: 10px;
  }
  
  /* Phần đã kéo */
  .vewi-range-wrapper input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: linear-gradient(to right, #212529 0%, #212529 var(--val), #e0e0e0 var(--val), #e0e0e0 100%);
    border-radius: 3px;
  }
  
  /* Nút tròn */
  .vewi-range-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #212529;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -3px; /* Canh giữa track */
    transition: background 0.2s ease;
  }
  
  /* Firefox support */
  .vewi-range-wrapper input[type="range"]::-moz-range-track {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
  }
  .vewi-range-wrapper input[type="range"]::-moz-range-progress {
    background-color: #212529;
    height: 6px;
    border-radius: 3px;
  }
  .vewi-range-wrapper input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #212529;
    border-radius: 50%;
    cursor: pointer;
  }
  
  .vewi-range-wrapper span {
    position: absolute;
    top: 20px;
  }
  .vewi-range-wrapper span.vewi-range-max { 
    right: 0px;
  }
    

.vewi-range-wrapper input[type="number"]::-webkit-inner-spin-button, 
.vewi-range-wrapper input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
.vewi-range-wrapper input[type="number"] { 
    -moz-appearance:textfield; 
    flex: 1;
}
.vewi-input-four-group {
    margin-bottom: 10px;
}
.vewi-input-four-group .vewi-input-four-wrapper {
    display: flex;
    background-color: #fff;
    border: 1px solid #C3C4C7;
    border-radius: 5px;
}

.vewi-input-four-group .vewi-input-four-wrapper .vewi-4-input {
    padding: 0px 10px;
    flex: 2;
    outline: none;
    border: none;
    border-right: 1px solid #C3C4C7;
    border-radius: 0px;
}
.vewi-input-four-group .vewi-input-four-wrapper .vewi-4-input:focus {
    outline: none;
    border: none;
}
.vewi-input-four-group .vewi-input-four-wrapper .vewi-4-input:first-child {
    border-top-left-radius: 5px !important;
    border-bottom-left-radius: 5px !important;
}
.vewi-input-four-group .vewi-input-four-wrapper span {
    position: relative;
}
.vewi-input-four-group .vewi-input-four-wrapper span::after {
    content: attr(data-label);
    position: absolute;
    top: 90%;
    left: 30%;
    transform: translateX(-50%);
    color: #666;
    font-size: 12px;
}
.vewi-input-four-group .vewi-input-four-wrapper .vewi-4-linked {
    flex: 1;
    padding: 4px 4px;
    border-top-right-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
}
.vewi-input-four-group .vewi-input-four-wrapper .vewi-4-linked  input {
    display: none;
}
.vewi-input-four-group .vewi-input-four-wrapper .vewi-4-linked:has(input[type="checkbox"]:checked) {
    background-color: #E0E0E0;
    color: #000;

}

.vewi_input_with_select .vewi_input_with_select_wrapper {
    width: 100%;
}
.vewi_input_with_select .vewi_input_with_select_input {
    height: 100%;
    flex: 3 !important;
}
.vewi_input_with_select .vewi_input_with_select_select {
    flex: 1 !important;
}

.vewi-drag-order-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 3px;
}

.vewi-drag-order-item {
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    cursor: move;
    display: flex;
    align-items: center;
}

.vewi-drag-order-item:last-child {
    border-bottom: none;
}

.vewi-drag-order-item:hover {
    background: #f5f5f5;
}

.vewi-drag-order-item .dashicons {
    margin-right: 10px;
    color: #a0a5aa;
}

.vewi-drag-order-item-placeholder {
    background: #f0f0f0;
    border: 1px dashed #a0a5aa;
    height: 42px;
    margin: 5px 0;
}

.vewi-drag-order-item.ui-sortable-helper {
    background: #f9f9f9;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vewi-drag-order-item.ui-sortable-helper .dashicons {
    color: #0073aa;
}

.vewi_quick_view_dropdown {
    border-radius: 0px !important;
}

.vewi_quick_view_dropdown .title {
    color: #000 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* layout select */
.vewi_view_layout_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vewi_view_layout_header .vewi_view_layout_header_item {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}
.vewi_view_layout_header .vewi_view_layout_header_item.active {
    border-bottom: 3px solid #000;
}
.vewi_view_layout_header .vewi_view_layout_header_item:hover {
    cursor: pointer;
    border-bottom: 3px solid #222;
}
.vewi_view_layout_header .vewi_view_layout_header_item i {
    font-size: 1.2rem;
}
.vewi_view_layout_content .vewi_view_layout_item {
    display: none;
}
.vewi_view_layout_content .vewi_view_layout_item.active {
    display: block;
}
.vewi-select-image-control {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}
.vewi-select-image-control .vewi-select-image-control__item {
    width: 48%;
    
}
.vewi-customize-error {
    color: red;
}
.vewi-select-image-control .vewi-select-image-control__item input[type="radio"] {
    display: none;
}
.vewi-select-image-control .vewi-select-image-control__item .vewi-select-image-control__item__image   {
    width: 100%;
    border-radius: 3px;
    border: 1px solid #88888833;

    cursor: pointer;
    transition: all 0.2s ease;
}


.vewi-select-image-control .vewi-select-image-control__item .vewi-select-image-control__item__image:has(input[type="radio"]:checked) {
    border: 1px solid #000;
}
.vewi-select-image-control .vewi-select-image-control__item .vewi-select-image-control__item__label {
    margin-top: 5px;    
    text-align: center;
}
.vewi-drag-layout-list .vewi-drag-order-item {
    display: none;
}
.vewi-drag-layout-list .vewi-drag-order-item.active {
    display: block;
}
.vewi-position-group {
    margin: 10px 0;
}

.vewi-position-group .position-fields {
    margin-top: 10px;
} 