
.toolbar-image-selection-overlay {
	position: absolute;

	width: 100%;
	height: 100%;
	z-index: 10;

	display: flex;
	align-items: center;
	justify-content: center;
}

.toolbar-image-selection-overlay > div {
	background: var(--primary-background-color);
	box-shadow: 1px 1px 3px var(--primary-shadow-color);

	padding: 18px;
	border-radius: 3px;
}

.toolbar-image-selection-overlay > div > div {
	padding: 5px;
}

.toolbar-image-selection-overlay img {
	max-width: min(50vw, 75%);
	max-height: 50vh;

	/* Center */
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.toolbar-image-selection-overlay .action-button-row {
	margin-top: 4px;
	display: flex;
	flex-direction: row;
}

.toolbar-image-selection-overlay .action-button-row > button {
	flex-grow: 1;
}

.toolbar-overflow-widget-overflow-list {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: center;
}

.toolbar-overflow-widget-overflow-list > .toolbar-toolContainer > .toolbar-button {
	height: var(--toolbar-button-height);
}

.toolbar-overflow-widget.horizontal .toolbar-overflow-widget-overflow-list {
	flex-direction: row;
}

.toolbar-overflow-widget.horizontal > .toolbar-dropdown {
	max-width: 100%;
	left: 15px;
	right: 15px;

	/*
	 Override the default transform and margin-left.

	 Setting translate to none prevents the dropdown from being shifted off the
	 screen on window resize by dropdown-repositioning logic.
	*/
	margin-left: 0 !important;
	translate: none !important;

	padding: 4px;
}

.toolbar-pen-type-selector > div {
	display: flex;
	flex-direction: row;

	max-width: 350px;
	flex-wrap: wrap;

	--button-size: 56px;
}

.toolbar-pen-type-selector .pen-type-button {
	display: flex;
	flex-direction: column-reverse;
	box-sizing: border-box;

	flex-shrink: 1;
	margin: 2px;
}

.toolbar-pen-type-selector .pen-type-button:focus-within {
	outline: 2px solid var(--primary-foreground-color);
}

.toolbar-pen-type-selector .pen-type-button input {
	opacity: 0;
	height: 0;
}

.toolbar-pen-type-selector .pen-type-button label {
	display: flex;
	flex-direction: column;

	width: var(--button-size);
	height: var(--button-size);

	font-size: 0.7rem;
	align-items: center;
	justify-content: center;
	padding: 4px;
}


.toolbar-pen-type-selector .pen-type-button .icon {
	flex-grow: 1;
	flex-shrink: 1;
	width: 100%;
}

.toolbar-pen-type-selector .pen-type-button.checked {
	background-color: var(--secondary-background-color);
	color: var(--secondary-foreground-color);
}

.toolbar-root {
	background-color: var(--primary-background-color);
	--icon-color: var(--primary-foreground-color);


	border: 1px solid var(--secondary-background-color);
	border-radius: 2px;
	flex-wrap: wrap;

	box-sizing: border-box;
	width: 100%;

	display: flex;
	flex-direction: row;
	justify-content: center;

	--toolbar-button-height: min(20vh, 60px);

	/* Display above selection dialogs, etc. */
	z-index: 2;

	font-family: system-ui, -apple-system, sans-serif;
}

.toolbar-root > .toolbar-toolContainer > .toolbar-button,
.toolbar-root > .toolbar-toolContainer > * > button,
.toolbar-root > .toolbar-buttonGroup > button,
.toolbar-root > .toolbar-button {
	width: min-content;
	white-space: pre;
	height: var(--toolbar-button-height);
}

.toolbar-dropdown .toolbar-button > .toolbar-icon {
	max-width: 50px;
	width: 100%;
}

.toolbar-button.disabled {
	filter: opacity(0.5) sepia(0.2);
	cursor: unset;
}

.toolbar-button, .toolbar-root button {
	cursor: pointer;
	text-align: center;
	border-radius: 6px;

	--icon-color: var(--primary-foreground-color);
	background-color: var(--primary-background-color);
	color: var(--primary-foreground-color);
	border: none;
	box-shadow: 0px 0px 2px var(--primary-shadow-color);

	transition: background-color 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
}

.toolbar-button,
.toolbar-buttonGroup > button,
.toolbar-toolContainer > * > button,
.toolbar-root > button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	padding-left: 3px;
	padding-right: 3px;
	margin-left: 3px;
	margin-right: 3px;

	min-width: 40px;
	max-width: 105px;
	width: min-content;
	font-size: 1em;
}

