.mint-layout-resize-handle {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: col-resize;
}

.mint-layout-resize-handle--vertical { width: 1rem; min-height: 2.75rem; }
.mint-layout-resize-handle--horizontal { min-width: 2.75rem; height: 1rem; cursor: row-resize; }
.mint-layout-resize-handle--edge-left,
.mint-layout-resize-handle--edge-right { position: absolute; top: 0; bottom: 0; z-index: 10; height: auto; }
.mint-layout-resize-handle--edge-left { left: 0; transform: translateX(-100%); }
.mint-layout-resize-handle--edge-right { right: 0; transform: translateX(100%); }

.mint-layout-resize-handle__bar {
  display: block;
  width: 0.25rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--border-color);
  opacity: 0.72;
  transition: background-color 150ms ease, opacity 150ms ease, transform 150ms ease;
}

.mint-layout-resize-handle--horizontal .mint-layout-resize-handle__bar {
  width: 2.75rem;
  height: 0.25rem;
}

.mint-layout-resize-handle:hover .mint-layout-resize-handle__bar,
.mint-layout-resize-handle:focus-visible .mint-layout-resize-handle__bar {
  background: var(--color-primary);
  opacity: 1;
}

.mint-layout-resize-handle--vertical:hover .mint-layout-resize-handle__bar,
.mint-layout-resize-handle--vertical:focus-visible .mint-layout-resize-handle__bar { transform: scaleX(1.35); }
.mint-layout-resize-handle--horizontal:hover .mint-layout-resize-handle__bar,
.mint-layout-resize-handle--horizontal:focus-visible .mint-layout-resize-handle__bar { transform: scaleY(1.35); }

.mint-layout-resize-handle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.mint-layout-resize-handle--edge-left:focus-visible,
.mint-layout-resize-handle--edge-right:focus-visible { outline-offset: -2px; }

.mint-layout-resize-handle[aria-disabled='true'] { cursor: not-allowed; opacity: 0.5; }

@media (prefers-reduced-motion: reduce) {
  .mint-layout-resize-handle__bar { transition: none; }
}

@media (pointer: coarse) {
  .mint-layout-resize-handle--vertical { width: 2.75rem; }
  .mint-layout-resize-handle--horizontal { height: 2.75rem; }
}
