/* ====================================================
 * Company: Unity Technologies
 * Contributors:
   - Rickard Andersson, rickard@unity3d.com
======================================================= */

/****************************************
  ==== RESET
****************************************/

div.gsc-input-box, div.gsc-tabsArea, div.gsc-result-info, div.gsc-results, .gsc-control-cse, table.gsc-table-result, .gsc-completion-container {
  font: 16px/135% 'Roboto', sans-serif !important; font-weight: 300 !important; margin: 0;
}
div.gsc-control-cse, form.gsc-search-box, table.gsc-search-box, td.gsc-input, td.gsib_a, table.gsc-resultsHeader,
.search-box table tbody tr, .search-box table tbody td {
  padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important;
}
.search-box table tbody tr:hover {
  background: none !important;
}
/****************************************
  ==== SEARCH BOX
****************************************/

form.gsc-search-box {
  padding: 0 30px 0 30px !important;
}
table.gsc-search-box {
  position: relative;
}
table.gsc-search-box td {
  padding: 0;
}
div.gsc-input-box {
  background: #fff; height: 46px; border: #ececec 1px solid; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px;
}
div.gsc-input-box:hover {
  border-color: #9e9e9e;
}
div.gsc-input-box-focus {
  border-color: #2196f3 !important;
}
input.gsc-input {
  width: 100% !important; height: 44px !important; font-size: 1.0625em !important; padding: 0 13px !important; margin: 0 !important; border: none; background: #fff none 0 0 no-repeat !important; -webkit-box-shadow: none !important; -moz-box-shadow: none !important; box-shadow: none !important;
}
td.gsc-search-button {
  width: 0 !important;
}
input.gsc-search-button {
  width: 46px !important; height: 46px !important; margin: 0 !important; padding: 0px !important; border: 0 !important; position: absolute; top: 0; right: 0; background: #222c37 url(../../images/ui/sprites/core-sprite.png) -256px 12px no-repeat !important; -webkit-border-radius: 0 3px 3px 0 !important; -moz-border-radius: 0 3px 3px 0 !important; border-radius: 0 3px 3px 0 !important;
}
div.gsc-clear-button {
  display: none;
}
a.gsst_a {
  padding: 4px 50px 0 0 !important;
}
span.gscb_a {
  line-height: 38px; color: #99a0a7 !important;
}
a.gsst_a:hover span.gscb_a {
  color: #222c37 !important;
}

/****************************************
  ==== AUTO SUGGESTIONS
****************************************/

td.gssb_e {
  -webkit-box-shadow: none !important; -moz-box-shadow: none !important; box-shadow: none !important;
}
table.gsc-completion-container {
  border: #e9ebec 1px solid !important; -webkit-box-shadow: none !important; -moz-box-shadow: none !important; box-shadow: none !important; font-size:  !important;
}
td.gssb_a {
  padding: 5px 15px !important;
}

/****************************************
  ==== FILTER
****************************************/

div.gsc-tabsArea {
  margin: 15px 0 10px 0 !important; height: auto !important; border: 0 !important; padding: 0 30px;
}
.gsc-tabsArea > div {
  height: auto !important; overflow: visible !important;
}
div.gsc-tabHeader {
  height: 26px !important; line-height: 26px !important; padding: 0 0 0 25px !important; margin: 0 15px 5px 0; border: 0 !important; position: relative !important; font-weight: 300 !important; text-align: left; font-size: 0.9375em !important; outline: none;
}
div.gsc-tabHeader:before {
  content: ''; width: 16px; height: 16px; display: block; border: #ececec 1px solid; position: absolute; top: 3px; left: 0; background: #fff; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%;
}
div.gsc-tabHeader:after {
  content: ""; display: block; width: 8px; height: 8px; position: absolute; left: 5px; top: 8px; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%;
}
div.gsc-tabHeader:hover:after {
  background-color: #ececec;
}
div.gsc-tabhInactive, div.gsc-tabhActive {
  background-color: transparent !important;
}
div.gsc-tabhActive:after, div.gsc-tabhActive:hover:after {
  background-color: #2196f3;
}

/****************************************
  ==== RESULT
****************************************/

