/* Estilos básicos para el Cover Calculator */

/*CARRITO*/
.cart_item .product-name {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
}
.cart_item .product-name .variation {
    margin-right: 15px;
}
/*fin carrito*/

.cover-calculator {
    margin: 20px 0;
}

.cover-calculator h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.cover-calculator input {
    padding: 8px;
    margin: 5px 0;
}

.cover-calculator button {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}

.cover-calculator button:hover {
    background-color: #005b8c;
}

.hidden { display: none!important; }
.image-selection div { display: inline-block; margin-right: 10px; cursor: pointer; }
.image-selection img { width: 150px; height: auto; border: 2px solid transparent; }
.image-selection img.selected { border-color: #0073aa; }

/* CALCULADORA */
.calculatorTitle {
    margin: 0;
    background: #000000;
    text-align: center;
    padding: 8px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 26px;
    color: #fff!important;
}
#calculator-container {
    background: #fff;
    padding: 0 0 20px 0;
    box-sizing: border-box;
    min-height: 600px;
    display: flex;
    flex-direction: column;    
}
#calculator-container h2 {
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 25px;
    color: #666;
}
#calculator-container input {
    border: none !important;
    background: #ccc !important;
    font-weight: bold!important;
    color: #555 !important;
    font-size: 20px!important;
}
.form-step {
    margin-bottom: 20px;
    padding: 20px;
}
.selected {
    border-radius: 5px;
    transform: scale(1.05);    
    transition: ease-in .1s;
    background: #eee;
}
.prevNextButton {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    background: #fff;
    padding: 20px 0;
    z-index: 3;
}


.prevNextButton button {
    margin: 0 7px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 40px;
}
.prev-step {
    background: #666666;
}
.next-step {
    background: #0095eb;
}

/*PASOS*/
#selection-summary {
    margin: 15px 0;
    position: fixed;
    left: 0;
    top: 50%; /* Centrado vertical */
    transform: translateY(-50%); /* Ajusta para que el centro esté alineado */
    padding:20px 20px;
    width: 340px;
    background: #0075C0;
    max-height: 100%;
    /*overflow: auto;*/
    z-index:10;
    box-shadow: 0px 0px 1px rgba(3, 7, 18, 0.02),
    0px 0px 4px rgba(3, 7, 18, 0.03),
    0px 0px 9px rgba(3, 7, 18, 0.05),
    0px 0px 15px rgba(3, 7, 18, 0.06),
    0px 0px 24px rgba(3, 7, 18, 0.08);
}
#selection-summary.expanded #summary-content {
        display: none;
}
#selection-summary.hidden {
    transform: translateX(-100%);
}

#show-summary-button {
    position: fixed;
    left: 5px;
    top: 50%;
    z-index: 1000;
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 5px;
    cursor: pointer;
    border-radius: 50px;    
    width: 50px;
    height: 50px;
    font-size: 20px;
}
#show-summary-button:hover {
    background: #6b7071;
}
#hide-summary {
    position: absolute;
    top: -20px;
    z-index: 999;
    right: -20px;
    border-radius: 50px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 13px;
    background: #6b7071;
    box-shadow: 0px 0px 1px rgba(3, 7, 18, 0.02), 0px 0px 4px rgba(3, 7, 18, 0.03), 0px 0px 9px rgba(3, 7, 18, 0.05), 0px 0px 15px rgba(3, 7, 18, 0.06), 0px 0px 24px rgba(3, 7, 18, 0.08);
}
#hide-summary:hover {
    background: #000;
}
#summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#selection-summary  h4 {
    margin: 0;
    color: #fff;
    font-weight: bold;
    font-size: 22px;
}
#toggle-summary {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}
#summary-content {
    display: flex; 
    justify-content: flex-start; /* Alinea los elementos a la izquierda */
    flex-wrap: wrap;
    gap: 2%;  /* Espacio entre los elementos */
}
.boxResumen {
    width: 100%;
    padding: 10px;
    background: #ffffff;
    margin-top: 15px;
}
.boxResumen p {
    margin: 0;
}
/* Modo responsive */
@media (max-width: 1024px) {
    #selection-summary {
        width: 100%;
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        max-height: none;
        overflow: visible;
        z-index: 1;
    }

    #summary-content {
        display: none; /* Oculto por defecto en móvil/tablet */
        flex-direction: column;
    }
    #hide-summary { 
        display:none!important;
    }
    #selection-summary.expanded #summary-content {
        display: flex;
    }

    #toggle-summary {
        font-size: 24px;
    }
    .form-step {        
        padding: 0;
    }    
}
.image-selection {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;    
    margin: 0 auto;
    flex-wrap: wrap;
}

