}

:host([data-editing]) .detail-grid > .detail-row {
  display: flex;
}

.detail-grid > .detail-row:not([hidden]) {
  display: contents;
}

.detail-grid > .detail-row > .detail-cell {
  grid-column: 1;
}

.detail-grid > .detail-row > :is(.copy-button, .copied-button) {
  grid-column: 2;
  margin-inline-start: 0; /* Reset button's margin so it doesn't affect the overall grid's width */
  justify-self: start;
  align-self: end;
}

.detail-row {
  display: flex;
  position: relative; /* Allows for the hint message to be positioned correctly */
}

.detail-grid,
.detail-row {
  margin-bottom: 40px;
}

.detail-cell {
  flex-grow: 1;
  min-width: 0; /* Allow long passwords to collapse down to flex item width */
}

.field-label {
  display: block;
  margin-bottom: 8px;
}

moz-button-group,
:host([data-editing]) .detail-cell input:read-write:not([type="checkbox"]),
:host([data-editing]) input[type="password"]:read-only {
  width: 298px;
  box-sizing: border-box;
}

.copy-button,
.copied-button {
  margin-bottom: 0; /* Align button at the bottom of the row */
}

.copied-button[data-copied]:focus-visible {
  outline-width: 0;
  box-shadow: none;
}

.reveal-password-checkbox {
  appearance: none;
  background-image: url("chrome://global/skin/icons/eye.svg");
  margin-inline: 10px 0;
  cursor: pointer;
  -moz-context-properties: fill;
  fill: currentColor;
  color: inherit;
  opacity: var(--reveal-checkbox-opacity);

  &:hover {
    opacity: var(--reveal-checkbox-opacity-hover);

    &:active {
      opacity: var(--reveal-checkbox-opacity-active);
    }
  }

  &:checked {
    background-image: url("chrome://global/skin/icons/eye-slash.svg");
  }
}

.login-item-favicon {
  margin-inline-end: 12px;
  height: var(--icon-size-large);
  width: var(--icon-size-large);
  flex-shrink: 0;
  -moz-context-properties: fill, fill-opacity;
  fill: currentColor;
  fill-opacity: 0.75;
}

login-breach-alert,
login-vulnerable-password-alert {
  margin-block-end: 40px;
}

login-command-button {
  margin-block-start: 4px; /* Focus did not display entirely on edit and remove with margin:0 */
}

.alert-title {
  font-size: var(--font-size-xlarge);
  font-weight: var(--font-weight);
  line-height: 1em;
  margin-block: 0 12px;
}

.alert-date {
  display: block;
  font-weight: var(--font-weight-semibold);
}

.alert-link:visited,
.alert-link {
  font-weight: var(--font-weight-semibold);
  overflow-wrap: anywhere;
}

.breach-alert > .alert-link:visited,
.breach-alert > .alert-link {
  color: inherit;
  text-decoration: underline;
}

.alert-icon {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-start: 32px;
  -moz-context-properties: fill;
  fill: currentColor;
  width: var(--icon-size-large);
}

.alert-learn-more-link:hover,
.alert-learn-more-link:visited,
.alert-learn-more-link {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 32px;
  color: inherit;
  font-size: var(--font-size-small);
}

.vulnerable-alert > .alert-learn-more-link {
  color: var(--text-color-deemphasized);
}

.error-message {
  color: #fff;
  background-color: var(--red-60);
  border: 1px solid transparent;
  padding-block: 6px;
  display: inline-block;
  padding-inline: 32px 16px;
  background-image: url("chrome://global/skin/icons/warning.svg");
  background-repeat: no-repeat;
  background-position: left 10px center;
  -moz-context-properties: fill;
  fill: currentColor;
  margin-bottom: 38px;
}

.error-message:dir(rtl) {
  background-position-x: right 10px;
}

.error-message-link > a,
.error-message-link > a:hover,
.error-message-link > a:hover:active {
  color: currentColor;
  text-decoration: underline;
  font-weight: var(--font-weight-semibold);
}

.action-buttons {
  display: flex;
  flex-direction: row;
}

.action-buttons .form-actions-row {
  margin-inline: 0 5px;
}
PK