/* Start custom button CSS here
---------------------------------------- */

.btn {
  display:inline-block;
  margin:0;
  padding:3px 0;
  overflow:visible;
  background:none;
  border-width:0;
  text-decoration:none;
}

* html button.btn {
  padding-bottom:1px;
}

/* Immediately below is a temporary hack to serve the 
   following margin values only to Gecko browsers
   Gecko browsers add an extra 3px of left/right 
   padding to button elements which can't be overriden.
   Thus, we use -3px of left/right margin to overcome this. */
html:not([lang*=""]) button.btn { margin:0 -3px; }

.btn span {
  margin:0;
  padding:3px 0;
  border-width:0 1px;
  border-style:solid;
}

* html .btn span {
  padding-top:0;
}

.btn span span {
  position:relative;
  padding:3px .4em;
  border-width:1px 0;
  border-style:solid;
}

/*

  DEFAULT THEMING

*/

.btn {
  /**-/font:1em/1.2 inherit;/**/
  font:inherit;
  color:inherit;
}

.btn span {
  background:#ddd url(../images/bg-button.gif) repeat-x 0 0;
  border-left-color:#bbb;
  border-right-color:#aaa;
}

.btn span span {
  border-top-color:#bbb;
  border-bottom-color:#aaa;
}

/* pill classes only needed if using pill style buttons ( LEFT | CENTER | RIGHT ) */
button.pill-l span {
  border-right-width:0;
}
button.pill-l span span {
  border-right:1px solid #bbb;
}
button.pill-c span {
  border-right-style:none;
  border-left-color:#fff;
}
button.pill-c span span {
  border-right:1px solid #bbb;
}
button.pill-r span {
  border-left-color:#fff;
}

/* only needed if implementing separate hover/focus/active state for buttons */
.btn-selected, .btn-selected span, .btn-selected span span,
.btn:hover, .btn:hover span, .btn:hover span span, .btn:focus span, .btn:focus span span {
  cursor:pointer !important; /* important for any clickable/pressable element */
  border-color:#FD9378 !important;
  color:#DA4722 !important;
  text-decoration:none;
}

.btn:focus span, .btn:focus span span,
.btn-selected,
.btn-selected span { border-style:dotted !important; }

.btn:hover span span {
  /*text-decoration:underline;*/
}

.btn:active span {
  /*background-position:0 -400px;*/
  background-position:0 -390px;
  outline:none;
}

.btn:focus, .btn:active {
  outline:none; /* doesn't seem to be respected for <button>, only <a> */
}

/* use if one button should be the 'primary' button */
.primary {
  font-weight:bold;
}
