@import './vars.css';

/*ЗАГОЛОВКИ*/
.heading-2 {
  line-height: 1em;
  font-weight: 500;
}

body h1 {
  font-size: 2em;
}

body h2 {
  font-size: 1.5em;
}

body h3 {
  font-size: 1.3em;
}

body h4 {
  font-size: 1em;
}

body h1,
body h2,
body h3 {
  font-weight: 500;
}

body h4,
body h5,
body h6 {
  font-weight: 400;
}

body ul {
  list-style: disc;
}

body ol {
  list-style: decimal;
}

ol > li > ul {
  margin-left: 24px;
}

/*ИНПУТ*/
input {
  outline: none;
}

input:-moz-focusring {
  outline: none;
}

.input {
  border: 1px solid var(--line-primary);
  border-radius: 14px;
}

.input:focus {
  border: 1px solid var(--base-blue);
  border-radius: 14px;
  color: var(--black);
  font-size: 14px;
  padding: 10px 22px;
}

/*КНОПКИ*/
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-primary {
  background-color: var(--base-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--dark-blue);
}

.btn-accent {
  background-color: var(--base);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--base-dark);
}

.btn-outlined {
  border: 1px solid var(--line-primary);
  color: var(--black);
  border-radius: 14px;
}

.btn-outlined:hover {
  color: var(--base-blue);
  border-color: var(--border-hover);
}

.btn-outlined-light {
  border: 1px solid var(--white);
  color: var(--white);
}

.btn-outlined-light:hover {
  background-color: var(--white);
  color: var(--base);
}

.btn-outlined-light img.hover-btn {
  display: none;
}

.btn-outlined-light:hover img.current-btn {
  display: none;
}

.btn-outlined-light:hover img.hover-btn {
  display: block;
}

.btn-filled:hover {
  background: var(--dark-blue) !important;
  border-color: var(--dark-blue) !important;
  transition: background 0.25s ease-out;
}

.btn-filled:active {
  background: var(--tertiary) !important;
  border-color: var(--tertiary) !important;
}

.btn-filled {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: var(--blue) !important;
  border: 1px solid var(--blue) !important;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 13px 2%;
  transition: background 0.25s ease-out;
}

/*ССЫЛКИ*/
.link-primary {
  color: var(--base-blue);
}

.link-primary:hover {
  color: var(--dark-blue);
}

.search_category-btn {
  background: var(--main);
  padding: 10px 15px;
  border-radius: 1000px;
}

/*ТЕГИ*/
.tag {
  z-index: 10;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
  padding: 3px;
  border-radius: 6px;
  color: var(--white);
}

.tag-hot {
  display: flex;
  border-radius: 100%;
  background-color: var(--base);
}

.tag-hot::before {
  content: '';
  width: 15px;
  height: 15px;
  background: url('../images/icons/clock-white.svg') no-repeat;
}

.tag-match {
  display: none;
  background-color: var(--base);
}

.tag-sale {
  display: none;
  display: flex;
  gap: 4px;
  background-color: var(--base);
}

.tag-trend {
  display: none;
  background-color: var(--base-blue);
}

.tag-top {
  display: none;
  background-color: var(--base-orange);
}

.tag-new {
  display: none;
  background-color: var(--base-green);
}

.tag-only-here {
  display: none;
  background-color: var(--black);
  text-transform: none;
  border-radius: 15px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 4px;
}

.tab-name {
  padding: 5px 12px;
  border-radius: 25px;
  color: var(--secondary);
  cursor: pointer;
}

.tab-name-active {
  background-color: var(--black);
  color: var(--white);
}

/*стилизация скроллбара*/
::-webkit-scrollbar {
  width: 10px;
  height: 3px;
  background-color: #ffffff;
}

::-webkit-scrollbar-thumb {
  height: 2px;
  background-color: var(--line-primary);
  border-radius: 16px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  display: none !important;
}

.promocode-badge {
  display: flex;
  margin-left: 12px;
  background: var(--base);
  border-radius: 7px;
  align-items: center;
  position: relative;
  color: white;
  width: auto;
  height: 32px;
}

.promocode-badge::before {
  content: url('../images/icons/salesIcon.svg');
  position: absolute;
  left: -7px;
}

