@layer recipes {
  [data-scope="popover"][data-part="trigger"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    cursor: pointer;
    font-weight: 500;
    padding-inline: 1rem;
    padding-block: 0.25rem;
    background: var(--colors-bg-primary-subtle);
    color: #ffffff;
  }

  [data-scope="popover"][data-part="trigger"]:hover {
    background: var(--colors-bg-primary-bold);
  }

  [data-scope="popover"][data-part="content"] {
    --background: var(--colors-bg-subtle);
    background: var(--background);
    padding: 1rem;
    border-width: 1px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 15%));
    z-index: 50;
    position: relative;
    max-width: min(calc(100vw - 16px), 320px);
    width: 100%;
  }

  [data-scope="popover"][data-part="content"]:is(:focus, [data-focus]) {
    outline: 2px solid hsl(204, 100%, 40%);
  }

  [data-scope="popover"][data-part="arrow"] {
    --arrow-background: var(--background);
    --arrow-size: 8px;
  }

  [data-scope="popover"][data-part="arrow-tip"] {
    border-radius: 0.125rem;
  }

  [data-scope="popover"][data-part="arrow"] + div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  [data-scope="popover"][data-part="description"] + button {
    background: var(--colors-bg-subtle);
    padding-inline: 1rem;
    padding-block: 0.5rem;
    border-width: 1px;
  }

  [data-scope="popover"][data-part="description"] + button:focus {
    outline: 2px solid hsl(204, 100%, 40%);
  }

  [data-scope="popover"][data-part="close-trigger"] {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem;
  }
}
