$border-radius: 20px;
$border-width: 10px;
$border-color: #dda73f;


.render-container {
  position: relative;
  min-width: 375px;
  //background: #fff;
  //margin: 0 10px 0 0;
  //border-radius: 50px;
  //box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.12);

  .render-popup-container {
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 25px 25px;
    border-radius: 5px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.12);

    .render-popup-header {
      display: flex;
      justify-content: space-between;
      font-family: inherit;

      h3 {
        display: flex;
        justify-content: space-between;
        ::ng-deep .renderErrorIcon {
          width: 20px;
          height: 20px;
          margin-left: 20px;
          svg, svg polygon {
            fill: #DC143C;
          }
        }
      }

      .close-popup-container {
        cursor: pointer;
        border: none;
        background: none;
        float: none;
        height: auto;
        width: auto;
      }
    }

    .render-popup-button-container {
      display: flex;
      justify-content: space-between;
      font-family: inherit;

      .render-popup-button {
        float: none;
        width: 100%;
        max-width: 130px;
        border-radius: 3px;
        cursor: pointer;
        border: none;
        display: flex;
        height: 40px;
        align-items: center;
        justify-content: space-evenly;

        ::ng-deep co-icon {
          display: inline-block;
          height: 18px;
          width: 18px;

          svg {
            path {
              fill: #fff;
            }
          }
        }
      }

      .photo-button {
        color: #fff;
        background-color: #dda73f;
      }

      .cancel-button {
        color: #fff;
        background-color: #5b6875;
      }
    }

    .render-popup-preview {
      background-color: #fff;
      min-height: 150px;
      min-width: 275px;
      margin: 5px auto;
      position: relative;
      width: 340px;
      height: 150px;

      .render-popup-preview-placeholder {
        background-color: #fff;
        display: flex;
        justify-content: space-around;
        align-items: center;
        vertical-align: middle;
        min-height: 150px;
        border: 1px solid #ddd;
        color: #ddd;
        font-size: 14px;
      }

      .render-popup-refresh-preview {
        position: absolute;
        bottom: 0;
        right: 0;
        cursor: pointer;
        border-radius: 0;
        border: none;
        height: 30px;
        width: 30px;
        background-color: #dda73f;
        color: #fff;
        margin: 0;

        ::ng-deep co-icon {
          svg {
            path {
              fill: #fff;
            }
          }
        }
      }
    }

    .render-popup-dropdown {
      margin: 5px 0;
      width: 100%;

      .toggleable {
        cursor: pointer;
        display: flex;
        justify-content: right;
        align-content: center;
        p{
          padding: 0;
          margin: 0;
          font-size: 12px;
          line-height: 30px;
        }

        .icon-rotate {
          transform: rotate(180deg);
        }
      }

      .mat-mdc-form-field {
        width: 100%;
        font-size: 14px;
        ::ng-deep .mat-mdc-form-field-flex {
          background-color: #fff;
          color: #000;
          padding: 3px 6px;
          border: 1px solid #ddd;
        }

        ::ng-deep .mat-mdc-form-field-underline {
          display: none;
        }

        ::ng-deep .mat-mdc-form-field-wrapper {
          padding-bottom: 0;
        }
      }

    }
  }

  .render-progress {
    float: left;
    min-width: 50px;
    border-radius: 25px;
    line-height: 50px;
    text-align: center;
    padding: 0 60px 0 20px;
    background: #fff;
    color: #74B77F;
    font-weight: bold;
    margin: 0 -50px 0 0;
  }

  .render-input-container {
    float: right;

    input {
      width: 100px;
      height: 24px;
      margin: 5px 0;
      padding: 0 10px;
      font-size: 14px;
    }
  }

  button {
    pointer-events: all;
    width: 50px;
    height: 50px;
    float: right;
    border-radius: 100%;
    position: relative;
    z-index: 2;
    margin-bottom: 10px;

    &.active {
      background: #74B77F;
      color: #fff;
    }

    > * {
      pointer-events: none;
    }
  }
}


.render-indicators {
  //position: fixed;
  //height: 80vh;
  //width: 90vw;
  //top: 10vh;
  //bottom: 5vh;
  //left: 5vw;
  //right: 5vw;
  //border-radius: 20px;
  ///* stolen from https://css-tip.com/corner-only-border-image/ */
  //--s: 75px; /* the size on the corner */
  //--t: 8px; /* the thickness of the border */
  //--g: 20px; /* the gap between the border and div element */
  //padding: calc(var(--g) + var(--t));
  //outline: var(--t) solid #dda73f; /* the color here */
  //outline-offset: calc(-1 * var(--t));
  //mask: conic-gradient(at var(--s) var(--s), #0000 75%, #000 0) 0 0/calc(100% - var(--s)) calc(100% - var(--s)),
  //linear-gradient(#000 0 0) content-box;

  div {
    position: fixed;
    width: 100px;
    height: 100px;
  }

  .render-indicator-top-left {
    left: 5vw;
    top: 10vh;
    border-left: $border-width solid $border-color;
    border-top: $border-width solid $border-color;
    border-top-left-radius: $border-radius;
  }

  .render-indicator-top-right {
    right: 5vw;
    top: 10vh;
    border-right: $border-width solid $border-color;
    border-top: $border-width solid $border-color;
    border-top-right-radius: $border-radius;
  }

  .render-indicator-bottom-left {
    left: 5vw;
    bottom: 5vh;
    border-left: $border-width solid $border-color;
    border-bottom: $border-width solid $border-color;
    border-bottom-left-radius: $border-radius;
  }

  .render-indicator-bottom-right {
    right: 5vw;
    bottom: 5vh;
    border-right: $border-width solid $border-color;
    border-bottom: $border-width solid $border-color;
    border-bottom-right-radius: $border-radius;
  }
}


.render-warning {
  width: 500px;
  position: fixed;
  top: 20%;
  left: calc(50% - 250px);
  border-radius: 15px;
  box-sizing: border-box;
  background-color: #fff;
  box-shadow: 1px 0 20px rgba(0, 0, 0, 0.12);

  .render-warming-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #c5c3c6;
    padding: 20px 20px 10px;
    align-items: center;

    h2 {
      padding: 0;
      margin: 0;
    }

    .render-warning-close {
      mat-icon {
        fill: #c5c3c6;
        color: #c5c3c6;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      &:hover {
        mat-icon {
          fill: #46494c;
          color: #46494c;
        }
      }
    }
  }

  .render-warning-body {
    padding: 10px 20px;
  }

  .render-warning-footer {
    display: flex;
    justify-content: center;
    padding: 0 20px 10px;

    .render-popup-button {
      float: none;
      width: 110px;
      border-radius: 3px;
      cursor: pointer;
      border: none;
      display: flex;
      height: 40px;
      align-items: center;
      justify-content: space-evenly;
      color: #fff;
      background-color: #5b6875;

      ::ng-deep co-icon {
        display: inline-block;
        height: 18px;
        width: 18px;

        svg {
          path {
            fill: #fff;
          }
        }
      }
    }
  }
}
