@import "../../theme.scss";

.customizableHeader-root {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;

  .customizableHeader-labelWrapper {
    display: flex;
    align-items: center;
    gap: 8px;

    svg {
      width: 16px;
      height: 16px;
    }
  }

  &.customizableHeader-editable {
    max-width: 540px;

    .customizableHeader-content {
      border: 1px solid $border-field;
      padding: $padding-sm;
      border-radius: $border-radius;
    }

    .customizableHeader-avatar {
      position: relative;
      border: 1px dashed $border-field;
      border-radius: 50%;
      padding: 0.2rem;

      &:hover {
        .customizableHeader-avatarOverlay {
          display: flex;
        }
      }
    }

    .customizableHeader-avatarOverlay {
      border-radius: 50%;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(255, 255, 255, 0.7);
      display: none;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }
  }

  .customizableHeader-avatar-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .customizableHeader-socialIconsWrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;

    .customizableHeader-socialIconsAnchor {
      height: 30px;
    }

    .customizableHeader-socialIconsImage {
      width: 30px;
      height: 30px;
    }
  }

  .customizableHeader-socialIcons {
    display: flex;
    position: relative;

    &:hover {
      .customizableHeader-socialIconsOverlay {
        display: flex;
      }
    }
  }

  .customizableHeader-socialIconsOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 4px;
    cursor: pointer;
  }

  #customizableHeader-addIcon {
    width: 1.7rem;
    height: 1.7rem;
    color: gray;
  }

  #customizableHeader-RemoveIcon {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
  }

  .customizableHeader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;

    .customizableHeader-details {
      display: flex;
      flex-direction: column;
      width: 100%;
      align-items: center;
      gap: 1.25rem;
      position: relative;

      .customizableHeader-anchor {
        text-decoration: none;
        color: black;
      }

      .customizableHeader-title {
        font-size: 1.2125rem;
        color: inherit;
        font-weight: 600;
        margin: 0;
        text-align: center;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        white-space: normal;
      }

      .customizableHeader-inputWrapper {
        width: 100%;
      }

      #customizableHeader-input {
        input {
          font-size: 1.2125rem;
          color: inherit;
          border: none;
          background-color: transparent;
          padding: 0;
          box-shadow: none;
          font-weight: 600;
          height: unset;
          line-height: normal;
          text-align: center;

          &::placeholder {
            font-size: 1.2125rem;
          }
        }
      }
    }

    .customizableHeader-buttonWrapper {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;

      .tooltip-container {
        width: 100%;
      }

      #customizableHeader-button {
        transition: opacity 0.3s;
        height: unset;
        padding: 0.9rem 1.2rem;
        font-size: 0.975rem;
        max-width: 340px;
        width: 100%;
        margin: auto;
        line-height: normal;

        @media (max-width: 680px) {
          max-width: unset;
        }

        &:hover {
          opacity: 0.8;
        }
      }
    }
  }
}
