body {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
}

#content {
  left: 0; right: 0;
  width: 100%;
  margin: 15px auto 0;
  text-align: left;
  padding-bottom: 200px;
  color: #606060;
}

#custom-route-plugin {
  position: relative;
  width: 100%;
  height: 830px;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  overflow: hidden;
  background: #f3f3f3;
  font: 14px 'Karla', sans-serif;
}

#custom-route-plugin ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#map-panel-container {
  position: relative;
  width: 100%;
  height: 100%;
  padding-right: 350px;
  box-sizing: border-box;
}
#map-panel {
  position: relative;
  width: 100%;
  height: 100%;
}

#appearance-disclaimer {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 250px;
  padding: 20px 30px 20px 20px;
  background: rgba(250,250,250,0.9);
  font-size: 15px;
  border: 1px solid #ddd;
}

.close-x {
  position: absolute;
  top: 3px;
  right: 8px;
  font-size: 24px;
  line-height: 1;
  transform: rotate(45deg);
  cursor: pointer;
}

#mapbox {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 0;
  height: 0;
  margin: 0 auto;
  border: 12px solid #000;
  transform: translateY(-50%);
  box-shadow: 2px 2px 4px 2px rgba(0,0,0,0.25);
}

#mapbox-size-holder {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin: 0 auto;
  transform: translateY(-50%);
  visibility: hidden;
  pointer-events: none;
  width: 504px;
  height : auto;
}

.mapboxgl-control-container {
  opacity: 0;
}

#options {
  position: absolute;
  top: 0;
  right: 0;
  background: #f7f7f7;
  width: 350px;
  height: 100%;
  z-index: 1;
  box-shadow: 0 0 4px 4px rgba(0,0,0,0.07);
}

.option {
  font-weight: 700;
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  box-sizing: border-box;
  background: #f5f5f5;
  color: #606060;
  cursor: pointer;
  user-select: none;
}
.option:hover {
  background: #fafafa;
  color: #333;
}

.option.selected .arrow {
  transform: none;
}

.abridged {
  display: none;
}

.mapboxgl-ctrl-geocoder .suggestions {
  left: auto;
  right: 0;
  width: 93%;
}

.mapboxgl-ctrl-geocoder {
  pointer-events: none;
}

.option.selected ~ .option-dropdown .mapboxgl-ctrl-geocoder {
  pointer-events: auto;
}

.arrow {
  width: 10px;
  height: auto;
  margin: 0 15px 0 0;
  opacity: 0.7;
  transform: rotate(-90deg);
  transition: transform 150ms;
}

.option-dropdown {
  border-bottom: 1px solid #e7e7e7;
  width: 100%;
  background: #fefefe;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(-20px);
  position: absolute;
  pointer-events: none;
  transition: transform 150ms;
  box-sizing: border-box;
}

.option-padded {
  padding: 12px;
}

.option.selected ~ .option-dropdown {
  opacity: 1;
  transform: translateY(0px);
  position: relative;
  pointer-events: auto;
}

#search-form {
  position: relative;
  width: 100%;
}
.tip {
  display: inline-block;
  margin: 6px 0;
  font-size: 11px;
  color: #888;
}

.mapboxgl-ctrl-geocoder {
  width: 100%;
  border-radius: 2px;
  border: 1px solid #e7e7e7;
  box-shadow: none;
}

.mapboxgl-ctrl-geocoder--input {
  width: 100%;
  padding: 14px 60px 14px 14px;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1;
}

.mapboxgl-marker {
  display: none;
}

.mapboxgl-ctrl-geocoder--icon-search {
  display: none;
}

.mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--pin-right > * {
  right: 35px;
}

.mapboxgl-ctrl-geocoder ~.mapboxgl-ctrl {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  z-index: 1;
}

#search-form .button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: 16px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 200ms;
}

#search-form .button:hover {
  opacity: 1;
}

#search-button {
  right: 40px;
}

#gps-button {
  right: 10px;
}

.choice-grid {
  display: flex;
  flex-direction: row;
}

