:root {
  /** Status **/
  --color-success: hsl(137, 60%, 35%);
  --bg-color-success: hsl(137, 60%, 1%);

  --color-failed: hsl(349, 100%, 35%);
  --bg-color-failed: hsl(349, 100%, 1%);

  --color-pending: hsl(35, 100%, 40%);
  --bg-color-pending: hsl(35, 100%, 1%);

  --color-refund: hsl(208, 100%, 40%);
  --bg-color-refund: hsl(208, 100%, 1%);

  /** Scrollbar styles **/
  --scrollbar-color-thumb: var(--color-surface-a10);
  --scrollbar-color-track: var(--on-surface-a10);
  --scrollbar-width: thin;
  --scrollbar-width-legacy: 10px;
}

textarea {
  resize: vertical;
}

.material-button.width-fit-content {
  max-width: fit-content !important;
}

.material-button.upper-text {
  text-transform: uppercase;
}

.material-button.height-100 {
  height: 100% !important;
}

.material-button.width-100 {
  width: 100% !important;
}

.material-button.height-50 {
  height: 50px !important;
}

.material-button.circle {
  border-radius: 50%;
  height: 65px !important;
}

.material-button.line-height-0 {
  line-height: 0 !important;
}

.material-button.flew-grow-1 {
  flex-grow: 1;
}

.assistive-text {
  display: none;
  align-items: flex-start;
  margin-top: 8px;
  margin-left: 3px;
  max-width: unset;
  column-gap: 0.25rem;
  font-size: 0.75rem;
}

.assistive-text .material-icon {
  font-size: 1rem;
}

.assistive-text.help {
  display: flex !important;
  color: hsl(0, 0%, 26%);
}

.assistive-text.error {
  color: var(--color-failed);
}