.toolbar-button > label {
	cursor: inherit;
	user-select: none;
}

/* Decrease the font size of labels in the main toolbar if they're long. */
:not(.toolbar-dropdown) > .toolbar-toolContainer >
		.toolbar-button > label.long-label {
	font-size: 0.75em;
}

.toolbar-dropdown > .toolbar-toolContainer > button,
.toolbar-dropdown > .toolbar-toolContainer > .toolbar-button {
	width: 6em;
}

.toolbar-button:not(.disabled):hover, .toolbar-root button:not(:disabled):hover {
	box-shadow: 0px 2px 4px var(--primary-shadow-color);
}

.toolbar-root button:disabled {
	cursor: inherit;
	filter: opacity(0.5);
}

.toolbar-root .toolbar-icon {
	flex-shrink: 1;
	user-select: none;

	width: 100%;
	min-width: 30px;
	min-height: 30px;
}

.toolbar-toolContainer.selected > .toolbar-button {
	background-color: var(--secondary-background-color);
	color: var(--secondary-foreground-color);
	--icon-color: var(--secondary-foreground-color);
}

.toolbar-toolContainer:not(.selected):not(.dropdownShowable) > .toolbar-button > .toolbar-showHideDropdownIcon {
	display: none;
}

.toolbar-toolContainer > .toolbar-button > .toolbar-showHideDropdownIcon {
	height: 10px;
	transition: transform 0.5s ease;
}

.toolbar-toolContainer.dropdownVisible > .toolbar-button > .toolbar-showHideDropdownIcon {
	transform: rotate(180deg);
}

.toolbar-dropdown.hidden,
.toolbar-toolContainer:not(.selected):not(.dropdownShowable)
		> .toolbar-dropdown:not(.hiding) {
	display: none;
}

.toolbar-dropdown {
	position: absolute;
	padding: 15px;
	padding-top: 5px;

	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	max-height: 80vh;

	max-width: fit-content;

	/* Prevent overlap/being displayed under the undo/redo buttons */
	z-index: 2;
	background-color: var(--primary-background-color);
	box-shadow: 0px 3px 3px var(--primary-shadow-color);
}

/* Animate showing/hiding the dropdown. Animations triggered in JavaScript. */
@keyframes dropdown-transition-in {
	0% {
		opacity: 0;
		transform: scale(1, 0);
	}
	100% {
		opacity: 1;
		transform: scale(1, 1);
	}
}

@keyframes dropdown-transition-out {
	0% {
		opacity: 1;
		transform: scale(1, 1);	
	}
	100% {
		opacity: 0;
		transform: scale(1, 0);
	}
}

.toolbar-dropdown {
	/* Ensure the animation begins from the correct location. */
	transform-origin: top left;

	--dropdown-show-animation: dropdown-transition-in;
	--dropdown-hide-animation: dropdown-transition-out;
}

@media (prefers-reduced-motion: reduce) {
	/* Disable toolbar animations if reducing motion */
	.toolbar-dropdown {
		--dropdown-show-animation: none;
		--dropdown-hide-animation: none;
	}

	.toolbar-dropdown.hiding {
		display: none;
	}

	/* Also disable arrow rotation */
	.toolbar-toolContainer > .toolbar-button > .toolbar-showHideDropdownIcon {
		transition: none;
	}

	/* ...and background color animation. */
	.toolbar-button, .toolbar-root button {
		transition: none;
	}
}

.toolbar-buttonGroup {
	display: flex;
	flex-direction: row;
	justify-content: center;
}

