/* Clocking in near the weekly limit (card #426): a centered dialog on a
   computer, a bottom sheet on a phone. */
.weekly-limit-sheet {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.625rem 1.25rem 2.125rem;
  border-radius: 1.25rem 1.25rem 0 0;
  background: #fdfbf7;
  color: #1f313b;

  @media (min-width: 640px) {
    gap: 1.125rem;
    width: 30rem;
    max-width: calc(100vw - 2rem);
    padding: 1.75rem;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgb(31 49 59 / 0.25);
  }
}
.modal:has(> .weekly-limit-sheet) { background-color: rgb(31 49 59 / 0.4); }
.weekly-limit-sheet__grabber {
  align-self: center;
  width: 2.5rem;
  height: 0.3125rem;
  margin-bottom: 0.25rem;
  border-radius: 0.1875rem;
  background: #dfd9ce;
}
.weekly-limit-sheet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.weekly-limit-sheet__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #fdf1dc;
  color: #a15c07;

  svg { width: 1.375rem; height: 1.375rem; }
}
.weekly-limit-sheet__eyebrow {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4c5a62;
}
.weekly-limit-sheet__title { font-size: 1.375rem; font-weight: 700; line-height: 1.25; }
.weekly-limit-sheet__body {
  font-size: 1rem;
  line-height: 1.5;
  color: #4c5a62;

  @media (min-width: 640px) { font-size: 0.9375rem; }
}
.weekly-limit-sheet__summary {
  padding: 0.25rem 0.875rem;
  border-radius: 0.75rem;
  background: #f7f3ec;

  div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6875rem 0;
    font-size: 0.9375rem;
    color: #4c5a62;
  }
  div + div { border-top: 1px solid #dfd9ce; }
  dd { font-size: 1.0625rem; font-weight: 700; color: #1f313b; }
  .weekly-limit-sheet__when { color: #1b6b43; }

  @media (min-width: 640px) {
    padding: 0.375rem 1rem;

    div { padding: 0.625rem 0; font-size: 0.875rem; }
    dd { font-size: 1rem; }
  }
}
.weekly-limit-sheet__note {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #4c5a62;

  @media (min-width: 640px) { font-size: 0.875rem; }
}
.weekly-limit-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.25rem;

  button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    padding: 0 1.25rem;
    border: 1px solid #d6cfc2;
    border-radius: 0.625rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1f313b;
    cursor: pointer;
  }
  .weekly-limit-sheet__go {
    border-color: transparent;
    background: #45ad6f;
    color: #0f3d24;

    svg { width: 1.125rem; height: 1.125rem; }
  }
}
