.nvmed-delivery-open,
[data-nvmed-delivery-popup] {
  cursor: pointer;
}
.nvmed-delivery-modal-lock {
  overflow: hidden;
}
.nvmed-delivery-modal {
  position: fixed;
  inset: 0;
  z-index: 2147482400;
  display: none;
  font-family: inherit;
}
.nvmed-delivery-modal.is-open {
  display: block;
}
.nvmed-delivery-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 31, 39, .56);
  backdrop-filter: blur(2px);
}
.nvmed-delivery-modal__box {
  position: relative;
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 34px);
  overflow: auto;
  margin: 17px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(16, 31, 46, .28);
  color: #202a35;
}
.nvmed-delivery-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 34px 18px;
  border-bottom: 1px solid #edf1f5;
}
.nvmed-delivery-modal__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.02em;
}
.nvmed-delivery-modal__close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f5f8fb;
  color: #8b98a5;
  font-size: 30px;
  line-height: 36px;
  cursor: pointer;
}
.nvmed-delivery-modal__close:hover {
  background: #edf3f8;
  color: #344454;
}
.nvmed-delivery-modal__body {
  padding: 24px 34px 34px;
}
.nvmed-delivery-top {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px 170px;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}
.nvmed-delivery-field label {
  display: block;
  margin-bottom: 8px;
  color: #7d8894;
  font-size: 13px;
}
.nvmed-delivery-field input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  border: 1px solid #dbe4ec;
  border-radius: 10px;
  padding: 0 15px;
  font-size: 15px;
  outline: none;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.nvmed-delivery-field input:focus {
  border-color: #2f98dc;
  box-shadow: 0 0 0 4px rgba(47,152,220,.13);
}
.nvmed-delivery-cart-toggle {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  border: 1px solid #dbe4ec;
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  cursor: pointer;
  user-select: none;
}
.nvmed-delivery-cart-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nvmed-delivery-cart-toggle span {
  width: 34px;
  height: 20px;
  border-radius: 20px;
  background: #cfd8e3;
  position: relative;
  flex: 0 0 auto;
  transition: background .15s;
}
.nvmed-delivery-cart-toggle span:before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform .15s;
}
.nvmed-delivery-cart-toggle input:checked + span {
  background: #2f98dc;
}
.nvmed-delivery-cart-toggle input:checked + span:before {
  transform: translateX(14px);
}
.nvmed-delivery-cart-toggle b {
  font-size: 15px;
  font-weight: 600;
  color: #243242;
}
.nvmed-delivery-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.nvmed-delivery-city {
  border: 1px solid #dbe4ec;
  background: #fff;
  color: #263646;
  border-radius: 999px;
  padding: 9px 13px;
  line-height: 1;
  cursor: pointer;
  font-size: 14px;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.nvmed-delivery-city:hover,
.nvmed-delivery-city.is-active {
  border-color: #2f98dc;
  color: #167ec0;
  background: #eef8ff;
  box-shadow: 0 3px 10px rgba(47,152,220,.12);
}
.nvmed-delivery-mo {
  display: none;
  background: linear-gradient(180deg, #f3f9ff 0%, #ffffff 100%);
  border: 1px solid #d7eafa;
  border-radius: 16px;
  padding: 18px;
  margin: 0 0 20px;
}
.nvmed-delivery-mo.is-visible {
  display: block;
}
.nvmed-delivery-mo__title {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 5px;
  color: #203141;
}
.nvmed-delivery-mo__text {
  color: #71808f;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 14px;
}
.nvmed-delivery-mo__actions {
  display: grid;
  grid-template-columns: 1fr 185px 205px;
  gap: 12px;
  align-items: end;
}
.nvmed-delivery-btn {
  height: 48px;
  border: 0;
  background: #2f98dc;
  color: #fff;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.nvmed-delivery-btn:hover {
  background: #2289cb;
  box-shadow: 0 6px 16px rgba(47,152,220,.22);
}
.nvmed-delivery-btn--light {
  color: #197ebd;
  background: #eaf6ff;
  border: 1px solid #cfe9fb;
}
.nvmed-delivery-btn--light:hover {
  background: #dff1ff;
}
.nvmed-delivery-map-panel {
  display: none;
  margin-top: 14px;
}
.nvmed-delivery-map-panel.is-visible {
  display: block;
}
.nvmed-delivery-map {
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef3f7;
  border: 1px solid #dbe8f3;
}
.nvmed-delivery-map-status {
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #eef8ff;
  color: #4c657a;
  font-size: 14px;
}
.nvmed-delivery-map-status.is-error {
  background: #fff2f2;
  color: #b42318;
}
.nvmed-delivery-results {
  display: grid;
  gap: 12px;
}
.nvmed-delivery-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 2px;
}
.nvmed-delivery-summary div {
  border: 1px solid #e4ebf2;
  background: #f8fbfd;
  border-radius: 12px;
  padding: 12px 14px;
}
.nvmed-delivery-summary span {
  display: block;
  color: #7d8894;
  font-size: 12px;
  margin-bottom: 4px;
}
.nvmed-delivery-summary b {
  display: block;
  color: #243242;
  font-size: 15px;
  font-weight: 700;
}
.nvmed-delivery-service {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid #e1e8ef;
  border-radius: 14px;
  padding: 18px 20px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(30,45,60,.045);
}
.nvmed-delivery-service__title {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #202a35;
}
.nvmed-delivery-service__desc {
  margin-top: 6px;
  color: #7d8894;
  font-size: 14px;
  line-height: 1.4;
}
.nvmed-delivery-service__price {
  white-space: nowrap;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  color: #26323f;
  background: #f5f8fb;
  border-radius: 999px;
  padding: 10px 14px;
}
.nvmed-delivery-service.is-transport .nvmed-delivery-service__price {
  background: #fff7e6;
}
.nvmed-delivery-service.is-disabled {
  opacity: .62;
}
.nvmed-delivery-loading,
.nvmed-delivery-error,
.nvmed-delivery-empty {
  padding: 20px;
  border-radius: 14px;
  background: #f6f8fa;
  color: #687583;
  font-size: 15px;
}
.nvmed-delivery-error {
  background: #fff2f2;
  color: #b42318;
}
@media (max-width: 860px) {
  .nvmed-delivery-top,
  .nvmed-delivery-mo__actions,
  .nvmed-delivery-summary { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nvmed-delivery-modal__box { width: calc(100vw - 16px); margin: 8px auto; max-height: calc(100vh - 16px); border-radius: 12px; }
  .nvmed-delivery-modal__head { padding: 22px 18px 14px; }
  .nvmed-delivery-modal__body { padding: 18px; }
  .nvmed-delivery-modal__title { font-size: 24px; }
  .nvmed-delivery-map { height: 280px; }
  .nvmed-delivery-service { grid-template-columns: 1fr; }
  .nvmed-delivery-service__price { justify-self: start; font-size: 18px; }
}

.nvmed-delivery-field--city { position: relative; }
.nvmed-delivery-suggest {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid #dbe4ec;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(20,35,50,.16);
  padding: 6px;
}
.nvmed-delivery-suggest.is-visible { display: block; }
.nvmed-delivery-suggest-item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 9px;
  cursor: pointer;
  color: #263646;
  font-size: 14px;
}
.nvmed-delivery-suggest-item:hover {
  background: #eef8ff;
  color: #167ec0;
}

.nvmed-delivery-service.has-no-price { grid-template-columns: minmax(0,1fr); }
.nvmed-delivery-service.has-no-price .nvmed-delivery-service__main { padding-right: 0; }


.nvmed-delivery-service.is-info-price .nvmed-delivery-service__desc{color:#e22b2b;font-weight:600;line-height:1.35}.nvmed-delivery-service.is-info-price .nvmed-delivery-service__price{background:#fff5e2;color:#1d2733}.nvmed-delivery-service.has-no-price .nvmed-delivery-service__desc:empty{display:none}