.toolbar-closeColorPickerOverlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;

	touch-action: none;

	background-color: var(--primary-background-color);
	opacity: 0.3;
}

/* Make color selection buttons fill their containing label */
.toolbar-dropdown .clr-field button {
	width: 100%;
	height: 100%;
	border-radius: 2px;
	margin-left: 0;
	margin-right: 0;
}

.toolbar-root .toolbar-zoomLevelEditor {
	display: flex;
	flex-direction: row;
}

.toolbar-root .toolbar-zoomLevelEditor .zoomDisplay {
	flex-grow: 1;
}

.toolbar-root .toolbar-zoomLevelEditor button {
	min-width: 48px;
}

.color-input-container {
	display: inline-flex;
	flex-direction: row;
}

.color-input-container .pipetteButton {
	width: 30px;
	height: 30px;
	padding: 0;
	display: inline-flex;
}

.color-input-container .pipetteButton > svg {
	width: 100%;
}

.color-input-container .pipetteButton.active {
	background-color: var(--secondary-background-color);
	--icon-color: var(--secondary-foreground-color);
}

.toolbar-spacedList > * {
	padding-bottom: 5px;
	padding-top: 5px;
}

@media print {
	/* Hide the toolbar on print. */
	.toolbar-root {
		display: none;
	}
}

.selection-tool-selection-background {
    background-color: var(--secondary-background-color);
    opacity: 0.5;
    overflow: visible;
    position: absolute;
}

.selection-tool-handle {
    border: 1px solid var(--primary-foreground-color);
    background: var(--primary-background-color);
    position: absolute;
    cursor: grab;
}

.selection-tool-handle.selection-tool-circle {
    border-radius: 100%;
}

.overlay.handleOverlay {
    height: 0;
    overflow: visible;
}

.find-tool-overlay {
    /* Show at the bottom of the screen. */
    order: -1;

    position: absolute;
}

.js-draw-sound-ui-toggle {
	width: 0px;
	height: 0px;
	overflow: hidden;    
}

.js-draw-sound-ui-toggle:focus-within, .js-draw-sound-ui-toggle.sound-ui-tool-enabled {
	overflow: visible;
	z-index: 5;
}

.js-draw-sound-ui-toggle:not(:focus-within):not(:hover).sound-ui-tool-enabled {
	opacity: 0.5;
}



/* Imports Coloris' CSS and makes additional changes to the color picker */

#clr-picker {
    --clr-slider-size: 30px;
}

/* Coloris: Try to avoid scrolling instead of updating the color input. */
#clr-picker #clr-color-area, #clr-picker .clr_hue {
	touch-action: none;
}

/* Increase space between inputs */
#clr-picker .clr-alpha {
	margin-top: 15px;
	margin-bottom: 15px;
}

/* Increase size of input thumb to make it easier to select colors. */
#clr-picker.clr-picker input[type="range"]::-moz-range-thumb {
	width: var(--clr-slider-size);
	height: var(--clr-slider-size);
}

/* Also apply to Chrome/iOS */
#clr-picker.clr-picker input[type="range"]::-webkit-slider-thumb {
    /*
     Note: This doesn't seem to take effect in iOS if it's combined with the
           ::-moz-range-thumb rule above
     */
	width: var(--clr-slider-size);
	height: var(--clr-slider-size);
}

#clr-picker.clr-picker input[type="range"]::-webkit-slider-runnable-track {
	height: var(--clr-slider-size);
}

#clr-picker.clr-picker input[type="range"]::-moz-range-track {
	height: var(--clr-slider-size);
}

/*
Debugging: Uncommenting this rule makes Coloris' sliders more
visible.

#clr-picker.clr-picker input[type="range"] {
    opacity: 0.5;
    -webkit-appearance: auto;
    appearance: auto;
}
*/


