/* Copyright 2010 Google Inc.  All Rights Reserved. */
/**
 * Based on the spec page:
 *   https://sites.google.com/a/google.com/guig/controls/buttons/custom
 * This is CSS for applying to both native form controls and anchors or divs
 * to achieve a button look.
 * Author: elsigh@google.com (Lindsey Simon)
 *
 * KNOWN ISSUES:
 *   INPUT/BUTTONs are not wide enough in Opera 10, Safari3.
 */

.goog-button {
  border-width: 1px;
  border-style: solid;
  border-color: #bbb #999 #999 #bbb;
  border-radius: 2px;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;

  font: normal normal normal 13px/13px Arial, sans-serif;
  color: #000;
  text-align: middle;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 1);
  background: #eee;
  background-image: -webkit-gradient(linear, 0 0, 0 100%,
                                     from(#fff), to(#ddd));
  background: -moz-linear-gradient(top, #fff, #ddd);
  filter:progid:DXImageTransform.Microsoft.Gradient(EndColorstr='#dddddd',
                                                    StartColorstr='#ffffff',
                                                    GradientType=0);

  cursor: pointer;
  margin: 0;

  display: inline;
  display: -moz-inline-box;
  display: inline-block;

  /**
   * On IE6 and IE7 button padding gets crazy wide without an
   * overflow specified, here in the form of a CSS hack.
   */
  *overflow: visible;

  /* These defaults are basically for Webkit input & button. */
  padding: 4px 8px 5px;
}


a.goog-button,
span.goog-button,
div.goog-button {
  padding: 4px 8px 5px;
}
.goog-button:visited {
  color: #000;
}
/* <= IE7 trick gets us layout + inline */
.goog-button {
  *display: inline;
}

.goog-button:focus,
.goog-button:hover {
  border-color: #000;
}

.goog-button:active,
.goog-button-active {
  color: #000;
  background-color: #bbb;
  border-color: #999 #bbb #bbb #999;
  background-image: -webkit-gradient(linear, 0 0, 0 100%,
                                     from(#ddd),
                                     to(#fff));
  background-image: -moz-linear-gradient(top, #ddd, #fff);
  filter:progid:DXImageTransform.Microsoft.Gradient(EndColorstr='#ffffff',
                                                    StartColorstr='#dddddd',
                                                    GradientType=0);
}

.goog-button[disabled],
.goog-button[disabled]:active,
.goog-button[disabled]:hover {
  color: #666;
  border-color: #ddd;
  background-color: #f3f3f3;
  background-image: none;
  text-shadow: none;
  cursor: auto;
}

/* IE8 */
.goog-button {
  padding: 5px 8px 4px\9;
}

/* <= IE7 */
.goog-button {
  *padding: 4px 7px 2px;
}

/* >= FF 3 */
html>/**/body input.goog-button, x:-moz-any-link, x:default,
html>/**/body button.goog-button, x:-moz-any-link, x:default {
  padding-top: 3px;
  padding-bottom: 2px;
}
a.goog-button, x:-moz-any-link, x:default,
span.goog-button, x:-moz-any-link, x:default,
div.goog-button, x:-moz-any-link, x:default {
  padding: 4px 8px 5px;
}

/** goog-button-fixed **/
.goog-button-fixed {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
}


/**
 * For placing an image inside of a goog-button.
 * All the veritcal paddings are based on an image height of 18px.
 * Note: This is only supported with the markup:
 * <button class="goog-button goog-button-icon-c">
 *   <span class="goog-button-icon"></span>
 * </button>
 */
button.goog-button-icon-c {
  padding-top: 1px;
  padding-bottom: 1px;
}
/* IE8 */
button.goog-button-icon-c {
  padding-top: 3px\9;
  padding-bottom: 2px\9;
}
/* <= IE7 */
button.goog-button-icon-c {
  *padding-top: 0;
  *padding-bottom: 0;
}
/* >= FF3 */
html>/**/body button.goog-button-icon-c, x:-moz-any-link, x:default {
  padding-top: 1px;
  padding-bottom: 1px;
}

.goog-button-icon {
  display: block;
  margin: 0 auto;
  height: 18px;
  width: 18px;
}
