@use "../editor-tabs-bar/editor-tabs-bar-variables.module.scss";
@use "../editor-tabs-bar/tabs-bar.module.scss";
@use "@cloud-editor-mono/arduino-sass";

.container {
  margin-top: editor-tabs-bar-variables.$tabHeight * 1px;
  margin-left: tabs-bar.$tabsBarPaddingLeft;
  width: 100%;
  overflow: auto;
  background-color: white;
  padding: 24px 28px;
}

.content {
  max-width: 1044px;
}

.header {
  flex: 1;
  max-width: 696px;
  margin-bottom: 36px;
}

.secrets-list {
  padding-bottom: 8px; // show last input error
}

.secret {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;

  position: relative;
  padding-right: 42px;

  &:first-of-type {
    margin-top: 28px;
  }

  .input-prefix {
    color: arduino-sass.$teal3;
  }

  .copy-to-clipboard {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translate(0, -50%);
  }
  input {
    padding-right: 36px;
  }

  .button-delete {
    position: absolute;
    color: #374146;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
  }
}

.sticky-wrapper {
  margin-top: 36px;
  position: sticky;
  bottom: 0;
  width: 100%;
  position: relative;
  z-index: 1;
  position: sticky;

  &::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 24px 28px;
    transform: translate(-28px, -24px);
    background: white;
    opacity: 0.7;
    z-index: -1;
  }
}
