:host {
  --border-interactive-default: var(--pine-border-interactive-default);
  --border-interactive-hover: var(--pine-border-interactive-hover);
  --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--color-focus-visible-outline);
  --box-shadow-focus-error: 0 0 0 1px #ffffff, 0 0 0 3px var(--color-focus-visible-outline-error);
  --color-background-default: var(--pine-color-white);
  --color-background-disabled: var(--pine-color-grey-100);
  --color-background-hover: var(--pine-color-grey-050);
  --color-background-error-default: var(--pine-color-red-050);
  --color-border-error-default: var(--pine-color-red-600);
  --color-border-focus-visible: var(--pine-color-grey-400);
  --color-border-hover: var(--pine-color-grey-400);
  --color-focus-visible-outline: var(--pine-color-purple-300);
  --color-focus-visible-outline-error: var(--pine-color-red-300);
  --color-text-disabled-default: var(--pine-color-grey-400);
  --color-text-message-error-default: var(--pine-color-red-600);
  --color-text-placeholder-default: var(--pine-color-grey-600);
  --color-text-placeholder-disabled: var(--pine-color-grey-400);
  --font-weight-label-default: var(--pine-font-weight-body-medium);
  --spacing-margin-block-end-label: var(--pine-spacing-100);
  --spacing-margin-block-start-helper-message: var(--pine-spacing-100);
  --spacing-padding-block-field: var(--pine-spacing-100);
  --spacing-padding-inline-field: var(--pine-spacing-200);
  --spacing-icon-error-message: var(--pine-spacing-050);
  --typography-message-default: var(--pine-typography-body-sm-default);
  display: inline;
}

.pds-textarea {
  display: flex;
  flex-direction: column;
}

label {
  display: block;
  font-weight: var(--font-weight-label-default);
  margin-block-end: var(--spacing-margin-block-end-label);
}

.pds-textarea__field {
  background-color: var(--color-background-default);
  border: var(--border-interactive-default);
  border-radius: var(--pine-border-radius-100);
  padding: var(--spacing-padding-block-field) var(--spacing-padding-inline-field);
}
.pds-textarea__field:hover:not(:disabled, .is-invalid) {
  border: var(--border-interactive-hover);
}
.pds-textarea__field:disabled {
  background-color: var(--color-background-disabled);
  color: var(--color-text-disabled-default);
  cursor: not-allowed;
}
.pds-textarea__field:focus-visible {
  box-shadow: var(--box-shadow-focus);
  outline: none;
}
.pds-textarea__field::placeholder {
  color: var(--color-text-placeholder-default);
}
.pds-textarea__field.is-invalid {
  border-color: var(--color-border-error-default);
}
.pds-textarea__field.is-invalid:focus-visible {
  box-shadow: var(--box-shadow-focus-error);
}

.pds-textarea__error-message,
.pds-textarea__helper-message {
  font: var(--typography-message-default);
  margin-block-start: var(--spacing-margin-block-start-helper-message);
}

.pds-textarea__error-message {
  align-items: center;
  color: var(--color-text-message-error-default);
  display: flex;
  gap: var(--spacing-icon-error-message);
}