:host {
  /**
   * @prop --background: Background of the toast
   * @prop --color: Color of the toast text
   *
   * @prop --border-color: Border color of the toast
   * @prop --border-radius: Border radius of the toast
   * @prop --border-width: Border width of the toast
   * @prop --border-style: Border style of the toast
   *
   * @prop --white-space: White space of the toast message
   *
   * @prop --box-shadow: Box shadow of the toast
   *
   * @prop --min-width: Minimum width of the toast
   * @prop --width: Width of the toast
   * @prop --max-width: Maximum width of the toast
   *
   * @prop --min-height: Minimum height of the toast
   * @prop --height: Height of the toast
   * @prop --max-height: Maximum height of the toast
   *
   * @prop --button-color: Color of the button text
   *
   * @prop --start: Position from the left if direction is left-to-right, and from the right if direction is right-to-left
   * @prop --end: Position from the right if direction is left-to-right, and from the left if direction is right-to-left
   */
  --border-width: 0;
  --border-style: none;
  --border-color: initial;
  --box-shadow: none;
  --min-width: auto;
  --width: auto;
  --min-height: auto;
  --height: auto;
  --max-height: auto;
  --white-space: normal;
  left: 0;
  top: 0;
  display: block;
  position: fixed;
  width: 100%;
  height: 100%;
  outline: none;
  color: var(--color);
  font-family: var(--gasco-font-family, inherit);
  contain: strict;
  z-index: 1001;
  pointer-events: none;
}
:host-context([dir=rtl]) {
  left: unset;
  right: unset;
  right: 0;
}

:host(.overlay-hidden) {
  display: none;
}

:host(.gasco-color) {
  --button-color: inherit;
  color: var(--gasco-color-contrast);
}

:host(.gasco-color) .toast-button-cancel {
  color: inherit;
}

:host(.gasco-color.gasco-color-primary) .toast-wrapper {
  background: #F2FCFF;
}

:host(.gasco-color.gasco-color-danger) .toast-wrapper {
  background: #FFF2F2;
}

:host(.gasco-color.gasco-color-success) .toast-wrapper {
  background: #F2FFFB;
}

:host(.gasco-color.gasco-color-warning) .toast-wrapper {
  background: #FFFBF2;
}

:host(.gasco-color) .toast-wrapper {
  border-style: solid;
  border-color: var(--gasco-color-base);
  border-width: 2px 2px 2px 5px;
}

.toast-wrapper {
  border-radius: var(--border-radius);
  left: var(--start);
  right: var(--end);
  width: var(--width);
  min-width: var(--min-width);
  max-width: var(--max-width);
  height: var(--height);
  min-height: var(--min-height);
  max-height: var(--max-height);
  border-width: var(--border-width);
  border-style: var(--border-style);
  border-color: var(--border-color);
  background: var(--background);
  box-shadow: var(--box-shadow);
}
[dir=rtl] .toast-wrapper, :host-context([dir=rtl]) .toast-wrapper {
  left: unset;
  right: unset;
  left: var(--end);
  right: var(--start);
}

.toast-container {
  display: flex;
  align-items: center;
  pointer-events: auto;
  height: inherit;
  min-height: inherit;
  max-height: inherit;
  contain: content;
}

.toast-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.toast-title {
  margin: 0;
}

.toast-message {
  flex: 1;
  white-space: var(--white-space);
}

.toast-button {
  border: 0;
  outline: none;
  color: var(--button-color);
  z-index: 0;
}

.toast-icon {
  padding-left: 23px;
  align-self: baseline;
  margin-top: 10px;
}

:host(.gasco-color.gasco-color-primary) .toast-wrapper .toast-icon svg path {
  fill: var(--gasco-color-base);
}

:host(.gasco-color.gasco-color-danger) .toast-wrapper .toast-icon svg path {
  fill: var(--gasco-color-base);
}

:host(.gasco-color.gasco-color-success) .toast-wrapper .toast-icon svg path {
  fill: var(--gasco-color-base);
}

:host(.gasco-color.gasco-color-warning) .toast-wrapper .toast-icon svg path {
  fill: var(--gasco-color-base);
}

.toast-button-inner {
  display: flex;
  align-items: center;
}

@media (any-hover: hover) {
  .toast-button:hover {
    cursor: pointer;
  }
}
:host {
  --background: #F2FCFF;
  --border-radius: 0px 8px 8px 0px;
  --box-shadow: 0px 4px 8px rgba(171, 190, 209, 0.4);
  --button-color: var(--gasco-color-primary, #00A3E0);
  --color: #072531;
  --max-width: 700px;
  --max-width-large: 1314px;
  --max-width-small: 298px;
  --start: 8px;
  --end: inherit;
}

.toast-wrapper {
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;
  display: block;
  position: absolute;
  opacity: 1;
  z-index: 10;
  width: 100%;
  max-width: var(--max-width);
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  .toast-wrapper {
    margin-left: unset;
    margin-right: unset;
    -webkit-margin-start: auto;
    margin-inline-start: auto;
    -webkit-margin-end: auto;
    margin-inline-end: auto;
  }
}

.toast-content {
  padding-left: 12px;
  padding-right: 23px;
  padding-top: 10px;
  padding-bottom: 10px;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  .toast-content {
    padding-left: unset;
    padding-right: unset;
    -webkit-padding-start: 12px;
    padding-inline-start: 12px;
    -webkit-padding-end: 23px;
    padding-inline-end: 23px;
  }
}

.toast-title {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  color: var(--color);
}

.toast-message {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--color);
}

:host(.toast-large) .toast-wrapper {
  max-width: var(--max-width-large);
}
:host(.toast-large) .toast-title {
  font-size: 20px;
  line-height: 28px;
}
:host(.toast-large) .toast-message {
  font-size: 16px;
  line-height: 24px;
}

:host(.toast-small) .toast-wrapper {
  max-width: var(--max-width-small);
}
:host(.toast-small) .toast-message {
  font-size: 12px;
  line-height: 16px;
}

.toast-button {
  position: relative;
  background: transparent;
  padding-right: 23px;
}

.toast-button-cancel {
  color: var(--gasco-color-step-100, #e6e6e6);
}

.toast-button-icon-only {
  border-radius: 50%;
  padding-left: 9px;
  padding-right: 9px;
  padding-top: 9px;
  padding-bottom: 9px;
  width: 36px;
  height: 36px;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  .toast-button-icon-only {
    padding-left: unset;
    padding-right: unset;
    -webkit-padding-start: 9px;
    padding-inline-start: 9px;
    -webkit-padding-end: 9px;
    padding-inline-end: 9px;
  }
}

@media (any-hover: hover) {
  .toast-button-cancel:hover {
    background-color: rgba(var(--gasco-background-color-rgb, 255, 255, 255), 0.08);
  }
}