:host {
  /**
   * @prop --background: Background of the input
   *
   * @prop --color: Color of the input text
   *
   * @prop --padding-top: Top padding of the input
   * @prop --padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the input
   * @prop --padding-bottom: Bottom padding of the input
   * @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the input
   *
   * @prop --placeholder-color: Color of the input placeholder text
   * @prop --placeholder-font-style: Font style of the input placeholder text
   * @prop --placeholder-font-weight: Font weight of the input placeholder text
   * @prop --placeholder-opacity: Opacity of the input placeholder text
   */
  --placeholder-color: var(--gasco-color-medium, #999999);
  --placeholder-font-style: initial;
  --placeholder-font-weight: initial;
  --placeholder-opacity: .5;
  --padding-top: 0;
  --padding-end: 0;
  --padding-bottom: 0;
  --margin-bottom: 12px;
  --padding-start: 0;
  --box-shadow: 0px 4px 10px rgba(171, 190, 209, 0.4);
  --border-radius: 8px;
  --border-style: solid;
  --border-width: 1px;
  --border-color: var(--gasco-color-medium, #999999);
  --background: #fff;
  --color: var(--gasco-color-medium, #999999);
  --line-height-secondary: 16px;
  --font-size-secondary: 12px;
  border-radius: var(--border-radius);
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
  padding: 0 !important;
  margin-bottom: var(--margin-bottom);
  color: var(--color);
  background: var(--background);
  border-style: var(--border-style);
  border-color: var(--border-color);
  border-width: var(--border-width);
  font-family: var(--gasco-font-family, inherit);
  z-index: 2;
  transition: 300ms;
}

:host(.gasco-color) {
  color: var(--gasco-color-base);
}

:host(.has-label) {
  margin-top: var(--margin-bottom);
}

.native-input, .native-input-code {
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-decoration: inherit;
  text-indent: inherit;
  text-overflow: inherit;
  text-transform: inherit;
  text-align: inherit;
  white-space: inherit;
  color: inherit;
  display: inline-block;
  flex: 1;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  outline: none;
  background: transparent;
  box-sizing: border-box;
  appearance: none;
  border: 0;
  transition: 300ms;
}
.native-input::placeholder, .native-input-code::placeholder {
  color: var(--placeholder-color);
  font-family: inherit;
  font-style: var(--placeholder-font-style);
  font-weight: var(--placeholder-font-weight);
}
.native-input:-webkit-autofill, .native-input-code:-webkit-autofill {
  background-color: transparent;
}
.native-input:invalid, .native-input-code:invalid {
  box-shadow: none;
}
.native-input::-ms-clear, .native-input-code::-ms-clear {
  display: none;
}

.native-input {
  padding-left: var(--padding-start);
  padding-right: var(--padding-end);
  padding-top: var(--padding-top);
  padding-bottom: var(--padding-bottom);
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  .native-input {
    padding-left: unset;
    padding-right: unset;
    -webkit-padding-start: var(--padding-start);
    padding-inline-start: var(--padding-start);
    -webkit-padding-end: var(--padding-end);
    padding-inline-end: var(--padding-end);
  }
}
.native-input-label {
  position: absolute;
  top: -10px;
  left: 10px;
  background: var(--background);
  padding: 0 4px;
  font-weight: 400;
  line-height: var(--line-height-secondary);
  font-size: var(--font-size-secondary);
  border-radius: var(--border-radius);
  transition: 300ms;
}
.native-input[readonly] {
  cursor: default;
}
.native-input-textHelp, .native-input-limit {
  position: absolute;
  bottom: -17px;
  left: 10px;
  font-weight: 400;
  font-size: var(--font-size-secondary);
  line-height: var(--line-height-secondary);
  transition: 300ms;
}
.native-input-limit {
  left: inherit;
  right: 10px;
}

:host[disabled],
:host(.has-disabled) {
  --border-color: var(--gasco-color-light, #F1F1F1) !important;
  --background: var(--gasco-color-light, #F1F1F1) !important;
  --box-shadow: none;
}

.native-input[disabled] {
  opacity: 0.8;
}

:host[disabled] .native-input-label {
  --background: var(--gasco-color-light, #F1F1F1);
}

.cloned-input {
  left: 0;
  top: 0;
  position: absolute;
  pointer-events: none;
}
[dir=rtl] .cloned-input, :host-context([dir=rtl]) .cloned-input {
  left: unset;
  right: unset;
  right: 0;
}

.input-indicator-icon {
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
  background-position: left;
  border: 0;
  position: relative;
  outline: none;
  background-color: transparent;
  background-repeat: no-repeat;
  appearance: none;
  text-align: right;
  align-items: center;
  justify-content: flex-end;
  display: flex;
  margin-left: 12px;
  color: #051C24;
  font-weight: 600;
  font-size: 16px;
  line-height: 28px;
  transition: 300ms;
}
.input-indicator-icon::after {
  content: "";
  position: absolute;
  height: 70%;
  width: 1px;
  right: -10px;
  background: var(--border-color);
  transition: 300ms;
}

:host(.has-focus) {
  pointer-events: none;
  --border-color: var(--gasco-color-primary, #00A3E0) !important;
}
:host(.has-focus) .native-input-label, :host(.has-focus) .native-input-textHelp, :host(.has-focus) .native-input-limit, :host(.has-focus) .native-input.code {
  color: var(--gasco-color-primary, #00A3E0);
}
:host(.has-focus) .input-indicator-icon::after {
  background: var(--gasco-color-primary, #00A3E0);
}

:host(.has-focus) [slot=start] {
  color: var(--gasco-color-primary, #00A3E0);
}

:host(.has-focus) input,
:host(.has-focus) a,
:host(.has-focus) button {
  pointer-events: auto;
}

:host(.has-error) {
  --border-color: var(--gasco-color-secondary, #EF3340) !important;
}
:host(.has-error) .native-input-label, :host(.has-error) .native-input-textHelp, :host(.has-error) .native-input-limit, :host(.has-error) .native-input.code {
  color: var(--gasco-color-secondary, #EF3340);
}
:host(.has-error) .input-indicator-icon::after {
  background: var(--gasco-color-secondary, #EF3340);
}

:host(.has-success) {
  --border-color: var(--gasco-color-success, #339900) !important;
}
:host(.has-success) .native-input-label, :host(.has-success) .native-input-textHelp, :host(.has-success) .native-input-limit, :host(.has-success) .native-input.code {
  color: var(--gasco-color-success, #339900);
}
:host(.has-success) .input-indicator-icon::after {
  background: var(--gasco-color-success, #339900);
}

::slotted(ion-icon[slot=start]),
::slotted(ion-icon[slot=end]) {
  font-size: 1.4em !important;
  pointer-events: none;
}

::slotted(ion-icon[slot=start]) {
  margin-left: 0.6em;
  margin-right: -0.3em;
  margin-top: 0;
  margin-bottom: 0;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  ::slotted(ion-icon[slot=start]) {
    margin-left: unset;
    margin-right: unset;
    -webkit-margin-start: 0.6em;
    margin-inline-start: 0.6em;
    -webkit-margin-end: -0.3em;
    margin-inline-end: -0.3em;
  }
}

::slotted(ion-icon[slot=end]) {
  margin-left: -0.3em;
  margin-right: 0.6em;
  margin-top: 0;
  margin-bottom: 0;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  ::slotted(ion-icon[slot=end]) {
    margin-left: unset;
    margin-right: unset;
    -webkit-margin-start: -0.3em;
    margin-inline-start: -0.3em;
    -webkit-margin-end: 0.6em;
    margin-inline-end: 0.6em;
  }
}

@media (any-hover: hover) {
  :host(:not([disabled]):hover) {
    box-shadow: var(--box-shadow);
    --border-color: var(--gasco-color-dark, #222428);
    border-radius: var(--border-radius);
  }
}
:host {
  --padding-top: 12px;
  --padding-end: 16.8px;
  --padding-bottom: 12px;
  --padding-start: 16.8px;
  font-size: 14px;
  max-width: 350px;
  flex-grow: 0;
}

.input-indicator-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,<svg%20width='29'%20height='19'%20viewBox='0%200%2029%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'><g%20id='Flag%20chile'><g%20id='Flag_of_Chile%201'%20clip-path='url(%23clip0_301_4618)'><path%20id='Vector'%20d='M0.732422%200H28.7324V19H0.732422V0Z'%20fill='white'/><path%20id='Vector_2'%20d='M0.732422%209.5V0H10.0658V9.5H0.732422Z'%20fill='%230039A6'/><path%20id='Vector_3'%20d='M0.732422%209.5H28.7324V19H0.732422V9.5Z'%20fill='%23D72B1F'/><path%20id='Vector_4'%20d='M5.39918%202.375L6.77071%206.67138L3.18018%204.01613H7.61818L4.02764%206.67138L5.39918%202.375Z'%20fill='white'/><path%20id='Vector_5'%20d='M10.0659%200H28.7326V9.5H10.0659V0Z'%20fill='white'/></g></g><defs><clipPath%20id='clip0_301_4618'><rect%20width='28'%20height='19'%20fill='white'%20transform='translate(0.732422)'/></clipPath></defs></svg>");
  width: 55px;
  height: 35px;
  background-size: 22px;
}

:host(.input-large) {
  max-width: 400px;
  font-size: 16px;
}

:host(.input-small) {
  max-width: 280px;
  font-size: 14px;
}