.points-rows {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.points-quick-add-row {
  margin-bottom: 0.4rem;
  padding-bottom: 0.38rem;
  border-bottom: 1px solid #e3e8ee;
}

.points-header-cell:nth-child(2),
.points-row > .point-note {
  margin-left: 0.16rem;
}

.point-note {
  height: calc(1 * 1.25em + 1rem);
  min-height: calc(1 * 1.25em + 1rem);
  resize: none;
  overflow-y: hidden;
  padding: 0.5rem 0.55rem;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.25;
}

.points-row {
  display: grid;
  --point-poi-picker-icon-size: 19.8px;
  --points-control-band-height: 36px;
  --points-tune-column-width: 46px;
  --points-type-column-width: max(
    calc(var(--point-poi-picker-icon-size, 18px) * 2.1),
    48px
  );
  --points-mark-only-column-width: 44px;
  --points-font-size-column-width: 96px;
  grid-template-columns:
    minmax(58px, 74px)
    minmax(0, 1fr)
    var(--points-tune-column-width)
    minmax(var(--points-mark-only-column-width), auto)
    var(--points-type-column-width)
    var(--points-font-size-column-width)
    var(--points-actions-column-width);
  grid-template-rows: var(--points-control-band-height) auto;
  gap: 0.34rem;
  align-items: center;
}

.points-row > .point-distance,
.points-row > .point-tune-controls,
.points-row > .point-poi-picker,
.points-row > .point-mark-only-wrap,
.points-row > .point-text-size-wrap,
.points-row > .point-actions {
  grid-row: 1;
  min-height: var(--points-control-band-height);
  align-self: center;
}

.points-row > .point-distance {
  grid-column: 1;
}

.points-row > .point-note {
  grid-column: 2;
}

.points-row > .point-tune-controls,
.points-quick-add-row > .point-tune-spacer {
  grid-column: 3;
}

.point-mobile-controls > .point-mark-only-wrap {
  grid-column: 4;
}

.point-mobile-controls > .point-poi-picker {
  grid-column: 5;
}

.point-mobile-controls > .point-text-size-wrap {
  grid-column: 6;
}

.points-row > .point-actions,
.points-quick-add-row > .point-actions {
  grid-column: 7;
}

.points-quick-add-row > .point-distance {
  grid-column: 1;
}

.points-quick-add-row > .point-note {
  grid-column: 2;
}

.points-row > .point-tune-controls,
.point-mobile-controls > .point-poi-picker,
.point-mobile-controls > .point-mark-only-wrap,
.point-mobile-controls > .point-text-size-wrap {
  margin-left: 0.12rem;
}

.points-row > .point-actions {
  margin-left: 0.04rem;
}

@media (min-width: 961px) {
  .point-mobile-controls > .point-poi-picker,
  .point-mobile-controls > .point-mark-only-wrap,
  .point-mobile-controls > .point-text-size-wrap {
    grid-row: 1;
    min-height: var(--points-control-band-height);
    align-self: center;
  }
}

.points-row > .point-note {
  grid-row: 1 / span 2;
  align-self: start;
}

.points-row > .point-tune-controls,
.point-mobile-controls > .point-poi-picker,
.point-mobile-controls > .point-mark-only-wrap,
.points-row > .point-actions {
  display: flex;
  align-items: center;
}

.point-mobile-controls > .point-poi-picker,
.point-mobile-controls > .point-mark-only-wrap,
.points-row > .point-actions {
  justify-content: center;
}

.points-rows.hide-poi-marker-columns .points-row {
  grid-template-columns:
    minmax(58px, 74px)
    minmax(0, 1fr)
    var(--points-tune-column-width)
    var(--points-font-size-column-width)
    var(--points-actions-column-width);
}

.points-quick-add-row.hide-poi-marker-columns {
  grid-template-columns:
    minmax(58px, 74px)
    minmax(0, 1fr)
    var(--points-tune-column-width)
    var(--points-font-size-column-width)
    var(--points-actions-column-width);
}

.points-rows.hide-poi-marker-columns .point-mobile-controls > .point-poi-picker,
.points-rows.hide-poi-marker-columns .point-mobile-controls > .point-mark-only-wrap {
  display: none;
}

.points-quick-add-row.hide-poi-marker-columns .point-mobile-controls > .point-poi-picker,
.points-quick-add-row.hide-poi-marker-columns .point-mobile-controls > .point-mark-only-wrap {
  display: none;
}

.point-mark-only-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.point-tune-controls,
.point-tune-spacer {
  width: 100%;
  min-width: 0;
}

.point-tune-spacer {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b98a7;
  font-size: 0.8rem;
  line-height: 1;
}

.point-tune-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
}

.point-tune-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.04rem;
}

.point-tune-btn {
  position: relative;
  z-index: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #1b2836;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.point-tune-btn:hover {
  background: #eef3f9;
}

.point-tune-controls.is-disabled {
  opacity: 0.55;
}

