.app {
  font-family: "Inter";

  box-sizing: border-box;

  --gray-50: #f8fafc;
  --gray-100: #f0f5f9;
  --gray-200: #e1e8f0;
  --gray-300: #cad5e0;
  --gray-400: #91a4b7;
  --gray-500: #61758a;
  --gray-600: #445668;
  --gray-700: #304254;
  --gray-800: #1c2a3a;
  --gray-900: #0d1829;

  --blue-50: #f5f7ff;
  --blue-100: #ecf0ff;
  --blue-200: #d8e0ff;
  --blue-600: #3e64ff;

  --yellow-100: #fff7ec;
  --yellow-600: #ffa83f;

  --red-300: #f1a3a6;
}

p,
pre {
  margin: 0;
}

.container {
  border: solid 1px var(--gray-300);
  border-bottom: solid 1px var(--gray-200);
  border-radius: 0.5rem;
  background-color: rgba(248, 250, 252, 0.3);
  padding-bottom: 12px;
}

.row {
  display: flex;
  gap: 24px;
  margin: 7px 0 0;
}

.root {
  display: flex;
  background-color: var(--blue-100);
  padding: 8px 16px;
  margin-bottom: 12px;
  border-radius: 0.5rem 0.5rem 0 0;
  border-bottom: solid 1px var(--gray-200);
}

.input {
  appearance: none;
  padding: 8px 12px;
  background-color: var(--gray-50);
  font-size: 0.875rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  color: var(--gray-600);
}

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

.input::placeholder {
  color: var(--gray-400);
}

.input:focus {
  outline: none;
  border: 1px solid var(--gray-300);
}

.input:disabled {
  opacity: 50%;
}

.input-label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.875rem;
  color: var(--gray-800);
  font-weight: 500;
}

.inline-input-label {
  display: block;
  margin-bottom: 2px;
  color: var(--gray-800);
  font-weight: 500;
  padding-right: 6px;
  font-size: 0.875rem;
}

.input--xs {
  width: 30%;
}

.input--md {
  width: 58%;
}

.root .input-label {
  color: var(--gray-600);
  padding-right: 6px;
  font-size: 0.875rem;
  text-transform: uppercase;
  padding-top: 2px;
}

.field {
  display: flex;
  flex-direction: column;
  flex-basis: 33%;
}

.field--xl {
  flex-basis: 69%;
}

.inner-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.inner-field .input {
  border: none;
  background-color: transparent;
  background-position: center right 0px;
  cursor: pointer;
  text-align: right;
  padding-right: 14px;
}

.input.inner-number-input.input {
  border: 1px solid var(--gray-300);
  cursor: text;
  width: 25%;
}

.field-with-settings {
  display: flex;
  flex-direction: column;
}

.root-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: end;
}

.root-field:first-child {
  width: 80%;
  justify-content: start;
  flex-shrink: 3;
}

.button {
  padding: 0.5rem 1.25rem;
  color: var(--gray-500);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 0.5rem;
  border-width: 1px;
  border-color: transparent;
  margin-right: 15px;
  margin-bottom: 6px;
  background-color: var(--gray-100);
}

.button:hover {
  cursor: pointer;
  background-color: var(--gray-300);
}

.button:disabled {
  opacity: 50%;
  pointer-events: none;
}

.button--toggle {
  font-size: 0.875rem;
  font-weight: normal;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  background: transparent;
}

.button--toggle .button-svg {
  width: 0.7rem;
  height: 0.6rem;
}

.button--toggle:hover {
  background: transparent;
}

.button--sm {
  margin: 0;
  padding: 5px 0 0 10px;
  color: var(--gray-500);
  background: transparent;
}

.button--sm:hover {
  background: transparent;
  color: var(--gray-900);
}

.button--dashed {
  background: transparent;
  border: 1px dashed var(--gray-500);
}

.button--dashed:hover {
  background-color: var(--gray-100);
}

.box {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  border: solid 1px var(--gray-300);
}

.box > *:not(:first-child) {
  margin-top: 1rem;
}

.box pre code {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--gray-900);
}

.box.box-warning {
  color: var(--gray-900);
  background-color: var(--yellow-100);
  border-color: var(--yellow-600);
}

