/* CONFIG */

#controls .config
{
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 100%;
  max-width: 120px;
}

/* PANEL */

#controls.active .panel
{
  pointer-events: all;
}

#controls .panel .nav
{
  position: absolute;
  width: 100%; height: 60px;
  bottom: 0; left: 0;
  padding: 0 60px;
}

#controls .panel .nav .text
{
  height: 100%;
  padding: 0 10px;
  position: relative;
  pointer-events: none;
  display: none;
}

#controls .panel .nav .arrow
{
  position: absolute;
  width: 60px; height: 60px;
  top: 0; left: 0;
  padding: 18px;
}

#controls .panel .nav .prev
{
  -webkit-transition: background-color 0.2s ease-out;
  -moz-transition: background-color 0.2s ease-out;
  -ms-transition: background-color 0.2s ease-out;
  -o-transition: background-color 0.2s ease-out;
  transition: background-color 0.2s ease-out;

  position: absolute;
  width: 60px; height: 60px;
  top: 0; left: 0;
  cursor: pointer;
  border-radius: 5px 0 0 0;
}

#controls .panel .nav .prev:hover
{
  background-color: #F0F0F0;
}

#controls .panel .nav .prev.disabled:hover
{
  background-color: #FFF;
  cursor: default;
}

#controls .panel .nav .prev.disabled svg
{
  fill: #DDD;
}

#controls .panel .nav .next
{
  -webkit-transition: background-color 0.2s ease-out;
  -moz-transition: background-color 0.2s ease-out;
  -ms-transition: background-color 0.2s ease-out;
  -o-transition: background-color 0.2s ease-out;
  transition: background-color 0.2s ease-out;

  position: absolute;
  width: 60px; height: 60px;
  top: 0; right: 0;
  cursor: pointer;
  border-radius: 0 5px 0 0;
}

#controls .panel .nav .next .arrow
{
  left: auto; right: 0;
}

#controls .panel .nav .next:hover
{
  background-color: #F0F0F0;
}

/* Select */

#controls .panel .body
{
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

#controls .panel .container
{
  -webkit-transition: -webkit-transform 0.25s ease-in-out;
  -moz-transition: -moz-transform 0.25s ease-in-out;
  -ms-transition: -ms-transform 0.25s ease-in-out;
  -o-transition: -o-transform 0.25s ease-in-out;
  transition: transform 0.25s ease-in-out;

  position: relative;
  height: 100%;
  transform: translateX(0);
}

#controls .panel .select
{
  position:absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

#controls .panel .scroll
{
  position: relative;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  background-color: #F0F0F0;

  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
}

#controls.active .panel .scroll
{
  pointer-events: all;
}

#controls .panel .content
{
  position: relative;
  min-height: 100%;
}

#controls .panel .content .category
{
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 100%);
  background: -moz-linear-gradient(top, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 100%);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 100%);

  color: #444;
  padding: 30px 15px 15px 15px;

  display: none;
}

#controls .panel .selectable
{
  -webkit-transition: background-color 0.2s ease-out;
  -moz-transition: background-color 0.2s ease-out;
  -ms-transition: background-color 0.2s ease-out;
  -o-transition: background-color 0.2s ease-out;
  transition: background-color 0.2s ease-out;

  width: 100%; height: 120px;
  cursor: pointer;
}

#controls .panel .selectable.active,
#controls .panel .selectable:hover
{
  background-color: #FFF;
}

#controls .panel .selectable .info
{
  padding: 0 15px 0 15px;
}

#controls .panel .selectable .info .pad
{
  position: relative;
  padding-left: 100px;
}

#controls .panel .selectable .text
{
  display: none;
  vertical-align: middle;
  margin-left: 10px;
  border-left: 1px solid #E0E0E0;
  padding-left: 10px;
}

#controls .panel .selectable .name
{
  color: #444;
}

#controls .panel .selectable .price
{
  color: #2B7BCD;
}

#controls .panel .selectable .icon
{
  position: absolute;
  width: 100px; height: 100px;
  left: 0; top: 50%;
  margin-top: -50px;

  display: inline-block;
  vertical-align: middle;
}

#controls .panel .selectable .thumb
{
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: hidden;
}

#controls .panel .selectable .thumb img
{
  position: absolute;
}

#controls .panel .selectable .checkmark,
#controls .panel .selectable .warnmark
{
  position: absolute;
  padding: 10px;
  left: 0; bottom: 0;
  width: 44px; height: 44px;
  background-color: #FFF;

  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  border-radius: 100%;

  display: none;
}

#controls .panel .selectable.active .checkmark
{
  display: block;
}

#controls .panel .selectable.warning .warnmark
{
  display: block;
}

#controls .panel .selectable.active.warning .warnmark
{
  display: none;
}

#controls .panel .selectable .checkmark svg
{
  fill: #2B7BCD;
}

#controls .panel .selectable .warnmark svg
{
  fill: #E87722;
}