.material-button {
  position: relative;
  display: flex;
  column-gap: 4px;
  border-radius: 4px;
  user-select: none;
  padding: 0 16px;
  min-width: 64px;
  height: 36px;
  vertical-align: middle;
  text-align: center;
  outline: none;
  text-overflow: ellipsis;
  letter-spacing: 0.15px;
  font-size: 14px;
  font-weight: 500;
  line-height: 36px;
  overflow: hidden;
  cursor: pointer;
  transition: border 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.material-button:disabled {
  color: #a6a8a9 !important;
  background-color: #e7e8e8 !important;
  border: unset !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

.material-button-solid {
  color: #fff;
  border: none;
  background-color: hsl(214, 82%, 51%);
}

.material-button-solid:hover {
  background-color: hsl(214, 76%, 45%);
  box-shadow: 0 1px 2px 0 #3c40434d, 0 1px 3px 1px #3c404326;
}

.material-button-outlined {
  border: solid 1px hsl(214, 82%, 51%);
  color: hsl(214, 82%, 51%);
  background-color: transparent;
}

.material-button-outlined::-moz-focus-inner {
  border: none;
}

/* Overlay */
.material-button-outlined::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: currentColor;
  opacity: 0;
  transition: opacity 0.2s;
}

/* Hover, Focus */
.material-button-outlined:hover::before {
  opacity: 0.04;
}

.material-button-outlined:focus::before {
  opacity: 0.12;
}

.material-button-outlined:hover:focus::before {
  opacity: 0.16;
}

/* Active */
.material-button-outlined:active::after {
  opacity: 0.16;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0s;
}

.material-textfield-outlined.width-100 {
  width: 100%;
}

.material-textfield-outlined-icon > .material-input,
.material-textfield-outlined-icon > .material-textarea {
  padding-right: 45px !important;
}

.material-textfield-outlined {
  position: relative;
  display: inline-block;
  padding-top: 6px;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
}

.toggle-sensitive-data {
  float: right;
  cursor: pointer;
  position: absolute;
  top: 22px;
  right: 15px;
  color: #747775;
  transition: color 0.2s ease-in-out;
}

.toggle-sensitive-data:hover {
  color: hsl(214, 82%, 51%);
}

.table-toggle-sensitive-data {
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.2s ease-in-out;
  user-select: none;
}

.table-toggle-sensitive-data:hover {
  color: #334155;
}

/* Input, Textarea */
.material-textfield-outlined > .material-input,
.material-textfield-outlined > .material-textarea {
  margin: 0;
  border: solid 1px;
  /* Safari */
  border-color: #747775;
  border-top-color: transparent;
  border-radius: 4px;
  padding: 15px 13px 15px;
  width: 100%;
  height: inherit;
  color: #212121;
  background-color: transparent;
  box-shadow: none;
  /* Firefox */
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  caret-color: #212121;
  transition: border 0.2s, box-shadow 0.2s;
}

/* Span */
.material-textfield-outlined > .material-input + .material-span,
.material-textfield-outlined > .material-textarea + .material-span {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  border-color: #747775;
  width: 100%;
  max-height: 100%;
  color: #444746;
  font-size: 75%;
  line-height: 15px;
  cursor: text;
  transition: color 0.2s, font-size 0.2s, line-height 0.2s;
  white-space: nowrap;
}

/* Corners */
.material-textfield-outlined > .material-input + .material-span::before,
.material-textfield-outlined > .material-input + .material-span::after,
.material-textfield-outlined > .material-textarea + .material-span::before,
.material-textfield-outlined > .material-textarea + .material-span::after {
  content: "";
  display: block;
  margin-top: 6px;
  border-top: solid 1px;
  border-top-color: #747775;
  min-width: 10px;
  height: 8px;
  pointer-events: none;
  box-shadow: inset 0 1px transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.material-textfield-outlined > .material-input + .material-span::before,
.material-textfield-outlined > .material-textarea + .material-span::before {
  margin-right: 4px;
  border-left: solid 1px transparent;
  border-radius: 4px 0;
}

.material-textfield-outlined > .material-input + .material-span::after,
.material-textfield-outlined > .material-textarea + .material-span::after {
  flex-grow: 1;
  margin-left: 4px;
  border-right: solid 1px transparent;
  border-radius: 0 4px;
}

/* Placeholder-shown */
.material-textfield-outlined > .material-input:not(:focus):placeholder-shown,
.material-textfield-outlined > .material-textarea:not(:focus):placeholder-shown {
  border-top-color: #747775;
}

.material-textfield-outlined > .material-input:not(:focus):placeholder-shown + .material-span,
.material-textfield-outlined > .material-textarea:not(:focus):placeholder-shown + .material-span {
  font-size: inherit;
  line-height: 68px;
}

.material-textfield-outlined > .material-input:not(:focus):placeholder-shown + .material-span::before,
.material-textfield-outlined > .material-textarea:not(:focus):placeholder-shown + .material-span::before,
.material-textfield-outlined > .material-input:not(:focus):placeholder-shown + .material-span::after,
.material-textfield-outlined > .material-textarea:not(:focus):placeholder-shown + .material-span::after {
  border-top-color: transparent;
}

/* Focus */
.material-textfield-outlined > .material-input:focus,
.material-textfield-outlined > .material-textarea:focus {
  border-color: hsl(214, 82%, 51%);
  border-top-color: transparent;
  box-shadow: inset 1px 0 hsl(214, 82%, 51%), inset -1px 0 hsl(214, 82%, 51%), inset 0 -1px hsl(214, 82%, 51%);
  outline: none;
}

.material-textfield-outlined > .material-input:focus + .material-span,
.material-textfield-outlined > .material-textarea:focus + .material-span {
  color: hsl(214, 82%, 51%);
}

.material-textfield-outlined > .material-input:focus + .material-span::before,
.material-textfield-outlined > .material-input:focus + .material-span::after,
.material-textfield-outlined > .material-textarea:focus + .material-span::before,
.material-textfield-outlined > .material-textarea:focus + .material-span::after {
  border-top-color: hsl(214, 82%, 51%) !important;
  box-shadow: inset 0 1px hsl(214, 82%, 51%);
}

/* Disabled */
.material-textfield-outlined > .material-input:disabled,
.material-textfield-outlined > .material-input:disabled + .material-span,
.material-textfield-outlined > .material-textarea:disabled,
.material-textfield-outlined > .material-textarea:disabled + .material-span {
  border-color: #e7e8e8 !important;
  border-top-color: transparent !important;
  color: #a6a8a9 !important;
  pointer-events: none;
}

.material-textfield-outlined > .material-input:disabled + .material-span::before,
.material-textfield-outlined > .material-input:disabled + .material-span::after,
.material-textfield-outlined > .material-textarea:disabled + .material-span::before,
.material-textfield-outlined > .material-textarea:disabled + .material-span::after {
  border-top-color: #e7e8e8 !important;
}

.material-textfield-outlined > .material-input:disabled:placeholder-shown,
.material-textfield-outlined > .material-input:disabled:placeholder-shown + .material-span,
.material-textfield-outlined > .material-textarea:disabled:placeholder-shown,
.material-textfield-outlined > .material-textarea:disabled:placeholder-shown + .material-span {
  border-top-color: #e7e8e8 !important;
}

.material-textfield-outlined > .material-input:disabled:placeholder-shown + .material-span::before,
.material-textfield-outlined > .material-input:disabled:placeholder-shown + .material-span::after,
.material-textfield-outlined > .material-textarea:disabled:placeholder-shown + .material-span::before,
.material-textfield-outlined > .material-textarea:disabled:placeholder-shown + .material-span::after {
  border-top-color: transparent !important;
}

/* Faster transition in Safari for less noticable fractional font-size issue */
@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance: none) {

    .material-textfield-outlined > .material-input,
    .material-textfield-outlined > .material-input + .material-span,
    .material-textfield-outlined > .material-textarea,
    .material-textfield-outlined > .material-textarea + .material-span,
    .material-textfield-outlined > .material-input + .material-span::before,
    .material-textfield-outlined > .material-input + .material-span::after,
    .material-textfield-outlined > .material-textarea + .material-span::before,
    .material-textfield-outlined > .material-textarea + .material-span::after {
      transition-duration: 0.1s;
    }
  }
}