div.gsc-above-wrapper-area {
  border-bottom: 1px solid #e9ebec; padding: 5px 30px 0 30px;
}
div.gsc-result-info {
  margin: 0; padding: 0; color: #5a5a5b; font-size: 0.9375em !important;
}
div.gsc-results {
  width: 100% !important;
}
.gsc-webResult.gsc-result, .gsc-results .gsc-imageResult {
  background-color: #fff !important; border-color: transparent !important;
}
.gsc-webResult .gsc-result {
   padding: 30px !important; border-bottom: #ececec 1px solid !important;
}
div.gsc-results, div.gsc-thumbnail-inside, div.gsc-url-top, div.gs-visibleUrl {
  padding: 0 !important;
}
.gsc-result .gs-title, a.gs-title {
  display: block; height: auto !important; text-decoration: none !important;
}
a.gs-title, a.gs-title b {
  color: #222c37 !important; font-size: 1.0625em !important; font-weight: 700; margin: 0 0 10px 0 !important; text-decoration: none !important;
}
a.gs-title:hover, a.gs-title:hover b {
  color: #222c37 !important; text-decoration: underline !important;
}
a.gs-title:focus, a.gs-title:active, a.gs-title:focus b, a.gs-title:active b {
  color: #222c37 !important; text-decoration: underline !important;
}
div.gs-visibleUrl {
  display: none !important;
}
div.gs-snippet {
  margin: 0 !important; color: #5a5a5b !important; font-size: 0.9375em !important;
}
div.gs-per-result-labels {
  font-size: 0.875em !important;display: none;
}
div.gs-per-result-labels, div.gs-per-result-labels a {
  color: #9e9e9e !important;
}
div.gs-per-result-labels a.gs-label:hover {
  text-decoration: underline !important;
}
div.gs-per-result-labels span:first-child:after {
  content:":";
}
div.gs-no-results-result div.gs-snippet {
  padding: 5px 10px !important; border: 0 !important; background-color: #fffbd8 !important; font-size: 0.875em !important;
}
div.gsc-thumbnail-left {
  display: none !important;
}

/****************************************
  ==== PAGING
****************************************/

div.gsc-results div.gsc-cursor-box {
  margin: 0 !important; padding: 30px;
}
div.gsc-results div.gsc-cursor {
  display: inline !important;
}
div.gsc-results div.gsc-cursor-box div.gsc-cursor-page {
  min-width: 36px; height: 36px; line-height: 36px; float: left; margin: 0 6px 5px 0 !important; display: block !important; padding: 0 !important; font-size: 0.9375em !important; text-decoration: none !important; border: #e9ebec 1px solid !important; outline: none; color: #5a5a5b !important; text-align: center; background: #fff !important; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px;
}
div.gsc-results div.gsc-cursor-box div.gsc-cursor-page:hover {
  border-color: #9e9e9e !important; color: #5a5a5b !important;
}
div.gsc-results div.gsc-cursor-box div.gsc-cursor-page:active {
  border-color: #2196f3 !important; color: #5a5a5b !important;
}
div.gsc-results div.gsc-cursor-box div.gsc-cursor-current-page, div.gsc-results div.gsc-cursor-box div.gsc-cursor-current-page:hover {
  color: #fff !important; background: #2196f3 !important; border-color: #2196f3 !important; font-weight: 300 !important;
}

/****************************************
  ==== BREAKPOINT < 768px
****************************************/

@media only screen and (min-width: 150px) and (max-width: 767px){

form.gsc-search-box {
  padding: 0 20px !important;
}
div.gsc-tabsArea {
  padding: 0 20px;
}
div.gsc-above-wrapper-area {
  padding: 5px 20px 0 20px;
}
.gsc-webResult .gsc-result {
   padding: 15px !important;
}
div.gsc-results div.gsc-cursor-box {
  padding: 20px;
}

}

/****************************************
  ==== RETINA IMAGES
****************************************/

@media only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio:2){
  input.gsc-search-button {
    background-image: url(../../images/ui/sprites/core-sprite@2x.png); -webkit-background-size: 500px 500px; -moz-background-size: 500px 500px; -o-background-size: 500px 500px; background-size: 500px 500px;
  }
}


/****************************************
  ==== Sjira DEFAULTS
****************************************/

