/* Soft Apple black/white actions — mobile menu sticky only.
   Desktop header keeps the original styles.css design. */

@media (max-width: 768px) {
  .mobile-sticky-actions {
    min-height: 72px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(0, 0, 0, .06);
    background: rgba(255, 255, 255, .94);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
    grid-template-rows: auto;
    grid-auto-flow: column;
    gap: 8px;
    align-items: stretch;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, .05);
    backdrop-filter: saturate(180%) blur(28px);
    -webkit-backdrop-filter: saturate(180%) blur(28px);
  }

  .mobile-sticky-actions > div {
    display: contents;
  }

  .mobile-sticky-actions > div a {
    min-width: 0;
    height: 56px;
    min-height: 56px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 16px;
    background: #f5f5f7;
    color: #1d1d1f;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  }

  .mobile-sticky-actions > div a:hover,
  .mobile-sticky-actions > div a:active {
    background: #ececef;
  }

  .mobile-sticky-actions > div a:active {
    transform: scale(.975);
  }

  .mobile-sticky-actions > div a svg {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 7px;
    border-radius: 11px;
    background: #fff;
    fill: none;
    stroke: #1d1d1f;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .mobile-sticky-actions > div a > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .mobile-sticky-actions > div a small {
    color: #6e6e73;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1;
  }

  .mobile-sticky-actions > div a strong {
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
  }

  .mobile-primary-cta {
    height: 56px;
    min-height: 56px;
    min-width: 0;
    padding: 0 10px 0 14px;
    border: 0;
    border-radius: 16px;
    background: #1d1d1f;
    color: #fff;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  }

  .mobile-primary-cta:hover,
  .mobile-primary-cta:active {
    background: #000;
  }

  .mobile-primary-cta:active {
    transform: scale(.975);
  }

  .mobile-primary-cta > span {
    width: auto;
    height: auto;
    min-width: 0;
    background: transparent;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .mobile-primary-cta small {
    color: rgba(255, 255, 255, .55);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: -.01em;
    text-transform: none;
    line-height: 1;
  }

  .mobile-primary-cta strong {
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
  }

  .mobile-primary-cta > svg {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    padding: 6px;
    border-radius: 50%;
    background: #fff;
    fill: none;
    stroke: #1d1d1f;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (max-width: 390px) {
  .mobile-sticky-actions {
    gap: 6px;
    padding-inline: 10px;
  }

  .mobile-sticky-actions > div a,
  .mobile-primary-cta {
    height: 52px;
    min-height: 52px;
    border-radius: 14px;
  }

  .mobile-sticky-actions > div a {
    padding: 6px 8px;
    gap: 6px;
  }

  .mobile-sticky-actions > div a svg {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    padding: 6px;
  }

  .mobile-sticky-actions > div a strong,
  .mobile-primary-cta strong {
    font-size: 12px;
  }

  .mobile-sticky-actions > div a small {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-sticky-actions > div a,
  .mobile-primary-cta,
  .mobile-assistant-support {
    transition: none !important;
  }
}
