/**
 * Css for reusable components
 */


/* TypeAhead */
/* Thanks to https://raw.githubusercontent.com/bassjobsen/typeahead.js-bootstrap-css/master/typeaheadjs.css */
span.twitter-typeahead .tt-menu,
span.twitter-typeahead .tt-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  list-style: none;
  font-size: 14px;
  text-align: left;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  background-clip: padding-box;
}

span.twitter-typeahead .tt-suggestion {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: normal;
  line-height: 1.42857143;
  color: #333333;
  white-space: nowrap;
}

span.twitter-typeahead .tt-suggestion.tt-cursor,
span.twitter-typeahead .tt-suggestion:hover,
span.twitter-typeahead .tt-suggestion:focus {
  color: #ffffff;
  text-decoration: none;
  outline: 0;
  background-color: #337ab7;
}

.input-group.input-group-lg span.twitter-typeahead .form-control {
  height: 46px;
  padding: 10px 16px;
  font-size: 18px;
  line-height: 1.3333333;
  border-radius: 6px;
}

.input-group.input-group-sm span.twitter-typeahead .form-control {
  height: 30px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}

span.twitter-typeahead {
  width: 100%;
}

.input-group span.twitter-typeahead {
  display: block !important;
  height: 34px;
}

.input-group span.twitter-typeahead .tt-menu,
.input-group span.twitter-typeahead .tt-dropdown-menu {
  top: 32px !important;
}

.input-group span.twitter-typeahead:not(:first-child):not(:last-child) .form-control {
  border-radius: 0;
}

.input-group span.twitter-typeahead:first-child .form-control {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group span.twitter-typeahead:last-child .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.input-group.input-group-sm span.twitter-typeahead {
  height: 30px;
}

.input-group.input-group-sm span.twitter-typeahead .tt-menu,
.input-group.input-group-sm span.twitter-typeahead .tt-dropdown-menu {
  top: 30px !important;
}

.input-group.input-group-lg span.twitter-typeahead {
  height: 46px;
}

.input-group.input-group-lg span.twitter-typeahead .tt-menu,
.input-group.input-group-lg span.twitter-typeahead .tt-dropdown-menu {
  top: 46px !important;
}

.tt-menu {
  width: 100%;
}

/* Form mods */
label {
  font-weight: normal;
}

label + .form-tooltip {
  margin-left: 10px;
}

.help-block {
  font-size: 80%;
  font-style: italic;
}

div.checkbox + .help-block {
  margin-left: 21px;
}

.checkbox + label {
  width: 95%;
}

/* Sortable images - dashboard image-set uploader */
#sortable-images > li {
  height: 150px;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}

#sortable-images > li > div {
  float: left;
  height: 100%;
}

#sortable-images div.si-controls {
  height: 150px;
  width: 30px;
  position: relative;
}

#sortable-images div.si-controls > * {
  left: 5px;
  display: block;
  position: absolute;
}

#sortable-images div.si-controls > *:nth-child(2) {
  top: 68px;
}

#sortable-images div.si-controls > *:last-child {
  bottom: 0;
}

#sortable-images .drag-icon:hover {
  cursor: move;
}

#sortable-images .delete-icon:hover {
  cursor: pointer;
}


/* forms-steps: a visual representation of the subscription steps */
.form-steps .form-step span {
  display: block;
  text-align: center;
}

.form-steps .form-step {
  color: #ccc;
  float: left;
  padding: 20px;
  width: 33%;
}

.form-steps .form-step.active {
  color: #58b325;
}

.form-steps .form-step-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.form-steps .form-step-subtitle {
  font-size: 13px;
  line-height: 18px;
  margin-top: 10px;
}

/* Photo display */
.photo-display {
  margin-bottom: 20px;
}

.photo-display.nophotos > div {
  border: 1px solid #ccc;
  padding: 20px;
}

.photo-display > div > div {
  display: block;
  position: relative;
  float: left;
  overflow: hidden;
  cursor: pointer;
}