/* Searchbox */
.sj-search-holder-outer{padding:.9em 0;position:relative;min-height:72px;box-sizing:border-box}
.sj-overlay .sj-search-holder-outer{margin-right:34px}
.sj-search-holder-inner{position:absolute;width:100%}
.sj-search-bar-input-common{font-size:20px;padding:.4em;outline:none;letter-spacing:.6px;line-height:28px;text-rendering:optimizeLegibility;width:100%;box-shadow:0 0 0 1px #ddd;border-radius:3px;border:0;box-sizing:border-box}
.sj-search-bar-completion{color:#bebebe}
.sj-search-bar-input{position:absolute;background:transparent;color:#666;top:0;left:0}
.sj-search-icon{display:none}
/* Autocomplete override */
.sj-result-summary-autocomplete-override{display:block;padding-top:16px;font-size:1.2em}
.sj-result-summary-autocomplete-override>a{color:#1a0dab}
.sj-autocomplete-dropdown{position:relative}
.sj-suggestions{border:1px solid #ddd;cursor:pointer}
.sj-suggestion{font-size:18px;padding:8px;background-color:#fff;color:#666}
.sj-suggestion strong{font-weight:600;color:#333}
.sj-suggestion.sj-suggestion-selected,.sj-suggestion:hover{background-color:#ddd}
/* Results */
.sj-result-summary{padding-bottom:1.5em;font-size:16px;color:#aaa}
.sj-result{clear:both}
.sj-result-list > :first-child{margin-top:0}
.sj-result-title{margin-bottom:0;margin-top:0;font-size:16px;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sj-result-title a{text-decoration:none;font-weight:400;font-size:20px;color:#333;line-height:21.6px}
.sj-result-title a:hover{text-decoration:underline}
.sj-result-description{color:#545454;font-size:15px;line-height:22px;overflow-wrap:break-word;margin-top:2px;margin-bottom:4px}
.sj-result-url{font-size:13px;line-height:18.2px;margin:0;color:#a2a2a2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sj-result-url a{text-decoration:none;color:#a2a2a2}
.sj-result-image-container{float:left;width:100px}
.sj-result-image-container img{max-height:90px;max-width:90px}
/* Paginator */
.sj-paginator{margin:1em 0;text-align:center}
.sj-paginator > div{display:inline;padding:10px;color:#777;font-weight:700;cursor:pointer;user-select:none}
.sj-paginator > div.current{color:#333}
.sj-paginator > div.disabled{color:#aaa}
/*  Tabs  */
.sj-tabs-container{border-bottom:1px solid #ebebeb;color:#777;width:100%;margin-bottom:1em}
.sj-tabs{overflow:auto;white-space:nowrap}
.sj-tab{display:inline-block;font-size:16px;cursor:pointer;margin:0;padding:1em;user-select:none}
.sj-tab-active{color:#333;border-bottom:3px solid #333}
/* Overlay */
.sj-overlay{background-color:#fff;position:fixed;top:0;bottom:0;left:0;overflow-x:hidden;overflow-y:auto;width:100%;height:100%;z-index:1000000;animation-name:sj-overlay-rolldown;animation-duration:.4s}
.sj-overlay-search{padding:0 30px}
.sj-overlay-close{position:absolute;top:0;right:20px;z-index:1;color:#aaa;text-align:center;cursor:pointer}
.sj-overlay-close:hover{color:#000}
.sj-overlay-close .sj-close{font-size:40px;line-height:30px;padding-top:10px}
.sj-overlay-close .sj-esc{font-size:12px}
.sj-result-list .sj-result{border-bottom:1px solid #ebebeb;padding:15px 0}
.sj-result-list .sj-result .sj-result-title a{font-weight:600;font-size:17px}
.sj-result-summary{background:#FFF;padding:10px 0;font-size:14px;color:#333}

@keyframes sj-overlay-rolldown {
  0%{opacity:0;height:20%}
  100%{opacity:1;height:100%}
}

@media (max-width: 768px) {
  .sj-overlay-search{padding:0 10px}
  .sj-overlay .sj-search-holder-outer{margin-right:54px}
}

/****************************************
  ==== Sjira specifics (SEARCH PANEL ONLY)
****************************************/
#search-panel.search-panel .panel-content{padding:30px 0 0}
#search-panel.search-panel .sj-result{padding:15px 30px}
#search-panel.search-panel .sj-result-summary{padding:10px 0 10px 30px}
#search-panel.search-panel .panel-content h4{padding:0 0 0 30px}
#search-panel.search-panel .search-box{padding:30px 30px 0}
#search-panel.search-panel .sj-tabs-container,#search-panel.search-panel .sj-paginator,#search-panel.search-panel .search-box{padding:0 30px}
#search-panel.search-panel .sj-result-summary{padding:10px 30px 0}
#search-panel.search-panel .sj-tabs-container{margin-bottom:0}
#search-panel.search-panel .sj-result-list{background:#FFF}
#search-panel.search-panel .sj-result-list .sj-result .sj-result-list > *{margin:0}

/****************************************
  ==== Sjira PAGINATOR (SHARED PANEL+PAGE)
****************************************/
.search-page .sj-paginator,#search-panel.search-panel .sj-paginator{text-align:left}
.search-page .sj-paginator > div,#search-panel.search-panel .sj-paginator > div{display:inline-block;text-align:center;padding:0;background:#FFF;outline:none;border:1px solid #e9ebec;width:36px;height:36px;line-height:36px;margin:0 5px}
.search-page .sj-paginator > div.disabled,#search-panel.search-panel .sj-paginator > div.disabled{background:#e9ebec;cursor:not-allowed}
.search-page .sj-paginator > div.current,#search-panel.search-panel .sj-paginator > div.current{color:#fff;background:#2196f3;border-color:#2196f3}
.search-page .sj-paginator > div:first-child,#search-panel.search-panel .sj-paginator > div:first-child{margin-left:0}
.search-page .sj-paginator > div:last-child,#search-panel.search-panel .sj-paginator > div:last-child{margin-right:0}

/****************************************
  ==== Sjira Page Specific
****************************************/
#search-panel, .search-page { font-weight: normal; }