.model-box {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 12%;
    flex-direction: column;
    padding: 15px 10px;
    margin: 0 15px; 
}
.model-box img {
    /*min-height: 100px;
    mix-blend-mode: multiply;*/
}
.model-box p {
    margin: 10px 0 0;
    text-align: center;
    box-sizing: border-box;
    min-height: 55px;
    font-size: 15px;
    text-transform: uppercase;
    line-height: 17px;
    font-weight: bold;
    color: #666;
}
.submodel-box {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 20%;
    flex-direction: column;
    padding-top: 10px;
    margin: 0 15px;
    transition: ease-in .1s;
    flex-wrap: wrap;
}
.submodel-box p {
    margin: 10px 0 0;
    text-align: center;
    box-sizing: border-box;
    min-height: 45px;
    font-size: 15px;
    text-transform: uppercase;
    line-height: 17px;
    font-weight: bold;
    color: #666;
}
.submodel-image {
        cursor:pointer;
    }
#submodels-container {
    display: flex;
    justify-content: space-between;
    background: #eee;
    padding: 20px 20px;
    z-index: 1000;
    position: relative;
}
#submodels-container div {
    width: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}
#submodels-container div img.selected {
    transform: scale(1.2);
}
#large-submodel-container {
    margin: 50px 0 !important;
    display: flex;
    justify-content: center;
}
.custom-message {
    width: 50%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background: #eee;
    padding: 20px;
}
.custom-message a {
    text-transform: uppercase;
    font-weight: bold;
}
.custom-message p {
    font-size: 20px;
    font-weight: bold;
}
/*PASO 3*/
#measures-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.measure-group {
    display: flex;
    flex-direction: column;
    width: 20%;
    box-sizing: border-box;
    padding: 10px;
}
.measure-group label {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.measure-group label span{
    font-size: 12px;
}
.measure-group input {
    border: none !important;
    background: #e7e7e7 !important;
    font-weight: bold;
    color: #666 !important;
    font-size: 20px;
}
.submodelImage {
    display: flex;
    justify-content: center;
}
.submodelImage img {
    margin: 32px 0;
    mix-blend-mode: multiply;
    max-width: 550px !important;
    width: 100%;
}
.measure-total {
    display: flex;
    justify-content: center;
    font-weight: bold;
    font-size: 22px;
    color: #666;
    margin-top: 32px;
}
.measure-total p {
    margin: 0;
    text-align: center;
}
#calculated-area {
    color: #fff;
    background: #000000;
    padding: 2px 6px 4px;
    font-size: 32px;
    border-radius: 11px;
}
/*PASO 4*/
#materials-container {
    display: flex;
    flex-wrap: wrap;    
}
.material-option {
    padding: 15px;
    cursor: pointer;
    display: flex;
    margin: 10px;
    text-align: center;
    flex-direction: column;
    width: 22%;
    border-radius: 0;
    align-items: center;
    
}
.material-option img {
    width: 100% !important;    
    mix-blend-mode: multiply;
}
.material-info-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-left: 10px;
    margin-top:15px;
}
.material-info-text p {
    margin:0;
}
.materialTitle {
    font-weight: 500;
    font-size: 17px !important;
    line-height: 20px;
    margin-bottom: 5px !important;
}
.costoPorMetro, .costoTotal  {
    font-size: 14px;
    font-style: italic;
    font-weight: 500;
}
.material-info-text .costoPorMetro span, .material-info-text .costoTotal span {
    font-weight: bold;
    color: #0095eb;
    font-size: 19px;
    letter-spacing: -0.5px;
}

/*PASO 5 */
#reinforcements-container {
    display: flex;
    flex-wrap: wrap;    
}
.reinforcement-option {
    padding: 15px;
    cursor: pointer;
    flex-direction: column;
    display: flex;
    margin: 10px;
    text-align: center;
    width: 22%;
    border-radius: 0;
    align-items: center;
    
}
.reinforcement-option img {
    width: 100% !important;
    mix-blend-mode: multiply;   
}
.reinforcement-info-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-left: 10px;
    margin-top:15px;
}
.reinforcement-info-text p {
    margin:0;
}
.reinforcementTitle {
    font-weight: 500;
    font-size: 17px !important;
    line-height: 20px;
    margin-bottom: 5px !important;
}
.reinforcement-area {
    font-weight: 500 !important;
}
.reinforcement-info-text.costoPorMetro span, .reinforcement-info-text .costoTotal span:nth-child(2) {
    font-weight: bold;
    color: #0095eb;
    font-size: 19px;
    letter-spacing: -0.5px;
}
/*PASO 6 */

