body {
  font-family: $font-family-base;
  background: $white;
  font-size: 1.125rem;
  line-height: 1.42857143;
  color: $brand-font-color;
  padding-top: 0;

  #wrapper .container-fluid > .row {
    @include unitize(margin-top, 30px);
  }

  @include media-breakpoint-down(md) {
    #wrapper > .underdog > .container {
      max-width: 100% !important;
    }
  }

  #wrapper .container-fluid.dd-ve-container:first-child > .row {
    margin-top: 0!important;
	}
	
	.h1, h1 {
		font-size: $h1-font-size;
    font-weight: bold;
	}

	.h2, h2 {
		font-size: $h2-font-size;
    font-weight: 400;
	}
	
  .h3, h3 {
		font-size: $h3-font-size;
    font-weight: bold;
	}

	.h4, h4 {
		font-size: $h4-font-size;
    font-weight: bold;
	}


	.h5, h5 {
		font-size: $h5-font-size;
    font-weight: bold;
	}
	
  .h6, h6 {
		font-size: $h6-font-size;
    font-weight: bold;
	}
	
	.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 { 
		margin-top: 0; 
		margin-bottom: .5rem; 
		font-family: inherit;
		line-height: 1.2;
		color: $brand-font-color;
	}

}

.text-underline {
	text-decoration: underline !important;
}

.text-muted {
	color: $text-muted !important;
}

.cursor-pointer {
	cursor: pointer;
}

.collapsing {
  position: relative;
  height: 0;
  overflow: hidden;
  transition:max-height 0.3s ease-out;
}

.btn {
	font-weight: 600;
}

.btn-info {
	color: $white;
	background-color: $brand-primary;
	border-color: $brand-primary;
	&:hover {
		background-color: $brand-secondary;
	}
}

.alert-info {
	color: $brand-font-color;
  background-color: $white;
  border-color: $brand-secondary;
  font-weight: 600;
}

.btn-primary:hover {
	background-color: $brand-primary-hover;
  border-color: $brand-primary-hover;
}

.btn-warning {
    background-color: $brand-primary;
		border-color: $brand-primary;
		&:hover {
	    background-color: $brand-primary-hover;
	    border-color: $brand-primary-hover;
		}
}

.line-dotted {
	border:none;
  border-top:1px dotted $brand-secondary;
  color:#fff;
  background-color:#fff;
  height:1px;
}

.fc-btn-deselect {
	position: absolute;
  top: 10px;
  right: 10px;
}
.fc-filter-item-name {
	display: inline-grid;
	margin-right: 30px; 
}

#basketModal {
	.modal-header {
		border-bottom: none;
	}
}

#header {
  z-index: 1050;
}

#overlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */

  #overlay-wrapper {

    position: absolute;
    width: 100%;
    top: 175px;

    .container {

      .mega-menu-cell {
        height: 4.125rem;
        margin-top: 20px;
        a {
          font-size: 1.125rem;
          line-height: 1.5rem;
        }
      }
    }
  }
}

.main-row {
  margin: 0 (-$grid-gutter-width/2);
  box-shadow: none;
}

#wrapper {
  background-color: $white;
}

.img-thumbnail {
  border: none;
}

#jumptotop {
  position: fixed;
  display: block;
  @include unitize(right, 35px);
  @include unitize(bottom, 40px);
  color: $brand-primary;
  font-size: rem(45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s linear 0.3s;
  user-select: none;
  cursor: pointer;
  z-index: 1000;

  &.show {
    opacity: 0.5;
    visibility: visible;

    transition: opacity 0.3s;

    &:hover {
      opacity: 1;
    }
  }
}

.card {
  @include unitize(margin-bottom, 30px);

  &-title {
    font-size: $h4-font-size;
    margin: 0;
  }

  &-deck {
    @include unitize(margin-bottom, 30px);
  }
}

.btn-tertiary {
  @include button-variant($white, $gray-400)
}

.btn-warning {
  color: $white;

  &:hover {
    color: darken($white, .5);
  }
}

.hidden {
  visibility: hidden;
  height: 0;
  width: 0;
}

.btn {
	white-space: normal;
	word-break: break-word;
  &-outline {
    &-dark {
      color: $gray-800;
      background-color: transparent;
      background-image: none;
      border-color: $gray-300;
    }
  }
  &:focus {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
	}
	
	&.btn-nowrap {
		white-space: nowrap;
	}

  &.btn-primary {
    background-color: $brand-primary;
    border-color: $brand-primary;
    @include unitize(height, 36px);
    @include unitize(padding-top, 4px);
    border-radius:3px;
  }
}

.form-control {
  &:focus {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
  }
}

span.badge:empty {
  display:none !important;
}

.t-0 {
	top: 0 !important;
}

.dd-fullwidth {
  padding: 0 !important;

  .dd-shortcode-carousel.dd-carousel-slider {
    .carousel.slide {
      .carousel-inner {
        .item {
          img {
            width: 100%;
            height: auto;
          }
        }
      }
    }
  }
}

// Fix for VisualCMS because it has no support for Bootstrap 4 classes yet
.dd-ve-container {
  @media (max-width: 767px) {
    .hidden-xs {
      display: none !important;
    }
  }
  @media (min-width: 768px) and (max-width: 991px) {
    .hidden-sm {
      display: none !important;
    }
  }
  @media (min-width: 992px) and (max-width: 1199px) {
    .hidden-md {
      display: none !important;
    }
  }
  @media (min-width: 1200px) {
    .hidden-lg {
      display: none !important;
    }
  }
}

.text-success {
  color: $text-success;
}

.text-info {
  color: $text-info !important;
}

.text-warning {
  color: $text-warning;
}

.text-danger {
  color: $text-danger !important;
}

// hide bootstrap 3 select
.btn-group.bootstrap-select.form-control {
  display: none !important;
}

.cc-btn {
	border-color: $brand-primary;
  border-radius: 3px;
	border: 1px;
} 
.cc-save {
	margin-left: 20px !important;
}

.popover {
	z-index: 2;
}

.dropdown {
	button {
		font-size: 1.125rem;
	}
	.dropdown-item {
		cursor: pointer;
		font-size: 1.125rem;
	}
}

[aria-expanded="true"] {
	.fa-angle-down {
		transform: rotate(180deg);
	}
}

.amazonPayOr {
	display: none !important;
	margin-right: 0 !important;
}

.amazonPayPreOr {
	display: inline !important;
	margin-right: 16px !important;
}

.border-dark {
	border-color: $gray-300!important;
}

.dd-ve-container .dd-background { 
	min-height: 100%;
	height: 100%;
}

.sm-col {
  width: 4.5rem !important;
}

.md-col{
  width: 5.5rem !important;
}

table#orderItems{
  table-layout:fixed;
}

.progress{
  margin-bottom: 1rem;
}

.tooltip-inner{
  font-family: $font-family-base;
  background: $white;
  font-size: 1.125rem;
  line-height: 1.42857143;
  color: $brand-font-color;
  max-width: 300px !important;
}

.bs-tooltip-auto[x-placement^=left] .arrow::before, .bs-tooltip-left .arrow::before {
  border-left-color: $white;
}

.bs-tooltip-auto[x-placement^=right] .arrow::before, .bs-tooltip-right .arrow::before {
  border-right-color: $white;
}

.bs-tooltip-auto[x-placement^=top] .arrow::before, .bs-tooltip-top .arrow::before {
  border-top-color: $white;
}

.bs-tooltip-auto[x-placement^=bottom] .arrow::before, .bs-tooltip-bottom .arrow::before {
  border-bottom-color: $white;
}