/* Header */

#controls .panel .header
{
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  border-radius: 5px 5px 0px 0px;
  background-color: #FFF;
  height: 60px;

  z-index: 1;
}

/* Summary button */

#controls .panel .footer
{
  position: absolute;
  width: 100%; height: 60px;
  left: 0; bottom: 0;
  padding-right: 100px;

  cursor: pointer;
}

#controls .panel .summarybtn
{
  height: 100%;
}

#controls .panel .footer .total
{
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0px 0px 0px 5px;
  padding-left: 15px;
  padding-top: 5px;
  color: #FFF;
  display: none;
}

#controls .panel .footer .amount
{
  display: inline-block;
}

#controls .panel .footer .amount h2
{
  font-weight: 400;
}

#controls .panel .footer .spr
{
  display: inline-block;
  color: #FFF;
  font-weight: 400;
}

#controls .panel .footer .overview
{
  -webkit-transition: color 0.2s ease-out, background-color 0.2s ease-out;
  -moz-transition: color 0.2s ease-out, background-color 0.2s ease-out;
  -ms-transition: color 0.2s ease-out, background-color 0.2s ease-out;
  -o-transition: color 0.2s ease-out, background-color 0.2s ease-out;
  transition: color 0.2s ease-out, background-color 0.2s ease-out;

  position: absolute;
  right: 0; top: 0;
  width: 120px; height: 100%;
  border-radius: 0px 0px 5px 5px;
  background-color: #FFF;
  text-align: center;

  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: #2B7BCD;
}

#controls .panel .footer:hover .overview
{
  background-color: rgba(0, 0, 0, 0.5);
  color: #FFF;
}

/* PAGER */

#controls .pager
{
  position: absolute;
  top: -40px; left: 0;
  width: 100%; height: 40px;
  padding: 0 15px;
  display: none;
}

#controls.active .pager
{
  pointer-events: all;
}

#controls .pager .pages
{
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

#controls .pager .page
{
  float: left;
  width: 19%; height: 100%;

  cursor: pointer;
}

#controls .pager .space
{
  float: left;
  width: 8%; height: 100%;
}

#controls .pager .page .line
{
  -webkit-transition: opacity 0.4s ease-out;
  -moz-transition: opacity 0.4s ease-out;
  -ms-transition: opacity 0.4s ease-out;
  -o-transition: opacity 0.4s ease-out;
  transition: opacity 0.4s ease-out;

  position: absolute;
  width: 100%; height: 2px;
  top: 50%; left: 0;
  margin-top: -1px;
  background-color: #FFF;

  opacity: 0.25;
}

#controls .pager .page:hover .line,
#controls .pager .page.active .line
{
  opacity: 1;
}

/* TYPE */

#controls .type
{
  position: absolute;
  height: 100%;
}

#controls .type .switch
{
  cursor: pointer;
}

#controls.active .type .switch
{
  pointer-events: all;
}

#controls .type .icon
{
  -webkit-transition: background-color 0.4s ease-out;
  -moz-transition: background-color 0.4s ease-out;
  -ms-transition: background-color 0.4s ease-out;
  -o-transition: background-color 0.4s ease-out;
  transition: background-color 0.4s ease-out;

  float: left;
  background-color: #FFF;
  width: 40px; height: 40px;
  border-radius: 5px 0 0 5px;
  padding: 8px;
}

#controls .type:hover .icon
{
  background-color: rgba(0, 0, 0, 0.5);
}

#controls .type .icon svg
{
  -webkit-transition: fill 0.4s ease-out;
  -moz-transition: fill 0.4s ease-out;
  -ms-transition: fill 0.4s ease-out;
  -o-transition: fill 0.4s ease-out;
  transition: fill 0.4s ease-out;
}

#controls .type:hover .icon svg
{
  fill: #FFF;
}

#controls .type .text
{
  float: left;
  color: #FFF;
  background-color: rgba(0, 0, 0, 0.5);
  height: 40px;
  padding: 0 10px;
  border-radius: 0 5px 5px 0;
}

#controls .type .text h2
{
  font-weight: 400;
}

#controls .logo
{
  position: absolute;
  bottom: 0; left: 0;
  pointer-events: all;

  display: none;
}

#controls .logo img
{
  display: block;
  width: 175px;
}

@media (min-width: 770px)
{
  #controls .config
  {
    max-width: 300px;
  }

  #controls .logo
  {
    display: block;
  }

  #controls .panel .nav .text
  {
    display: inline;
  }

  #controls .panel .nav .next
  {
    width: 240px;
  }

  #controls .panel .content .category
  {
    display: block;
  }

  #controls .panel .selectable .text
  {
    display: inline-block;
  }

  #controls .panel .footer .total
  {
    display: block;
  }

  #controls .panel .footer .overview
  {
    width: 100px;
    border-radius: 0px 0px 5px 0px;
  }

  #controls .pager
  {
    display: block;
  }
}