.photo-display > div > div:nth-child(1),
.photo-display > div > div:nth-child(3),
.photo-display > div > div:nth-child(5) {
  margin-right: 8px;
}

.photo-display > div > div:nth-child(2),
.photo-display > div > div:nth-child(3),
.photo-display > div > div:nth-child(4) {
  margin-bottom: 8px;
}

@media (max-width: 767px) {
  .photo-display > div > div {
    display: none;
  }

  .photo-display > div > div:nth-child(1) {
    display: block;
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .photo-display > div > div:nth-child(1) {
    width: 472px;
  }

  .photo-display > div > div:nth-child(2) {
    width: 240px;
    height: 153px;
  }

  .photo-display > div > div:nth-child(3),
  .photo-display > div > div:nth-child(4),
  .photo-display > div > div:nth-child(5),
  .photo-display > div > div:nth-child(6) {
    width: 116px;
    height: 73px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .photo-display > div > div:nth-child(1) {
    width: 620px;
  }

  .photo-display > div > div:nth-child(2) {
    width: 312px;
    height: 201px;
  }

  .photo-display > div > div:nth-child(3),
  .photo-display > div > div:nth-child(4),
  .photo-display > div > div:nth-child(5),
  .photo-display > div > div:nth-child(6) {
    width: 152px;
    height: 98px;
  }
}

@media (min-width: 1200px) {
  .photo-display > div > div:nth-child(1) {
    width: 752px;
  }

  .photo-display > div > div:nth-child(2) {
    width: 380px;
    height: 245px;
  }

  .photo-display > div > div:nth-child(3),
  .photo-display > div > div:nth-child(4),
  .photo-display > div > div:nth-child(5),
  .photo-display > div > div:nth-child(6) {
    width: 186px;
    height: 120px;
  }
}

.photo-display > div > div > div.video-icon {
  position: absolute;
  bottom: 2px;
  right: 10px;
  color: white;
  font-weight: bold;
  text-align: center;
  overflow: hidden;
  font-size: 20px;
}

.photo-uploader .image-preview {
  width: 100px;
  float: left;
  margin-right: 10px;
}

.photo-uploader .image-preview-wrapper {
  font-size: 0.8em;
}

.photo-uploader #drag-and-drop-zone {
  text-align: center;
}

/*******************************************/
/* video frontpage                       */
/*******************************************/
.frontpage-video .video-container {
	position:relative;
	padding-bottom:56.25%;
	padding-top:30px;
  margin-top: 3rem;
	height:0;
	overflow:hidden;
}
.frontpage-video .video-container iframe,
.frontpage-video .video-container object,
.frontpage-video .video-container embed {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
}


/*******************************************/
/* featured-products                       */
/*******************************************/

.result-grid {
  display: flex;
  flex-wrap: wrap;
}

.result-grid .result-grid-item {
  width: 25%;
  padding: 1rem;
}

.result-grid.frontpage-result-grid .result-grid-item {
  padding: 1rem;
}

.result-grid .result-grid-item .item-ads-grid {
  height: 100%;
}

.result-grid .result-grid-item .item-ads-grid .item-img-grid {
  height: 150px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.result-grid .result-grid-item .item-ads-grid .item-img-grid img.landscape {
  height: 100%;
}

.result-grid .result-grid-item .item-ads-grid .item-img-grid img.portrait {
  width: 100%;
}


@media (max-width: 767px) {
  .result-grid .result-grid-item {
    width: 100%;
  }
}

/*******************************************/
/* frontpage-sales-texts                   */
/*******************************************/

#frontpage-sales-texts {
  display: flex;
}

#frontpage-sales-texts .widget {
  width: 50%;
  margin: 1rem;
}

#frontpage-sales-texts .widget h2 {
  margin-bottom: 2rem;
}

@media (max-width: 767px) {
  #frontpage-sales-texts {
    flex-wrap: wrap;
  }

  #frontpage-sales-texts .widget {
    width: 100%;
  }
}



/*******************************************/
/* Coupon code field                       */
/*******************************************/
.coupon-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}