/* Select & Option */
.material-input option {
  /* color: #fff;
  background-color: hsl(214, 82%, 51%); */
}

/* Toggle: Begins */
.material-switch {
  z-index: 0;
  position: relative;
  display: inline-block;
  color: rgba(0, 0, 0, 0.87);
  font-size: 16px;
  line-height: 1.5;
}

/* Input */
.material-switch > input {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  z-index: -1;
  position: absolute;
  right: 6px;
  top: -8px;
  display: block;
  margin: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.38);
  outline: none;
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
  transition: opacity 0.3s 0.1s, transform 0.2s 0.1s;
}

/* Span */
.material-switch > span {
  display: inline-block;
  width: 100%;
  cursor: pointer;
}

/* Track */
.material-switch > span::before {
  content: "";
  float: right;
  display: inline-block;
  margin: 5px 0 5px 10px;
  border-radius: 7px;
  width: 36px;
  height: 14px;
  background-color: rgba(0, 0, 0, 0.38);
  vertical-align: top;
  transition: background-color 0.2s, opacity 0.2s;
}

/* Thumb */
.material-switch > span::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 16px;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  background-color: rgb(255, 255, 255);
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s, transform 0.2s;
}

/* Checked */
.material-switch > input:checked {
  right: -10px;
  background-color: hsl(207, 90%, 54%);
}

.material-switch > input:checked + span::before {
  background-color: hsla(207, 90%, 54%, 0.6);
}

.material-switch > input:checked + span::after {
  background-color: hsl(207, 90%, 54%);
  transform: translateX(16px);
}

/* Hover, Focus */
.material-switch:hover > input {
  opacity: 0.04;
}

.material-switch > input:focus {
  opacity: 0.12;
}

.material-switch:hover > input:focus {
  opacity: 0.16;
}

/* Active */
.material-switch > input:active {
  opacity: 1;
  transform: scale(0);
  transition: transform 0s, opacity 0s;
}

.material-switch > input:active + span::before {
  background-color: hsla(207, 90%, 54%, 0.6);
}

.material-switch > input:checked:active + span::before {
  background-color: hsla(0, 0%, 0%, 0.38);
}

/* Disabled */
.material-switch > input:disabled {
  opacity: 0;
}

.material-switch > input:disabled + span {
  color: hsl(0, 0%, 0%);
  opacity: 0.38;
  cursor: default;
}

.material-switch > input:disabled + span::before {
  background-color: hsla(0, 0%, 0%, 0.38);
}

.material-switch > input:checked:disabled + span::before {
  background-color: hsla(207, 90%, 54%, 0.6);
}

/* Toggle: Ends */

/* Checkbox: Begins */
.material-checkbox {
  z-index: 0;
  position: relative;
  display: inline-block;
  color: rgba(0, 0, 0, 0.87);
  font-size: 16px;
  line-height: 1.5;
}

/* Input */
.material-checkbox > input {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  z-index: -1;
  position: absolute;
  left: -10px;
  top: -8px;
  display: block;
  margin: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.6);
  box-shadow: none;
  outline: none;
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
}

/* Span */
.material-checkbox > span {
  display: inline-block;
  width: 100%;
  cursor: pointer;
}

