/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

#autofill-options {
  width: 550px;
}

#autofill-options list {
  height: 192px;  /* This is the min-height for lists from WebUI.*/
}

.autofill-list-item {
  -webkit-padding-start: 8px;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autofill-list-item + .deemphasized {
  -webkit-box-flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

#autofill-options > div:last-child {
  margin-top: 15px;
}

#autofill-options .deemphasized {
  color: #777;
}

#autofill-options > div.settings-list > div:last-child {
  border-top: 1px solid #d9d9d9;
  padding: 5px 10px;
}

#autofill-add-address,
#autofill-add-creditcard {
  margin: 5px 0;
}

#autofill-options .list-inline-button {
  -webkit-margin-start: 12px;
  margin-top: 0;
  vertical-align: top;
}

#autofill-options div[role='listitem']:not(:hover):not([selected])
    .hide-until-hover {
  display: none;
}

#autofill-options div[role='listitem']:-webkit-any(:hover,[selected])
    .hides-on-hover {
  display: none;
}

.settings-list + .autofill-section-header {
  margin-top: 20px;
}

#autofill-options .autofill-section-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}