/* The shared controls are intentionally absent from the desktop composition. */
.wedding-mobile-controls,
.wedding-mobile-only { display: none; }

@media (max-width: 767px) {
  [data-wedding-mobile-header] {
    position: relative;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    min-height: 68px;
    height: 68px;
    padding: 10px 18px;
    overflow: visible;
  }
  [data-wedding-mobile-header].sample-toolbar { position: sticky; }
  [data-wedding-mobile-header] > .brand,
  [data-wedding-mobile-header].collection-header > a,
  [data-wedding-mobile-header] > .wedding-mobile-brand {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
  }
  [data-wedding-mobile-header] > .brand img,
  [data-wedding-mobile-header].collection-header > a img,
  [data-wedding-mobile-header] > .wedding-mobile-brand img {
    width: 124px;
    max-width: 100%;
    height: auto;
  }
  [data-wedding-mobile-header] > .brand > span,
  [data-wedding-mobile-header].collection-header > a > span,
  [data-wedding-mobile-header] > .sample-back,
  [data-wedding-mobile-header] > .toolbar-title,
  [data-wedding-mobile-header] .collection-header-right > .collection-back { display: none; }
  [data-wedding-mobile-header] .collection-header-right { display: contents; }
  [data-wedding-mobile-header] .wedding-mobile-controls {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    order: 3;
    gap: 3px;
    margin-left: auto;
  }
  [data-wedding-mobile-header] .wedding-mobile-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #414636;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  [data-wedding-mobile-header] .wedding-mobile-controls button[aria-expanded="true"] { background: #e6e5d9; }
  [data-wedding-mobile-header] .wedding-mobile-controls svg { display: block; width: 23px; height: 23px; }
  [data-wedding-mobile-header] .wedding-mobile-controls button:focus-visible,
  [data-wedding-mobile-header] .wedding-mobile-navigation a:focus-visible {
    outline: 2px solid #68704c;
    outline-offset: 3px;
  }
  [data-wedding-mobile-header] .wedding-mobile-language,
  [data-wedding-mobile-header] .wedding-mobile-navigation {
    position: absolute;
    z-index: 1;
    display: none;
    top: calc(100% - 1px);
    left: auto;
    right: 18px;
    width: auto;
    max-width: calc(100% - 36px);
    margin: 0;
    border: 1px solid #d6d0c2;
    border-radius: 12px;
    background: #fbf8f1;
    color: #414636;
    box-shadow: 0 12px 30px #383b2b14;
  }
  [data-wedding-mobile-header] .wedding-mobile-language {
    right: 65px;
    padding: 5px;
    gap: 3px;
  }
  [data-wedding-mobile-header][data-header-panel="language"] .wedding-mobile-language { display: flex; }
  [data-wedding-mobile-header] .wedding-mobile-language button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    border-radius: 8px;
    font-size: 12px;
  }
  [data-wedding-mobile-header] .wedding-mobile-navigation {
    width: 292px;
    padding: 8px 16px;
    max-height: calc(100svh - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-basis: auto;
  }
  [data-wedding-mobile-header][data-header-panel="navigation"] .wedding-mobile-navigation { display: block; }
  [data-wedding-mobile-header] .wedding-mobile-navigation > a,
  [data-wedding-mobile-header].site-header .wedding-mobile-navigation > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 10px 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: 400 13px/1.65 var(--sans, sans-serif);
    letter-spacing: 0;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  [data-wedding-mobile-header] .wedding-mobile-navigation > a + a { border-top: 1px solid #e3ded2; }
  [data-wedding-mobile-header] .wedding-mobile-navigation a:hover { color: #6c704b; }
  [data-wedding-mobile-header].site-header .wedding-mobile-navigation .nav-cta { font-weight: 700; }
  [data-wedding-mobile-header].site-header .wedding-mobile-navigation .nav-cta span { display: inline; margin-left: 0; }
  html[data-preview] [data-wedding-mobile-header].sample-toolbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-wedding-mobile-header] .wedding-mobile-controls *,
  [data-wedding-mobile-header] .wedding-mobile-language,
  [data-wedding-mobile-header] .wedding-mobile-navigation { animation: none; transition: none; }
}
