.emoji-mart,
.emoji-mart * {
  box-sizing: border-box;
  line-height: 1.15;
}

.emoji-mart {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 16px;
  display: inline-block;
  color: #222427;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  background: #fff;
}

.emoji-mart .emoji-mart-emoji {
  padding: 6px;
}

.emoji-mart-bar {
  border: 0 solid #d9d9d9;
}
.emoji-mart-bar:first-child {
  border-bottom-width: 1px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
.emoji-mart-bar:last-child {
  border-top-width: 1px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.emoji-mart-anchors {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0 6px;
  color: #858585;
  line-height: 0;
}

.emoji-mart-anchor {
  position: relative;
  display: block;
  flex: 1 1 auto;
  text-align: center;
  padding: 12px 4px;
  overflow: hidden;
  transition: color .1s ease-out;
}
.emoji-mart-anchor:hover,
.emoji-mart-anchor-selected {
  color: #464646;
}

.emoji-mart-anchor-selected .emoji-mart-anchor-bar {
  bottom: 0;
}

.emoji-mart-anchor-bar {
  position: absolute;
  bottom: -3px; left: 0;
  width: 100%; height: 3px;
  background-color: #464646;
}

.emoji-mart-anchors i {
  display: inline-block;
  width: 100%;
  max-width: 22px;
}

.emoji-mart-anchors svg {
  fill: currentColor;
  max-height: 18px;
}

.emoji-mart-scroll {
  overflow-y: scroll;
  height: 270px;
  padding: 0 6px 6px 6px;
  will-change: transform; /* avoids "repaints on scroll" in mobile Chrome */
}

.emoji-mart-search {
  margin-top: 6px;
  padding: 0 6px;
}
.emoji-mart-search input {
  font-size: 16px;
  display: block;
  width: 100%;
  padding: .2em .6em;
  border-radius: 25px;
  border: 1px solid #d9d9d9;
  outline: 0;
}

.emoji-mart-category .emoji-mart-emoji span {
  z-index: 1;
  position: relative;
  text-align: center;
  cursor: default;
}

.emoji-mart-category .emoji-mart-emoji:hover:before {
  z-index: 0;
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #f4f4f4;
  border-radius: 100%;
}

.emoji-mart-category-label {
  z-index: 2;
  position: relative;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.emoji-mart-category-label span {
  display: block;
  width: 100%;
  font-weight: 500;
  padding: 5px 6px;
  background-color: #fff;
  background-color: rgba(255, 255, 255, .95);
}

.emoji-mart-emoji {
  position: relative;
  display: inline-block;
  font-size: 0;
}

.emoji-mart-no-results {
  font-size: 14px;
  text-align: center;
  padding-top: 70px;
  color: #858585;
}
.emoji-mart-no-results .emoji-mart-category-label {
  display: none;
}
.emoji-mart-no-results .emoji-mart-no-results-label {
  margin-top: .2em;
}
.emoji-mart-no-results .emoji-mart-emoji:hover:before {
  content: none;
}

.emoji-mart-preview {
  position: relative;
  height: 70px;
}

.emoji-mart-preview-emoji,
.emoji-mart-preview-data,
.emoji-mart-preview-skins {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.emoji-mart-preview-emoji {
  left: 12px;
}

.emoji-mart-preview-data {
  left: 68px; right: 12px;
  word-break: break-all;
}

.emoji-mart-preview-skins {
  right: 30px;
  text-align: right;
}

.emoji-mart-preview-name {
  font-size: 14px;
}

.emoji-mart-preview-shortname {
  font-size: 12px;
  color: #888;
}
.emoji-mart-preview-shortname + .emoji-mart-preview-shortname,
.emoji-mart-preview-shortname + .emoji-mart-preview-emoticon,
.emoji-mart-preview-emoticon + .emoji-mart-preview-emoticon {
  margin-left: .5em;
}

.emoji-mart-preview-emoticon {
  font-size: 11px;
  color: #bbb;
}

.emoji-mart-title span {
  display: inline-block;
  vertical-align: middle;
}

.emoji-mart-title .emoji-mart-emoji {
  padding: 0;
}

.emoji-mart-title-label {
  color: #999A9C;
  font-size: 26px;
  font-weight: 300;
}

.emoji-mart-skin-swatches {
  font-size: 0;
  padding: 2px 0;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background-color: #fff;
}

.emoji-mart-skin-swatches-opened .emoji-mart-skin-swatch {
  width: 16px;
  padding: 0 2px;
}

.emoji-mart-skin-swatches-opened .emoji-mart-skin-swatch-selected:after {
  opacity: .75;
}

.emoji-mart-skin-swatch {
  display: inline-block;
  width: 0;
  vertical-align: middle;
  transition-property: width, padding;
  transition-duration: .125s;
  transition-timing-function: ease-out;
}

.emoji-mart-skin-swatch:nth-child(1) { transition-delay: 0s }
.emoji-mart-skin-swatch:nth-child(2) { transition-delay: .03s }
.emoji-mart-skin-swatch:nth-child(3) { transition-delay: .06s }
.emoji-mart-skin-swatch:nth-child(4) { transition-delay: .09s }
.emoji-mart-skin-swatch:nth-child(5) { transition-delay: .12s }
.emoji-mart-skin-swatch:nth-child(6) { transition-delay: .15s }

.emoji-mart-skin-swatch-selected {
  position: relative;
  width: 16px;
  padding: 0 2px;
}
.emoji-mart-skin-swatch-selected:after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  background-color: #fff;
  border-radius: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease-out;
}

.emoji-mart-skin {
  display: inline-block;
  width: 100%; padding-top: 100%;
  max-width: 12px;
  border-radius: 100%;
}

.emoji-mart-skin-tone-1 { background-color: #ffc93a }
.emoji-mart-skin-tone-2 { background-color: #fadcbc }
.emoji-mart-skin-tone-3 { background-color: #e0bb95 }
.emoji-mart-skin-tone-4 { background-color: #bf8f68 }
.emoji-mart-skin-tone-5 { background-color: #9b643d }
.emoji-mart-skin-tone-6 { background-color: #594539 }

.navmenu-fixed-right .input-group-btn .btn-default {
  height: 34px;
}

.navmenu-fixed-right .input-group-btn .glyphicon-search {
  top: 5px;
}

#react-search-lg .more-results {
  padding: 12px;
  text-align: center;
}

.nextpage {
    display: none;
}

textarea {
  resize: none;
}

a {
  cursor: pointer;
}

/* ＋更多的 dropdown, 因為 react 的關係, 所以不能用 '>' selector */
.open .react-more-dropdown-menu {
  display: block;
}

 .react-more-dropdown-menu li > a {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: normal;
  line-height: 1.75;
  color: #666;
  white-space: nowrap;
}

 .react-more-dropdown-menu li > a:hover,  .react-more-dropdown-menu > li > a:focus {
  text-decoration: none;
  color: #595959;
  background-color: #f9f9f9;
}

/* 分享到微信朋友圈 */
#modal-share-to-weixin img {
  margin: 0 auto;
}

#modal-share-to-weixin .modal-footer {
  text-align: left;
}

/* 短信验证码 */
.form-verifycode {
  display: inline;
  width: 100px;
}

/* 創意徵選上傳頁面欄位被移除時的 animation */
@keyframes fadeOutUp {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translate3d(0, -10%, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes playerFadoOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* 創意徵選頁面 新增 / 移除 欄位時使用 ReactCSSTransitionGroup 來做 animation */
.block-exit {
  -webkit-animation-duration: .25s;
  animation-duration: .25s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  animation-name: fadeOutUp;
}

.block-enter {
  -webkit-animation-duration: .25s;
  animation-duration: .25s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  animation-name: fadeInUp;
}

.dashed-block.disabled  {
  cursor: not-allowed;
  pointer-events: none;
  opacity: .65;
}

/* emoji picker related */
#comments-wrapper .media, #comments-wrapper .media-body {
   overflow: inherit;
}

.textarea {
  position: relative;
}

.emoji-picker-wrapper {
  position: absolute;
  top: 10px;
  right: 10px;
}

.emoji-picker-wrapper .glyphicon-smile {
  position: absolute;
  right: 0;
  font-size: 20px;
  cursor: pointer;
}


.emoji-mart {
  z-index: 99999;
  position: absolute;
  right: 30px;
}

.alert-social-auth.error {
  background-color: #f9f0f0;
  border-color: #f2dee1;
  color: #a94442;
}

/* .lazyload related */

.lazyload {
  transition: all .5s linear;
  filter: blur(50px);
}

.lazyloaded {
  filter: blur(0px);
}

/* 這個會害個人頁更換封面時版面爆炸，所以把它藏起來 */
.plupload {
  display: none !important;
}

/* 管理專輯 / 歌單內的歌曲移動時的 ghost element */
.sortable-ghost {
  opacity: 0;
}

/* 聊天室的訊息時間 */
.chat-page .container .chat-members .list-group a.list-group-item h4 small span {
  overflow: initial;
}

#verify-loading {
	display: none;
	width: 44px;
	height: 44px;
	background: transparent url(https://akstatic.streetvoice.com/asset/images/loading.gif) 50% 50% no-repeat;
  background-size: 100%;
}

/* for GTM, 加上這個防止事件沒有冒泡到 parent */
[data-ga-on="click"] *,
[data-ga-on="social"] * {
  pointer-events:none;
}

#react-player .btn-volume span {
  pointer-events: none;
}

#react-player .progress {
  cursor: pointer;
}

.geetest_holder {
  min-width: 238px !important;
}

@-webkit-keyframes detect-dom-insertion { from {opacity: 0.99;} to {opacity: 1;} }
@keyframes         detect-dom-insertion { from {opacity: 0.99;} to {opacity: 1;} }
/* {#id_region} {
  -webkit-animation-delay: 0s !important;
  -webkit-animation-name: detect-dom-insertion !important;
  -webkit-animation-duration: 1ms !important;
  -webkit-animation-play-state: running !important;
  animation-delay: 0s !important;
  animation-name: detect-dom-insertion !important;
  animation-duration: 1ms !important;
  animation-play-state: running !important;
} */

#id_region,
#captcha-box,
#manage_change_cellphone {
  animation-duration: .1s;
  animation-name: detect-dom-insertion;
}

.dropup .dropdown-toggle::after {
  border-top: .3em solid !important;
  border-right: .3em solid transparent !important;
  border-bottom: 0 !important;
  border-left: .3em solid transparent !important;
}

[data-google-query-id] {
  margin: 0 auto;
}

[data-google-query-id] [id^="google_ads_iframe"],
[data-google-query-id] [id^="google_ads_iframe"] iframe {
  max-width: 100% !important;
}

.qrcode-body img {
  margin: 0 auto;
}

.grecaptcha-badge {
  visibility: hidden;
}

.comment-relative {
  position: relative;
  z-index: 2;
}

/* Make clicks pass-through */
#nprogress {
  pointer-events: none;
}

#nprogress .bar {
  background: #ff595f;

  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;

  width: 100%;
  height: 2px;
}

/* Fancy blur effect */
#nprogress .peg {
  display: block;
  position: absolute;
  right: 0px;
  width: 100px;
  height: 100%;
  box-shadow: 0 0 10px #ff595f, 0 0 5px #ff595f;
  opacity: 1.0;

  -webkit-transform: rotate(3deg) translate(0px, -4px);
      -ms-transform: rotate(3deg) translate(0px, -4px);
          transform: rotate(3deg) translate(0px, -4px);
}

/* Remove these to get rid of the spinner */
#nprogress .spinner {
  display: block;
  position: fixed;
  z-index: 1031;
  top: 15px;
  right: 15px;
}

#nprogress .spinner-icon {
  width: 18px;
  height: 18px;
  box-sizing: border-box;

  border: solid 2px transparent;
  border-top-color: #ff595f;
  border-left-color: #ff595f;
  border-radius: 50%;

  -webkit-animation: nprogress-spinner 400ms linear infinite;
          animation: nprogress-spinner 400ms linear infinite;
}

.nprogress-custom-parent {
  overflow: hidden;
  position: relative;
}

.nprogress-custom-parent #nprogress .spinner,
.nprogress-custom-parent #nprogress .bar {
  position: absolute;
}

@-webkit-keyframes nprogress-spinner {
  0%   { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}
@keyframes nprogress-spinner {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
