/* Image Resizer & Crop — mobile (≤767px) */

.irs-hero__art {
  display: none;
}

.irs-badge {
  font-size: 0.62rem;
  padding: 5px 10px;
  gap: 4px;
  margin-bottom: 12px;
  max-width: 100%;
  box-sizing: border-box;
}

.irs-badge__sep {
  display: none;
}

.irs-badge svg {
  width: 12px;
  height: 12px;
}

.irs-hero__lead {
  margin-bottom: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0 4px;
}

.irs-hero-features {
  gap: 6px;
}

.irs-hero-feature {
  padding: 8px 6px;
  border-radius: 10px;
}

.irs-hero-feature__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
}

.irs-hero-feature strong {
  font-size: 0.72rem;
}

.irs-hero-feature span {
  font-size: 0.62rem;
}

.irs-workspace.irs-workspace--empty {
  min-height: 0;
}

.irs-upload {
  min-height: 0;
  padding: 14px 12px 12px;
  border-radius: 12px;
}

.irs-upload__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}

.irs-upload__inner p {
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.irs-upload__hint {
  margin-top: 8px !important;
  font-size: 0.68rem;
  line-height: 1.35;
  white-space: normal;
}

.irs-editor__head {
  padding: 10px 12px;
}

.irs-viewport {
  padding: 10px;
  touch-action: none;
}

.irs-viewport__stage {
  min-height: 200px;
  touch-action: none;
}

.irs-options-card {
  padding: 12px 12px 14px;
  border-radius: 12px;
}

.irs-options-card__head {
  flex-wrap: wrap;
  gap: 8px;
}

.irs-options-card__head .irs-panel-title {
  font-size: 0.95rem;
}

.irs-size-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: end;
}

.irs-size-row .irs-field label {
  font-size: 0.72rem;
}

.irs-size-row input {
  min-width: 0;
  font-size: 0.85rem;
  padding: 8px 8px;
}

.irs-link-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.irs-control-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 10px;
  padding-bottom: 2px;
}

.irs-control-row .irs-icon-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  min-width: 40px;
}

.irs-check small {
  font-size: 0.68rem;
  line-height: 1.35;
}

.irs-presets-section {
  padding: 0 2px;
}

.irs-presets-section h2 {
  font-size: 1.05rem;
}

.irs-presets-section__lead {
  font-size: 0.78rem;
}

.irs-presets-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.irs-preset-card {
  padding: 10px 8px;
  min-width: 0;
}

.irs-preset-card strong {
  font-size: 0.72rem;
}

.irs-preset-card span {
  font-size: 0.62rem;
}

.irs-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px;
}

.irs-benefits {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px;
  font-size: 0.72rem;
}

.irs-two-col {
  grid-template-columns: 1fr !important;
  gap: 16px;
}

/* Touch-friendly crop handles */
.irs-crop-box,
.irs-crop-handle {
  touch-action: none;
}

.irs-crop-handle {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.irs-crop-handle--nw {
  top: -10px;
  left: -10px;
}
.irs-crop-handle--n {
  top: -10px;
  margin-left: -7px;
}
.irs-crop-handle--ne {
  top: -10px;
  right: -10px;
}
.irs-crop-handle--e {
  right: -10px;
  margin-top: -7px;
}
.irs-crop-handle--se {
  bottom: -10px;
  right: -10px;
}
.irs-crop-handle--s {
  bottom: -10px;
  margin-left: -7px;
}
.irs-crop-handle--sw {
  bottom: -10px;
  left: -10px;
}
.irs-crop-handle--w {
  left: -10px;
  margin-top: -7px;
}

.irs-crop-handle::before {
  content: "";
  position: absolute;
  inset: -12px;
}

.irs-crop-size {
  font-size: 0.68rem;
  max-width: calc(100% - 8px);
  overflow: hidden;
  text-overflow: ellipsis;
}
