.modal {
    --bs-modal-zindex: 108000;
}

.tooltip {
    z-index: 108001 !important;
}

.swal2-container {
    z-index: 108002 !important;
}

.sortarea {

}

.sortarea .sorts-criterias, .sortarea .sort-buttons {
    width: auto;
}

.sortarea .sort-buttons {
    margin-left: 0px;
    padding-left: 0px;
}

#items_results_container {
    margin: 5px;
}

.form-group {
    width: auto !important;
    display: flex;
}

.product_widget {
    height: max-content;
    max-width: 230px !important;
    display: flex;
    flex-grow: 1;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    box-shadow: 0px 0px 13px 0px rgba(82, 63, 105, 0.05);
    background-color: #ffffff;
    margin: 8px;
    border-radius: 4px;
    margin-bottom: 15px;
    width: auto !important;
}

.product_widget:hover {
    box-shadow: 0 0 7px 7px rgba(82, 63, 180, 0.4);
}

.product_widget__header {
    min-height: 25px;
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-grow: unset;
    padding: 10px 16px;
    align-items: center;
    border-bottom: 1px solid lightgray;
    cursor: move;
}

.product_widget__header .product_widget__header-label {
    display: block;
    width: 80%;
    text-align: left;
    margin-left: 5px;
    line-height: 15px;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-left: -5px;
    margin-right: -5px;
    padding: 5px;
}

.product_widget__header .product_widget__header-label:hover
{
    background-color: #f2f3f9;
    border-radius: 10px;
}

.product_widget__header .product_widget__header-label .product_name {
    font-weight: 600;
    font-size: 15px;
}

.product_widget .product_name {
    white-space: nowrap;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product_widget__header .product_widget__header-label .product_category {
    color: darkgray;
    white-space: nowrap;
}

.product_widget__img-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.3);
    text-align: center;
    height: 220px;
}

.product_widget img {
    height: 100%;
    width: 100%;
    object-fit: scale-down;
    object-position: center;

}

.product_widget__img-container:hover .product_widget_image {
    transform: scale(1.5);
}

.product_widget__img-container:hover .product_widget_image {
    transition: all 0.3s;
    position: relative;
    top: 0;
}


.product_widget__img-container img {
    position: relative;
    width: 100%;
    object-fit: contain;
    object-position: center;
    height: 100%;
    transition: all 0.3s;
}

.product_admin_id {
    background-color: blue;
    border: 2px solid white;
    position: absolute;
    top: 15px;
    left: 20px;
    padding: 0;
    border-radius: 25px;
    text-align: center;
}

.product_admin_id span {
    color: white;
    font-size: 15px;
    font-family: consolas, monospace;
    padding: 0 8px 0 8px;
    line-height: 20px;
}

.product_widget__product_info {
    position: absolute;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
    width: 100%;
    height: auto;
    padding: 20px 0px;
}

.product_widget__img-container .product_widget__product_info .product-info__data {
    display: none;
    opacity: 0;
    transition: all 2s;
}

.product_widget__img-container:hover .product-info__data {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

.product_widget__product_info .product-info__data {
    color: white;
    flex-direction: column;
    font-size: 100%;
    border-bottom: 2px solid white;
    margin-bottom: 10px;
    padding: 0 10px 30px 10px;
    cursor: pointer;
}

.product_widget .product-actions
{
    margin-right: -10px;
    margin-top: -10px;
}

.btn.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn.btn-icon.btn-circle {
    border-radius: 50%;
}

.btn.btn-icon.btn-success i {
    color: #ffffff;
}

.btn.btn-icon i {
    padding: 0;
    margin: 0;
    line-height: 0;
}

.score-points {
    margin: 0;
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    justify-content: center;

    color: #ffffff;
    background: #282a3c;
    height: 0;
    width: auto;
    padding: 0.75rem 0.75rem;
    border-radius: 2rem;
    position: relative;
    top: -15px;
    right: -15px;
    position: absolute;

}

.product_widget__img-container .btn.btn-icon {
    width: 30px;
    height: 30px;
}

.product_widget__img-container .widget_info_badge_info {
    position: relative;
    top: -15px;
    right: -15px;
}

.woo-checkbox-product {
    display: inline-block;
    position: relative;
    margin-bottom: 10px;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.btn-success {
    background-color: #1dc9b7 !important; /* Cambia el fondo */
    border-color: #1dc9b7 !important; /* Cambia el borde */
    box-shadow: 0px 4px 16px 0px rgba(29, 201, 183, 0.15);
    color: white;
}

.btn-success:hover {
    background-color: #17a89a !important; /* Cambia el fondo al pasar el mouse */
    border-color: #17a89a !important; /* Cambia el borde al pasar el mouse */
}

.paginationsection {
    width: auto
}

.treetoolbar div {
    margin-top: -20px;
}

.containerCatTree {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 10px;
    position: sticky;
    z-index: 1;
    top: 40px;
}

.treecategories {
    padding-left: 20px;
}

.c-success {
    color: #1dc9b7 !important;
}

c-warning {
    color: #ffb822 !important
}

.searchsection .searchtextfield {
    position: relative;
}

.searchsection .searchtextfield .iconsearchintern {
    position: absolute;
    left: 6px;
    top: 0px;
    height: 100%;
    align-content: center;
}

.searchsection .searchtextfield #treeSearch {
    padding-left: 25px;
}

.treeContainer {
    max-height: calc(80vh - 70px);
}

.jstree-contextmenu {
    z-index: 2;
}

ul.vakata-context li {
    margin: 0 !important;
}

.context-menu-item {
    padding: .1em 1em !important;
}

.hover-tree-node,
.hover-tree-node.jstree-wholerow,
.hover-tree-node > .jstree-anchor,
.jstree-anchor:hover {
    background-color: #8a8fc1 !important;
    color: #ffffff !important;
    font-weight: 500;
}

.category-selected > .jstree-wholerow {
    background-color: #7969fe;
}

.category-selected > a.jstree-checked {
    color: white !important;
    font-weight: bold;
}

#quick_filter_toolbar {
    background-color: #eeeeee73;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
}