.choice-grid .choice {
  flex: 1;
  text-align: center;
}

.choice-list li {
  padding: 15px 12px;
  border-bottom: 1px solid #e7e7e7;
  cursor: pointer;
  transition: background 300ms;
}
.choice-list li:hover {
  background: rgba(0,0,0,0.05);
}

.label-reg {
  margin: 4px;
}

.label-bold {
  font-weight: 700;
  margin: 4px;
}

.label-big {
  font-weight: 700;
  font-size: 2em;
  line-height: 1em;
  margin: 4px;
}

#choose-orientation {
  padding-bottom: 10px;
  border-bottom: 1px solid #e7e7e7;
}

.radio-select {
  display: inline-block;
  vertical-align: bottom;
  margin-left: 10px;
  cursor: pointer;
}

.choice-list-row {
  display: flex;
  flex-direction row;
  box-sizing: border-box;
}

.choice-list-row .inline-check {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  visibility: hidden;
  margin-left: 8px;
}

.choice-list-row.selected .inline-check {
  visibility: visible;
}

.choice-row-desc {
  flex: 1;
}
.choice-row-value {
  flex: 0 0 100px;
  text-align: right;
}

.choice-image-container {
  position: relative;
  display: inline-block;
}

.choice-image {
  width: 100px;
  height: 100px;
  box-shadow: 3px 3px 5px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: opacity 200ms;
}

.choice-image:hover {
  opacity: 1;
}

.choice-image-frame {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #000;
  opacity: 0.3;
  box-sizing: border-box;
  pointer-events: none;
}

.choice.selected .choice-image-frame {
  opacity: 0.7;
}

.check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  visibility: hidden;
}
.choice.selected .check {
  visibility: visible;
}

.grey-button {
  padding: 15px 20px;
  background: #aaa;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: background 300ms;
  border: 0;
  cursor: pointer;
  outline-color: #888;
}
.grey-button:hover {
  background: #777;
}

.colored-button {
  padding: 15px 20px;
  background: #d0bd9f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: background 300ms;
  border: 0;
  cursor: pointer;
  outline-color: #aaa;
}
.colored-button:hover {
  background: #cab492;
}

.wide-button {
  width: 100%;
}

#app-select {
  width: 100%;
  padding: 8px 10px;
}

select option {
  padding: 8px 10px;
}

.link-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  box-shadow: 2px 2px 3px rgba(0,0,0,0.3);
  transition: transform 200ms;
  cursor: pointer;
}

.link-icon:hover {
  transform: scale(1.05);
}

.left-icon {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  border-radius: 8px;
  box-shadow: 2px 2px 3px rgba(0,0,0,0.3);
  float: left;
}

.small-icon {
  width: 25px;
  height: 25px;
  margin-right: 8px;
  border-radius: 5px;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  vertical-align: middle;
}

.question-icon {
  width: 20px;
  height: 20px;
  vertical-align: bottom;
  opacity: 0.8;
  cursor: pointer;
}

#options-footer {
  position: absolute;
  width: 100%;
  text-align: right;
  bottom: 12px;
  padding: 0 12px;
  box-sizing: border-box;
}

#total-price {
  font-size: 3em;
  line-height: 0.9em;
  margin: 0 0 10px;
}

#quantity {
  width: 50px;
  padding: 14px;
  border: 1px solid #e7e7e7;
  box-sizing: border-box;
  color: #777;
  outline-color: #aaa;
}

#add-to-cart-button {
  margin: 0 0 0 5px;
}

#overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.overlay-panel {
  position: absolute;
  top: 20%;
  left: 0;
  right: 0;
  width: 350px;
  border: 1px solid #ddd;
  margin: auto;
  background: #fff;
  font-size: 15px;
  box-shadow: 2px 2px 3px rgba(0,0,0,0.3);
  pointer-events: auto;
  display: none;
  box-sizing: border-box;
}

.overlay-panel-padded {
  padding: 20px;
}

.overlay-panel h1 {
  font-size: 1.2em;
  line-height: 1.2em;
  margin: 0 0 8px;
}

