/*
 * The card on the status page that asks for permission to send messages (screen 5 of docs/planning/15-push-native-screens.html, templates/order/_push_card.html.twig):
 * under the status card, the bell in a circle of the soft colour, the question, what the messages are, the button and "Niet nu". Only in an app.
 */

@layer components {
  /* Hidden until the app says so: the attribute is the only thing that says it, so no rule here may set a display. */
  .push-ask {
    margin: var(--s-3) var(--s-4) 0;
    padding: var(--s-4);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-1);
  }

  .push-ask__top {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
  }

  .push-ask__ico {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
  }

  .push-ask__body {
    min-width: 0;
  }

  .push-ask__title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    overflow-wrap: anywhere;
  }

  .push-ask__text {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .push-ask__enable {
    margin-top: var(--s-3);
  }

  /* A text button, as tall as a touch target, in the colour of the actions. */
  .push-ask__later {
    display: block;
    width: 100%;
    min-height: var(--tap);
    margin: var(--s-2) 0 0;
    padding: 0 var(--s-3);
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: center;
  }

  .push-ask__later:active {
    opacity: 0.6;
  }

  @media (hover: hover) and (pointer: fine) {
    .push-ask__later:hover {
      text-decoration: underline;
    }
  }
}