.promocode-badge::after {
  content: '';
  position: absolute;
  background-color: var(--white);
  width: 10px;
  height: 10px;
  right: -5px;
  border-radius: 50%;
}

/* Оверлей модалок */
.overlay {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 20;
  transition: 0.3s all;
}

.m-modal.active,
.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* MODALS */
.m-modal {
  /* Скрываем окна  */
  opacity: 0;
  visibility: hidden;
  position: fixed;
  z-index: 40;
  bottom: 0;
  transition: 0.3s all;
  background-color: var(--white);
}

/* RADIO */

/* для элемента input c type="radio" */
.m-radio {
  position: absolute;
  z-index: -1;
  opacity: 0;
  z-index: 20;
}

/* для элемента label связанного с .custom-radio */
.m-radio + label {
  display: inline-flex;
  align-items: center;
  user-select: none;
}

/* создание в label псевдоэлемента  before со следующими стилями */
.m-radio + label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  flex-grow: 0;
  background-color: #f3f3f3;
  border-radius: 50%;
  margin-right: 0.5em;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50% 50%;
}

/* стили при наведении курсора на радио */
.m-radio:not(:disabled):not(:checked) + label:hover::before {
  border-color: var(--base-blue);
}

/* стили для активной радиокнопки (при нажатии на неё) */
.m-radio:not(:disabled):active + label::before {
  background-color: var(--base-blue);
  border-color: var(--base-blue);
}

/* стили для радиокнопки, находящейся в фокусе и не находящейся в состоянии checked */
.m-radio:focus:not(:checked) + label::before {
  border-color: var(--base-blue);
}

