& when (@media-common = true) {
  .trust-rendered-form {
    input[type="text"]:disabled, 
    input[type="password"]:disabled, 
    input[type="url"]:disabled, 
    input[type="tel"]:disabled, 
    input[type="search"]:disabled, 
    input[type="number"]:disabled, 
    input[type*="date"]:disabled, 
    input[type="email"]:disabled {
      background-color: lightgrey;
    }
  }

  .checkout-index-index {
    // Nascondo sidebar quando step scheda tecnica attivo
    #scheda-tecnica {
      #checkout-step-scheda-tecnica {
        .checkout-scheda-tecnica.template-scheda-tecnica {
          // Messaggio di avviso al rivenditore della compilazione
          .wrapper-message-wholesaler {
            color: @color-primary;
            padding: 15px;
          }
          // Elenco minicart con oggetti e bottoni per apertura modal scheda tecnica
          ol.minicart-items {
            li.product-item {
              .product {
                &:before,
                &:after {
                  // Nascosto per flex
                  display: none;
                }
                display: flex;
                justify-content: space-between;
                align-items: center;
                .product-info-wrapper {
                  .product-item-details {
                    display: flex;
                    align-items: center;
                    padding-left: 15px;
                    .product-item-details-text {
                      display: flex;
                      flex-direction: column;
                      .product-item-name {
                        margin-bottom: 0;
                      }
                      .product.options {
                        .content {
                          dl.product.options.list {
                            margin-bottom: 0;
                            display: flex;
                            flex-direction: column;
                            .options-list-wrapper {
                              width: 100%;
                              dt.label {
                                font-style: italic;
                              }
                              dd.values {
  
                              }
                            }
                          }
                        }
                      }
                    }
                    .product-image-container {
                      margin-right: 5px;
                    }
                  }
                }

                button {
                  .lib-trust-button-submit(@color-secondary);
                  min-width: 160px;
                  .fas.fa-file-signature {
                    font-size: 12px;
                    color: @color-white;
                  }
                  &.not-filled {
                  }
                  &.is-filled {
                    .lib-trust-button-submit(@color-primary);
                  }
                }

                .loading-wrapper {
                  min-height: 40px;
                  min-width: 80px;
                  text-align: center;
                  .fa-spinner {
                    margin-top: 15px;
                  }
                }
              }
            }
          }
        }
        .action-buttons-wrapper {
          margin-top: 25px;
          display: flex;
          button {
            &.previous {
              .lib-trust-button-submit(@color-secondary);
            }
          }
        }
      }
    }

    .edit-scheda-tecnica-popup-modal-wrapper {
      .modal-inner-wrap {
        background-color: @color-white !important;
        margin-bottom: 0;
        margin-top: 0;
        max-height: 100%;
        min-width: 95%;
        .modal-content {
          background-color: @color-white;
          padding-left: 0px;
          padding-right: 5px;
          #edit-scheda-tecnica {
            .iframe-container {
              iframe {
                width: 100%;
                height: 100%;
                border: 0;
                min-height: calc(~"90vh - 60px");
              }
              .scheda-tecnica-iframe {
  
              }
            }
            .edit-scheda-tecnica-buttons-wrapper {
              background-color: @color-white;
              text-align: right;
              padding-right: 15px;
              button {
                .lib-trust-button-submit(@color-primary);
              }
            }
          }
        }
        header.modal-header {
          background-color: @color-white;
        }
      }

    }
  }
  .schedatecnica-checkout-fill {
    #maincontent {
      .columns {
        .column.main {
          width: 100%;
          .trust-rendered-form {
            max-width: 100%;
            padding-bottom: 155px;
            .action.submit.primary {
              .lib-trust-button-submit(@color-secondary);
              padding: 9px;
              &:hover {
                .lib-trust-button-submit(@color-secondary);
                padding: 9px;
              }
            }
          }
        }
      }
    }
  }
}

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__l) {
  .checkout-index-index {
    #scheda-tecnica {
    }
    .edit-scheda-tecnica-popup-modal-wrapper {
      .modal-inner-wrap {
        width: 90%;
        margin: 0 auto;
        left: 0;
        height: 95vh;
        .modal-content {
          overflow-y: hidden;
        }
      }
    }
  }
}

.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
  .checkout-index-index {
    #scheda-tecnica {
      #checkout-step-scheda-tecnica {
        .checkout-scheda-tecnica.template-scheda-tecnica {
          // Messaggio di avviso al rivenditore della compilazione
          .wrapper-message-wholesaler {
            
          }
          // Elenco minicart con oggetti e bottoni per apertura modal scheda tecnica
          ol.minicart-items {
            li.product-item {
              .product {
                &:before,
                &:after {
                  
                }
                flex-direction: column;
                .product-info-wrapper {
                  width: 100%;
                  .product-item-details {
                    margin-bottom: 25px;
                    .product-item-details-text {
                      .product-item-name {
                      }
                      .product.options {
                        .content {
                          dl.product.options.list {
                            .options-list-wrapper {
                              width: 100%;
                              dt.label {
                                
                              }
                              dd.values {
  
                              }
                            }
                          }
                        }
                      }
                    }
                    .product-image-container {
                    }
                  }
                }

                button {
                  .fas.fa-file-signature {
                  }
                  &.not-filled {
                  }
                  &.is-filled {
                  }
                }

                .loading-wrapper {
                  .fa-spinner {
                  }
                }
              }
            }
          }
        }
        .action-buttons-wrapper {
          button {
            &.previous {
            }
          }
        }
      }
    }

    .edit-scheda-tecnica-popup-modal-wrapper {
      .edit-scheda-tecnica-buttons-wrapper {
        position: absolute;
        bottom: 25px;
        right: 25px;
      }
    }
  }
}
