/*!
Theme Name: mws
Author: Mikita Chyzhyk
Author URI: https://github.com/mikitachyzhyk
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mws

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

mws is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/* Social widget */

.social-widget-wrapper {
  display: flex;
  flex-direction: row-reverse;
}
/* Мобильные: вернуть фото под H1 (раньше это делал дубль-блок) */
@media (max-width: 767px) {
  .main-banner .row > .main-banner-col-left,
  .main-banner .row > .main-banner-col-right { display: contents; }
  .main-banner .subtitle           { order: 1; }
  .main-banner .main-banner-title  { order: 2; }
  .main-banner .banner-image-block { order: 3; }
  .main-banner .form-wrapper       { order: 4; }
  .main-banner .banner-info-block  { order: 5; }
  .main-banner .banner-stats-block { order: 6; }

  .calculator-section .d-flex { flex-direction: column; }
  .calculator-block-image     { order: -1; }
}

/* Заголовки, ставшие h3 — убрать дефолтные отступы браузера */
h3.accordion-item-header,
h3.tariff-card-title,
h3.custom-card-title,
h3.h4 { margin: 0; }
.social-widget {
  position: fixed;
  z-index: 10;
  bottom: 15px;
  display: inline-flex;
  flex-direction: column;
  padding: 15px 20px;
  background: white;
  border: 1px solid #363434;
  border-radius: 15px;
  box-shadow: 0 15px 15px 0 rgba(30, 30, 30, 0.05);
}
.social-widget__title {
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}
.social-widget__list {
  display: flex;
  justify-content: center;
}
.social-widget__list a:not(:last-child) {
  margin-right: 18px;
}
.social-widget__list a img {
  display: block;
  width: 32px;
  height: auto;
  margin: 0 !important;
}
@media (min-width: 768px) {
  .social-widget {
    bottom: 30px;
  }
}

/* LuckyWP Cookie Notice */

.lwpcngNoticeBar.lwpcngNotice-sticked {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 100%;
  max-width: min(90%, 850px);
}
.lwpcngNoticeBar-bottom.lwpcngNotice-sticked {
  bottom: 20px;
}
.lwpcngNotice-light {
  border: none;
  background: white;
}
.lwpcngNotice {
  display: flex;
  gap: 16px;
  padding: 36px 24px;
  font-family: inherit;
  font-size: 15px;
  line-height: 21px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
}
.lwpcngNoticeBar {
  text-align: left;
}
.lwpcngNotice_message {
  margin: 0;
  color: #605f5f;
}
.lwpcngNotice_message a,
.lwpcngNotice_message a:visited {
  color: #698bd6;
}
.lwpcngNotice_message a:hover {
  color: #d6b469;
}
.lwpcngNoticeBar .lwpcngNotice_buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lwpcngNotice_accept,
.lwpcngNotice_reject {
  margin: 0;
  text-align: center;

  box-shadow: 0 5px 5px 0 #e8e8e8;
  transition: 0.3s;
  font-weight: 700;
}
.lwpcngNotice_accept {
  padding: 8px 20px;
}
.lwpcngNotice_reject {
  padding: 7px 19px;
}
.lwpcngNotice-light .lwpcngNotice_accept {
  background-color: #f94551;
  border: none;
  color: #fff;
}
.lwpcngNotice-light .lwpcngNotice_accept:hover {
  background-color: #ee1221;
}
.lwpcngNotice-light .lwpcngNotice_reject {
  background-color: transparent;
  border: 1px solid #605f5f;
  color: #605f5f;
}
.lwpcngNotice-light .lwpcngNotice_reject:hover {
  background-color: #363434;
  border-color: #363434;
  color: #fff;
}
.lwpcngNotice__custom-title {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: bold;
  color: #363434;
}
.lwpcngNotice__custom-close {
  position: absolute;
  padding: 0;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  transition: 0.3s;
}
.lwpcngNotice__custom-close:hover {
  background: rgba(0, 0, 0, 0.08);
}
@media (max-width: 767.98px) {
  .lwpcngNotice {
    flex-direction: column;
  }
}
@media (min-width: 768px) {
  .lwpcngNotice_buttons {
    margin-top: 24px;
  }
}

/* WPCF7 */

.wpcf7-acceptance .wpcf7-list-item {
  margin: 15px 0 0;
  font-size: 12px;
  color: #363434;
}
.wpcf7-acceptance .wpcf7-list-item a {
  color: #698bd6;
}
.wpcf7-acceptance .wpcf7-list-item .wpcf7-list-item-label {
  line-height: 19px;
}
.wpcf7-acceptance .wpcf7-list-item > label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}
.wpcf7-acceptance .wpcf7-list-item > label > input[type='checkbox'] {
  flex-shrink: 0;
  width: 16px !important;
  height: 16px;
  margin: 1px 5px 0 0;
  accent-color: #f94551;
  cursor: pointer;
}
.wpcf7-acceptance .wpcf7-list-item > label > input[type='checkbox']:focus {
  outline: revert;
}
.callback-section-dark .wpcf7-form .wpcf7-acceptance {
  margin-left: -20px;
}
.callback-section-dark .wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
  margin-top: 15px;
  margin-bottom: 20px;
  max-width: 470px;
  color: white;
}
@media (max-width: 600px) {
  .wpcf7-acceptance .wpcf7-list-item {
    font-size: 11px;
  }
  .wpcf7-acceptance .wpcf7-list-item .wpcf7-list-item-label {
    line-height: 17px;
  }
  .callback-section-dark .wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
    max-width: 100%;
    margin-bottom: -20px;
  }
  .callback-section-light .wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
    margin-top: 0;
  }
}
@media (max-width: 1023.98px) {
  .callback-section-dark .wpcf7-form .wpcf7-acceptance {
    margin-left: 0;
  }
  .callback-section-dark .wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
    margin-top: 0;
  }
}
.callback-section-light .form-wrapper form p {
  box-shadow: none !important;
}
@media (min-width: 601px) {
  .callback-section-light
    .form-wrapper
    .wpcf7-form
    .wpcf7-acceptance
    .wpcf7-list-item {
    margin-left: -20px;
    max-width: 80%;
  }
}
.modal-dialog .wpcf7-acceptance .wpcf7-list-item {
  margin: 0 0 -20px;
}
.main-banner .form-wrapper form .main-banner-form-acceptance {
  margin: 0;
  width: 100%;
}
.main-banner .form-wrapper form .main-banner-form-acceptance .wpcf7-list-item {
  margin: 0;
}
@media (max-width: 768px) {
  .main-banner .form-wrapper form p:nth-of-type(5) {
    order: 5;
  }
}

.wpcf7 .wpcf7-submit:disabled {
  opacity: 0.5;
  pointer-events: none;
}