/* стили для радиокнопки, находящейся в состоянии checked */
.m-radio:checked + label::before {
  border-color: var(--base-blue);
  background-color: var(--base-blue);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* стили для радиокнопки, находящейся в состоянии disabled */
.m-radio:disabled + label::before {
  background-color: #e9ecef;
}

/* CHECKBOX */

.m-checkbox {
  position: absolute;
  z-index: -1;
  opacity: 0;
  z-index: 20;
}

.m-checkbox + label {
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.m-checkbox + label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  flex-grow: 0;
  background-color: #f3f3f3;
  border-radius: 6px;
  margin-right: 0.5em;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50% 50%;
}

.m-checkbox.error + label::before {
  border: 1px solid var(--critic);
}

.m-checkbox:checked + label::before {
  border-color: var(--base);
  background-color: var(--base);
  background-image: url('../images/icons/checked-icon.svg');
}

/* стили при наведении курсора на checkbox */
.m-checkbox:not(:disabled):not(:checked) + label:hover::before {
  border-color: #adb5bd;
  cursor: pointer;
}

/* стили для активного состояния чекбокса (при нажатии на него) */
.m-checkbox:not(:disabled):active + label::before {
  background-color: var(--hover-main);
  border-color: var(--hover-main);
}

/* стили для чекбокса, находящегося в фокусе и не находящегося в состоянии checked */
.m-checkbox:focus:not(:checked) + label::before {
  border-color: var(--secondary);
}

/* стили для чекбокса, находящегося в состоянии disabled */
.m-checkbox:disabled + label::before {
  background-color: #e9ecef;
}

/* SELECTOR */
.m-select {
  display: flex;
  align-items: center;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  color: #0d0c1a;
  font-weight: 500;
  width: 100%;
  border: 1px solid #e0e0e5;
  background: url('../images/icons/arrowDownSelect.svg') no-repeat 95%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.share-select .m-select {
  display: flex;
  align-items: center;
  border-radius: 14px;
  padding: 10px;
  background: none;
  width: 100%;
  border: 1px solid #e0e0e5;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.selector-wrapper {
  width: 100%;
}

.content {
  display: flex;
  width: 100%;
  padding: 12px 8px;
  margin-top: 4px;
  background: #fff;
  box-shadow: 0px 6px 20px rgb(0 0 0 / 8%);
  border-radius: 8px;
}

.content li {
  padding: 10px 12px;
}

.content li:hover {
  background: var(--blue25);
  border-radius: 8px;
  cursor: pointer;
}

.options {
  width: 100%;
}

@media (max-width: 800px) {
  .m-select {
    padding: 8px;
  }
}

.m-select::-ms-expand {
  display: none;
}

.m-select:hover {
  cursor: pointer;
}

.m-select option {
  font-weight: normal;
}

*[dir='rtl'] .m-select,
:root:lang(ar) .m-select,
:root:lang(iw) .m-select {
  background-position: left 0.7em top 50%, 0 0;
  padding: 0.6em 0.8em 0.5em 1.4em;
}

.link {
  color: var(--base-blue);
}

.devide-border {
  border-bottom: 1px solid #eeeff1;
}

/* INPUT TEXT */
.error-text {
  color: #9a9aa0;
  font-size: 12px;
  font-weight: 500;
}

.input-box .input-1.error {
  border-color: var(--critic) !important;
  outline: none !important;
}

.input-box .input-1.error-field {
  border-color: var(--critic) !important;
  outline: none !important;
}

.input-box .input-label.error {
  color: var(--critic);
}

.input-text ~ .label {
  color: #9a9aa0;
  font-size: 14px;
  font-weight: 500;
  position: absolute;
  transition: 0.2s ease all;
  top: 18px;
  left: 20px;
}

.input-text:focus ~ .label,
.input-text:not(:placeholder-shown) ~ .label {
  display: block;
  position: absolute;
  top: 8px;
  left: 15px;
  color: #9a9aa0;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
}

.input-text[type='tel']:placeholder-shown:hover ~ .label {
  display: none;
}

.input-text {
  position: relative;
  background: #f5f5f6;
  border-radius: 4px;
  padding: 6px;
  font-size: 14px;
  font-weight: 500;
  font-feature-settings: 'pnum' on, 'lnum' on;
  width: 100%;
}

/* PASSWORD */

.m-password {
  position: relative;
}

.m-password input {
  background: #f5f5f6;
  font-size: 14px;
  font-weight: 500;
  font-feature-settings: 'pnum' on, 'lnum' on;
  width: 100%;
  padding: 16px 18px;
  border-radius: 8px;
}

.m-password-control {
  position: absolute;
  top: 20px;
  right: 6px;
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('/resources/beautery/images/icons/password-glass.svg') 0 0
    no-repeat;
}

.m-password input.error {
  background: #fff0f0;
  color: #ff0000 !important;
  outline: none !important;
}

.m-password-control.view {
  background: url('/resources/beautery/images/icons/password_glass_hide.svg') 0
    0 no-repeat;
}

.error-text {
  color: #9a9aa0;
  font-size: 12px;
  font-weight: 500;
}

input.error {
  border-color: var(--critic);
}

/* Hide input tel mask on hover */
.tel-mask::-webkit-input-placeholder {
  color: transparent;
}

.tel-mask:-moz-placeholder {
  /* Firefox 18- */
  color: transparent;
}

.tel-mask::-moz-placeholder {
  /* Firefox 19+ */
  color: transparent;
}

.tel-mask:-ms-input-placeholder {
  color: transparent;
}

#modal-change-city-search.error {
  border-color: #ff6363;
}

.select-city .select-radio-round {
  transition: all 200ms ease;
}

.select-city .select-radio-round.active,
.select-city:hover .select-radio-round {
  background-color: #3f8bff;
}

.select-city .select-radio-round.active span,
.select-city:hover .select-radio-round span {
  display: block;
}

/*Min height in prooduct card swiper*/
.prodName {
  min-height: 44px;
}

@media (max-width: 744px) {
  .prodName {
    min-height: 32px;
  }
}

/* Width in product card swiper*/
.responsive-slide-in-7 {
  width: calc((100% - 96px) / 7);
}

.responsive-slide-in-6 {
  width: calc((100% - 80px) / 6);
}

.responsive-slide-in-5,
.responsive-slide-in-banner {
  width: calc((100% - 64px) / 5);
}

@media (max-width: 1439px) {
  .responsive-slide-in-7,
  .responsive-slide-in-6 {
    width: calc((100% - 64px) / 5);
  }

  .responsive-slide-in-5 {
    width: calc((100% - 48px) / 4);
  }

  .responsive-slide-in-banner {
    width: calc((100% - 24px) / 3);
  }
}

@media (max-width: 1023px) {
  .responsive-slide-in-7,
  .responsive-slide-in-6 {
    width: calc((100% - 48px) / 4);
  }

  .responsive-slide-in-5 {
    width: calc((100% - 24px) / 3);
  }

  .responsive-slide-in-banner {
    width: calc((100% - 12px) / 2);
  }
}

@media (max-width: 744px) {
  .responsive-slide-in-7,
  .responsive-slide-in-6,
  .responsive-slide-in-5 {
    width: calc((100% - 24px) / 3);
  }
}

@media (max-width: 679px) {
  .responsive-slide-in-7,
  .responsive-slide-in-6,
  .responsive-slide-in-5 {
    width: calc((100% - 12px) / 2);
  }
}

/* Toastify */
.toastify {
  background: #fff;
  color: #757575;
  box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.1), 0 2px 15px 0 rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  padding: 18px 30px 18px 50px;
  max-width: 320px;
}

