/* Struttura */
details#edit-v-configuratore-voci-t-5 {
  /* Riga per aprire/chiudere il details */
  summary {
    /* Nascondo summary pannello centrale */
    #v_configuratore_voci__t_13-list-row {
      display: none;
    }
  }

  /* Contenuto */
  div.wrapper > .content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 4rem;

    .wizard-details-subtitle {
      width: 100%;

      p {
        margin: 0;
      }
    }

    fieldset {
      display: flex;
      flex-direction: column;

      legend {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-bottom: 1rem;
      }

      .wizard-options {
        flex-direction: column;
        align-items: start;
        justify-content: start;
        gap: 1rem 0.5rem;

        .form-item {
          .form-item-wrapper {
            flex-direction: row;
            align-items: start;
            gap: 0.5rem;
          }

          /* Label contente immagine */
          label.wizard-label-container {
            width: 130px !important;
            flex-shrink: 0;
          }

          /* Checkbox */
          .wizard-input-checkbox {
            margin-top: 9px;
          }
        }
      }

      /* Pannello centrale */
      &#edit-v-configuratore-voci-t-13 {
        legend {
          opacity: 0 !important;
        }

        img {
          width: 200px;
        }
      }
    }
  }
}

/* Solo Mobile */
body.is-mobile {
  .block-newcom-wizard form {
    details#edit-v-configuratore-voci-t-5 {
      /* Contenuto */
      div.wrapper > .content {
        gap: 3rem 2rem;

        /* Subtitle */
        .wizard-details-subtitle {
          margin-bottom: -2rem;
        }

        /* Tutti i pannelli */
        fieldset {
          width: 100%;

          .wizard-options {
            align-items: center;
            justify-content: center;

            .form-item {
              width: 100%;

              .form-item-wrapper {
                label {
                  width: auto !important;
                }
              }
            }
          }
        }

        /* Pannello centrale */
        fieldset#edit-v-configuratore-voci-t-13 {
          order: 1;

          legend {
            opacity: 1 !important;
          }
        }

        /* Pannello sinistro e destro */
        fieldset#edit-v-configuratore-voci-t-10,
        fieldset#edit-v-configuratore-voci-t-11 {
          width: 45%;

          &#edit-v-configuratore-voci-t-10 {
            order: 2;
          }

          &#edit-v-configuratore-voci-t-11 {
            order: 3;
          }
        }
      }
    }
  }
}