.overlay-panel h2 {
  font-size: 1.1em;
  line-height: 1.1em;
  margin: 12px 0 10px;
}

.overlay-button {
  left: 0;
  right: 0;
  width: 100%;
  margin: 20px auto 0;
  display: block;
}

.overlay-header {
  width: 100%;
  background:#f7f7f7;
  padding: 10px 12px;
  font-size: 1em;
  font-weight: 700;
  line-height: 1em;
  box-sizing: border-box;
}

#route-list {
  height: 400px;
  border-top: 1px solid #e0e0e0;
  overflow-y: scroll;
}

#route-list li {
  padding: 10px 18px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
}

#route-list li:hover {
  background: #fafafa;
}

#route-list h2 {
  margin: 0 0 3px;
  font-size: 15px;
  line-height: 1em;
}

.route-timestamp {
  color: #888;
  font-size: 12px;
}

#gpx-upload-instructions-panel {
  width: 450px;
  box-sizing: border-box;
}

#upload-route .choice-grid {
  margin-bottom: 15px;
}

#upload-gpx-button {
  margin-top: 2px;
}

select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
  background: #f0f0f0;
}

#custom-route-plugin noscript {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 1.2em;
  background: rgba(0,0,0,0.8);
  z-index: 2;
}

.noscript-panel {
  position: relative;
  top: 40%;
  left: 0;
  right: 0;
  width: 350px;
  padding: 30px 10px;
  margin: 0 auto;
  border-radius: 5px;
  background: #fff;
}

.double-box {
  width: 100%;
  margin: 0;
  padding: 0 0 15px;
}

.options-footer-flex {
  display: flex;
  flex-direction: row;
}

#quantity {
  flex-basis: 40px;
  padding: 0 10px 0;
}

#add-to-cart-button {
  flex: 1;
}

@media screen and (max-width: 1199px ) {
  #placeholder {
    width: 100%;
    height: auto;
  }
  #mapbox-size-holder.size-holder-landscape {
    width: 85%;
  }
}

@media screen and (max-width: 967px ) {
  #custom-route-plugin {
    height: auto;
    min-height: 830px;
  }
  #map-panel-container {
    padding: 0;
    height: 830px;
  }
  #options {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
  }
  #options > ul {
    position: relative;
    display: flex;
    flex-direction: row;    
  }
  #options li {
    position: static;
    width: 25%;
  }
  .option-dropdown {
    position: absolute;
    left: 0;
    width: 100%;
  }
  .option {
    color: #777;
    box-sizing: border-box;
    text-align: center;
  }
  .option.selected {
    color: #000;
    border-bottom: 2px solid #cab492;
  }

  .arrow {
    display: none;
  }

  .verbose {
    display: none;
  }

  .abridged {
    display: inline;
  }

  .option.selected ~ .option-dropdown {
    position: absolute;
  }

  .mapboxgl-ctrl-geocoder {
    width: 100%;
    max-width: 100%;
  }

  .choice-grid {
    display: block;
  }

  .choice-grid .choice {
    display: inline-block;
    flex: 0 1 auto;
    margin: 0;
    width: 120px !important;
  }

  #options .choice-list-row {
    width: 100%;
  }

  #upload-route .choice-grid {
    margin-bottom: 20px;
  }

  #upload-gpx-button {
    margin-top: 8px;
  }

  #options-footer {
    position: relative;
    bottom: auto;
    padding: 12px 8px;
  }
  .overlay-panel,
  #gpx-upload-instructions-panel {
    position: fixed;
    top: 5%;
  }
}

@media screen and (max-width: 697px) {
  #upload-route .option-dropdown {
    display: block;
  }
  .double-box {
    display: block;
    width: 100%;
    padding: 0 0 15px;
  }
}

@media screen and (max-width: 570px ) {
  #mapbox-size-holder.size-holder-portrait {
    width: 85%;
  }
  .overlay-panel,
  #gpx-upload-instructions-panel {
    width: 95%;
  }
}
