﻿.controlSet {
  display: flex;
}

.rensouSearch {
  display: flex;
  align-items: center;
}

.rensouSearch .g-btn {
  width: auto;
  min-width: 0;
  margin-left: 15px;
  font-size: 1.4rem;
  white-space: nowrap;
}

.rensouSearch .g-btn .g-btn_inner {
  min-height: 15px;
  padding: 2px 12px;
}

.bottomBar {
  display: flex;
  padding-top: 15px;
  border-top: 1px solid #505050;
  margin-top: 30px;
}

.panel .g-card_head {
  padding-bottom: 15px;
  font-size: 1.8rem;
}

.panel .g-card_head a {
  position: relative;
  display: block;
  color: #fff;
}

.panel .g-card_head span {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.panel_cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: none;
  cursor: pointer;
}

.panel_cover::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  background: rgba(41, 35, 24, 0.5);
  content: '';
  transition: opacity 0.2s;
}

.panel-checked .panel_cover::after {
  background: rgba(232, 207, 130, 0.25);
}

.panel_cover-photo::after {
  content: none;
}

html[data-states~='no-touch'] .panel_cover:not(.panel_cover-photo):hover::after {
  opacity: 0;
}

html[data-states~='no-touch'] .panel_cover:not(.panel_cover-photo):hover img {
  opacity: 1 !important;
}

.panel_btn {
  display: inline;
  padding: 0;
  border: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: none;
  color: #e8cf82;
  cursor: pointer;
  text-align: left;
}

.balloon {
  position: relative;
  z-index: 2;
  top: 20px;
  width: calc(200% + 20px);
  color: #000;
}

.balloon_outer {
  position: absolute;
  width: 100%;
}

.balloon_outer::before {
  position: absolute;
  top: -16px;
  left: 44px;
  width: 0;
  height: 0;
  border-width: 0 16px 16px;
  border-style: solid;
  border-color: transparent transparent rgba(255, 255, 255, 0.85);
  content: '';
}

.balloon_inner {
  overflow: auto;
  max-height: 250px;
  background: rgba(255, 255, 255, 0.85);
}

.balloon ul {
  padding: 10px 15px;
}

.balloon li {
  margin-top: 0.2em;
}

.balloon li:first-child {
  margin-top: 0;
}

.balloon_close {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  padding: 0;
  border: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: none;
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .controlSet {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .controlSet .g-dropdown {
    margin-top: 10px;
  }
  .panel:nth-child(even) .balloon {
    left: calc(-100% - 20px);
  }
  .panel:nth-child(even) .balloon_outer::before {
    left: calc(50% + 54px);
  }
}

@media (min-width: 769px) {
  .controlSet {
    align-items: center;
    margin-left: 20px;
  }
  .rensouSearch {
    margin-left: 30px;
  }
  .rensouSearch .g-checkable_label {
    font-size: 1.6rem;
  }
  .rensouSearch .g-btn-search {
    width: auto;
    margin-left: 15px;
    font-size: 1.5rem;
  }
  .rensouSearch .g-btn-search .g-btn_inner {
    min-height: 30px;
    padding: 2px 20px;
  }
  .bottomBar {
    justify-content: flex-end;
    padding-top: 20px;
    margin-top: 40px;
  }
  .panel .g-card_head {
    font-size: 2rem;
  }
  .panel-loose .g-card_head {
    padding-bottom: 25px;
  }
  .balloon {
    top: 25px;
    width: 100%;
  }
  .balloon_outer::before {
    top: -20px;
    border-width: 0 20px 20px;
  }
  .balloon_close {
    display: none;
  }
}