.hidden {
  display: none;
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01Ljk5OTg5IDQuOTc2NzFMMTAuMTI0OSAwLjg1MTcwOEwxMS4zMDMyIDIuMDMwMDRMNS45OTk4OSA3LjMzMzM3TDAuNjk2NTU1IDIuMDMwMDRMMS44NzQ4OSAwLjg1MTcwOEw1Ljk5OTg5IDQuOTc2NzFaIiBmaWxsPSIjNjE3NThBIi8+Cjwvc3ZnPgo=");
  background-repeat: no-repeat;
  background-position: center right 10px;
  background-size: 10px;
  padding-right: 28px;
}

.unavailable-option {
  color: rgba(0, 0, 0, 0.5);
}

.unavailable {
  color: rgba(0, 0, 0, 0.5);
}

select option {
  color: black;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.accordion-control {
  display: flex;
  padding: 6px;
  align-items: center;
  justify-content: space-between;
  width: auto;
  flex-grow: 1;
  color: var(--gray-700);
  margin-bottom: 0px;
  background-color: var(--blue-50);
  border-radius: 0.5rem;
}

.accordion-control.expanded {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.accordion-body {
  padding: 0 6px 12px;
}

.accordion-body.expanded {
  padding-left: 0;
}

.button-svg {
  transition-property: all;
  transition-duration: 200ms;
  width: 0.95rem;
}

.rotate--90 {
  transform: rotate(-90deg);
}

.rotate-0 {
  transform: rotate(0deg);
}

.layer-wrapper {
  margin: 7px 14px;
}

.layer-wrapper.card {
  border: 1px solid var(--blue-200);
  border-radius: 0.5rem;
}

.accordion-control {
  cursor: move;
}

.layer-controls {
  display: flex;
  justify-content: flex-end;
}

.add-layer {
  display: flex;
  padding: 12px 0 0 16px;
}

.hidden-checkbox-input {
  display: none;
}

.input-icon {
  border: 1px solid var(--gray-200);
  outline: none;
  padding: 8px 12px 8px 42px;
}

.input-icon:hover {
  cursor: pointer;
}

.input-icon-container {
  position: relative;
  flex-basis: 33%;
}

.icon-container {
  position: absolute;
  top: 20px;
  padding: 5px 6px;
  border-right: 1px solid var(--gray-200);
  width: 22px;
  height: 23px;
  background-color: var(--gray-200);
  border-radius: 0.5rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-left: 1px;
}

.icon-container:hover {
  cursor: pointer;
  background-color: var(--gray-300);
}

.input-icon-text {
  border: 1px solid var(--gray-200);
  outline: none;
  padding: 8px 12px 8px 42px;
}

.hidden-checkbox:hover {
  cursor: pointer;
}

.field-settings-container {
  padding: 6px 9px;
  border-radius: 0.5rem;
  margin-bottom: 4px;
  border: 1px solid var(--gray-200);
}

/* Switch SM */

.switch-sm {
  margin-top: 3px;
}

.switch-button {
  display: inline-block;
  position: relative;
  width: 28px;
  height: 14px;
  user-select: none;
}

.switch-button[disabled] {
  pointer-events: none;
  opacity: 0.5;
}

.switch-button-checkbox {
  outline: none;
  appearance: none;
  position: absolute;
  display: block;
  width: 14px;
  height: 14px;
  margin: 0;
  border-radius: 9999px;
  background-color: white;
  border: 2.5px solid var(--gray-300);
  cursor: pointer;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.switch-button-bg {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background-color: var(--gray-300);
  cursor: pointer;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.switch-button-checkbox:checked {
  background: white;
  border-color: var(--blue-600);
  transform: translateX(100%);
}

.switch-button-checkbox:checked + .switch-button-bg {
  background-color: var(--blue-600);
}

.switch-button-checkbox:disabled {
  background: white;
  border-color: var(--blue-100);
}

.switch-button-checkbox:disabled + .switch-button-bg {
  background-color: var(--blue-100);
}

/* Fix icon position - Safari 11+ */
@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance: none) and (stroke-color: transparent) {
    .icon-container {
      top: 22px;
    }
  }
}

/* Fix icon border - Firefox */
@-moz-document url-prefix() {
  .icon-container {
    height: 24px;
  }
}