.imageEditorContainer {
	/* Deafult colors for the editor */
    --primary-background-color: white;
    --primary-background-color-transparent: rgba(255, 255, 255, 0.5);
    --secondary-background-color: #faf;
    --primary-foreground-color: black;
    --secondary-foreground-color: black;
	--primary-shadow-color: rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
	.imageEditorContainer {
		--primary-background-color: #151515;
		--primary-background-color-transparent: rgba(50, 50, 50, 0.5);
		--secondary-background-color: #607;
		--primary-foreground-color: white;
		--secondary-foreground-color: white;
		--primary-shadow-color: rgba(250, 250, 250, 0.5);
	}
}

.imageEditorContainer {
	color: var(--primary-foreground-color);
	font-family: system-ui, -apple-system, sans-serif;
	background-color: var(--primary-background-color);

	display: flex;
	flex-direction: column-reverse;
}

.imageEditorContainer .imageEditorRenderArea {
	display: grid;
	grid-template-columns: 1fr;
	flex-grow: 2;
	flex-shrink: 1;
	min-height: 100px;
}

.imageEditorContainer .imageEditorRenderArea canvas {
	/* Stack all canvases on top of each other */
	grid-row: 1 / 1;
	grid-column: 1 / 1;
	touch-action: none;

	/* Fill the container */
	box-sizing: border-box;
	width: 100%;
	height: 100%;

	/* Allow the canvas to shrink (needed in Chrome) */
	min-height: 0px;
	max-height: inherit;
}

.imageEditorContainer .loadingMessage {
	position: fixed;
	text-align: center;
	font-size: 2em;

	bottom: 0;
	left: 0;
	right: 0;
}

.imageEditorContainer .accessibilityAnnouncement {
	opacity: 0;
	width: 0;
	height: 0;
	overflow: hidden;
	pointer-events: none;
}

.imageEditorContainer .textRendererOutputContainer {
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.imageEditorContainer .textRendererOutputContainer:focus-within {
	overflow: visible;
	z-index: 5;
}

@media print {
	.imageEditorContainer .loadingMessage {
		display: none;
	}

	.imageEditorContainer .imageEditorRenderArea canvas {
		width: 100%;
		height: initial;
	}
}
.clr-picker {
  display: none;
  flex-wrap: wrap;
  position: absolute;
  width: 200px;
  z-index: 1000;
  border-radius: 10px;
  background-color: #fff;
  justify-content: flex-end;
  direction: ltr;
  box-shadow: 0 0 5px rgba(0,0,0,.05), 0 5px 20px rgba(0,0,0,.1);
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.clr-picker.clr-open,
.clr-picker[data-inline="true"] {
  display: flex;
}

.clr-picker[data-inline="true"] {
  position: relative;
}

.clr-gradient {
  position: relative;
  width: 100%;
  height: 100px;
  margin-bottom: 15px;
  border-radius: 3px 3px 0 0;
  background-image: linear-gradient(rgba(0,0,0,0), #000), linear-gradient(90deg, #fff, currentColor);
  cursor: pointer;
}

.clr-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 1px solid #fff;
  border-radius: 50%;
  background-color: currentColor;
  cursor: pointer;
}

.clr-picker input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
}

.clr-picker input[type="range"]::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
  -webkit-appearance: none;
}

.clr-picker input[type="range"]::-moz-range-track {
  width: 100%;
  height: 8px;
  border: 0;
}

.clr-picker input[type="range"]::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 0;
}

.clr-hue {
  background-image: linear-gradient(to right, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%);
}

.clr-hue,
.clr-alpha {
  position: relative;
  width: calc(100% - 40px);
  height: 8px;
  margin: 5px 20px;
  border-radius: 4px;
}

.clr-alpha span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background-image: linear-gradient(90deg, rgba(0,0,0,0), currentColor);
}

