/* Общий overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Модальное окно */
.modal {
  background: #fff;
  border-radius: 10px;
  padding: 25px 20px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Кнопка закрытия */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #222;
}

/* Ошибки и валидация */
.form-error-banner {
  background: #ffeaea;
  color: #c00;
  border: 1px solid #ffb3b3;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
}

input.error {
  border-color: #d9534f !important;
  box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.15);
}

.contact-data-container {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: contactFadeIn 0.25s ease;
}

@keyframes contactFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-data-header {
  font-size: 1.15rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-data-header::before {
  content: "👤";
  font-size: 1.2rem;
}

.contact-field {
  margin-bottom: 16px;
}

.contact-label {
  display: block;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 10px 12px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-input:focus {
  outline: none;
  border-color: #007b74;
  box-shadow: 0 0 0 2px rgba(0, 123, 116, 0.15);
}

.contact-save-btn {
  display: block;
  width: 100%;
  background: #007b74;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 0;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  margin-top: 10px;
}

.contact-save-btn:hover {
  background: #005f59;
}

.contact-save-btn:active {
  transform: scale(0.98);
}

.order-comment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.order-comment-modal {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  width: 95%;
  max-width: 460px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  animation: commentSlideUp 0.25s ease;
}

@keyframes commentSlideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.order-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-comment-title {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #222;
}

.order-comment-close {
  background: transparent;
  border: none;
  color: #666;
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.order-comment-close:hover {
  color: #222;
}

.order-comment-textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 10px 12px;
  font-size: 0.95rem;
  resize: none;
  min-height: 90px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-comment-textarea:focus {
  outline: none;
  border-color: #007b74;
  box-shadow: 0 0 0 2px rgba(0, 123, 116, 0.2);
}

.order-comment-actions {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.order-comment-save {
  background: #007b74;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.order-comment-save:hover {
  background: #005f59;
}

.order-comment-save:active {
  transform: scale(0.98);
}

.delivery-date-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.delivery-date-modal {
  background: #fff;
  border-radius: 10px;
  padding: 25px 20px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: deliveryModalFade 0.25s ease;
}

@keyframes deliveryModalFade {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cont__bldb {
  font-size: 14px;
  line-height: 1.6;
  padding: 4px;
}

.cont__blh {
  margin: 0 0 6px 0;
}

.cont__blfi {
  margin: 4px 0;
}

.cont__blbib {
  margin-top: 8px;
  text-align: center;
}

.cont__blbibb {
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
}

/* TEST */
.balloon {
  font-family: 'Inter', sans-serif;
  color: #222;
  padding: 10px 14px;
  min-width: 220px;
  max-width: 260px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.balloon__header {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}

.balloon__address {
  font-size: 13px;
  margin-bottom: 8px;
  color: #555;
}

.balloon__info {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
}

.balloon__btn {
  background-color: #007b74;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.balloon__btn:hover {
  background-color: #00625d;
}

/* 🎨 Темы для разных компаний */
.balloon--mpi {
  border-left: 4px solid #00625d;
}

.balloon--cdek {
  border-left: 4px solid #00a85a;
}

/* Плавное появление и исчезновение меток */
.ymaps-2-1-79-placemark {
  transition: opacity 0.3s ease-in-out;
}

.cp-pup__ini__st {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background-color: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp__ini__ti-f {
  font-size: 12px;
  color: #999;
}

.cp__ini__ti-s {
  font-weight: bold;
  font-size: 14px;
}

.cp__pup__ini__sb {
  margin-top: 8px;
  padding: 10px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.pup__ini__tym {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
}

.pup__ini__tya {
  font-size: 14px;
}

.pup__ini__debl {
  font-size: 13px;
  color: #333;
  margin-top: 4px;
  border-top: 1px solid #eee;
  padding-top: 8px;
}

.pup__ini__debl-del {
  margin: 2px 0;
}

.mp__overl__f {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.delv__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
}

.delv__overlay__con {
  background: #ffffff;
  padding: 28px 32px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;

  min-width: 260px;
}

.delv__t {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  text-align: center;
}

/* Анимация загрузки */
.delv__sp {
  width: 42px;
  height: 42px;
  border: 4px solid #e5e5e5;
  border-top-color: #5FBD6F;
  /* DPD-red, можно поменять */
  border-radius: 50%;
  animation: dpd-spin 1s linear infinite;
}

@keyframes dpd-spin {
  to {
    transform: rotate(360deg);
  }
}

.delv__i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 26px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delv__i__s {
  border: 4px solid #5FBD6F;
  color: #5FBD6F;
}

.delv__i__e {
  border: 4px solid #E05353;
  color: #E05353;
}

.cm__cls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;

  width: 36px;
  height: 36px;

  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  border: none;

  font-size: 22px;
  line-height: 36px;
  text-align: center;

  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cm__cls:hover {
  background: #f2f2f2;
}

.sh__ds__b {
  border: 1px solid #d7efe5;
  background: #f7fffb;
  border-radius: 14px;
  padding: 16px;
  margin-top: 16px;
}

.sh__ds__bh {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sh__ds__bi {
  font-size: 26px;
  line-height: 1;
}

.sh__ds__bm {
  flex: 1;
}

.sh__ds__bt {
  font-size: 14px;
  color: #5b7d72;
  margin-bottom: 2px;
}

.sh__ds__bd {
  font-size: 18px;
  font-weight: 600;
  color: #1e3c33;
}

.sh__ds__bde {
  font-size: 14px;
  color: #62877b;
  margin-top: 2px;
}

.sh__ds__bdet {
  border-top: 1px solid #e1f1ea;
  margin-top: 12px;
  padding-top: 12px;
}

.sh__ds__br {
  font-size: 14px;
  color: #355f54;
  margin-top: 6px;
}

.sh__ds__bhi {
  font-size: 12px;
  color: #7a9a90;
  margin-top: 8px;
}

.lb__dl__of {
  position: sticky;
  top: 24px;
}

.lb__dl__ofc {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  max-width: 540px;
  min-width: 425px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lb__dl__oft {
  font-size: 20px;
  font-weight: 600;
  color: #0a3d2f;
  margin-bottom: 12px;
  text-align: center;
}

.lb__dl__ofbf {
  border: 1px solid #d7efe5;
  background: #f7fffb;
  border-radius: 14px;
  padding: 16px;
}

.lb__dl__ofd {
  font-size: 14px;
  /* color: #5f6f68; */
  color: #355f54;
  margin-bottom: 20px;
  line-height: 1.4;
}

.lb__dl__ofb {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #4caf50, #43a047);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lb__dl__ofb:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
}

.lb__dl__ofb:disabled {
  background: #cfd8dc;
  cursor: not-allowed;
  box-shadow: none;
}

.lb__dl__ofs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
}

.lb__dl__ofsr {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lb__dl__ofsr:last-child .lb__dl__ofst {
  border-bottom: none;
}

.lb__dl__ofsi {
  /* background: #d7efe5; */
  background: #d7efe5b0;
  border-radius: 14px;
  width: 30px;
  height: 30px;
  align-items: center;
  display: flex;
  justify-content: center;
}

.lb__dl__ofsii {
  cursor: default;
}

.lb__dl__ofst {
  flex: 1;
  font-size: 16px;
  color: #37474f;
  padding: 5px 0px 10px 5px;
  font-weight: 500;
  border-bottom: 1px solid rgb(231, 231, 236);
}

.order-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.order-loader__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0f2f1;
  border-top-color: #4caf50;
  border-radius: 50%;
  animation: order-spin 0.9s linear infinite;
  margin-bottom: 12px;
}

.order-loader__text {
  font-size: 14px;
  color: #5f6f68;
}

@keyframes order-spin {
  to {
    transform: rotate(360deg);
  }
}

.order-confirm__info {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-direction: column;
}

.order-confirm__info-block {
  background: #f7faf9;
  border-radius: 12px;
  padding: 12px;
}

.order-confirm__label {
  font-size: 12px;
  color: #7a8b86;
  margin-bottom: 4px;
}

.order-confirm__value {
  font-size: 14px;
  color: #263238;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Cart */
.order-confirm__section-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.order-confirm__cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.order-confirm__cart-name {
  font-size: 14px;
}

.order-confirm__cart-meta {
  font-size: 13px;
  color: #607d8b;
}

.order-confirm__cart-price {
  font-weight: 500;
}

.order-confirm__summary {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.order-confirm__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}

.order-confirm__row--total {
  font-weight: 600;
  font-size: 16px;
}

/* Button */
.order-confirm__submit {
  margin-top: 16px;
  width: 100%;
  height: 48px;
  background: #ff9800;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.order-confirm__submit:disabled {
  background: #ffd699;
  cursor: not-allowed;
}

.order-confirm__submit {
  width: calc(100% - 48px);
  margin: 20px 24px 24px;
  height: 48px;
  border-radius: 12px;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;

  background: linear-gradient(120deg,
      rgba(0, 91, 255, 1) 0%,
      rgba(0, 91, 255, 1) 50%,
      #43a047 50%,
      #43a047 100%);
  background-size: 220% 100%;
  background-position: 0% 0%;
  transition: background-position 0.6s ease;
}

.order-confirm__row-label {
  display: flex;
  flex-direction: column;
}

.order-confirm__row-hint {
  font-size: 11px;
  color:
    /* цвет текста tertiary вашего проекта */
  ;
  margin-top: 2px;
}

.order-confirm__submit:hover {
  background-position: 100% 0%;
}

/* ===== Animation ===== */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