.toastify:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 15px;
  width: 25px;
  height: 25px;
  transform: translateY(-50%);
}

.toastify .progress-bar {
  position: absolute;
  width: auto;
  left: 0;
  bottom: 0;
  height: 5px;
  border-radius: 0 0 10px 10px;
  animation-name: toastAnimation;
}

.toast-close {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #757575;
}

.toast__success:before {
  content: '';
  background: url('../images/icons/success-round-fill.svg');
  background-size: cover;
}

.toast__success .progress-bar {
  background-color: #07bc0c;
}

.toast__error:before {
  content: '';
  background: url('../images/icons/dangerRoundRed.svg');
  background-size: cover;
}

.toast__error .progress-bar {
  background-color: var(--critic);
}

.toast__info {
  padding-left: 18px;
}

.toast__info .progress-bar {
  background-color: #65a2ff;
}

@keyframes toastAnimation {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

.dropdown-content-return {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

.dropdown-content-return.open {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.5s ease-in, opacity 0.5s ease-in;
}

.dropdown-content-return.hidden {
  max-height: 0;
  opacity: 0;
}

.deliveryPrice {
  display: flex;
  padding: 4px 6px;
  justify-content: center;
  align-items: center;
  background: #e7f1ff;
  border-radius: 8px;
}
.landing-red-btn {
  position: relative;
  display: inline-block;
  padding: 3px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  border: none;
  border-radius: 1000px;
  background: linear-gradient(97.25deg, #ffbebe 4.06%, #ff6363 9.17%);
  cursor: pointer;
}

.landing-red-btn .inner {
  position: relative;
  padding: 12px 30px;
  border-radius: 1000px;
  background: linear-gradient(
    100.61deg,
    #fa6370 41.09%,
    #f87681 66.33%,
    #fe6270 85.69%
  );
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#FMCG .swiper-slide {
  height: auto !important;
}

.network-table .left-column {
  background-color: #fafafa;
  color: #6e6d76;
  width: 50%;
}

.network-table .right-column {
  background-color: #e7f1ff;
  color: #3f8bff;
  width: 50%;
}

.accordion {
  border: 4px solid #1d77ff4d;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
}

.accordion-header {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.accordion-content {
  display: none;
  background-color: #fff;
}

.accordion-content .submenu {
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
  border-radius: 16px;
}

.submenu-header {
  cursor: pointer;
  background-color: #f9f9f9;
  border-radius: 3px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.submenu-content {
  display: none;
  background-color: #f9f9f9;
}

.show {
  display: flex;
}

.icon {
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
}

.icon-open {
  background-image: url('/resources/beautery/images/landing/for-arbitrations/icons/open.svg');
}

.icon-close {
  background-image: url('/resources/beautery/images/landing/for-arbitrations/icons/close.svg');
}

.icon-plus {
  background-image: url('/resources/beautery/images/landing/for-arbitrations/icons/plus.svg');
}

.icon-minus {
  background-image: url('/resources/beautery/images/landing/for-arbitrations/icons/minus.svg');
}

.cityAds-banner {
  background: url('/resources/beautery/images/landing/for-arbitrations/banner-dropdown.png');
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dot {
  display: block;
  border-radius: 9999px;
  width: 4px;
  height: 4px;
  background: #78777f;
}

.landings-badges {
  position: absolute;
  top: 137px;
}