#quick_filter_toolbar .badge-filter {
    padding: 10px;
    margin: 5px;
    display: flex;
    align-items: center;
}

#quick_filter_toolbar i {
    margin-left: 10px;
    cursor: pointer;
    font-size: 1.5em;
}

/*fix form css wordpress*/
.form-switch .form-check-input {
    background-size: auto;
    margin: 6px !important;
    background-repeat: no-repeat;
}

.form-switch .form-check-input:checked::before {
    content: "";
}

.containerrange {
    width: 180px;
    margin-top: 1.2rem;
}

#precio_range {
    height: 10px;
}

#precio_range .noUi-connect {
    background: #ea5d0f;
}

#precio_range .noUi-handle {
    height: 20px;
    width: 20px;
    top: -5px;
    right: -9px; /* half the width */
    border-radius: 9px;
}

#filtro_activo .form-switch {
    padding-left: 0em !important;
}

#precio_range .noUi-handle::before {
    display: none;
}

.rarngoids input {
    width: 70px !important;
    text-align: right;
}

.buttonfilter {
    /*margin-left: auto;*/
}

#form_product .input-group-text {
    padding: .3em .75rem !important;
}


.card-portlet {
    box-shadow: 0px 0px 13px 0px rgba(82, 63, 105, 0.05);
    background-color: #ffffff;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    -webkit-box-flex: 1;
    padding: 10px;
    flex-direction: column;
}

.card-portlet._margens {
    padding-left: 25px;
    padding-right: 25px;
}

.card-portlet ._headtitle {
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: #464457;
    padding-left: 25px;
    padding-right: 25px;

    justify-content: space-between;
    position: relative;
    align-items: stretch;
    display: flex;
    min-height: 45px;
}

.card-portlet ._headtitle h5 {
    font-size: 1.10rem;
    font-weight: 600;
}


.card-portlet ._content {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-left: 25px;
    padding-right: 25px;
}

.card-portlet ._content ._cItem {
    margin-bottom: 5px;
    justify-content: space-between;
    align-items: center;
    display: flex;
}

.card-portlet ._content ._cItem .stitle {
    color: #6c7293;
    font-size: 0.9rem;
}

.card-portlet ._content ._cItem .svalue {
    color: #282a3c;
}

.productInfo {
    width: 100%;
}

.productInfo .productImg {
    text-align: center;
    position: relative;
}

.productInfo .productImg .activationbox {
    position: absolute;
    top: 10px;
    left: 20px;

    background: rgba(255, 255, 255, 0.7); /* Blanco con transparencia */
    backdrop-filter: blur(8px); /* Desenfoque */
    -webkit-backdrop-filter: blur(8px); /* Soporte para Safari */
    border-radius: 15px; /* Bordes redondeados */
    border: 1px solid rgba(255, 255, 255, 0.7); /* Borde sutil */
    padding-right: 10px;
}

.catalogvisibility {
    text-align: center;
}

.productInfo .productImg .activationbox .form-switch, #form_product .containerTabs .form-switch {
    padding-left: 0px !important;
}

.productInfo .productImg img {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 200px;
    margin: 0 auto;
}

.productInfo .productName {
    text-align: center;
}

.productInfo .productPrice {
    text-align: center;
}

.productInfo .productPrice .infoprice {
    padding: 10px;
    height: auto;
    width: auto;
    cursor: default;
    color: #1dc9b7;
    font-size: 1.2rem;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    display: inline-flex;
    border-radius: 4px;
    width: 90%;
}

