// tender help/support widget
// ====================

// UI: hiding the default tender help "tag" element
#tender_toggler {
  display: none;
}

#tender_frame, #tender_window {
  background-image: none !important;
  background: none;
}

#tender_window {
  border-radius: 3px;
  box-shadow: 0 2px 3px $shadow;
  height: ($baseline*35) !important;
  background: $white !important;
  border: 2px solid $blue;
}

#tender_window {
  padding: 0 !important;
}

#tender_frame {
  background: $white;
}

#tender_closer {
  color: $white-t2 !important;
  text-transform: uppercase;
  top: 16px !important;

  &:hover {
    color: $white !important;
  }
}

// ====================

// tender style overrides - not rendered through here, but an archive is needed
#tender_frame iframe html {
  font-size: 62.5%;
}

.widget-layout {
  font-family: 'Open Sans', sans-serif;
}

.widget-layout .search,
.widget-layout .tabs,
.widget-layout .footer,
.widget-layout .header h1 a {
  display: none;
}

.widget-layout .header {
  background: rgb(0, 159, 230);
  padding: ($baseline/2) $baseline;
}

.widget-layout h1, .widget-layout h2, .widget-layout h3, .widget-layout h4, .widget-layout h5, .widget-layout h6, .widget-layout label {
  @extend %t-strong;
}

.widget-layout .header h1 {
  @extend %t-title4;
}

.widget-layout .content {
  overflow: auto;
  height: auto !important;
  padding: 20px;
}

.widget-layout .flash {
  margin: -10px 0 15px 0;
  padding: 10px 20px !important;
  background-image: none !important;
}

.widget-layout .flash-error {
  background: rgb(178, 6, 16) !important;
  color: rgb(255,255,255) !important;
}

.widget-layout label {
  @extend %t-copy-sub1;
  @extend %t-strong;
  margin-bottom: ($baseline/4);
  color: #4c4c4c;
}

.widget-layout input[type="text"], .widget-layout textarea {
  @extend %t-copy-base;
  padding: 10px;
  color: rgb(0,0,0) !important;
  border: 1px solid #b0b6c2;
  border-radius: 2px;
  background-color: #edf1f5;
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #edf1f5),color-stop(100%, #fdfdfe));
  background-image: -webkit-linear-gradient(top, #edf1f5,#fdfdfe);
  background-image: -moz-linear-gradient(top, #edf1f5,#fdfdfe);
  background-image: -ms-linear-gradient(top, #edf1f5,#fdfdfe);
  background-image: -o-linear-gradient(top, #edf1f5,#fdfdfe);
  background-image: linear-gradient(top, #edf1f5,#fdfdfe);
  background-color: #edf1f5;
  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;
  -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;
}

.widget-layout input[type="text"]:focus, .widget-layout textarea:focus {
  background-color: #fffcf1;
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fffcf1),color-stop(100%, #fffefd));
  background-image: -webkit-linear-gradient(top, #fffcf1,#fffefd);
  background-image: -moz-linear-gradient(top, #fffcf1,#fffefd);
  background-image: -ms-linear-gradient(top, #fffcf1,#fffefd);
  background-image: -o-linear-gradient(top, #fffcf1,#fffefd);
  background-image: linear-gradient(top, #fffcf1,#fffefd);
  outline: 0;
}

.widget-layout textarea {
  width: 97%;
}

.widget-layout p.note {
  text-align: right !important;
  display: inline-block !important;
  position: absolute !important;
  right: -130px !important;
  top: -5px !important;
  font-size: 13px !important;
  opacity: 0.80;
}

.widget-layout .form-actions {
  margin: 15px 0;
  border: none;
  padding: 0;
}

.widget-layout dl.form {
  float: none;
  width: 100%;
  border-bottom: 1px solid $gray-l5;
  margin-bottom: ($baseline/2);
  padding-bottom: ($baseline/2);
}

.widget-layout dl.form:last-child {
  border: none;
  padding-bottom: 0;
  margin-bottom: $baseline;
}

.widget-layout dl.form dt, .widget-layout dl.form dd {
  display: inline-block;
  vertical-align: middle;
}

.widget-layout dl.form dt {
  margin-right: ($baseline*0.75);
  width: 70px;
}

.widget-layout dl.form dd {
  width: 65%;
  position: relative;
}

// specific elements
.widget-layout #discussion_body {

}

.widget-layout #discussion_body:before {
  @extend %t-copy-sub1;
  @extend %t-strong;
  content: "What Question or Feedback Would You Like to Share?";
  display: block;
  margin-bottom: ($baseline/4);
  color: #4c4c4c;
}


.widget-layout dl#brain_buster_captcha {
  float: none;
  width: 100%;
  border-top: 1px solid $gray-l5;
  margin-top: ($baseline/2);
  padding-top: ($baseline/2);
}

.widget-layout dl#brain_buster_captcha dd {
  display: block !important;
}

.widget-layout dl#brain_buster_captcha #captcha_answer {
  border-color: #333;
}

.widget-layout dl#brain_buster_captcha dd label {
  @extend %t-strong;
  display: block;
  margin: 0 15px 5px 0 !important;
}

.widget-layout dl#brain_buster_captcha dd #captcha_answer {
  display: block;
  width: 97%;
}

.widget-layout .form-actions .btn-post_topic {
  @extend %t-copy-base;
  @extend %t-strong;
  display: block;
  width: 100%;
  height: auto !important;
  -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset,0 0 0 $transparent;
  -moz-box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset,0 0 0 $transparent;
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset,0 0 0 $transparent;
  -webkit-transition-property: background-color,0.15s;
  -moz-transition-property: background-color,0.15s;
  -ms-transition-property: background-color,0.15s;
  -o-transition-property: background-color,0.15s;
  transition-property: background-color,0.15s;
  -webkit-transition-duration: box-shadow,0.15s;
  -moz-transition-duration: box-shadow,0.15s;
  -ms-transition-duration: box-shadow,0.15s;
  -o-transition-duration: box-shadow,0.15s;
  transition-duration: box-shadow,0.15s;
  -webkit-transition-timing-function: ease-out;
  -moz-transition-timing-function: ease-out;
  -ms-transition-timing-function: ease-out;
  -o-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
  -webkit-transition-delay: 0;
  -moz-transition-delay: 0;
  -ms-transition-delay: 0;
  -o-transition-delay: 0;
  transition-delay: 0;
  border: 1px solid #34854c;
  border-radius: 3px;
  background-color: rgba(255,255,255,0.3);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(255,255,255,0.3)),color-stop(100%, rgba(255,255,255,0)));
  background-image: -webkit-linear-gradient(top, rgba(255,255,255,0.3),rgba(255,255,255,0));
  background-image: -moz-linear-gradient(top, rgba(255,255,255,0.3),rgba(255,255,255,0));
  background-image: -ms-linear-gradient(top, rgba(255,255,255,0.3),rgba(255,255,255,0));
  background-image: -o-linear-gradient(top, rgba(255,255,255,0.3),rgba(255,255,255,0));
  background-image: linear-gradient(top, rgba(255,255,255,0.3),rgba(255,255,255,0));
  background-color: #25b85a;
  -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset;
  -moz-box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset;
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset;
  color: $white;
  text-align: center;
  margin-top: $baseline;
  padding: ($baseline/2) $baseline;
}

.widget-layout .form-actions #private-discussion-opt {
  float: none;
  text-align: left;
  margin: 0 0 15px 0;
}

.widget-layout .form-actions .btn-post_topic:hover, .widget-layout .form-actions .btn-post_topic:active {
  background-color: #16ca57;
  color: $white;
}
