.delivery-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    height: 700px;
    padding: 0 20px;
}

.delivery-form-section {
    flex: 1;
    overflow-y: auto;
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 100%;
    max-width: 100%;
}

.delivery-map-section {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #eaeaea;
}

.delivery-input,
.delivery-select,
.delivery-textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.delivery-button {
    background-color: #ff5c35;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.delivery-button:hover {
    background-color: #e64b26;
}

.delivery-info-block {
    background-color: #fef6f4;
    border: 1px solid #ffd9cc;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    font-family: sans-serif;
}

.delivery-info-block h2 {
    margin-top: 0;
    font-size: 24px;
    color: #ff5c35;
}

.delivery-info-block p {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.delivery-info-block ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.delivery-info-block li {
    font-size: 15px;
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.delivery-info-block li::before {
    content: '•';
    color: #ff5c35;
    position: absolute;
    left: 0;
    font-size: 20px;
    line-height: 1;
}
.map-info-hint {
    background-color: #fff3e6;
    border-left: 4px solid #ff5c35;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #444;
    border-radius: 8px;
}
#products_container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.product-item {
    flex: 1 1 calc(33.333% - 20px); /* по 3 в ряд с отступом */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    box-sizing: border-box;
    min-width: 250px;
    position: relative;
}

.product-item label {
    font-weight: bold;
    font-size: 13px;
    margin-top: 5px;
}

.product-item input,
.product-item select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 13px;
}

    input[type="checkbox"]#agree {
        width: 20px;
        height: 20px;
        vertical-align: middle;
        cursor: pointer;
    }

    label[for="agree"] {
        margin-left: 8px;
        vertical-align: middle;
        font-size: 14px;
    }

    input[type="checkbox"]#loader {
        width: 20px;
        height: 20px;
        vertical-align: middle;
        cursor: pointer;
    }

    label[for="loader"] {
        vertical-align: middle;
        font-size: 14px;
    }