.productInfo .productCats {
    text-align: center;
    font-size: 1rem;
    color: #a7abc3;
    padding-bottom: 0.5rem;
    font-weight: 500;
    display: block;
}

#form_product li.nav-item {
    margin-bottom: 0px;
}

#form_product li.nav-item a:focus {
    box-shadow: none !important;
}


#form_product .containerTabs {
    border-left: 1px solid;
    border-right: 1px solid;
    border-color: var(--bs-border-color);
    padding: 20px;
    padding-bottom: 0px;
    position: relative;
}


#form_product .containerTabs .buttonarea,#form_bulk_product .containerTabs .buttonarea {
    border-top: 1px solid #ebedf2;
    text-align: right;
    padding: 15px !important;
    position: sticky;
    bottom: 0px;
    left: 0px;
    width: 100%;
    background: white;
}

.product_widget_generic {
    max-width: 140px;
    min-width: 140px;
    display: flex;
    flex-grow: 1;
    box-shadow: 0px 0px 13px 0px rgba(82, 63, 105, 0.05);
    background-color: #ffffff;
    margin: 8px;
    border-radius: 4px;
    margin-bottom: 15px;
    flex-direction: column;
}

.product_widget_generic .product_widget__img-container {
    height: 180px !important;
}


.imagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/*area de ocultación de tabs*/

.tbdownloads {
    display: none;
}

.tdownload .tbdownloads {
    display: inline;
}

.tbexternal {
    display: none;
}

.texternal .tbexternal {
    display: inline;
}

.tgrouped .tbprice {
    display: none;
}

.tgrouped .tbshipping, .texternal .tbshipping, .tvirtual .tbshipping {
    display: none;
}

.tbsseoscore .badge {
    position: absolute;
    top: 13px;
    right: -25px;
}

/*fieldset*/
.wwfieldset legend {
    font-size: 1.1rem;
    font-weight: 500;
}

/*dropzone*/
.dropzone {
    border: 2px dashed #ebedf2 !important;
    border-radius: 4px;
    padding: 20px !important;
    text-align: center;
    min-height: 150px !important;
}

.btnremoveimg {
    width: 30px;
    height: 30px;
    cursor: pointer;
    margin-top: 5px;
}

/*
modal-header
*/
.modal-header {
    justify-content: space-between;
}

.modal-header .btn-close {
}

.optooltips:focus {
    border: none;
    box-shadow: none;
}

.downloadsdata td.sort, .attributestable td.sort {
    text-align: center;
    cursor: move;
    padding-top: 12px;
}

.downloadsdata td.sort i, .attributestable td.sort i {
    font-size: 150%;
}

#form_product .nav-link {
    padding-left: 10px;
    padding-right: 10px;
}

.dashboarddata .imgdashboard {
    position: relative;
}

.dashboarddata .imgdashboard img {
    max-width: 100%;
    max-height: 100%;
    max-height: 100px;
}

.attributedata .headattribute .select2-container .select2-selection--single {
    height: 36px !important;
    padding-top: 3px;
}

.attributedata .headattribute .select2-container--ws .select2-selection--single .select2-selection__arrow {
    height: 34px;
    right: 4px;
}

.mce-panel.mce-menu {
    z-index: 108007 !important;
}

.intercambiador {
    font-size: 1.4rem;
    margin-top: 25px;
    position: absolute;
    cursor: pointer;
}

.dropdown-menu li.disabled {
    cursor: not-allowed;
}

.attributestable .widefat td {
    vertical-align: middle;
}

/*mejorando los checkbox*/
.woo-checkbox-product {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 10px;
    margin-left: -15px;
    border-radius: 8px; /* Opcional, para suavizar los bordes */
    user-select: none;
    transition: background-color 0.2s;
}

.woo-checkbox-product:hover {
    background-color: #f2f2f2; /* Opcional, para indicar interactividad */
}

.woo-checkbox-product input[type="checkbox"] {
    display: none; /* Oculta el checkbox real */
}

.woo-checkbox-product span {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #555;
    border-radius: 4px;
    position: relative;
}

/* Estilo cuando está marcado */
.woo-checkbox-product input[type="checkbox"]:checked + span {
    border-color: #28a745; /* borde verde */
    background-color: #28a745; /* fondo verde */
}

/* Marca de check cuando está seleccionado */
.woo-checkbox-product input[type="checkbox"]:checked + span::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white; /* color del check */
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .modal-body
    {
        height: 100vh;
    }

    .modal-body #container_page
    {
        height: auto !important;
    }

    .modal-body .containerTabs
    {
        padding-bottom: 50px !important;
        height: auto !important;
    }

    .modal-body  .buttonarea
    {
        position: inherit !important;
    }
}