/* 
 * IMPORTANTE
 *
 * todo el html de este componente se inserta en foot,
 * con el objeto de que atributos de posicion de algun componnente
 * padre lo afecte.
 *
 * */
.xd-invisible {
    display: none !important;
}
.xdesigner-client-view {
    position: absolute;
    padding: 1.5rem;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    z-index: 1000;
    text-align: left;
    max-width: unset;
    margin: unset;
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    top: 100pt; /* el html se inserta al foot, para que no interfieran otros */
    left: 50%;
    transform: translate(-50%, -5%);
}

@media (min-width: 1400px) and (min-height: 800px) {
    /* el mas ancho y alto */
    .xdesigner-client-view {
        height: auto;
    }
}
@media (min-width: 1000px) and (max-width: 1399px) and (min-height: 800px) {
    /* el ancho mediano y alto */
    .xdesigner-client-view {
        height: auto;
    }
}

@media (min-width: 501px) and (max-width: 1000px) and (min-height: 800px) {
    /* el ancho mobile/tablet pero alto infinito */
    .xdesigner-client-view {
        height: 100%;
    }
}

@media (min-width: 1001px) and (max-width: 1399px) and (min-height: 800px) {
    /* el ancho mobile/tablet pero alto infinito */
    .xdesigner-client-view {
        height: auto;
    }
}

@media (max-width: 500px) and (min-height: 800px) {
    /* el ancho mobile/peq pero alto infinito */
    .xdesigner-client-view {
        height: 100%;
    }
}

@media (max-width: 1400px) {
    .xdesigner-client-view {
        display: flex;
        flex-wrap: wrap;
        width: 90%;
        transform: none;
        left: 0;
    }
}

.xdesigner-client-view
.button {
    width: 100pt;
    height: 30pt;
    margin: auto;
    background-color: #F8971C;
    color: white;
    border: 1px solid white;
    font-size: 10pt;
    padding: 8pt;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.xdesigner-client-view
.xd-close-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 5px 10px; 
  background-color: #f8971c36;
  color: #F8971C;
  border: none;
  cursor: pointer;
}

.xdesigner-client-view
.back_to_uploader {
    background-color: #905100 !important;
}

.xdesigner-client-view
.back_to_uploader .emoji {
    filter: sepia(100%) saturate(10) grayscale(100%);
    margin-right: 10px !important;
}

.xdesigner-client-view
.add_to_cart .emoji {
    filter: sepia(100%);
    margin-left: 10px !important;
}



.xdesigner-client-view p,
.xdesigner-client-view br {
    display: none;
}

.xdesigner-client-view .xdesigner-panels {
    display: flex;
    flex-wrap: wrap;
    align-items: normal;
    margin-top: 20pt;
    gap: 10pt;
    width: 100%;
    height: 80%;
    padding: 0pt;
}

.xdesigner-client-view .xdesigner-side {
    border: 1px solid #eee;
    align-content: normal;
    height: auto;
    flex: 1;
    background-color: #d5d5d5;
}
@media (min-height: 800px) {
    /* para que funcione bien el zoom y el diseñador no se vea enorme */
    .xdesigner-client-view .xdesigner-side .xdesigner {
        max-height: 600px;
        overflow: scroll;
    }
}

.xdesigner-client-view .xdesigner-side .xdesigner {
    /*overflow: scroll; la aplicacion lo coloca: ver XDesignerClient::zoom*/
}

@media (max-width: 1000px) {
    .xdesigner-client-view .xdesigner-panels {
        height: 700px;
    }
    .xdesigner-client-view .xdesigner-side {
        flex: 1 1 50%;
    }
}

.xdesigner-client-view .xfoot {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    text-align: left;
    background: whitesmoke;
    padding: 10pt;
}
@media (max-width: 600px) {
    .xdesigner-client-view .xfoot {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        text-align: center;
    }
}