/* Box */
.material-checkbox > span::before {
  content: "";
  display: inline-block;
  box-sizing: border-box;
  margin: 3px 11px 3px 1px;
  border: solid 2px;
  /* Safari */
  border-color: hsl(217, 90%, 43%);
  border-radius: 2px;
  width: 18px;
  height: 18px;
  vertical-align: top;
  transition: border-color 0.2s, background-color 0.2s;
}

/* Checkmark */
.material-checkbox > span::after {
  content: "";
  display: block;
  position: absolute;
  top: 3px;
  left: 1px;
  width: 10px;
  height: 5px;
  border: solid 2px transparent;
  border-right: none;
  border-top: none;
  transform: translate(3px, 4px) rotate(-45deg);
}

/* Checked, Indeterminate */
.material-checkbox > input:checked,
.material-checkbox > input:indeterminate {
  background-color: hsl(207, 90%, 54%);
}

.material-checkbox > input:checked + span::before,
.material-checkbox > input:indeterminate + span::before {
  border-color: hsl(207, 90%, 54%);
  background-color: hsl(207, 90%, 54%);
}

.material-checkbox > input:checked + span::after,
.material-checkbox > input:indeterminate + span::after {
  border-color: hsl(0, 0%, 100%);
}

.material-checkbox > input:indeterminate + span::after {
  border-left: none;
  transform: translate(4px, 3px);
}

/* Hover, Focus */
.material-checkbox:hover > input {
  opacity: 0.04;
}

.material-checkbox > input:focus {
  opacity: 0.12;
}

.material-checkbox:hover > input:focus {
  opacity: 0.16;
}

/* Active */
.material-checkbox > input:active {
  opacity: 1;
  transform: scale(0);
  transition: transform 0s, opacity 0s;
}

.material-checkbox > input:active + span::before {
  border-color: hsl(207, 90%, 54%);
}

.material-checkbox > input:checked:active + span::before {
  border-color: transparent;
  background-color: hsla(0, 0%, 0%, 0.6);
}

/* Disabled */
.material-checkbox > input:disabled {
  opacity: 0;
}

.material-checkbox > input:disabled + span {
  color: hsla(0, 0%, 0%, 0.38);
  cursor: initial;
}

.material-checkbox > input:disabled + span::before {
  border-color: currentColor;
}

.material-checkbox > input:checked:disabled + span::before,
.material-checkbox > input:indeterminate:disabled + span::before {
  border-color: transparent;
  background-color: currentColor;
}

/* Checkbox: Ends */

/* --- New CSS For Chip Text Field --- */

.chip-textfield-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  cursor: text;
}

.chip-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  border: 1px solid #747775;
  border-radius: 4px;
  padding: 12px 12px 8px 12px;
  min-height: 56px;
  transition: border-color 0.2s;
}

/* Style for when the container has focus */
.chip-container:focus-within {
  border-color: hsl(214, 82%, 51%);
  border-width: 2px;
  padding: 11px 11px 7px 11px;
}

.chip {
  display: inline-flex;
  align-items: center;
  background-color: #e8f0fe;
  border: 1px solid #d2e3fc;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 14px;
  color: #3c4043;
  line-height: 20px;
  cursor: default;
}

.chip .chip-remove {
  margin-left: 8px;
  cursor: pointer;
  font-size: 16px;
  color: #5f6368;
  border: none;
  background: none;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
}

.chip .chip-remove:hover {
  opacity: 1;
}

.chip-input {
  flex-grow: 1;
  border: none;
  outline: none;
  padding: 4px 0;
  font-size: 16px;
  min-width: 150px;
  background-color: transparent;
  height: 28px;
  font-family: inherit;
}

.chip-label {
  position: absolute;
  top: 17px;
  left: 13px;
  color: #444746;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #ffffff;
  /* Match body background to "cut" the border */
  padding: 0 4px;
}

/* State for when the label should float up */
.chip-container:focus-within + .chip-label,
.chip-textfield-wrapper.has-content .chip-label {
  top: -8px;
  font-size: 12px;
}

.chip-textfield-wrapper.has-content .chip-label {
  color: #444746;
}

.chip-container:focus-within + .chip-label {
  color: hsl(214, 82%, 51%);
}

/* --- New CSS for Auto-suggestion --- */
.suggestions-container {
  display: none;
  /* Hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #dadce0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 6px rgba(32, 33, 36, 0.28);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

.suggestion-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #f1f3f4;
}

.suggestion-item:hover,
.suggestion-item.active {
  background-color: #f1f3f4;
}

.chip-helper-text {
  margin-top: 8px;
  margin-left: 3px;
  font-size: 12px;
}

/* --- New CSS for Auto-suggestion:Ends --- */
