/* CAPTCHA */
.captcha-row {
  position: relative;
  max-width: 418px;
}
.captcha-row .captcha_input {
  bottom: 0;
  height: 59px;
  left: 216px;
  max-width: 184px;
  position: absolute;
  right: 0;
}
.captcha-row .captcha_input label.error {
  white-space: nowrap;
  top: -12px;
  z-index: 1;
}
.captcha-row .captcha_input input[name="captcha_word"] {
  bottom: 0;
  position: absolute;
}
.captcha-row .captcha_image {
  height: 37px;
  position: relative;
  width: 217px;
}
.captcha-row .captcha_image img {
  height: 37px;
  border: none;
  vertical-align: top;
  width: 100%;
  width: 180px;
}
.captcha_reload {
  border: 1px solid transparent;
  cursor: pointer;
  height: 35px;
  left: 179px;
  position: absolute;
  top: 0;
  width: 36px;
}
.captcha_reload::before,
.captcha_reload::after {
  content: "";
  display: block;
  position: absolute;
}
.captcha_reload::before {
  border-radius: 25px;
  height: 25px;
  left: 5px;
  top: 5px;
  width: 25px;
}
.captcha_reload::after {
  background: rgba(0, 0, 0, 0) url("images/icons_wish.png") repeat scroll -67px -82px;
  height: 13px;
  left: 10px;
  top: 11px;
  transition: background 0.7s ease-in-out 0s;
  width: 15px;
  color: #ffffff;
}
.captcha_reload:hover:before {
  background: #383838;
}
.captcha_reload.loading:after {
  -webkit-animation: spinner 0.5s linear infinite !important;
  animation: spinner 0.5s linear infinite !important;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
.captcha_reload:hover:after {
  -webkit-animation: spinner 0.5s ease-out 1;
  animation: spinner 0.5s ease 1;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
.captcha-row.b .captcha_input,
.captcha-row.b .captcha_image {
  height: 37px;
  left: inherit;
  margin: 0;
  max-width: inherit;
  position: relative;
  right: inherit;
}
.captcha-row.b .captcha_input label.error {
  top: -68px;
}
.captcha-row.b .captcha_image {
  margin-bottom: 9px;
}
.captcha-row .captcha_image .captcha_reload {
  right: 0;
  text-indent: -9999px;
}
.form .refresh a {
  display: none;
}
.captcha_reload.refresh {
  left: 202px;
  top: 8px;
}

.blog-comment-fields .captcha-row {
  display: flex;
  flex-wrap: wrap;
}
.blog-comment-fields .captcha-row > div + div {
  display: flex;
  align-items: flex-end;
}
.blog-comments div.blog-errors {
  margin-left: 0;
  margin-right: 0;
}
.blog-comment-fields .captcha-img {
  display: flex;
}
.blog-comment-fields .captcha_reload {
  position: relative;
  left: initial;
  top: initial;
  margin-left: 15px;
  display: block;
}

.popup .form-control.captcha-row label {
  margin-bottom: 20px;
}
.popup .captcha-row .captcha_image,
.popup .captcha-row .captcha_image img {
  height: 48px;
}
.popup .captcha_reload {
  top: 6px;
}
.popup .captcha-row .captcha_input {
  height: 46px;
  position: relative;
  width: 217px;
  left: 0;
}
.popup .captcha-row .captcha_image {
  bottom: 0;
  left: 195px;
  max-width: 184px;
  position: absolute;
  right: 0;
}

.form.inline .form-control.captcha-row label {
  margin-bottom: 20px;
}
.form.inline .captcha-row .captcha_image,
.form.inline .captcha-row .captcha_image img {
  height: 48px;
}
.form.inline .captcha_reload {
  top: 6px;
}
.form.inline .captcha-row .captcha_input {
  height: 37px;
  position: relative;
  width: 217px;
  left: 0;
}
.form.inline .captcha-row .captcha_image {
  bottom: 0;
  left: 216px;
  max-width: 184px;
  position: absolute;
  right: 0;
}


@media screen and (max-width: 767px),
  projection and (max-width: 767px),
  tv and (max-width: 767px),
  handheld and (max-width: 767px) {

    .form-control.captcha-row {
        display: flex;
        flex-direction: column;
      }
      .form-control.captcha-row .captcha_image {
        order: 2;
        position: relative !important;
        left: 0 !important;
        margin-top: 10px;
      }
      .pk-page .form-control.captcha-row {
        display: block;
      }
      .pk-page .form-control.captcha-row .captcha_image {
        position: absolute !important;
        left: initial !important;
        margin-top: 0;
      }

}