.point-tune-value {
  min-width: 0;
  position: relative;
  z-index: 1;
  margin-left: -0.48rem;
  margin-right: -0.48rem;
  font-size: 0.58rem;
  line-height: 1;
  color: #44576a;
  white-space: nowrap;
}

.point-tune-value.is-auto-offset-pulse {
  animation: point-tune-auto-offset-pulse 900ms ease-in-out 3;
}

@keyframes point-tune-auto-offset-pulse {
  0%,
  100% {
    color: #44576a;
    transform: scale(1);
    text-shadow: none;
  }

  35% {
    color: #0b4f75;
    transform: scale(1.16);
    text-shadow: 0 0 10px rgba(11, 79, 117, 0.22);
  }

  65% {
    color: #0b4f75;
    transform: scale(1.08);
    text-shadow: 0 0 6px rgba(11, 79, 117, 0.16);
  }
}

.point-mobile-controls {
  display: contents;
}

.point-text-size-wrap {
  width: 100%;
  min-width: 0;
}

.point-text-size-wrap-label,
.point-text-size-buttons {
  display: none;
}

.point-text-size-buttons {
  gap: 0.22rem;
}

.point-text-size-option {
  border: 1px solid #cfd7e2;
  border-radius: 9px;
  background: #ffffff;
  color: #44576a;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.point-text-size-option.is-selected {
  border-color: #0d5f95;
  background: #dff1ff;
  color: #0c3656;
}

.point-mark-only-label {
  display: none;
  font-size: 0.8rem;
  line-height: 1.1;
  color: #44576a;
  white-space: nowrap;
}

.point-poi-picker {
  position: relative;
  --point-poi-picker-icon-size: 19.8px;
  width: calc(var(--point-poi-picker-icon-size, 18px) * 2.25);
  justify-self: center;
}

.point-poi-picker-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  border: 1px solid #cfd7e2;
  border-radius: 6px;
  background: #ffffff;
  color: #1b2836;
  padding: 0.2rem 0.6rem;
  text-align: left;
  cursor: pointer;
}

.point-poi-picker-toggle:hover {
  background: #f6f9fc;
}

.point-poi-picker-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
}

.point-poi-picker-value.is-placeholder {
  color: #6b7b8b;
}

.point-poi-picker-toggle .point-poi-picker-value {
  justify-content: center;
  gap: 0;
}

.point-poi-picker-toggle .point-poi-picker-label {
  display: none;
}

.point-poi-picker-caret {
  display: none;
  flex: 0 0 auto;
  color: #607488;
  font-size: 0.7rem;
  line-height: 1;
}

.point-poi-picker-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.point-poi-picker-icon {
  width: var(--point-poi-picker-icon-size, 18px);
  height: var(--point-poi-picker-icon-size, 18px);
  flex: 0 0 auto;
}

.point-poi-picker-empty {
  width: var(--point-poi-picker-icon-size, 18px);
  height: var(--point-poi-picker-icon-size, 18px);
  border: 1px dashed #b7c3d1;
  border-radius: 4px;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.point-poi-picker-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.3rem);
  z-index: 30;
  width: max-content;
  min-width: calc(var(--point-poi-picker-icon-size, 18px) * 1.65);
  max-height: 220px;
  overflow: auto;
  padding: 0.375rem;
  border: 1px solid #cfd7e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 34, 49, 0.18);
  box-sizing: border-box;
}

.point-poi-option {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1b2836;
  font-size: calc(1em + 1pt);
  padding: 0.3rem 0.5625rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
}

.point-poi-option .point-poi-picker-value {
  justify-content: flex-start;
  gap: 0.45rem;
}

.point-poi-option .point-poi-picker-label {
  overflow: visible;
  text-overflow: clip;
}

.point-poi-option:hover,
.point-poi-option.is-selected {
  background: #eef4fb;
}

.point-mark-only {
  width: 20px;
  height: 20px;
  margin: 0;
}

.point-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.point-action-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #c2cad6;
  border-radius: 6px;
  background: #ffffff;
  color: #1b2836;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.point-action-btn:hover {
  background: #eef3f9;
}

.point-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.point-delete-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.points-quick-add-btn {
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

textarea {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  border: 1px solid #c2cad6;
  border-radius: 8px;
  padding: 0.65rem;
  font-family: var(--font-mono-family);
  font-size: 0.84rem;
  line-height: 1.4;
  background: #ffffff;
  color: #1b2836;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #c2cad6;
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  font-size: 0.92rem;
  background: #ffffff;
  color: #1b2836;
}

input[type="color"] {
  width: 100%;
  height: 36px;
  border: 1px solid #c2cad6;
  border-radius: 8px;
  padding: 2px;
  background: #ffffff;
  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 6px;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

textarea:focus,
.gpx-file-btn:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="color"]:focus,
select:focus {
  outline: 2px solid #7fa9d1;
  outline-offset: 1px;
}

.inline-info-link:focus {
  outline: 2px solid #7fa9d1;
  outline-offset: 1px;
}

.order-now-btn:focus {
  outline: 2px solid #7fa9d1;
  outline-offset: 1px;
}