.clr-hue input,
.clr-alpha input {
  position: absolute;
  width: calc(100% + 16px);
  height: 16px;
  left: -8px;
  top: -4px;
  margin: 0;
  background-color: transparent;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.clr-hue div,
.clr-alpha div {
  position: absolute;
  width: 16px;
  height: 16px;
  left: 0;
  top: 50%;
  margin-left: -8px;
  transform: translateY(-50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 1px #888;
  pointer-events: none;
}

.clr-alpha div:before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  border-radius: 50%;
  background-color: currentColor;
}

.clr-format {
  display: none;
  order: 1;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
}

.clr-segmented {
  display: flex;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 15px;
  box-sizing: border-box;
  color: #999;
  font-size: 12px;
}

.clr-segmented input,
.clr-segmented legend {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
}

.clr-segmented label {
  flex-grow: 1;
  margin: 0;
  padding: 4px 0;
  font-size: inherit;
  font-weight: normal;
  line-height: initial;
  text-align: center;
  cursor: pointer;
}

.clr-segmented label:first-of-type {
  border-radius: 10px 0 0 10px;
}

.clr-segmented label:last-of-type {
  border-radius: 0 10px 10px 0;
}

.clr-segmented input:checked + label {
  color: #fff;
  background-color: #666;
}

.clr-swatches {
  order: 2;
  width: calc(100% - 32px);
  margin: 0 16px;
}

.clr-swatches div {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 12px;
  justify-content: center;
}

.clr-swatches button {
  position: relative;
  width: 20px;
  height: 20px;
  margin: 0 4px 6px 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  text-indent: -1000px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

.clr-swatches button:after {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: inherit;
  background-color: currentColor;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
}

input.clr-color {
  order: 1;
  width: calc(100% - 80px);
  height: 32px;
  margin: 15px 20px 20px auto;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 16px;
  color: #444;
  background-color: #fff;
  font-family: sans-serif;
  font-size: 14px;
  text-align: center;
  box-shadow: none;
}

input.clr-color:focus {
  outline: none;
  border: 1px solid #1e90ff;
}

.clr-close,
.clr-clear {
  display: none;
  order: 2;
  height: 24px;
  margin: 0 20px 20px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background-color: #666;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}

.clr-close {
  display: block;
  margin: 0 20px 20px auto;
}

.clr-preview {
  position: relative;
  width: 32px;
  height: 32px;
  margin: 15px 0 20px 20px;
  border-radius: 50%;
  overflow: hidden;
}

.clr-preview:before,
.clr-preview:after {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  border: 1px solid #fff;
  border-radius: 50%;
}

.clr-preview:after {
  border: 0;
  background-color: currentColor;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
}

.clr-preview button {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline-offset: -2px;
  background-color: transparent;
  text-indent: -9999px;
  cursor: pointer;
  overflow: hidden;
}

.clr-marker,
.clr-hue div,
.clr-alpha div,
.clr-color {
  box-sizing: border-box;
}

.clr-field {
  display: inline-block;
  position: relative;
  color: transparent;
}

.clr-field input {
  margin: 0;
  direction: ltr;
}

.clr-field.clr-rtl input {
  text-align: right;
}

.clr-field button {
  position: absolute;
  width: 30px;
  height: 100%;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  text-indent: -1000px;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
}

.clr-field.clr-rtl button {
  right: auto;
  left: 0;
}

.clr-field button:after {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: inherit;
  background-color: currentColor;
  box-shadow: inset 0 0 1px rgba(0,0,0,.5);
}

.clr-alpha,
.clr-alpha div,
.clr-swatches button,
.clr-preview:before,
.clr-field button {
  background-image: repeating-linear-gradient(45deg, #aaa 25%, transparent 25%, transparent 75%, #aaa 75%, #aaa), repeating-linear-gradient(45deg, #aaa 25%, #fff 25%, #fff 75%, #aaa 75%, #aaa);
  background-position: 0 0, 4px 4px;
  background-size: 8px 8px;
}

.clr-marker:focus {
  outline: none;
}

.clr-keyboard-nav .clr-marker:focus,
.clr-keyboard-nav .clr-hue input:focus + div,
.clr-keyboard-nav .clr-alpha input:focus + div,
.clr-keyboard-nav .clr-segmented input:focus + label {
  outline: none;
  box-shadow: 0 0 0 2px #1e90ff, 0 0 2px 2px #fff;
}

.clr-picker[data-alpha="false"] .clr-alpha {
  display: none;
}

.clr-picker[data-minimal="true"] {
  padding-top: 16px;
}

.clr-picker[data-minimal="true"] .clr-gradient,
.clr-picker[data-minimal="true"] .clr-hue,
.clr-picker[data-minimal="true"] .clr-alpha,
.clr-picker[data-minimal="true"] .clr-color,
.clr-picker[data-minimal="true"] .clr-preview {
  display: none;
}

/** Dark theme **/

.clr-dark {
  background-color: #444;
}

.clr-dark .clr-segmented {
  border-color: #777;
}

.clr-dark .clr-swatches button:after {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}

.clr-dark input.clr-color {
  color: #fff;
  border-color: #777;
  background-color: #555;
}

.clr-dark input.clr-color:focus {
  border-color: #1e90ff;
}

.clr-dark .clr-preview:after {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}

.clr-dark .clr-alpha,
.clr-dark .clr-alpha div,
.clr-dark .clr-swatches button,
.clr-dark .clr-preview:before {
  background-image: repeating-linear-gradient(45deg, #666 25%, transparent 25%, transparent 75%, #888 75%, #888), repeating-linear-gradient(45deg, #888 25%, #444 25%, #444 75%, #888 75%, #888);
}

/** Polaroid theme **/

.clr-picker.clr-polaroid {
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,.1), 0 5px 30px rgba(0,0,0,.2);
}

.clr-picker.clr-polaroid:before {
  content: '';
  display: block;
  position: absolute;
  width: 16px;
  height: 10px;
  left: 20px;
  top: -10px;
  border: solid transparent;
  border-width: 0 8px 10px 8px;
  border-bottom-color: currentColor;
  box-sizing: border-box;
  color: #fff;
  filter: drop-shadow(0 -4px 3px rgba(0,0,0,.1));
  pointer-events: none;
}

.clr-picker.clr-polaroid.clr-dark:before {
  color: #444;
}

.clr-picker.clr-polaroid.clr-left:before {
  left: auto;
  right: 20px;
}

.clr-picker.clr-polaroid.clr-top:before {
  top: auto;
  bottom: -10px;
  transform: rotateZ(180deg);
}

.clr-polaroid .clr-gradient {
  width: calc(100% - 20px);
  height: 120px;
  margin: 10px;
  border-radius: 3px;
}

.clr-polaroid .clr-hue,
.clr-polaroid .clr-alpha {
  width: calc(100% - 30px);
  height: 10px;
  margin: 6px 15px;
  border-radius: 5px;
}

.clr-polaroid .clr-hue div,
.clr-polaroid .clr-alpha div {
  box-shadow: 0 0 5px rgba(0,0,0,.2);
}

.clr-polaroid .clr-format {
  width: calc(100% - 20px);
  margin: 0 10px 15px;
}

.clr-polaroid .clr-swatches {
  width: calc(100% - 12px);
  margin: 0 6px;
}
.clr-polaroid .clr-swatches div {
  padding-bottom: 10px;
}

.clr-polaroid .clr-swatches button {
  width: 22px;
  height: 22px;
}

.clr-polaroid input.clr-color {
  width: calc(100% - 60px);
  margin: 10px 10px 15px auto;
}

.clr-polaroid .clr-clear {
  margin: 0 10px 15px 10px;
}

.clr-polaroid .clr-close {
  margin: 0 10px 15px auto;
}

.clr-polaroid .clr-preview {
  margin: 10px 0 15px 10px;
}

/** Large theme **/

.clr-picker.clr-large {
  width: 275px;
}

.clr-large .clr-gradient {
  height: 150px;
}

.clr-large .clr-swatches button {
  width: 22px;
  height: 22px;
}

/** Pill (horizontal) theme **/

.clr-picker.clr-pill {
  width: 380px;
  padding-left: 180px;
  box-sizing: border-box;
}

.clr-pill .clr-gradient {
  position: absolute;
  width: 180px;
  height: 100%;
  left: 0;
  top: 0;
  margin-bottom: 0;
  border-radius: 3px 0 0 3px;
}

.clr-pill .clr-hue {
  margin-top: 20px;
}
