/**
 * @file
 * Visual styles for BMW Dalers's dropbutton component.
 */

.js .dropbutton-widget {
  border: 1px solid;
  border-color: #e4e4e4 #d2d2d2 #b4b4b4 #d2d2d2;
  background-color: #fff;
  background-image: -webkit-linear-gradient(top, #f3f3f3, #e8e8e8);
  background-image: linear-gradient(to bottom, #f3f3f3, #e8e8e8);
  color: #3a3a3a;
  cursor: pointer;
  text-align: center;
  margin: 0.125em 0;
  border-radius: 1em;
  overflow: hidden;
}
.js .dropbutton-widget:hover {
  border-color: #e4e4e4 #d2d2d2 #b4b4b4 #d2d2d2;
}
.js .dropbutton-widget .button {
  border: none;
  margin: 0;
  padding: 0.32em 1em;
  background: transparent none;
}
.js .dropbutton-multiple .dropbutton-widget,
.js[dir="rtl"] .dropbutton-multiple .dropbutton-widget {
  padding: 0;
}
.js .dropbutton-multiple .dropbutton-widget .dropbutton {
  padding-right: 2em; /* LTR */
  position: relative;
}
.js[dir="rtl"] .dropbutton-multiple .dropbutton-widget .dropbutton {
  padding-right: 0;
  padding-left: 2em;
}
.js .dropbutton-multiple .dropbutton-widget .dropbutton-action a {
  margin-right: 0; /* LTR */
}
[dir="rtl"].js .dropbutton-multiple .dropbutton-widget .dropbutton-action a {
  margin-left: 0;
}
.js .dropbutton .secondary-action {
  border-top-color: #ccc;
}
.js .dropbutton-toggle button {
  background-color: #e8e8e8;
  background-image: -webkit-linear-gradient(top, #e8e8e8, #d2d2d2);
  background-image: linear-gradient(to bottom, #e8e8e8, #d2d2d2);
}
.js .dropbutton-toggle .dropbutton-arrow:hover {
  background: #ccc;
}
.js .dropbutton a {
  color: #3a3a3a;
  border-bottom: 0 none;
}
.js .dropbutton .dropbutton-action:hover,
.js .dropbutton a:hover {
  background: #dedede;
  border-bottom: 0 none;
}


.f-dropdown {
  display: none;
  left: -9999px;
  list-style: none;
  margin-left: 0;
  position: absolute;
  background: #fff;
  border: solid 1px #ccc;
  font-size: 1rem;
  height: auto;
  max-height: none;
  width: 100%;
  z-index: 89;
  margin-top: 2px;
  max-width: 200px;
}
.f-dropdown.open {
  display: block;
}
.f-dropdown>:first-child {
  margin-top: 0;
}
.f-dropdown>:last-child {
  margin-bottom: 0;
}
.f-dropdown:before {
  border: inset 6px;
  content: "";
  display: block;
  height: 0;
  width: 0;
  border-color: transparent transparent #fff;
  border-bottom-style: solid;
  position: absolute;
  top: -12px;
  left: 10px;
  z-index: 89;
}
.f-dropdown:after {
  border: inset 7px;
  content: "";
  display: block;
  height: 0;
  width: 0;
  border-color: transparent transparent #ccc;
  border-bottom-style: solid;
  position: absolute;
  top: -14px;
  left: 9px;
  z-index: 88;
}
.f-dropdown.right:before {
  left: auto;
  right: 10px;
}
.f-dropdown.right:after {
  left: auto;
  right: 9px;
}
.f-dropdown.drop-right {
  display: none;
  left: -9999px;
  list-style: none;
  position: absolute;
  background: #fff;
  border: solid 1px #ccc;
  font-size: 1rem;
  height: auto;
  max-height: none;
  width: 100%;
  z-index: 89;
  margin-top: 0;
  margin-left: 2px;
  max-width: 200px;
}
.f-dropdown.drop-right.open {
  display: block;
}
.f-dropdown.drop-right>:first-child {
  margin-top: 0;
}
.f-dropdown.drop-right>:last-child {
  margin-bottom: 0;
}
.f-dropdown.drop-right:before {
  border: inset 6px;
  content: "";
  display: block;
  height: 0;
  width: 0;
  border-color: transparent #fff transparent transparent;
  border-right-style: solid;
  position: absolute;
  top: 10px;
  left: -12px;
  z-index: 89;
}
.f-dropdown.drop-right:after {
  border: inset 7px;
  content: "";
  display: block;
  height: 0;
  width: 0;
  border-color: transparent #ccc transparent transparent;
  border-right-style: solid;
  position: absolute;
  top: 9px;
  left: -14px;
  z-index: 88;
}
.f-dropdown.drop-left {
  display: none;
  left: -9999px;
  list-style: none;
  margin-left: 0;
  position: absolute;
  background: #fff;
  border: solid 1px #ccc;
  font-size: 1rem;
  height: auto;
  max-height: none;
  width: 100%;
  z-index: 89;
  margin-top: 0;
  margin-left: -2px;
  max-width: 200px;
}
.f-dropdown.drop-left.open {
  display: block;
}
.f-dropdown.drop-left>:first-child {
  margin-top: 0;
}
.f-dropdown.drop-left>:last-child {
  margin-bottom: 0;
}
.f-dropdown.drop-left:before {
  border: inset 6px;
  content: "";
  display: block;
  height: 0;
  width: 0;
  border-color: transparent transparent transparent #fff;
  border-left-style: solid;
  position: absolute;
  top: 10px;
  right: -12px;
  left: auto;
  z-index: 89;
}
.f-dropdown.drop-left:after {
  border: inset 7px;
  content: "";
  display: block;
  height: 0;
  width: 0;
  border-color: transparent transparent transparent #ccc;
  border-left-style: solid;
  position: absolute;
  top: 9px;
  right: -14px;
  left: auto;
  z-index: 88;
}
.f-dropdown.drop-top {
  display: none;
  left: -9999px;
  list-style: none;
  margin-left: 0;
  position: absolute;
  background: #fff;
  border: solid 1px #ccc;
  font-size: 1rem;
  height: auto;
  max-height: none;
  width: 100%;
  z-index: 89;
  margin-left: 0;
  margin-top: -2px;
  max-width: 200px;
}
.f-dropdown.drop-top.open {
  display: block;
}
.f-dropdown.drop-top>:first-child {
  margin-top: 0;
}
.f-dropdown.drop-top>:last-child {
  margin-bottom: 0;
}
.f-dropdown.drop-top:before {
  border: inset 6px;
  content: "";
  display: block;
  height: 0;
  width: 0;
  border-color: #fff transparent transparent;
  border-top-style: solid;
  bottom: -12px;
  position: absolute;
  top: auto;
  left: 10px;
  right: auto;
  z-index: 89;
}
.f-dropdown.drop-top:after {
  border: inset 7px;
  content: "";
  display: block;
  height: 0;
  width: 0;
  border-color: #ccc transparent transparent;
  border-top-style: solid;
  bottom: -14px;
  position: absolute;
  top: auto;
  left: 9px;
  right: auto;
  z-index: 88;
}
.f-dropdown li {
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.28571rem;
  margin: 0;
}
.f-dropdown li:hover,.f-dropdown li:focus {
  background: #eee;
}
.f-dropdown li a {
  display: block;
  padding: .5rem;
  color: #555;
}
.f-dropdown.content {
  display: none;
  left: -9999px;
  list-style: none;
  margin-left: 0;
  position: absolute;
  background: #fff;
  border: solid 1px #ccc;
  font-size: 1rem;
  height: auto;
  max-height: none;
  padding: 1.42857rem;
  width: 100%;
  z-index: 89;
  max-width: 200px;
}
.f-dropdown.content.open {
  display: block;
}
.f-dropdown.content>:first-child {
  margin-top: 0;
}
.f-dropdown.content>:last-child {
  margin-bottom: 0;
}
.f-dropdown.radius {
  border-radius: 3px;
}
.f-dropdown.tiny {
  max-width: 200px;
}
.f-dropdown.small {
  max-width: 300px;
}
.f-dropdown.medium {
  max-width: 500px;
}
.f-dropdown.large {
  max-width: 800px;
}
.f-dropdown.mega {
  width: 100% !important;
  max-width: 100% !important;
}
.f-dropdown.mega.open {
  left: 0 !important;
}
.dropdown.button,button.dropdown {
  position: relative;
  padding-right: 4.07143rem;
}
.dropdown.button::after,button.dropdown::after {
  border-color: #fff transparent transparent;
  border-style: solid;
  content: "";
  display: block;
  height: 0;
  position: absolute;
  top: 50%;
  width: 0;
}
.dropdown.button::after,button.dropdown::after {
  border-width: .42857rem;
  right: 1.60714rem;
  margin-top: -.17857rem;
}
.dropdown.button::after,button.dropdown::after {
  border-color: #fff transparent transparent;
}
.dropdown.button.tiny,button.dropdown.tiny {
  padding-right: 3rem;
}
.dropdown.button.tiny:after,button.dropdown.tiny:after {
  border-width: .42857rem;
  right: 1.28571rem;
  margin-top: -.14286rem;
}
.dropdown.button.tiny::after,button.dropdown.tiny::after {
  border-color: #fff transparent transparent;
}
.dropdown.button.small,button.dropdown.small {
  padding-right: 3.5rem;
}
.dropdown.button.small::after,button.dropdown.small::after {
  border-width: .5rem;
  right: 1.5rem;
  margin-top: -.17857rem;
}
.dropdown.button.small::after,button.dropdown.small::after {
  border-color: #fff transparent transparent;
}
.dropdown.button.large,button.dropdown.large {
  padding-right: 4.14286rem;
}
.dropdown.button.large::after,button.dropdown.large::after {
  border-width: .35714rem;
  right: 1.96429rem;
  margin-top: -.17857rem;
}
.dropdown.button.large::after,button.dropdown.large::after {
  border-color: #fff transparent transparent;
}
.dropdown.button.secondary:after,button.dropdown.secondary:after {
  border-color: #333 transparent transparent;
}