.xdesigner-client-view .xfoot .xpriceinfo {
    width: 30%;
    display: block;
    visibility: hidden;
}
@media (max-width: 600px) {
    .xdesigner-client-view .xfoot .xpriceinfo {
        width: 100%;
    }
}
.xdesigner-client-view .xfoot .xpriceinfo.changed, 
.xdesigner-client-view .xfoot .xpriceinfo.unchanged {
    visibility: visible;
}
.xdesigner-client-view .xfoot .xpriceinfo .xnote{

}
.xdesigner-client-view .xfoot .xpriceinfo .xprice ,
.xdesigner-client-view .xfoot .xpriceinfo .xdet {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}
@media (max-width: 600px) {
    .xdesigner-client-view .xfoot .xpriceinfo .xprice ,
    .xdesigner-client-view .xfoot .xpriceinfo .xdet {
        justify-content: center;
    }
}   

.xdesigner-client-view .xfoot .xpriceinfo.unchanged .text1 {
    display: block;
}
.xdesigner-client-view .xfoot .xpriceinfo.unchanged .text2 {
    display: none;
}
.xdesigner-client-view .xfoot .xpriceinfo.changed .text1 {
    display: none;
}
.xdesigner-client-view .xfoot .xpriceinfo.changed .text2 {
    display: block;
}


.xdesigner-client-view .xfoot .xpriceinfo.unchanged .xdet {
}
.xdesigner-client-view .xfoot .xpriceinfo.changed .xdet {
}

.xdesigner-client-view .xfoot .xpriceinfo.unchanged .isold {
    display: none;
}

.xdesigner-client-view .xfoot .isnew {
    color: green;
}
.xdesigner-client-view .xfoot .isold {
    color: darkred;
    text-decoration: line-through;
    font-size: 10pt; 
}

.xdesigner-client-view .buttons {
    display: flex;
    gap: 10pt;
    padding: 10pt;
    width: 100%;
}

.xdesigner-client-view .xdesigner-side .side-title {
    font-weight: 600;
    padding: 10pt;
    background-color: white;
}

.xdesigner-client-view .xdesigner {
    width: auto;
    min-height: 500px;
    height: auto; /* se ajustará solo al cargar */
    align-content: center;
    text-align: center;
    margin: 10pt;
}

.xdesigner-client-view .color-palette {
    display: flex;
    flex-wrap: wrap;
    height: 40px;
    align-content: center;
    padding-left: 7px;
    width: 100%;
}
.xdesigner-client-view .color-palette .color {
    border: 1px solid #d6d6d6; 
}

.xdesigner-client-view .simple-form-filter {
    display: none;
}

.xdesigner-client-view .simple-form-filter.visible {
    display: block;
    position: fixed;
    left: 10pt;
    top: 10pt;
    background: white;
    padding: 10pt;
    border: 2px solid #e2e2e2;
    box-shadow: 10px 10px 10px #0000003b;
    z-index: 100;
}

.xdesigner-client-view .xd-controls { 
    position: relative;
    display: flex;
    height: 20px;
    margin-top: -20px;
    justify-content: end;
    gap: 10px;
}
.xdesigner-client-view .xd-controls .xd-control {
    width: 16px !Important;
    cursor: pointer;
    cursor: pointer;
    border: 1px solid #ccc;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgb(204, 204, 204);
    border-bottom: none;
    padding: 2px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    opacity: 30%;
    filter: greyscale(100);
}
.xdesigner-client-view .xd-controls .xd-control.active {
    background: #f8971c;
    opacity: 100%;
    background: #1f9ffc;
    opacity: 100%;
    filter: invert(100);
    border-color: black !important;
}

.xdesigner-client-view .xdesigner-side [data-state="edit"] 
    .xdesigner canvas[data-whoami="final"] {
    display: block !important;
}
.xdesigner-client-view .xdesigner-side[data-state="edit"] 
    .xdesigner canvas[data-whoami="virtual"] {
    display: none !Important;
}
.xdesigner-client-view .xdesigner-side[data-state="preview"] 
    .xdesigner canvas[data-whoami="final"] {
    display: none !Important;
}
.xdesigner-client-view .xdesigner-side[data-state="preview"] 
    .xdesigner canvas[data-whoami="virtual"] {
    display: block !important;
}
