.checkbox_kv {
    display: none;
}

.apartment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    position: relative;
    width: 100%;
    max-height: 55px;
    overflow: hidden;
    transition: max-height 0.5s ease; /* Плавный переход */
}

.apartment-grid label {
    position: relative;
    width: calc(100% / 8);
    height: 100%;
    background-color: #cbe6ff;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    aspect-ratio: 1 / 1;
    color: #306ea0;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #fff;
    transition: background-color 0.3s, border-color 0.3s;
}

.checkbox_kv:checked+label {
    background-color: #498dcc;
    /* Цвет фона, когда чекбокс отмечен */
    color: #fff;
}
.inputtextb2b {
    border-radius: 5px;
    margin-top: 0px;
    padding: 5px 8px;
    border: 0px solid #c9dceb;
    background: #f5f9fd;
    color: #7690a5;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    position: relative;
}

span.info {
    border-bottom-left-radius: 19px !important;
    background: linear-gradient(0deg, #1270a3, transparent) !important;
    border-bottom-right-radius: 19px !important;
}

.bbb {
    height: 0;
    padding: 12px 0 0 0;
}
.ccc {
    height: 75px !important;
    padding: 20px 5% 25px;
}
.ddd {
    height: 75px !important;
    padding: 20px 5% 25px;
}


a.tip {
    height: 60px !important;
    border: 1px #ffffff29 solid;
    width: 75% !important;
    backdrop-filter: blur(11px) !important;
    -webkit-backdrop-filter: blur(11px) !important;
    background: rgb(255 255 255 / 8%) !important;
    border-radius: 20px !important;
    font-weight: 100 !important;
    text-align: center !important;
    padding: 18px 10px !important;
    bottom: 12% !important;
    text-transform: none !important;
}

  @media (min-width: 785px) {
    a.tip {
      width: 35% !important;
    }
  }

  @media (min-width: 2000px) {
    a.tip {
      width: 20% !important;
    }
  }


span.time {
    display: none !important;
}

.back,
.close {
    color: white;
    text-decoration: none;
  }
  
  @media (max-width: 450px) {
    .tablediv-counter2, .tablediv-counter3, .tablediv-counter4, .tablediv-counter5 {
      margin-bottom: 70px !important;
    }
  }

.button-adsorder {
    height: 70px;
    float: left;
    position: fixed;
    top: 64px;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    background: transparent;
    background-image: linear-gradient(180deg, #cbe6ff 50%, #306ea0 50%);
    border-radius: 7px;
    padding: 10px 16px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: 0.3s;
    width: calc(94% + 5px);
    max-width: 600px;
    left: calc(3% - 2.5px);
    font-weight: 600 !important;
}

a.button-adsorder:hover {
    scale: 0.99;
}

tbody td {
    font-size: 12px;
}

thead th {
    font-size: 14px;
}

figure {
    float: left;
}


#message {
    width: calc(100% + 20px);
    max-height: 120px;
    overflow-y: hidden;
    resize: none;
    padding: 10px 50px 10px 15px;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
    position: relative;
    left: -10px;
    background: #ffffff;
    border-bottom: 1px solid #e8edf1;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    color: #54606B;
}

#message, .inputtextb2b {
  color: color: #54606B !important;
}
.div_with_shadow {
    float: left;
    width: 100%;
    display: block;
    height: 25px;
    box-shadow: 0px -7px 7px 0px #fff;
    overflow: visible;
    position: relative;
    cursor: pointer;
}
.div_with_shadow.open {
    box-shadow: none;
}

.apartment-grid.open {
    max-height: 550px; /* Открытое состояние */
    transition: max-height 0.5s ease; /* Плавный переход */
}
.message_block {
    height: 0; /* Начальная высота */
    opacity: 0; /* Начальная прозрачность */
    transition: height 0.5s ease, opacity 0.5s ease; /* Плавный переход */
    float: left;
    width: 100%;
    display: block;
    height: auto;
    position: relative;
}

.message_block.visible {
    height: fit-content; /* Динамическая высота для содержимого */
    opacity: 1; /* Полная видимость */
}
.apartment-grid label {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}

