/**
 * Alwan colour picker skin, see assets/admin/puiw-alwan.js.
 * The first block is the required override set, verbatim.
 */
.alwan{border-radius:12px;overflow:hidden;}
.alwan__container>button,
.alwan__input+span{display:none;}
.alwan__input{padding:5px !important;min-height:fit-content !important;border:none !important;margin:0 !important;}

/* A closed popover keeps its 260px width; parked off-screen on the end side of
   an RTL page it would widen the document. Park it at the origin instead. */
.alwan:not(.alwan--open) { left: 0 !important; top: 0 !important; right: auto !important; }

/* The swatch that opens the picker; the text input beside it stays editable. */
.puiw-alwan-swatch {
  display: inline-block; flex: none; vertical-align: middle;
  inline-size: 40px; block-size: 40px; margin-inline-end: 8px; padding: 0;
  border: 1px solid rgb(0 0 0 / .18); border-radius: 10px;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / .7);
  cursor: pointer;
}
.puiw-alwan-swatch:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
input[type="color"].puiw-alwan-native { display: none; }

/* the hex field stays beside the swatch, at the swatch's height */
.puiw-colorpick .puiw-colorpick-row { display: flex; align-items: center; }
.puiw-colorpick input.puiw-alwan-native { width: 104px !important; height: 40px; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.puiw-colorpick .puiw-alwan-swatch { margin-inline-end: 6px; }