#enrollers-container {
    display: flex;
    flex-wrap: wrap;    
}
.enroller-option {
    padding: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    margin: 10px;
    text-align: center;
    width: 22%;
    border-radius: 0;
    align-items: center;
    
}
.enroller-option img {
    width: 100% !important;
    mix-blend-mode: multiply;   
}
.enroller-info-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-left: 10px;
    margin-top:15px;
}
.enroller-info-text p {
    margin:0;
}
.enrollerTitle {
    font-weight: 500;
    font-size: 17px !important;
    line-height: 20px;
    margin-bottom: 5px !important;
}
.costoPorEnroller {    
    font-weight: bold;
    color: #0095eb;
    font-size: 19px;
    letter-spacing: -0.5px;
}
/* PASO 7*/
#calculator-container h3 {
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 22px;
    color: #666;
}
.borderInputsImg {
    display: flex;
    align-items: center;
    margin: 0 0 50px;
}
.borderInputsImg .corner-inputs {
    margin-top: 20px;
    display: flex;
    justify-content: center;    
    display: flex;
    flex-direction: column;
    width: 50%;
    padding: 50px;    
}
.borderInputsImg .corner-inputs label {
    display: block;    
    font-weight: bold;
}
.borderInputsImg .corner-inputs input {
    width: 50% !important;
    width: 80px;
    padding: 5px;
    margin-bottom: 25px;
}
.borderInputsImg .corner-inputs span {
    margin-bottom:10px;
    font-style: italic;
}
.borderInputsImg .image-container {
    width: 50%;
}
.borderExample {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.borderExample img {
    margin: 32px 0;
    max-width: 550px;
}
.corner-inputs .costoTotal span {
    font-weight: bold;
    color: #0095eb;
    font-size: 19px;
    letter-spacing: -0.5px;
}  

/* PASO 8*/
#canvas-container {
    margin-bottom: 20px;
    width: 100%;
    height: 800px;
    margin-top: 32px;
    overflow: hidden;
}
.ladder-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.hingeAdd {
    flex-direction: column;
    width: 100%;
    align-items: center;
}
.add-button {
    margin: 0 7px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 40px;
    background: #0095eb;
    margin-bottom: 32px;
}
.add-button:hover {
    background: #000;
}
.remove-button {
    margin: 0 7px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 40px;
    background: #ff4747;
    margin-bottom: 32px;
}
.remove-button:hover {
    background: #000;
}
.escaleraNombre {
    position: absolute;
    top: -70px;
    background: #000;
    padding: 10px;
    color: #fff;
    font-weight: bold;
}
.ladder {
    width: 150px;
    height: 100px;
    background-color: transparent;
    position: absolute;
    cursor: move;
    transition: transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ladder img {
    width: 70%;    
}
#canvas-container, #canvas {
    touch-action: none; /* evita el scroll al arrastrar */
}

.ladder {
    touch-action: none;
    position: absolute;
    z-index: 10;
}
.center-vertical {
    display: flex;
    justify-content: center;    
    flex-direction: column;
}
.rotate-button, .delete-button {
    position: absolute;
    background: rgb(255 255 255);
    border: 2px solid #000;
    border-radius: 50%;
    width: 40px !important;
    height: 44px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
 #canvas {
        background-size: 100%!important;
    }
.rotate-button {
    top: -35px;
    left: -35px;
}

.delete-button {
    top: -35px;
    right: -35px;
}

.rotate-button:hover, .delete-button:hover,
.rotate-button:active, .delete-button:active,
.rotate-button:focus, .delete-button:focus {
    background: #ccc;
}

.rotate-button img, .delete-button img {
    width: 30px !important;
    height: 30px;
    position: absolute;
}

.ladder-measurements {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #eee;
}
.ladder-measurements h4 {
    font-weight: bold;
    font-size: 20px;
}
.inputs-ladder {
    display: flex;
    justify-content: space-around;
    width: 100% !important;
}
#ladder-inputs {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.instrucciones-escalera {
    display: flex;
    background: #eee;
    padding: 20px;
    justify-content: space-between;
    margin-bottom: 32px;
}
.instrucciones-escalera div {
    width: 48%;
}
.instrucciones-escalera h3 {
    text-align: left !important;
    font-size: 23px !important;
}
.ladder-measurements .costoTotal span {
    font-weight: bold;
    color: #0095eb;
    font-size: 19px;
    letter-spacing: -0.5px;
} 
/*PASO 9*/
.formularioEnvio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#shipping-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}
#shipping-form label {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}
.total-cost-display {
    text-align: center;
}
.total-cost-display span {
    font-weight: 600;
}
.total-cost-display p {
    font-weight: 400;
}

