:root {
    --documents-mobile-surface: #ffffff;
}

@media (max-width: 768px) {
    .documents-modal {
        padding: 0.5rem !important;
    }

    .documents-modal.active {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .documents-modal__content {
        position: relative;
        width: 100% !important;
        max-width: 95% !important;
        max-height: 95vh !important;
        margin: 0 !important;
        border-radius: 12px !important;
        background: var(--documents-mobile-surface) !important;
        border: 1px solid #e5e7eb !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
        overflow-y: auto !important;
        animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
    }

    .documents-modal__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 1rem !important;
        background: #ffffff !important;
        color: #1e293b !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    .documents-modal__title {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        font-size: 1.05rem !important;
        line-height: 1.2;
        color: #1e293b !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .documents-modal__close {
        width: 32px !important;
        height: 32px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border: none !important;
        border-radius: 0 !important;
        background: none !important;
        color: #64748b !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .documents-modal__close:hover,
    .documents-modal__close:focus-visible {
        background: none !important;
        border-color: transparent !important;
        color: #2563eb !important;
        transform: none !important;
    }

    .documents-modal__close svg {
        width: 20px;
        height: 20px;
    }

    .documents-modal__body {
        padding: 1rem !important;
        background: #ffffff !important;
    }

    .documents-list {
        gap: 12px;
    }

    .document-item {
        border-radius: 12px;
        padding: 14px;
    }

    .document-item__content {
        gap: 12px;
    }

    .document-item__icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .document-item__title,
    .document-text {
        font-size: 0.95rem;
    }

    .document-item__meta {
        font-size: 0.8rem;
    }
}

/* ===== restore original manipulator card style, remove right modal scrollbar ===== */
@media (min-width: 769px) {
  .transport-modal .transport-display {
    padding-top: 1.25rem !important;
    padding-bottom: 1.1rem !important;
  }

  .transport-modal .transport-cards {
    margin-bottom: 0.35rem !important;
  }

  .transport-modal .manipulator-card-container {
    padding-top: 0.85rem !important;
    padding-bottom: 0.6rem !important;
  }

  .transport-modal .manipulator-card {
    padding: 0.625rem !important;
    min-height: 168px !important;
  }

  .transport-modal .manipulator-card__content {
    gap: 0.82rem !important;
    min-height: 148px !important;
    align-items: stretch !important;
  }

  .transport-modal .manipulator-card__image-container {
    min-height: 178px !important;
    height: 100% !important;
    padding: 0.5rem !important;
  }

  .transport-modal .manipulator-card__image {
    width: 90% !important;
    height: 90% !important;
    max-height: 198px !important;
    min-height: 178px !important;
  }

  .transport-modal .manipulator-card__info {
    gap: 0.34rem !important;
    min-height: 126px !important;
    justify-content: space-between !important;
  }

  .transport-modal .manipulator-vehicle-display,
  .transport-modal .manipulator-tonnage-display {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0.375rem 0.625rem !important;
  }

  .transport-modal .manipulator-card__parameters {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.32rem !important;
    margin: 0.24rem 0 !important;
    flex: 1 !important;
  }

  .transport-modal .manipulator-card__parameter {
    padding: 0.42rem 0.62rem !important;
    min-height: 0 !important;
  }

  .transport-modal .manipulator-card__parameter-label {
    font-size: 0.8rem !important;
  }

  .transport-modal .manipulator-card__parameter-value {
    font-size: 0.9rem !important;
    min-width: 82px !important;
    padding-left: 0.5rem !important;
  }

  .transport-modal .manipulator-card__price-section {
    padding: 0.58rem !important;
    min-height: 52px !important;
    margin-top: auto !important;
  }

  .transport-modal .manipulator-card__price-label {
    font-size: 0.85rem !important;
    margin-bottom: 0.25rem !important;
  }

  .transport-modal .manipulator-card__price-value {
    font-size: 1.2rem !important;
  }
}

/* ===== inline price choice without modal ===== */
.total-price-box .price-row--choice {
  align-items: baseline;
  gap: 0.5rem;
  width: 100%;
  justify-content: flex-end;
}

.total-price-box .price-choice-chip {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  min-width: 0;
  margin: 0;
  padding: 0 0 0.46rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.95em;
  color: inherit;
  line-height: inherit;
  transition: opacity .2s ease, transform .2s ease;
}

.total-price-box .price-choice-chip::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 72%;
  transform: translateX(-50%);
  bottom: 0;
  height: 4px;
  border-radius: 4px;
  background: transparent;
  transition: background-color .2s ease, opacity .2s ease;
}

.total-price-box .price-choice-chip:hover {
  opacity: 0.96;
}

.total-price-box .price-choice-chip:focus-visible {
  outline: none;
}

.total-price-box .price-choice-chip:focus-visible::after {
  background: rgba(34, 197, 94, 0.38);
}

.total-price-box .price-choice-chip.is-selected::after {
  background: #22c55e;
}

@media (max-width: 768px) {
  .total-price-box .price-row--choice {
    gap: 0.1rem;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .total-price-box .price-choice-chip {
    padding: 0 0 0.34rem;
    font-size: 0.93em;
  }

  .total-price-box .price-choice-chip::after {
    width: 66%;
    height: 3px;
    border-radius: 4px;
  }
}

