/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.3; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li {
  padding: 0;
  margin: 0;
}

ul {
  list-style: none;
}

:host {
  box-sizing: border-box;
  line-height: 1.3;
  -webkit-text-size-adjust: 100%;
  font-size: 100%;
}

:host *,
:host *::before,
:host *::after {
  box-sizing: inherit;
  font-family: var(--spw-ds-font-main);
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

:root {
  --spw-ds-container-xl: 1232px;
  --spw-ds-container-lg: 1024px;
  --spw-ds-container-md: 768px;
  --spw-ds-container-sm: 640px;
}

.spw-ds-container {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 460px) {
  .spw-ds-container {
    max-width: var(--spw-ds-container-sm);
  }
}
@media (min-width: 768px) {
  .spw-ds-container {
    max-width: var(--spw-ds-container-md);
  }
}
@media (min-width: 1024px) {
  .spw-ds-container {
    max-width: var(--spw-ds-container-lg);
  }
}
@media (min-width: 1350px) {
  .spw-ds-container {
    max-width: var(--spw-ds-container-xl);
  }
}

:host {
  display: block;
}

.spw-custom-select {
  position: relative;
}
.spw-custom-select__field-message {
  margin-bottom: 8px;
  margin-top: -4px;
}
.spw-custom-select__checkbox {
  margin-right: 8px;
}
.spw-custom-select__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  line-height: 40px;
  border-radius: 4px;
  border: 1px solid var(--spw-color-themes-grey-grey-800);
  background-color: #fff;
}
.spw-custom-select__container:hover {
  outline: 4px solid var(--spw-color-themes-grey-grey-300);
}
.spw-custom-select__container:focus-within, .spw-custom-select__container:focus-visible {
  outline: 3px solid white;
  outline-offset: 0;
  box-shadow: 0 0 0 6px black;
}
.spw-custom-select--disabled .spw-custom-select__container {
  border-color: var(--spw-color-themes-grey-grey-400);
  background: var(--spw-color-themes-grey-grey-100);
  color: var(--spw-color-themes-grey-grey-500);
  cursor: not-allowed;
}
.spw-custom-select--disabled .spw-custom-select__container::placeholder {
  color: var(--spw-color-themes-grey-grey-500);
}
.spw-custom-select--disabled .spw-custom-select__container:hover, .spw-custom-select--disabled .spw-custom-select__container:focus, .spw-custom-select--disabled .spw-custom-select__container:focus-visible {
  outline: none;
}
.spw-custom-select--is-error .spw-custom-select__container {
  border-color: var(--spw-colors-states-error-error-300);
}
.spw-custom-select--large .spw-custom-select__container {
  height: 60px;
  padding: 0 24px;
  line-height: 60px;
}
.spw-custom-select--is-opened .spw-custom-select__container {
  height: auto;
  line-height: 1;
  min-height: 40px;
}
.spw-custom-select--is-opened.spw-custom-select--down .spw-custom-select__container {
  border-radius: 4px 4px 0 0;
  border-bottom-color: transparent;
}
.spw-custom-select--is-opened.spw-custom-select--up .spw-custom-select__container {
  border-radius: 0 0 4px 4px;
  border-top-color: transparent;
}
.spw-custom-select__selected {
  flex: 1;
  padding-right: 30px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spw-custom-select__selected span {
  white-space: nowrap;
}
.spw-custom-select--is-clear .spw-custom-select__selected {
  padding-right: 58px;
}
.spw-custom-select__selected-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--spw-color-themes-grey-grey-900);
  border: 1px solid var(--spw-color-themes-grey-grey-900);
  background: var(--spw-color-themes-grey-grey-200);
  line-height: 24px;
  height: 24px;
  padding: 0 8px;
  margin: 4px 6px 2px 0;
  border-radius: 999px;
  font-size: 14px;
  user-select: none;
}
.spw-custom-select__selected-items {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: nowrap;
}
.spw-custom-select--is-opened .spw-custom-select__selected-items {
  padding-top: 3px;
  padding-bottom: 4px;
  overflow: visible;
  text-overflow: initial;
  text-wrap: initial;
}
.spw-custom-select__icons {
  display: flex;
  align-items: center;
  position: absolute;
  top: 50%;
  right: 12px;
  gap: 8px;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 12;
}
.spw-custom-select--large .spw-custom-select__icons {
  right: 24px;
}
.spw-custom-select__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  pointer-events: auto;
  cursor: pointer;
  padding: 2px;
  font-size: 16px;
  transition: all 0.2s ease-in;
}
.spw-custom-select__clear:hover {
  color: var(--spw-ds-primary);
}
.spw-custom-select__arrow {
  font-size: 16px;
  color: var(--spw-color-themes-grey-grey-900);
  pointer-events: none;
}
.spw-custom-select__wrapper {
  position: relative;
}
.spw-custom-select--is-opened .spw-custom-select__search {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 11;
  width: 100%;
  margin-top: 1px;
  display: flex;
  align-items: center;
}
.spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search {
  top: 100%;
  margin-top: -3px;
  padding: 4px;
  border: 1px solid var(--spw-color-themes-grey-grey-800);
  background: white;
}
.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search {
  top: -100%;
  margin-top: -7px;
}
.spw-custom-select__search-input {
  padding: 0;
  height: 38px;
  line-height: 40px;
  border: none;
  margin: 0;
  width: calc(100% - 30px);
  background: transparent;
  text-overflow: ellipsis;
}
.spw-custom-select--is-clear .spw-custom-select__search-input {
  width: calc(100% - 58px);
}
.spw-custom-select--show-create .spw-custom-select__search-input {
  width: calc(100% - 66px);
}
.spw-custom-select--is-clear.spw-custom-select--show-create .spw-custom-select__search-input {
  width: calc(100% - 94px);
}
.spw-custom-select__search-input:focus {
  outline: none;
}
.spw-custom-select--is-opened .spw-custom-select__search-input {
  border-left: 1px solid var(--spw-color-themes-grey-grey-800);
  padding: 0 12px;
}
.spw-custom-select--is-opened.spw-custom-select--has-value .spw-custom-select__search-input {
  border: 1px solid var(--spw-color-themes-grey-grey-800);
  flex: 1;
  width: auto;
  border-radius: 3px;
}
.spw-custom-select__create-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0;
  padding-top: 2px;
  width: 28px;
  line-height: 28px;
  border: 1px solid var(--spw-color-themes-grey-grey-800);
  border-radius: 100px;
  background: #fff;
  cursor: pointer;
  color: var(--spw-color-themes-grey-grey-900);
  font-size: 14px;
  pointer-events: auto;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.spw-custom-select__create-btn:hover {
  background: var(--spw-color-themes-grey-grey-200);
  border-color: var(--spw-color-themes-grey-grey-900);
}
.spw-custom-select__create-btn:focus-visible {
  outline: 3px solid white;
  box-shadow: 0 0 0 6px black;
}
.spw-custom-select__create-btn--big {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  margin-left: 4px;
  padding-top: 0;
}
.spw-custom-select__options {
  background-color: #fff;
  border: 1px solid var(--spw-color-themes-grey-grey-800);
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.spw-custom-select__options:not(.spw-custom-select__options--fixed) {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: -1px;
}
.spw-custom-select__options--up:not(.spw-custom-select__options--fixed) {
  top: 0;
  transform: translateY(-100%);
  border-radius: 4px 4px 0 0;
  margin-top: 0;
}
.spw-custom-select__options--fixed.spw-custom-select__options--down {
  transform: translateY(0);
}
.spw-custom-select__options--fixed.spw-custom-select__options--up {
  transform: translateY(-100%);
  border-radius: 4px 4px 0 0;
  margin-top: -40px;
}
.spw-custom-select--down.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options--fixed {
  margin-top: 44px;
}
.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options--fixed {
  margin-top: -86px;
}
.spw-custom-select--down.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options:not(.spw-custom-select__options--fixed) {
  margin-top: 44px;
}
.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options:not(.spw-custom-select__options--fixed) {
  margin-top: -46px;
}
.spw-custom-select__options-list {
  max-height: 200px;
  overflow-y: auto;
}
.spw-custom-select__options-list::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}
.spw-custom-select__options-list::-webkit-scrollbar-thumb {
  background: var(--spw-color-themes-grey-grey-400);
  border-radius: 20px;
  border: 4px solid var(--spw-ds-white);
}
.spw-custom-select__options-list::-webkit-scrollbar-track {
  background: var(--spw-ds-white);
}
.spw-custom-select__options-list {
  scrollbar-face-color: var(--spw-color-themes-grey-grey-400);
  scrollbar-track-color: var(--spw-ds-white);
}
.spw-custom-select__options-footer {
  border-top: 1px solid var(--spw-color-themes-grey-grey-900);
  padding: 8px;
  background-color: #fff;
}
.spw-custom-select__no-results {
  padding: 12px;
  cursor: not-allowed;
  color: var(--spw-color-themes-grey-grey-600);
}
.spw-custom-select__option {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--spw-color-themes-grey-grey-900);
  padding: 12px;
  cursor: pointer;
}
.spw-custom-select__option:hover {
  background-color: var(--spw-color-themes-grey-grey-200);
}
.spw-custom-select__option:last-child {
  border-bottom: none;
}
.spw-custom-select__option--selected {
  font-weight: 700;
}
.spw-custom-select__option--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.spw-custom-select__option--disabled:hover {
  background-color: transparent;
}
.spw-custom-select__option--created {
  justify-content: space-between;
}
.spw-custom-select__option-remove {
  padding-left: 4px;
  margin-left: auto;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--spw-color-themes-grey-grey-600);
  transition: color 0.15s ease;
}
.spw-custom-select__option-remove:hover {
  color: var(--spw-color-themes-grey-grey-900);
}
.spw-custom-select__error {
  display: block;
  font-size: 12px;
  color: var(--spw-color-themes-grey-grey-600);
  margin-top: 8px;
}

.spw-custom-select__option--focused {
  background-color: var(--spw-color-themes-grey-grey-300);
}