.clearfix {
  display: block;
  zoom: 1;
}
.clearfix:after {
  content: " ";
  display: block;
  font-size: 0;
  height: 0;
  clear: both;
  visibility: hidden;
}
.link-default {
  text-decoration: none;
  outline: none;
}
.hide {
  opacity: 0;
  visibility: hidden;
}
.show {
  opacity: 1;
  visibility: visible;
}
/** animate **/
@-webkit-keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateY(0);
  }
  40% {
    -webkit-transform: translateY(-30px);
  }
  60% {
    -webkit-transform: translateY(-15px);
  }
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}
.flex {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
}
.scaleRotateAnimateDisplay {
  -webkit-transform: scale(1) rotate(180deg);
  -moz-transform: scale(1) rotate(180deg);
  -o-transform: scale(1) rotate(180deg);
  transform: scale(1) rotate(180deg);
}
.scaleRotateAnimateDisplayN {
  -webkit-transform: scale(0) rotate(0deg);
  -moz-transform: scale(0) rotate(0deg);
  -o-transform: scale(0) rotate(0deg);
  transform: scale(0) rotate(0deg);
}
.opacityDisplay {
  opacity: 0;
  visibility: hidden;
}
.couponBg {
  background: #ffbd27;
  background: -moz-linear-gradient(top, #ffbd27 0%, #ff6d00 99%);
  background: -webkit-linear-gradient(top, #ffbd27 0%, #ff6d00 99%);
  background: linear-gradient(to bottom, #ffbd27 0%, #ff6d00 99%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffbd27', endColorstr='#ff6d00', GradientType=0);
}
.material_checkbox {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-justify-content: flex-start;
  -moz-justify-content: flex-start;
  -ms-justify-content: flex-start;
  -o-justify-content: flex-start;
  justify-content: flex-start;
  position: relative;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.material_checkbox .checkbox {
  position: relative;
  cursor: pointer;
  margin-right: 8px;
  border-radius: 0;
}
.material_checkbox .checkbox:before {
  content: "";
  position: absolute;
  left: 0;
  z-index: 1;
  width: 10px;
  height: 10px;
  border: 2px solid #363636;
  border-radius: 0;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
.material_checkbox .checkbox:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  background: #f2f2f2;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  cursor: pointer;
}
.material_checkbox .checkbox:checked:before {
  height: 6px;
  border-color: #ffbd27;
  border-top-style: none;
  border-right-style: none;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
.material_radio input[type="radio"] {
  display: none;
}
.material_radio input[type="radio"] + label {
  cursor: pointer;
}
.material_radio input[type="radio"] + label::before {
  transition: all 250ms cubic-bezier(0.4, 0.25, 0.3, 1);
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #363636;
  border: 0px solid #363636;
  font-size: 0;
  position: absolute;
  bottom: 10px;
  left: 10px;
  transform: translate(-50%, 50%);
}
.material_radio input[type="radio"] + label::after {
  transition: all 250ms cubic-bezier(0.4, 0.25, 0.3, 1);
  content: "";
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: #363636;
  position: absolute;
  bottom: 10px;
  left: 10px;
  transform: translate(-50%, 50%);
}
.material_radio input[type="radio"]:checked + label::before {
  background-color: transparent;
  width: 16px;
  height: 16px;
  border-width: 2px;
}
.material_radio input[type="radio"]:checked + label::after {
  width: 8px;
  height: 8px;
}
.noScrollRow {
  /* Works on Firefox */
  scrollbar-width: 0;
  scrollbar-color: transparent;
  /* Works on Chrome, Edge, and Safari */
}
.noScrollRow::-webkit-scrollbar {
  height: 0px;
}
.noScrollRow::-webkit-scrollbar-track {
  background: transparent;
}
.noScrollRow::-webkit-scrollbar-thumb {
  background-color: transparent;
}
.op_avatar_w:before {
  opacity: 1 !important;
  visibility: visible !important;
}
.op_avatar_w .windows_content {
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-transform: translateY(0) !important;
  -moz-transform: translateY(0) !important;
  -o-transform: translateY(0) !important;
  transform: translateY(0) !important;
}
/***** 限制 z-index *****/
.picker {
  z-index: 998 !important;
}
/***** menu樣式 *****/
#avatar_windows {
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: 999;
}
#avatar_windows:before {
  content: "";
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
#avatar_windows .windows_content {
  position: absolute;
  background: rgb(255, 255, 255);
  width: 348px;
  height: max-content;
  font-size: 14px;
  border-radius: 10px;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  overflow: hidden;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
#avatar_windows .windows_content .close_btn {
  position: absolute;
  right: 15px;
  top: 15px;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
}
#avatar_windows .windows_content .close_btn:hover {
  color: rgb(255, 189, 39);
}
#avatar_windows .windows_content header {
  position: relative;
  font-size: 20px;
  padding: 24px 0 30px 24px;
  z-index: 1;
  font-weight: bold;
}
#avatar_windows .windows_content .msg .btn_style {
  flex: 1;
  cursor: pointer;
  text-align: center;
  padding: 8px 15px;
  border-radius: 10px;
  display: block;
  margin: 15px auto;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
#avatar_windows .windows_content .msg .change_avatar {
  background: rgba(255, 189, 39, 0.7);
  color: rgb(255, 255, 255);
  width: fit-content;
  min-width: 30px;
}
#avatar_windows .windows_content .msg .change_avatar:hover {
  background: rgb(255, 189, 39);
}
#avatar_windows .windows_content .msg .delete_avatar {
  width: fit-content;
  color: rgb(140, 140, 140);
  min-width: 30px;
}
#avatar_windows .windows_content .msg .delete_avatar:hover {
  color: rgb(0, 0, 0);
}
#avatar_windows .windows_content .input_area,
#avatar_windows .windows_content .croppie_area {
  display: none;
}
#avatar_windows .windows_content .btn_group {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-justify-content: flex-end;
  -moz-justify-content: flex-end;
  -ms-justify-content: flex-end;
  -o-justify-content: flex-end;
  justify-content: flex-end;
  margin: 30px 24px 24px 0;
  display: none;
}
#avatar_windows .windows_content .btn_group .btn_style {
  cursor: pointer;
  text-align: center;
  padding: 8px 15px;
  border-radius: 10px;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
