@use "_theme.scss";

.ng-error-page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px;
  text-align: center;
  height: 100%;
  width: 100%;
  color: var(--text-color-ultra-dark);
  .inner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  &.offline {
    .inner-wrapper {
      background-color: #fff;
      border-radius: 16px;
      width: 100%;
      padding: 0;
      .error-icon {
        height: 120px;
        @media (max-width: theme.$sm) {
          height: 60px;
        }
      }
      .error-page-main-text {
        font-weight: bold;
        font-size: var(--store-offlinepage-main-text);
        @media (max-width: theme.$sm) {
          font-size: var(--text-size-h4);
        }
      }
      .error-page-sub-text {
        font-size: var(--store-offlinepage-sub-text);
        @media (max-width: theme.$sm) {
          font-size: var(--text-size-h4);
        }
      }
    }
    &.store-offline {
      background-color: #d6d6d6;
      .inner-wrapper {
        padding: 60px;
        @media (max-width: theme.$sm) {
          padding: 30px;
        }
        .logo {
          margin-bottom: 60px;
          @media (max-width: theme.$sm) {
            margin-bottom: 30px
          }
        }
        .error-icon {
          margin: 0 auto 50px;
          @media (max-width: theme.$sm) {
            margin: 0 auto 30px;
          }
        }
        .error-page-main-text {
          font-size: var(--store-offlinepage-main-text);
          max-width: 500px;
          margin-bottom: 30px;
        }
        .error-page-sub-text {
          font-size: var(--store-offlinepage-sub-text);
          margin-bottom: 0;
        }
      }
      @media (max-width: theme.$md) {
        padding: 30px;
      }
      @media (max-width: theme.$sm) {
        padding: 20px;
      }
      .retry {
        margin-top: 30px;
        width: 200px;
        }
    }
    @media (max-width: theme.$sm) {
      padding: 20pх;
    }
  }
  @media (max-width: theme.$sm) {
    padding: 30px 20px;
  }
  .error-icon {
    width: var(--errorpage-image);
    height: var(--errorpage-image);
    margin: 0 auto 40px;
    @media (max-width: theme.$md) {
      width: var(--errorpage-image-small);
      height: var(--errorpage-image-small);
      margin-bottom: 30px
    }
  }
  .error-page-main-text{
    font-size: var(--errorpage-main-text);
    margin-bottom: 15px;
    @media (max-width: theme.$md) {
      font-size: var(--text-size-h2);
    }
  }
  .error-page-sub-text {
    font-size: var(--errorpage-sub-text);
    margin-bottom: 40px;
    @media (max-width: theme.$md) {
      font-size: var(--text-size-h4);
      margin-bottom: 30px;
    }
  }
  .action-button {
    padding: 11px 30px 11px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--text-size-label);
    height: 45px;
  }
}