@charset "UTF-8";

.modal.active,
.overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal.choice-method .wrap-btn-modal form .btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes anim-border {
  100% {
    transform: rotate(1turn);
  }
}

/* ===== Стили для Модалки ===== */
.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: 99990;
  transition: 0.3s all;
}

.btn.js-open-modal:hover {
  background-color: unset;
}

.modal {
  opacity: 0;
  visibility: hidden;
  width: 100%;
  max-width: 310px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  box-shadow: 0 3px 10px -0.5px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 15px;
  background-color: #fff;
  transition: 0.3s all;
  box-sizing: border-box;
  font-size: 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.modal.share .wrap-btn-modal {
  flex-direction: row;
  justify-content: flex-start;
}

.modal.share .wrap-btn-modal .btn {
  background-color: #edf5ff;
  border-radius: 10px;
  width: 50px;
  height: 50px;
  border: none;
}

.modal.object-info {
  background: #fafafa;
  box-shadow: 4px -4px 23px 0px rgba(0, 0, 0, 0.19);
  display: flex;
  flex-direction: column;
  max-width: 360px;
  font-size: 16px;
  padding: 20px 15px 40px;
  gap: 0;
  border-radius: 0;
}

.modal.object-info .place {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.modal.object-info .place img {
  width: 157px;
  height: 90px;
  object-fit: contain;
  border-radius: 15px;
}

.modal.object-info .place .wrap-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.modal.object-info .place .wrap-info .wrap-info-content {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  height: 100%;
}

.modal.object-info .place .wrap-info .btn {
  background-color: #EDF5FF;
  width: 50px;
  height: 50px;
}

.modal.object-info .place .wrap-info .btn img {
  max-width: 24px;
  width: 100%;
  height: 24px;
}

.modal.object-info .place .wrap-info .name,
.modal.object-info .place .wrap-info .distance {
  font-size: 16px;
  color: #111;
  text-align: left;
}

.modal.object-info .service-info {
  background-color: #fff;
  border-radius: 15px;
  border: 1px solid #efefef;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.modal.object-info .service-info h3 {
  color: #111;
  font-size: 16px;
}

.modal.object-info .service-info p {
  font-size: 14px;
  color: #111;
}

.modal.object-info .service-info .data {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  color: #2295ff;
}

.modal.object-info .wrap-btn-modal {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-direction: row;
}

.modal.object-info .wrap-btn-modal .btn {
  width: 165px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.object-info .wrap-btn-modal .btn.info {
  background-color: #d3e6ff;
}

.modal.object-info .wrap-btn-modal .btn.bag {
  background-color: #2295ff;
}

.modal.search-object {
  background-color: #f5f5f5;
  padding: 10px 0;
  font-size: 16px;
  color: #111;
  text-align: left;
  max-width: 360px;
  top: 70px;
  left: 59px;
  transform: translate(0, 0);
  overflow-y: scroll;
  max-height: 600px;
  border-radius: 0;
  gap: 0;
}

.modal.search-object .search-card {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  border-bottom: 1px solid #f0f0f0;
  background-color: #fff;
  gap: 10px;
  cursor: pointer;
}

.modal.search-object .search-card img {
  width: 24px;
  height: 24px;
}

.modal.search-object .search-card .wrapper-search-info {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal.search-object .search-card .wrapper-search-info .search-info {
  display: flex;
  flex-direction: column;
}

.modal.search-object .search-card .wrapper-search-info .search-info h3 {
  font-size: 16px;
  color: #8f97a7;
  font-weight: 400;
}

.modal.search-object .search-card .wrapper-search-info .search-info h3 span {
  color: #111;
}

.modal.search-object .search-card .wrapper-search-info .search-info .city {
  color: #8f97a7;
  font-size: 12px;
}

.modal.grade .wrap-btn-modal {
  align-items: flex-start;
  gap: 20px;
}

.modal.grade .wrap-btn-modal .name {
  font-size: 16px;
}

.modal.grade .wrap-btn-modal .name span {
  color: #939393;
}

.modal.grade .wrap-btn-modal .btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal.grade .wrap-btn-modal .btns .btn {
  display: flex;
  align-items: center;
  gap: 0 10px;
  color: #939393;
  background-color: unset;
  padding: 0;
}

.modal.grade .wrap-btn-modal .btns .btn img {
  max-width: 50px;
  width: 100%;
  height: 50px;
}

.modal.filter .row {
  text-align: start;
}

.modal.choice-method {
  gap: 20px;
}

.modal.choice-method .modal__title {
  text-align: left;
}

.modal.choice-method .modal__sub__titile {
  color: #939393;
  text-align: left;
}

.modal.choice-method .wrap-btn-modal {
  margin-top: 20px;
}

.modal.choice-method .wrap-btn-modal form {
  flex-direction: row;
}

.modal.choice-method .wrap-btn-modal form .btn {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  border-radius: 24px;
  border: 1px solid #2295ff;
}

.modal.choice-method .wrap-btn-modal form .btn:first-child {
  color: #2295ff;
  background-color: unset;
}

.modal.favorites-del {
  max-width: 360px;
}

.modal.favorites-del .modal__title {
  font-size: 20px;
  font-weight: 600;
}

.modal.favorites-del .service-info-modal {
  display: flex;
  gap: 10px;
}

.modal.favorites-del .service-info-modal img {
  max-width: 70px;
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.modal.favorites-del .service-info-modal .text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.modal.favorites-del .service-info-modal .text h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -moz-box;
  -moz-box-orient: vertical;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  box-orient: vertical;
  text-align: left;
  width: auto;
}

.modal.favorites-del .service-info-modal .text .info {
  display: flex;
  justify-content: space-between;
}

.modal.favorites-del .service-info-modal .text .info .price {
  color: #2295ff;
  font-weight: 500;
}

.modal.favorites-del .wrap-btn-modal {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.modal.favorites-del .wrap-btn-modal .btn {
  border: 1px solid #2295ff;
  line-height: 16px;
}

.modal.favorites-del .wrap-btn-modal .btn:first-child {
  background-color: unset;
  color: #2295ff;
}

.modal .modal__title {
  font-size: 20px;
  color: #111;
  padding-bottom: 10px;
  border-bottom: 1px solid #d9d9d9;
  word-break: break-all;
}
.modal.give-modal .modal__title {
  word-break: auto-phrase;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.modal input[type=text]#phoneInput {
  border: 1px solid #2295ff;
  border-radius: 10px;
  font-size: 18px;
  height: 40px;
  padding: 0 10px;
}

.modal .inp-auth {
  height: 42px;
  width: 100%;
  max-width: 250px;
  padding: 0 12px;
  border: none;
  background: #fff;
  border-radius: 10px;
  border: none;
  padding: 0 10px;
}

.modal .wrap-btn-modal {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.modal .wrap-btn-modal .btn {
  width: 100%;
  border-radius: 24px;
}

.modal .wrap-form-sum {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.modal .wrap-form-sum .inp-auth {
  border: 1px solid #2295ff;
}

.modal.info {
  gap: 20px 0;
}

.modal.info .modal__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #111;
  font-size: 20px;
  font-weight: 600;
}

.modal.info .modal__text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.modal.info .modal__text .title {
  color: #939393;
}

@media (max-width: 500px) {

  .modal.object-info,
  .modal.choice-method,
  .modal.favorites-del {
    max-width: 100%;
    top: auto;
    left: 0;
    bottom: 0;
    transform: translate(0, 0);
  }

  .modal.search-object {
    max-width: 100%;
    top: 70px;
    left: 0px;
    transform: translate(0, 0);
  }
}

.modal#search ~ .overlay {
  top: 70px;
}