.price-display-box {
    margin-top: 15px;
    padding: 15px 20px;
    background-color: #f0f8ff;
    border: 2px solid #2a7ae2;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #2a7ae2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}
.price-display-box:hover {
    background-color: #e6f0ff;
}

.features-price-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.features-price-container ul {
    margin: 0;
    padding-left: 20px;
    list-style-position: inside;
}

.features-price-container button {
    white-space: nowrap; /* чтобы кнопка не ломалась */
}
.modal-delivery {
    background: white;
    width: 600px;
    margin: 10% auto;
    padding: 20px;
    position: relative;
    border-radius: 10px;
}

.image-modal-del {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal-del img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close-modal-delivery {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.com-delivery {
    font-size: 100px;
}

.dc-status{ padding-top: 6px; }

.dc-pill--status{
  background: rgba(0,0,0,0.06);
}

.dc-subtitle{
  font-weight: 900;
  margin: 10px 0 8px;
  font-size: 14px;
}

.dc-textarea{
  width: 100%;
  min-height: 90px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 12px;
  font-size: 14px;
  outline: none;
}

.dc-success{
  margin-top: 10px;
  background: rgba(0, 200, 120, 0.14);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.dc-divider{
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 14px 0;
}

.dc-upload{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}

.dc-comments{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.dc-comment{
  position: relative;
  background: rgba(0,0,0,0.03);
  border-radius: 14px;
  padding: 12px;
}

.dc-comment__text{
  font-weight: 650;
  font-size: 14px;
  line-height: 1.3;
}

.dc-comment__meta{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
}

.dc-xbtn{
  position:absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
}

.dc-filebox{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.dc-filemedia{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  aspect-ratio: 1/1;
}

.dc-xbtn--file{
  z-index: 3;
}

.dc-btn--danger{
  background: #e53935;
  color: #fff;
}

/* ===== Deliveries in profile ===== */
.dc-list{
  margin-top: 14px;
}

.dc-list__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}

.dc-list__title{
  font-weight: 900;
  font-size: 15px;
}

.dc-cards{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.dc-cardlink{
  display:block;
  text-decoration:none;
  color: inherit;
}

.dc-mini{
  background:#fff;
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}

.dc-mini__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}

.dc-mini__route{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.dc-mini__from,
.dc-mini__to{
  min-width: 0;
  flex: 1;
}

.dc-mini__city{
  font-weight: 900;
  font-size: 13px;
  line-height: 1.15;
}

.dc-mini__addr{
  font-size: 12px;
  color: rgba(0,0,0,0.58);
  margin-top: 3px;
  line-height: 1.2;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dc-mini__arrow{
  font-weight: 900;
  margin-top: 2px;
  opacity: 0.7;
}

.dc-pill--status{
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}

.dc-mini__bottom{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display:flex;
  align-items:center;
  gap: 10px;
}

.dc-mini__meta{
  font-size: 12px;
  color: rgba(0,0,0,0.68);
  font-weight: 700;
}

.dc-mini__price{
  margin-left: auto;
  font-weight: 950;
  font-size: 13px;
}

.dc-mini__chev{
  font-size: 22px;
  font-weight: 900;
  opacity: 0.55;
  margin-left: 2px;
}

.dc-empty{
  background: rgba(0,0,0,0.03);
  padding: 12px;
  border-radius: 14px;
  color: rgba(0,0,0,0.65);
  font-weight: 650;
}

.dc-mini__top{
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
}

.dc-mini__route{
  flex: 1;
  min-width: 0;
}

/* правая колонка: статус сверху, цена под ним, прижата вправо */
.dc-mini__right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;   /* прижимаем вправо */
  gap: 6px;
  flex: 0 0 auto;
  text-align: right;
}

.dc-mini__rightprice{
  font-weight: 950;
  margin-top: auto;
  font-size: 13px;
  color: rgba(0,0,0,0.85);
  line-height: 1.1;
}

/* если цена не указана — приглушить */
.dc-mini__rightprice .dc-muted{
  font-weight: 800;
  font-size: 12px;
}

.dc-status-received,
.dc-status-accepted,
.dc-status-transit{
  background: rgba(255, 193, 7, 0.15);
  color: #ff9800;
}

.dc-status-completed{
  background: #d4edda;
  color: #155724;
}

.dc-status-canceled{
  background: rgba(244, 67, 54, 0.15);
  color: #c62828;
}


@media (max-width: 768px) {

    .delivery-map-section {
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        background-color: #eaeaea;
        /* Изначально скрыта - inline style задаём */
    }
    /* Кнопки рядом с инпутами */
    .map-toggle-button {
        background-color: #ff5c35;
        color: white;
        border: none;
        border-radius: 12px;
        padding: 8px 12px;
        font-size: 18px;
        cursor: pointer;
        user-select: none;
        transition: background-color 0.3s ease;
    }
    .map-toggle-button:hover {
        background-color: #e64b26;
    }
    .delivery-input,
    .delivery-select,
    .delivery-textarea {
        margin-bottom: 10px;
    }


    .delivery-wrapper {
        flex-direction: column;
        display: flex;
        gap: 10px;
        margin-top: 0px;
        height: auto;
        padding: 0 0px;
    }
    .delivery-form-section {
        flex: 1;
        overflow-y: auto;
        background-color: #fff;
        padding: 20px 30px;
        border-radius: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: 100%;
    }
    .delivery-info-block2 {
        background-color: #fef6f4;
        border: 1px solid #ffd9cc;
        border-radius: 16px;
        padding: 25px 30px;
        margin-bottom: 30px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        font-family: sans-serif;
    }
    .delivery-info-block2 h2 {
        margin-top: 0;
        font-size: 24px;
        color: #ff5c35;
    }

    .delivery-info-block2 p {
        font-size: 16px;
        line-height: 1.5;
        color: #333;
    }

    .delivery-info-block2 ul {
        list-style: none;
        padding-left: 0;
        margin: 15px 0;
    }

    .delivery-info-block2 li {
        font-size: 15px;
        margin-bottom: 8px;
        padding-left: 25px;
        position: relative;
    }

    .delivery-info-block2 li::before {
        content: '•';
        color: #ff5c35;
        position: absolute;
        left: 0;
        font-size: 20px;
        line-height: 1;
    }
    /* Стили для полноэкранной карты */
    .delivery-map-section.fullscreen {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      z-index: 10000 !important;
      background-color: #fff !important;
      border-radius: 0 !important;
      box-shadow: none !important;
      display: flex !important;
      flex-direction: column;
      padding: 0;
    }

    .delivery-map-section.fullscreen #map {
      flex-grow: 1;
      height: auto !important;
      min-height: 0 !important;
    }


    .delivery-map-section {
      display: flex;
      flex-direction: column;
      height: 100%;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      background-color: #eaeaea;
    }

    #map {
      flex-grow: 1;       /* Карта занимает всё доступное пространство */
      min-height: 300px;  /* Минимальная высота */
      position: relative;
    }
    .my-location-btn,
    .close-map-btn {
      margin-bottom: 60px;
      width: 100%;
      flex-shrink: 0;
      z-index: 11000 !important;
      display: block;       /* Чтобы заняла всю строку */
      box-sizing: border-box
    }

    .modal-delivery {
        width: 100%;
        margin: 50% auto;
    }

    .features-price-container ul {
        padding-left: 0px;
    }
    .delivery-info-block {
        display: none;
    }

    .delivery-hero{
      max-width: 980px;
      margin: 0px auto 12px;
      padding: 14px;
      border-radius: 14px;
      background-color: #fef6f4;
      box-shadow: 0 4px 14px rgba(0,0,0,.06);
    }

    .delivery-hero__lead{ margin: 8px 0 10px; opacity: .9; }

    .delivery-chips{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin: 10px 0 12px;
    }

    .delivery-chips .chip{
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid rgba(0,0,0,.12);
      font-size: 13px;
      background: rgba(0,0,0,.02);
    }

    .delivery-hero__actions{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
      margin: 8px 0 6px;
    }

    .delivery-hero__links{
      margin-top: 8px;
      font-size: 13px;
      opacity: .85;
    }

    .delivery-details{
      max-width: 980px;
      margin: 14px auto 90px;
      padding: 0 10px;
    }

    .delivery-acc{
      background: var(--card-bg, #fff);
      border: 1px solid rgba(0,0,0,.10);
      border-radius: 14px;
      padding: 10px 12px;
      margin-bottom: 10px;
    }

    .delivery-acc summary{
      cursor:pointer;
      font-weight: 700;
      list-style: none;
    }

    .delivery-acc summary::-webkit-details-marker{ display:none; }
    .delivery-acc p, .delivery-acc ul{ margin: 10px 0 0; }

    /* summary без стандартного маркера */
    .delivery-acc summary{
      cursor: pointer;
      font-weight: 700;
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .delivery-acc summary::-webkit-details-marker{ display:none; }

    /* стрелка (треугольник) */
    .delivery-acc .arrow{
      width: 0;
      height: 0;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      border-top: 8px solid rgba(0,0,0,.55); /* цвет */
      transition: transform .18s ease;
      transform-origin: 50% 45%;
      flex: 0 0 auto;
    }

    /* поворот при открытии */
    .delivery-acc[open] > summary .arrow{
      transform: rotate(180deg);
    }

    /* чуть приятнее фокус с клавиатуры */
    .delivery-acc summary:focus{
      outline: none;
    }
    .delivery-acc summary:focus-visible{
      outline: 2px solid rgba(0,119,255,.35);
      border-radius: 10px;
    }

    .ozon{ color:#005bff; }
    .wb{ color:violet; }
    .cdek{ color:green; }
    .dc-mini__chev{ display:none; }

}

@media (min-width: 768px) {
    #map-container {
        display: block !important;
    }
    .delivery-details,
    .delivery-hero,
    .map-toggle-button {
        display: none !important;
    }
}



.delivery-cargo-box {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
}

.delivery-cargo-box__title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
}

.delivery-cargo-help {
    margin-bottom: 14px;
    border-radius: 14px;
    background: #fafafa;
    border: 1px solid #ececec;
    padding: 10px 12px;
}

.delivery-cargo-help summary {
    cursor: pointer;
    font-weight: 600;
}

.delivery-cargo-help__content {
    margin-top: 10px;
    color: #555;
    font-size: 14px;
    line-height: 1.45;
}

.delivery-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.delivery-type-card {
    display: block;
    cursor: pointer;
}

.delivery-type-card input {
    display: none;
}

.delivery-type-card__content {
    display: block;
    height: 100%;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #e5e5e5;
    background: #fff;
    transition: .18s ease;
}

.delivery-type-card__title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #222;
}

.delivery-type-card__desc {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    margin-bottom: 10px;
}

.delivery-type-card__meta {
    display: inline-block;
    font-size: 13px;
    color: #ff5c35;
    font-weight: 600;
}

.delivery-type-card input:checked + .delivery-type-card__content {
    border-color: #ff5c35;
    box-shadow: 0 0 0 2px rgba(255, 92, 53, 0.12);
    background: #fff8f5;
}

.delivery-type-card:hover .delivery-type-card__content {
    transform: translateY(-1px);
    border-color: #ffd0c4;
}

.cargo-fields {
    display: none;
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #fafafa;
    border: 1px solid #ededed;
}

.cargo-fields.is-active {
    display: block;
}

.delivery-large-note {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff4ef;
    color: #8a4b39;
    font-size: 14px;
    line-height: 1.45;
    border: 1px solid #ffd8cc;
}

.delivery-dimensions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .delivery-type-grid {
        grid-template-columns: 1fr;
    }

    .delivery-dimensions-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Детали доставки: подтверждение актуальности и времени ===== */

.dc-card--attention{
  background: linear-gradient(180deg, #fff8f4 0%, #ffffff 100%);
  border: 1px solid rgba(255, 92, 53, 0.16);
  box-shadow: 0 10px 26px rgba(255, 92, 53, 0.08);
}

.dc-card--eta{
  border: 1px solid rgba(0,0,0,0.06);
}

.dc-title{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
}

.dc-row--soft{
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
}

.dc-deadline{
  margin-top: 12px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff3ec;
  border: 1px solid rgba(255, 92, 53, 0.18);
  color: #9a4d32;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.dc-note{
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.035);
  border: 1px solid rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.75);
  line-height: 1.45;
}

.dc-note--warm{
  background: #fff6ef;
  border-color: rgba(255, 92, 53, 0.14);
  color: #8c4c35;
}

.dc-actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.dc-form-stack{
  margin: 0;
}

.dc-btn{
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease, background .14s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.dc-btn:hover{
  transform: translateY(-1px);
}

.dc-btn:active{
  transform: translateY(0);
}

.dc-btn--primary{
  background: linear-gradient(180deg, #ff6b45 0%, #ff5c35 100%);
  color: #fff;
}

.dc-btn--primary:hover{
  box-shadow: 0 10px 22px rgba(255, 92, 53, 0.22);
}

.dc-btn--danger{
  background: linear-gradient(180deg, #ef5350 0%, #e53935 100%);
  color: #fff;
}

.dc-btn--danger:hover{
  box-shadow: 0 10px 22px rgba(229, 57, 53, 0.22);
}

.dc-btn--ghost{
  background: #fff;
  color: #333;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: none;
}

.dc-textarea,
.delivery-input{
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.dc-textarea:focus,
.delivery-input:focus{
  border-color: rgba(255, 92, 53, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 92, 53, 0.10);
  background: #fff;
}

.dc-label{
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(0,0,0,0.72);
}

.dc-success{
  border: 1px solid rgba(0, 200, 120, 0.18);
  line-height: 1.4;
}

.dc-pill--status{
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}

@media (max-width: 768px){
  .dc-title{
    font-size: 16px;
    align-items: flex-start;
  }

  .dc-btn{
    min-height: 44px;
    font-size: 13px;
  }

  .dc-row--soft,
  .dc-note,
  .dc-deadline{
    padding: 11px 12px;
  }
}

.delivery-cargo-help summary{
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.delivery-cargo-help summary::-webkit-details-marker{
    display: none;
}

.delivery-cargo-help .arrow{
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid rgba(0,0,0,.55);
    transition: transform .18s ease;
    transform-origin: 50% 45%;
    flex: 0 0 auto;
}

.delivery-cargo-help[open] > summary .arrow{
    transform: rotate(180deg);
}

.delivery-cargo-help summary:focus{
    outline: none;
}

.delivery-cargo-help summary:focus-visible{
    outline: 2px solid rgba(0,119,255,.35);
    border-radius: 10px;
}
.cargo-fragile-row{
    display: flex;
    align-items: center;
    gap: 10px;
}

.cargo-fragile-row input[type="checkbox"]{
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex: 0 0 auto;
}

.cargo-fragile-row label{
    margin: 0;
    cursor: pointer;
}

.delivery-modal-overlay{
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal-delivery{
    position: relative;
    width: min(680px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 16px 40px rgba(0,0,0,0.22);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.u-modal__close{
    position: sticky;
    top: 0;
    float: right;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.price-table-wrap{
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 12px;
}

body.price-modal-open{
    overflow: hidden;
    touch-action: none;
}

.text-delivery-price {
    color: #444;
}

@media (max-width: 768px){
    .delivery-modal-overlay{
        align-items: flex-start;
        padding: 0px;
    }

    .modal-delivery{
        width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 16px;
        padding: 16px 14px 18px;
    }

    .modal-delivery h3{
        margin-top: 6px;
        margin-bottom: 10px;
        font-size: 22px;
        line-height: 1.2;
        padding-right: 44px;
    }

    .modal-delivery td,
    .modal-delivery th{
        font-size: 14px;
        vertical-align: top;
        padding: 8px;
    }

    .u-modal__close{
        position: absolute;
        top: 10px;
        right: 10px;
    }
}

.delivery-submit-note {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.35;
    color: #666;
}




#zoomModal .u-modal__close {
    z-index: 12050;
}
