/* Galantra homepage: approved compact mobile size-selection link. */
.cml-mobile-size-banner-host { display: none; }
.cml-mobile-size-banner { display: none; }

@media not all and (min-width: 768px) {
  body.type-index #carousel img[alt="Dámské prádlo dle velikosti"],
  body.type-index #carousel .cml-size-banner-link > .extended-banner-texts {
    display: none !important;
  }
  body.type-index .cml-mobile-size-banner-host { display: block; }
  body.type-index .cml-size-banner-link { display: block; text-decoration: none; }
  body.type-index .cml-size-banner-link .cml-mobile-size-banner {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 14px;
    border: 1px solid #efccdc;
    border-radius: 22px;
    background: #fff4f8;
    color: #30242b;
    font-family: Nunito, Arial, sans-serif;
    text-align: left;
    white-space: normal;
  }
  body.type-index .cml-size-compact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    color: #bd2464;
  }
  body.type-index .cml-size-compact-icon svg { display: block; width: 25px; height: 25px; }
  body.type-index .cml-size-compact-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
  body.type-index .cml-size-banner-link .cml-mobile-size-banner-title {
    margin: 0;
    color: #30242b;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.22;
    overflow-wrap: normal;
  }
  body.type-index .cml-size-compact-description { color: #6c5863; font-size: 13px; line-height: 1.35; }
  body.type-index .cml-size-compact-arrow { display: block; width: 18px; height: 18px; color: #bd2464; }
  body.type-index .cml-size-compact-arrow svg { display: block; width: 18px; height: 18px; }
  body.type-index .cml-size-banner-link:focus-visible { outline: 3px solid #bd2464; outline-offset: 4px; }

  /* Release only the original single size-banner slide's desktop image reserve.
     Multi-slide carousels and desktop geometry remain under the native template. */
  body.type-index #carousel > .carousel-inner:has(> .item:only-child .cml-size-banner-link) {
    min-height: 0 !important;
    height: auto !important;
  }
}

@media (max-width: 360px) {
  body.type-index .cml-size-banner-link .cml-mobile-size-banner {
    grid-template-columns: 38px minmax(0, 1fr) 16px;
    gap: 9px;
    padding: 16px 11px;
  }
  body.type-index .cml-size-compact-icon { width: 38px; height: 38px; }
  body.type-index .cml-size-banner-link .cml-mobile-size-banner-title { font-size: 16px; }
  body.type-index .cml-size-compact-arrow,
  body.type-index .cml-size-compact-arrow svg { width: 16px; height: 16px; }
}