#avatar_windows.front {
  height: 120%;
  top: -55px;
}
/***** 更換頭像視窗樣式 *****/
.change_avatar_style .windows_content {
  width: 400px;
  height: 500px;
}
.change_avatar_style .windows_content .msg .btn_style {
  display: none !important;
}
.change_avatar_style .windows_content .croppie_area {
  display: block !important;
  height: fit-content;
}
.change_avatar_style .windows_content .btn_group {
  display: flex !important;
}
.change_avatar_style .windows_content .btn_group .confirm {
  background: rgba(255, 189, 39, 0.6);
  color: rgb(255, 255, 255);
  width: fit-content;
  min-width: 30px;
}
.change_avatar_style .windows_content .btn_group .confirm:hover {
  background: rgba(255, 189, 39, 0.8) !important;
}
.change_avatar_style .windows_content .btn_group .refuse {
  width: fit-content;
  min-width: 30px;
  margin-right: 10px;
  color: rgb(140, 140, 140);
}
.change_avatar_style .windows_content .btn_group .refuse:hover {
  color: rgb(0, 0, 0);
}
@media (max-width: 580px) {
  .change_avatar_style .windows_content {
    width: 298px !important;
  }
}
@media (max-width: 320px) {
  #avatar_windows .windows_content {
    width: 308px;
  }
  #avatar_windows .windows_content header {
    padding: 45px 10px 16px;
  }
  #avatar_windows.front {
    top: -57px;
  }
  #avatar_windows.change_avatar_style .windows_content {
    width: 100vw !important;
    height: 100vh;
    border-radius: 0;
  }
  #avatar_windows.change_avatar_style .windows_content header {
    padding: 45px 10px 16px;
  }
  #avatar_windows.change_avatar_style .windows_content .croppie_area {
    height: unset;
  }
  #avatar_windows.change_avatar_style .windows_content .btn_group {
    margin: 16px 10px auto;
  }
}
