@import "../../../../../style/variables";

:host {
  ::ng-deep .form-input, ::ng-deep .co-input-text:not(.no-style):not(.read-only):not(.no-hover-line) {
    .co-button {
      background-color: transparent;
      &:hover {
        background-color: $hd-color-main;
      }
    }
    &:hover:before {
      box-shadow: inset 0 0 0 2px $hd-color-main;
    }
  }
  .model-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }
  .header-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    .header-title-icon-wrapper {
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: $hd-color-main-light;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      ::ng-deep .co-icon {
        svg { // for fontawesome icons
          fill: $hd-color-main;
        }
        & [fill] { // for own icons
          fill: $hd-color-main;
        }
      }
    }
    .header-title-wrapper {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    .header-title {
      font-size: 16px;
      font-weight: bold;
    }
    .header-sub-title {
      font-size: 12px;
    }
  }
  .model-preview {
    display: grid;
    grid-template-columns: 60% 1fr;
    grid-gap: 20px;
    font-size: 14px;
    position: relative;
  }
  .preview-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #FAF8F7;
    border-radius: 10px;
    border: 1px solid $hd-color-border;
    padding: 20px;
  }

  .canvas-settings {
    display: flex;
    gap: 20px;
  }

  .settings-wrapper {
    display: grid;
    //grid-template-rows: 50% 1fr;
    gap: 20px;
    .settings-header-wrapper {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
    }
    .settings-header-title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: bold;
      font-size: 16px;
    }
    .settings-section {
      display: flex;
      gap: 20px;
    }
    .properties-wrapper {
      display: flex;
      gap: 20px;
      .property-wrapper {
        flex-basis: 100%;
      }
    }
    .properties-options-wrapper {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    ::ng-deep .info-icon {
      width: 15px;
      height: 15px;
      cursor: pointer;
      border: 3px solid $hd-color-border-dark;
      border-radius: 50%;
      svg { // for fontawesome icons
        fill: $hd-color-border-dark;
      }
      & [fill] { // for own icons
        fill: $hd-color-border-dark;
      }
      &:hover {
        border: 3px solid $hd-color-main;
        svg { // for fontawesome icons
          fill: $hd-color-main;
        }
        & [fill] { // for own icons
          fill: $hd-color-main;
        }
      }
    }
  }
  ::ng-deep .co-input-checkbox {
    .checkbox {
      border-radius: 5px;
    }
    .label {
      user-select: none;
    }
    .checkbox.checked {
      border-color: $hd-color-main;
      background-color: $hd-color-main;
    }
  }
  .reset-button {
    font-size: 16px;
    background: white;
    border: 1px solid $hd-color-border;
    color: $hd-color-font;
    ::ng-deep .co-icon {
      height: 50%;
    }
  }
  .canvas-container {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    max-height: 500px;
    > * {
      width: 100%;
      height: 100%;
    }
  }
  .model-preview-button-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    border-color: $hd-color-border;
    border-width: 1px 0 0 0;
    border-style: solid;
    margin-top: 20px;
    padding: 20px;
    .preview-cancel-button {
      color: $hd-color-font;
      background: white;
      border: 1px solid $hd-color-border;
    }
    .preview-save-button {
      background: $hd-color-main;
      ::ng-deep .co-icon {
        svg { // for fontawesome icons
          fill: white;
        }
        & [fill] { // for own icons
          fill: white;
        }
      }
    }
  }
}
