@use '../variables.scss' as *;

.page {
  :global .perk-image {
    &.locked-perk {
      border-color: var(--theme-accent-primary);
    }
  }
}

.menuContent {
  box-sizing: border-box;

  @include phone-portrait {
    > div > div {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
  }

  > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}

.wide {
  --page-with-menu-menu-width: 320px !important;
}

.toolbar {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  box-sizing: border-box;
  gap: 4px 1em;

  @include phone-portrait {
    padding: 0 10px;
  }
}

.guide {
  box-sizing: border-box;
  user-select: text;

  @include phone-portrait {
    padding: 0 10px;
  }
  p,
  li {
    font-size: 14px;
  }
  ol {
    padding-left: 1.25em;
  }
}

.undoRedo {
  display: flex;
  flex-direction: row;
  margin: 6px 0;
  gap: 4px;

  > * {
    flex: 1;
  }
}

.speedReport {
  composes: flexRow from '../dim-ui/common.m.scss';
  align-items: center;
  user-select: text;
  gap: 0.5em;
  flex: 1;
}

.speedReportInner {
  composes: flexRow from '../dim-ui/common.m.scss';
  align-items: center;
  gap: 1em;
  flex: 1;

  @include phone-portrait {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}

// Style for sections borrowed from LoadoutEdit
.loadoutEditSection {
  // Fit 7 mods across, regardless of what the user's item size is
  --item-size: 50px;
  font-size: 12px; // reset from where PageWithMenu sets it to 14px
  background-color: rgb(0, 0, 0, 0.3);
  padding: 8px;
  gap: 0;
}

.subclassSection {
  // Adjust these down a bit
  --item-size: 47px;
  --loadout-edit-subclass-columns: 6;
  composes: loadoutEditSection;
}

.referenceTiersInfo {
  background-color: rgb(0, 0, 0, 0.4);
  padding: 10px;
  position: relative;
  max-width: 800px;

  .header {
    display: flex;
    flex-flow: row wrap;
    font-size: 14px;
    column-gap: 20px;
  }
}

.dismissButton {
  composes: resetButton from '../dim-ui/common.m.scss';
  padding: 12px 12px 12px 12px;
  color: rgb(255, 255, 255, 0.5);
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
  > :global(.app-icon) {
    height: 24px;
    width: 24px;
    font-size: 24px;
  }
}

.fineprint {
  font-size: 0.85em;
  color: var(--theme-text-secondary);
  text-wrap: pretty;
  margin-top: 4px;
}
