/* Shrink the brand column itself instead of concealing overflowing controls. */
@media (max-width: 800px) {
  html:has(.store-logo[src*="/images/zly/"]) body {
    min-width: 0;
  }

  html:has(.store-logo[src*="/images/zly/"]) .announcement {
    height: auto;
    min-height: 28px;
    padding: 6px 12px;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .025em;
    text-align: center;
  }

  html:has(.store-logo[src*="/images/zly/"]) .store-header {
    height: 76px;
  }

  html:has(.store-logo[src*="/images/zly/"]) .store-header .header-main {
    width: calc(100% - 24px);
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    gap: 4px;
  }

  html:has(.store-logo[src*="/images/zly/"]) .store-header .wordmark {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    width: 100%;
    min-width: 0;
    gap: 8px;
    text-align: left;
  }

  html:has(.store-logo[src*="/images/zly/"]) .store-header .store-logo {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    max-height: 42px;
    border-radius: 50%;
  }

  html:has(.store-logo[src*="/images/zly/"]) .header-brand-text {
    min-width: 0;
    gap: 3px;
  }

  html:has(.store-logo[src*="/images/zly/"]) .header-brand-text b {
    font-size: clamp(12px, 3.6vw, 15px);
    line-height: 1.25;
    letter-spacing: .015em;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  html:has(.store-logo[src*="/images/zly/"]) .store-header .header-brand-text small {
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: .025em;
  }

  html:has(.store-logo[src*="/images/zly/"]) .store-header .header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    gap: 0;
  }

  html:has(.store-logo[src*="/images/zly/"]) .store-header .icon-only,
  html:has(.store-logo[src*="/images/zly/"]) .store-header .search-trigger {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
  }

  html:has(.store-logo[src*="/images/zly/"]) .store-header .icon-only svg,
  html:has(.store-logo[src*="/images/zly/"]) .store-header .search-trigger svg {
    width: 21px;
    height: 21px;
  }

  html:has(.store-logo[src*="/images/zly/"]) .store-header .search-trigger span {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  html:has(.store-logo[src*="/images/zly/"]) .store-header .icon-only i:empty {
    display: none;
  }

  html:has(.store-logo[src*="/images/zly/"]) .store-header .icon-only i {
    right: 2px;
    top: 2px;
    min-width: 17px;
    height: 17px;
    font-size: 10px;
  }

  html:has(.store-logo[src*="/images/zly/"]) .hero-campaign.store-hero-minimalista {
    grid-template-columns: minmax(0, 1fr);
  }

  html:has(.store-logo[src*="/images/zly/"]) .hero-campaign.store-hero-minimalista > img:not(.hero-brand-watermark) {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
  }

  html:has(.store-logo[src*="/images/zly/"]) .hero-campaign.store-hero-minimalista .hero-copy {
    min-width: 0;
    padding: 24px 20px;
    align-items: stretch;
    border-top: 1px solid var(--line);
  }

  html:has(.store-logo[src*="/images/zly/"]) .hero-campaign.store-hero-minimalista h1 {
    font-size: clamp(29px, 7.8vw, 36px);
    line-height: 1.12;
    letter-spacing: -.025em;
    margin: 0 0 20px;
    max-width: 100%;
    text-wrap: balance;
  }

  html:has(.store-logo[src*="/images/zly/"]) .hero-campaign .hero-copy > .hero-main-action {
    display: block;
    width: 100%;
    margin: 0;
  }

  html:has(.store-logo[src*="/images/zly/"]) .hero-campaign .hero-main-action .button {
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    justify-content: space-between;
    border-radius: 12px;
    font-size: 16px;
  }

  html:has(.store-logo[src*="/images/zly/"]) .hero-campaign .hero-copy > .hero-social-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 12px;
  }

  html:has(.store-logo[src*="/images/zly/"]) .hero-campaign .hero-social-links a {
    width: 100%;
    min-height: 48px;
    padding: 12px 8px;
    font-size: 14px;
    border-radius: 12px;
  }

  html:has(.store-logo[src*="/images/zly/"]) .hero-campaign .hero-social-links a:only-child {
    grid-column: 1 / -1;
  }

  html:has(.store-logo[src*="/images/zly/"])[data-commerce-theme=dark] .hero-campaign .hero-main-action .button {
    background: #d5dfad;
    color: #202817;
  }

  html:has(.store-logo[src*="/images/zly/"]) .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html:has(.store-logo[src*="/images/zly/"]) .footer-grid > div,
  html:has(.store-logo[src*="/images/zly/"]) .store-footer .wordmark {
    min-width: 0;
    width: auto;
    overflow-wrap: anywhere;
  }

  html:has(.store-logo[src*="/images/zly/"]) .store-footer .wordmark strong {
    font-size: 26px;
    letter-spacing: .06em;
  }
}

@media (max-width: 450px) {
  html:has(.store-logo[src*="/images/zly/"]) .store-header .header-brand-text small {
    display: none;
  }
}

@media (max-width: 360px) {
  html:has(.store-logo[src*="/images/zly/"]) .store-header .store-logo {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
  html:has(.store-logo[src*="/images/zly/"]) .store-header .wordmark {
    gap: 6px;
  }
  html:has(.store-logo[src*="/images/zly/"]) .hero-campaign.store-hero-minimalista .hero-copy {
    padding: 22px 16px;
  }
  html:has(.store-logo[src*="/images/zly/"]) .hero-campaign .hero-social-links a {
    font-size: 13px;
  }
}
