/* PageKit components, hand-built from the DS component definitions. pk-* classes only. */

/* Button */
.pk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--brand-component-button-gap);
  padding: var(--brand-component-button-padding-y) var(--brand-component-button-padding-x);
  border-radius: var(--brand-component-button-radius);
  border: 1.5px solid transparent;
  font-family: var(--brand-typography-font-family-body), sans-serif;
  font-size: var(--text-style-button-font-size, 1rem);
  line-height: var(--text-style-button-line-height, 1.4);
  font-weight: var(--text-style-button-font-weight, var(--brand-typography-font-weight-emphasis, 500));
  letter-spacing: var(--text-style-button-letter-spacing, 0em);
  text-transform: var(--text-style-button-text-case, none);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  background: var(--brand-component-button-background-primary-default-default);
  color: var(--brand-component-button-text-primary-default-default);
}
.pk-button:hover:not([disabled]) {
  background: var(--brand-component-button-background-primary-default-hover);
  color: var(--brand-component-button-text-primary-default-hover);
}
.pk-button:active:not([disabled]) {
  background: var(--brand-component-button-background-primary-default-active);
  color: var(--brand-component-button-text-primary-default-active);
}
.pk-button[disabled] {
  background: var(--brand-component-button-background-primary-default-disabled);
  color: var(--brand-component-button-text-primary-default-disabled);
  cursor: not-allowed;
}
.pk-button:focus-visible {
  outline: 2px solid var(--brand-color-light-primary-primary);
  outline-offset: 2px;
}

.pk-button--secondary {
  background: var(--brand-component-button-background-secondary-default);
  border-color: var(--brand-component-button-border-secondary-default-default);
  color: var(--brand-component-button-text-secondary-default-default);
}
.pk-button--secondary:hover:not([disabled]) {
  background: var(--brand-component-button-background-secondary-default);
  border-color: var(--brand-component-button-border-secondary-default-hover);
  color: var(--brand-component-button-text-secondary-default-hover);
}
.pk-button--secondary:active:not([disabled]) {
  background: var(--brand-component-button-background-secondary-default);
  border-color: var(--brand-component-button-border-secondary-default-active);
  color: var(--brand-component-button-text-secondary-default-active);
}
.pk-button--secondary[disabled] {
  background: var(--brand-component-button-background-secondary-default);
  border-color: var(--brand-component-button-border-secondary-default-disabled);
  color: var(--brand-component-button-text-secondary-default-disabled);
}

.pk-button--tertiary {
  background: var(--brand-component-button-background-tertiary-default);
  border-color: transparent;
  color: var(--brand-component-button-text-tertiary-default-default);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.pk-button--tertiary:hover:not([disabled]) {
  color: var(--brand-component-button-text-tertiary-default-hover);
}
.pk-button--tertiary:active:not([disabled]) {
  color: var(--brand-component-button-text-tertiary-default-active);
}
.pk-button--tertiary[disabled] {
  color: var(--brand-component-button-text-tertiary-default-disabled);
}

.pk-button--inverted {
  background: var(--brand-component-button-background-primary-inverted-default);
  color: var(--brand-component-button-text-primary-inverted-default);
}
.pk-button--inverted:hover:not([disabled]) {
  background: var(--brand-component-button-background-primary-inverted-hover);
  color: var(--brand-component-button-text-primary-inverted-hover);
}
.pk-button--inverted:active:not([disabled]) {
  background: var(--brand-component-button-background-primary-inverted-active);
  color: var(--brand-component-button-text-primary-inverted-active);
}
.pk-button--inverted[disabled] {
  background: var(--brand-component-button-background-primary-inverted-disabled);
  color: var(--brand-component-button-text-primary-inverted-disabled);
}
.pk-button--secondary.pk-button--inverted {
  background: var(--brand-component-button-background-secondary-inverted);
  border-color: var(--brand-component-button-border-secondary-inverted-default);
  color: var(--brand-component-button-text-secondary-inverted-default);
}
.pk-button--secondary.pk-button--inverted:hover:not([disabled]) {
  border-color: var(--brand-component-button-border-secondary-inverted-hover);
  color: var(--brand-component-button-text-secondary-inverted-hover);
}
.pk-button--secondary.pk-button--inverted:active:not([disabled]) {
  border-color: var(--brand-component-button-border-secondary-inverted-active);
  color: var(--brand-component-button-text-secondary-inverted-active);
}
.pk-button--secondary.pk-button--inverted[disabled] {
  border-color: var(--brand-component-button-border-secondary-inverted-disabled);
  color: var(--brand-component-button-text-secondary-inverted-disabled);
}
.pk-button--tertiary.pk-button--inverted {
  background: var(--brand-component-button-background-tertiary-inverted);
  color: var(--brand-component-button-text-tertiary-inverted-default);
}
.pk-button--tertiary.pk-button--inverted:hover:not([disabled]) {
  color: var(--brand-component-button-text-tertiary-inverted-hover);
}
.pk-button--tertiary.pk-button--inverted:active:not([disabled]) {
  color: var(--brand-component-button-text-tertiary-inverted-active);
}
.pk-button--tertiary.pk-button--inverted[disabled] {
  color: var(--brand-component-button-text-tertiary-inverted-disabled);
}

.pk-button--small {
  padding: var(--brand-component-button-small-padding-y) var(--brand-component-button-small-padding-x);
  font-size: var(--text-style-button-small-font-size, 0.875rem);
  line-height: var(--text-style-button-small-line-height, 1.4);
  letter-spacing: var(--text-style-button-small-letter-spacing, 0em);
  text-transform: var(--text-style-button-small-text-case, none);
}

/* Divider */
.pk-divider {
  border: 0;
  margin: 0;
  display: block;
  width: 100%;
  height: 1px;
  background: var(--brand-component-divider-fill-default);
}
.pk-divider--subtle {
  background: var(--brand-component-divider-fill-subtle);
}
.pk-divider--vertical {
  width: 1px;
  height: auto;
  align-self: stretch;
}