@keyframes pulse {
    0% {
      transform: scale(1);
      box-shadow: 0px 3px 10px 1px rgba(206, 217, 227, 0.7);
    }

    50% {
      transform: scale(1.05);
      box-shadow: 0px 3px 15px 3px rgba(206, 217, 227, 0.9);
    }

    100% {
      transform: scale(1);
      box-shadow: 0px 3px 10px 1px rgba(206, 217, 227, 0.7);
    }
  }

  .pulsar {
    animation: pulse 1.5s infinite ease-in-out;
  }

  /* Стиль для кнопки с анимацией вращения */
  @keyframes rotate {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(-360deg);
    }
  }

  /* Когда добавлен класс "loading", кнопка вращается */
  .refresh-btn.loading {
    animation: rotate 1s infinite;
    animation-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* Плавная анимация с ускорением/замедлением */
  }


  .account-info {
    display: grid;
    grid-template-columns: repeat(3, calc(100% / 3 - 10px));
    gap: 10px;
    padding: 0 5px 10px;
    background: transparent;
    border-radius: 20px;
    justify-content: center;
  }

  .info-card_post {
    background: #ffffff;
    border-radius: 7px;
    width: auto;
    height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .support-widget {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 45px;
    height: fit-content;
    z-index: 999;
  }
  .support-widget a {
    position: relative;
    right: 20px;
  }
  .support-widget p {
    color: #333;
    font-size: 10px;
    font-weight: 500;
    position: relative;
    right: 24.5px;
  }
  .info-title {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #54606B !important;
    margin-bottom: 0px !important;
  }

  .info-value {
    margin: 0;
    color: #54606B !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 0px !important;
  }
  .noinfo_img {
    width: 100px;
    position: absolute;
    top: 120px;
    left: calc(50% - 50px);
  }
  .form_meters {
    color: #7690a5 !important;
    border-radius: 8px;
    margin-top: 0px;
    margin-bottom: 10px;
    padding: 5px 8px;
    border: 0px solid #c9dceb;
    background: #fff;
    width: 100%;
    -webkit-appearance: none;
    outline: none;
    border: 1px solid #cfd1db;
    height: 40px;
  }
    .form_meters:focus {
      color: #364958 !important;
      border: 1px solid #427aa9;
    }

  .form_met p {
    margin-bottom: 0px;
  }

  .form_met p label {
    display: none;
  }

  .form_meters::placeholder {
    color: #7690a5 !important;
  }

  .popup {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .popup-content {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    width: 350px;
    text-align: center;
  }

  .popup-content h2 {
    color: #3A4754;
    font-size: 24px;
  }

  .popup-content p {
    color: #3A4754;
    font-size: 16px;
  }

  .close-btn {
    position: absolute;
    top: 8px;
    right: 18px;
    font-size: 25px;
    cursor: pointer;
    color: #3A4754;
  }

  #subscribe-btn,
  #close_provider_modal {
    margin-top: 0px;
    padding: 10px 20px;
    background-color: #4889bf;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
  }

  #subscribe-btn:hover {
    background-color: #004080;
  }

  .send_message_block {
    float: left;
    width: 100%;
    background: #fff;
    padding: 0px 10px 5px 10px;
    border-radius: 12px;
    margin-bottom: 15px;
  }
  
  .message_block {
    height: 0;
  }
  
  #message {
    height: fit-content;
    max-height: 120px;
  }
  
  .send_icon {
    cursor: pointer;
    top: -40px;
    width: 25px;
    height: 25px;
    float: right;
    position: relative;
    right: 5px;
  }
  
  .message_header {
    font-size: 14px;
    font-weight: 500;
    color: #54606B;
    padding-left: 5px;
    float: left;
    margin-top: 15px;
  }
  
  .apartment-grid {
    margin-top: 10px;
  }
  
  .checkbox_kv {
    margin-right: 5px;
  }
  
  .div_with_shadow {
    position: relative;
    text-align: center;
  }
  
  .svg-arrow {
    cursor: pointer;
    fill-rule: evenodd;
    clip-rule: evenodd;
  }



  /* .mini_widget {
    box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px, rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.04) 0px 6px 6px -3px, rgba(14, 63, 126, 0.04) 0px 12px 12px -6px, rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;
  } */

  .mini_widget_container {
    align-items: flex-end;
  }


  @media (max-width: 770px) {
    .formdescriptionmasterspan {
      width: 120px !important;
      display: block;
      float: left;
      line-height: 25px;
      margin-top: 10px;
      /* font-size: 20px; */
    }
  }

  #zuck-modal-content .story-viewer .slides .item > .media {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }

  .filter-prov {
    position: relative;
    width: 100%;
    float: left;
    display: flex;
    flex-direction: row;
    gap: 12px;
    height: 30px;
    overflow-x: hidden;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 5px;
    margin-top: 0;
    max-width: 300px;
  }
  .filter-prov-btn {
    width: fit-content;
    padding: 5px 10px;
    float: left;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    height: 30px !important;
    background: #fff;
    color: #333;
    transition: 0.3s;
    font-size: 12px;
    font-weight: 500;
    border: none;
  }
  .filter-prov-btn.active {
    background: #0068a0;
    color: #fff;
  }
  /* Кнопки + - */
  .form-check-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
  }
  
  .counter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    margin-left: 20px; /* Отступ слева, чтобы выровнять под текстом */
    outline: none;
    border: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .counter-fade-enter-active,
  .counter-fade-leave-active {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .counter-fade-enter-from,
  .counter-fade-leave-to {
    opacity: 0;
  }

  .counter-fade-enter-to,
  .counter-fade-leave-from {
    opacity: 1;
  }
    
  .counter-button-left:hover, .counter-button-right:hover {
    background-color: #0056b3;
  }
  
  .counter-button-left:active, .counter-button-right:active {
    background-color: #004085;
  }
  
  .counter-value {
    width: 40px;
    text-align: center;
    font-size: 12px;
    padding: 3px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }

  .counter-button-left {
    position: absolute;
    left: 50px;
    width: 23px;
    height: 23px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: -10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  .counter-button-right {
    width: 23px;
    height: 23px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    float: right;
    position: absolute;
    left: 100px;
    margin-left: -10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
  .category-servicebox {
    width: 100%;
    float: left;
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 2.5%;
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .servicecard {
    width: calc(97.5% / 2);
    float: left;
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    height: 110px;
    overflow: hidden;
    box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.05);
  }
  .header-servicecard, .body-servicecard, .footer-servicecard {
    width: 100%;
    position: relative;
    float: left;
    display: block;
  }
  .header-servicecard {
    width: calc(100% + 20px);
    height: fit-content;
    left: -10px;
    margin-bottom: 10px;
  }
  .body-servicecard {
    margin-bottom: 10px;
  }
  .footer-servicecard {
    width: 100%;
    height: fit-content;
    float: right !important;
    position: absolute;
    bottom: 0;
    left: 0px;
    border-radius: 0;
    overflow: hidden;
  }
  .header-servicecard p {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
    padding: 0 10px;
  }
  .subcategory-servicebox, .specialist-servicebox {
    padding: 0 !important;
  }
  .body-servicecard p {
    font-size: 10px;
    color: #333;
    font-weight: 300;
    line-height: 1.25;
    margin: 0;
  }
  #discounts_list_container {
    margin-top: 10px !important;
    font-size: 12px;
    background: #fdfdfd;
    padding: 7px 7px 0 7px;
    border-radius: 8px;
    width: 100%;
    border: 1px solid #ededed;
  }
  .footer-servicecard p {
    font-size: 12px;
    color: #4f5f77;
    font-weight: 400;
    line-height: 1.25;
    margin: 0;
    background: #eef3f9;
    padding: 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }
  .serviscard-svg {
    position: absolute;
    fill: #b3c3d9;
    opacity: 0.2;
    width: 66px;
    right: -7px;
    top: -4px;
    rotate: 10deg;
  }
  .icon-servicecard {
    width: 15px;
    fill: #b3c3d9;
  }
  .icon-prov {
    width: 20px;
    fill: #b3c3d9;
  }
  .custom-toggle {
    background: #c3d1e5 !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    padding-right: 300px !important;
  }
  .custom-toggle:before {
    border-radius: 8px !important;
  }
  .custom-toggle-label:before {
    transition: transform 300ms !important;
    border-radius: 8px !important;
    width: 220px !important;
}
.custom-toggle-checkbox:checked + .custom-toggle-label:before {
  transform: translateX(150px) !important;
  transition: transform 300ms linear;
}
.custom-toggle-label {
  width: 100% !important;
}
.custom-toggle-checkbox {
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100% !important;
  height: 100%;
  opacity: 0;
  z-index: 2;
}
.custom-toggle {
  background: #0098ec;
  border-radius: 30px;
  overflow: hidden;
  width: 100% !important;
  text-align: center;
  position: relative;
  padding-right: 120px;
  color: white;
  height: 30px;
  font-size: 12px;
  font-weight: 300;
  float: left;
  position: relative;
}
.custom-toggle {
  background: #c3d1e5 !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  padding-right: 100% !important;
}
.custom-toggle:before {
  content: "Без SIM" !important;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: calc(100% - 220px) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}
.custom-toggle-label {
  position: relative;
  padding: 5px 0;
  display: block;
  user-select: none;
  pointer-events: none;
  height: 30px;
  font-size: 12px;
}
.custom-toggle-label .custom-toggle-label-span {
  position: relative;
  width: 220px !important;
  float: left;
}
.custom-toggle-checkbox:checked + .custom-toggle-label:before {
  transform: translateX(100%) !important;
  background: #dd677a !important;
}
.device-scrollbar {
  position: relative;
  width: 105%;
  height: auto;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 0;
  padding-bottom: 15px;
  left: -2.5%;
}
.device-card {
  width: 290px;
  position: relative;
  display: flex;
  flex-direction: row;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  height: 65px;
  margin-right: 2.5%;
  margin-left: 2.5%;
  box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.05);
}
.device-card img {
  width: 55px;
  height: 55px;
  border-radius: 3px;
  margin-right: 10px;
}
.device-card p {
  font-size: 10px;
  font-weight: 400;
  color: #333;
  line-height: 1.15;
  width: 200px;
  padding: 3px;
}
.device-card a {
  text-decoration: none;
  color: #0068a0;
  font-size: 10px;
  font-weight: 500;
}