.wc-block-components-product-name, .wc-block-cart-item__image a {
    pointer-events: none!important;    /* No permite clics */
    cursor: default!important;         /* Cambia el cursor para que no parezca un enlace */
    color: inherit!important;          /* Usa el color normal del texto */
    text-decoration: none!important;  
}
@media (max-width:480px) {
    #canvas-container {
        height: 250px;    
    }
    #canvas {
        background-size: 76%!important;
    }
}
@media (max-width:700px) {
    .prevNextButton button {
        margin: 5px 7px;
    }
    .image-selection {
        justify-content: space-around;        
    }
    .model-box, .submodel-box {        
        width: 30%;
        padding: 0;
        margin: 10px 1% !important;       
    }
    #submodels-container {        
        padding: 10px;
        flex-wrap: wrap;
    }
    #submodels-container div {
        width: 24%;
        display: flex;        
        justify-content: space-around;        
        margin: 2%;
    }
    .material-option {                
        margin: 0px 0 10px;
        padding: 10px;
        width: 100%;
        display: flex;
        flex-direction: row;    
    }
    .material-option img {
        width: 70px !important;
        height: 70px !important;
    }
    .material-info-text {
        margin-top:0;
    }
    #calculator-container {
        padding:0px;
    }
    
    .selected {        
        transform: scale(1);                
    }
    .prevNextButton {
        position: fixed;
        bottom: 0;
        background: #fff;
        width: 100%;
        padding: 10px 0;
        left: 0;
        flex-wrap: wrap;
        z-index: 99999999 !important;
    }
    .measure-group {     
        width: 100%;
    }
    #reinforcements-container {     
        flex-direction: column;
    }
    .reinforcement-option {      
        margin: 0px 0 10px;
        padding: 10px;
        width: 100%;
        display: flex;
        flex-direction: row;    
    }
    .reinforcement-option img {
        width: 70px !important;
        height: 70px !important;
    }
    .reinforcement-info-text {        
        margin-top: 0;
    }
    #enrollers-container {     
        flex-direction: column;
    }
    .enroller-option {        
        margin: 0px 0 10px;
        padding: 10px;
        width: 100%;
        display: flex;
        flex-direction: row; 
    }    
    .enroller-option img {
        width: 70px !important;
        height: 70px !important;
    }
    .enroller-info-text {
        margin-top: 0;
    }
    .borderInputsImg {
        display: flex;
        align-items: center;
        flex-direction: column;
    }
    .borderInputsImg .corner-inputs {
        margin-top: 20px;
        display: flex;
        justify-content: center;
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0px;
        align-items: center;
    }
    .instrucciones-escalera div {
        width: 100%;
    }
    .instrucciones-escalera {
        flex-direction: column;
    }
    .ladder-measurements {
        width: 100%;
    }
    .custom-message {
        width: 100%;
    }
    .center-vertical h3 {
        text-align:center!important;
        margin-top:20px!important;
    }
    .center-vertical p {
        text-align:center!important;
    }
    .ladder img {
        width: 40px!important;
    }
    .inputs-ladder {
        flex-direction: column;
    }
    .inputs-ladder input {
        width: 90%;
    }
    .delete-button img, .rotate-button img {
        width: 20px !important;
    }
    .escaleraNombre {
        top: 0px !important;
        padding: 3px 10px;
        font-size: 14px;
    }
    .delete-button {
        top: 25px!important; 
        right: 15px!important; 
    }
    .rotate-button {
        top: 25px!important; 
        left: 15px!important; 
    }
    .rotate-button, .delete-button {    
        width: 30px !important; 
        height: 30px !important;
        padding: 0 !important;
    }
}

@media (min-width:701px) and (max-width:900px) {
    .material-option {                
        margin: 10px;
        width: 30%;
        padding: 10px;  
    }
    .material-option img {
        width: 100% !important;
        height: auto !important;
        padding:10px;
    }
    .material-info-text {
        margin-top: 15px;
    }
    #calculator-container {
        padding:0px;
    }
    .model-box, .submodel-box {        
        width: 33%;        
        padding: 0;
        margin: 10px 0 !important;        
    }    
    .selected {        
        transform: scale(1);                
    }
    .prevNextButton {
        position: fixed;
        bottom: 0;
        background: #fff;
        width: 100%;
        padding: 10px 0;
        left: 0;
        z-index: 10000000;
    }
    .measure-group {     
        width: 33%;
    }
    #reinforcements-container {
        flex-direction: row;
        align-items: stretch;
    }
    .reinforcement-option {      
        margin: 10px;
        width: 30%;
        padding:10px;
        flex-direction: column;
    }
    .reinforcement-option img {
        width: 100% !important;
        height: auto !important;
    }
    .reinforcement-info-text {     
        margin-top: 15px;
    }
    #enrollers-container {     
        flex-direction: row;
        align-items: stretch;
    }
    .enroller-option {        
        margin: 10px;
        width: 30%;
        padding:10px;
        flex-direction: column;
    }    
    .enroller-option img {
        width: 100% !important;
        height: auto !important;
    }
    .enroller-info-text {     
        margin-top: 15px;
    }
    #canvas-container {
        height:530px;
    }
    .inputs-ladder input {
        width: 90%;
    }
    
}