/* 25 Nov 2026: isolated corrections identified in the three-shop visual audit. */
.cml-mobile-size-banner { display: none; }
.cml-categories-toggle { display: none; }

/* The Galantra sidebar leaves less room than the widget's viewport breakpoint assumes. */
@media (min-width: 768px) and (max-width: 1199px) {
  body.cml-polish-gal.type-product .all-colors__row {
    grid-template-columns: 110px minmax(0, 1fr) !important;
  }
  body.cml-polish-gal.type-product .all-colors__actions {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    width: auto;
    max-width: 100%;
  }
  body.cml-polish-gal.type-product .all-colors__actions button {
    max-width: 100%;
  }
  body.cml-polish-gal.type-product .rate-wrap {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.cml-polish-gal.type-product .rate-average-wrap,
  body.cml-polish-gal.type-product .rate-wrap .votes {
    min-width: 0;
    max-width: 100%;
  }
}
@media (767px < width < 768px) {
  body.cml-polish-gal.type-product .p-image-wrapper > .row,
  body.cml-polish-gal.type-product .shp-tabs-wrapper > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

body.cml-polish-gal .delivery-time-row.cml-empty-delivery {
  display: none !important;
}

body.cml-polish-gal .cml-shipping-option {
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid #e9dce2;
  border-radius: 6px;
  background: #fffafb;
  line-height: 1.65;
}
body.cml-polish-gal .cml-old-shipping-threshold {
  display: inline-block;
  margin: 0 .65em 0 .2em;
  color: #6e6268;
  font-size: .9em;
  font-weight: 400;
  white-space: nowrap;
}

@media (min-width: 768px) {
  body.cml-polish-sk .cart-table tr > td.p-price {
    display: table-cell !important;
  }
}

/* Preserve native column widths; put stock under the name at laptop widths. */
@media (min-width: 768px) and (max-width: 1580px) {
  body.cml-polish-cz.type-product #variants .variant-table .variant-name-wrapper {
    display: grid !important;
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: center;
    gap: 3px 12px;
    min-width: 0;
    width: auto !important;
    padding: 0 !important;
  }
  body.cml-polish-cz.type-product #variants .variant-table .variant-image {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 60px !important;
    margin: 0 !important;
  }
  body.cml-polish-cz.type-product #variants .variant-table .variant-image + div {
    grid-column: 2;
    width: auto !important;
    min-width: 0;
  }
  body.cml-polish-cz.type-product #variants .variant-table .variant-name-wrapper > .var-dostupnost {
    display: block !important;
    position: static !important;
    grid-column: 2;
    grid-row: 2;
    width: auto !important;
    margin: 0 !important;
    text-align: left;
  }
  body.cml-polish-cz.type-product #variants .var-dostupnost::before {
    position: static !important;
    display: inline-block;
    margin-right: 6px;
    transform: none;
  }
  body.cml-polish-cz.type-product #variants .table-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 110px 270px;
    align-items: center;
    gap: 8px 12px;
    padding: 8px 0 !important;
  }
  body.cml-polish-cz.type-product #variants .table-row > .price,
  body.cml-polish-cz.type-product #variants .table-row > .cart {
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.cml-polish-cz.type-product #variants .table-row > .cart {
    grid-column: 3;
  }
  body.cml-polish-cz.type-product #variants .variant-cart,
  body.cml-polish-cz.type-product #variants .variant-cart .quantity,
  body.cml-polish-cz.type-product #variants .variant-cart .add-to-cart-button {
    margin: 0 !important;
  }
  body.cml-polish-cz.type-product #variants .variant-cart fieldset {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  body.cml-polish-cz.type-product #variants .table-row {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  body.cml-polish-cz.type-product #variants .table-row > .price {
    grid-column: 1;
    grid-row: 2;
  }
  body.cml-polish-cz.type-product #variants .table-row > .cart {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (width < 768px) {
  body.cml-polish-sk .cart-table tr > td.p-price { display: none !important; }
  body.cml-polish-sk .cart-wrapper .next-step-forward { z-index: 1 !important; }

  body.cml-polish-cz #mainmenu-custom-mine.cml-home-categories {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 20px;
  }
  body.cml-polish-cz.navigation-window-visible #mainmenu-custom-mine.cml-home-categories {
    display: none !important;
  }
  body.cml-polish-cz .cml-home-categories > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 0;
    min-height: 58px;
    padding: 8px 20px !important;
    border-radius: 4px;
  }
  body.cml-polish-cz .cml-home-categories > div span {
    font-size: 15px !important;
    line-height: 1.3;
  }
  body.cml-polish-cz .cml-home-categories > .cml-categories-heading {
    grid-column: 1 / -1;
    min-height: 36px;
  }
  body.cml-polish-cz .cml-home-categories[data-expanded="false"] > div:not(.cml-categories-heading):not(.cml-category-priority) {
    display: none !important;
  }
  body.cml-polish-cz .cml-categories-toggle {
    display: block;
    grid-column: 1 / -1;
    min-height: 44px;
    width: 100%;
    padding: 10px;
    border: 1px solid #c90050;
    border-radius: 4px;
    background: #fff;
    color: #a90044;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .cml-categories-toggle:focus-visible,
  .cml-size-banner-link:focus-visible {
    outline: 3px solid #222;
    outline-offset: 3px;
  }

  body.cml-polish-gal .cml-size-banner-link > img,
  body.cml-polish-gal .cml-size-banner-link > .extended-banner-texts {
    display: none !important;
  }
  body.cml-polish-gal .cml-size-banner-link .cml-mobile-size-banner {
    display: grid;
    gap: 12px;
    padding: 22px 20px;
    border: 1px solid #f4d5e1;
    border-radius: 6px;
    background: linear-gradient(120deg, #fff8fb, #fbe4ed);
    color: #30262c;
    text-align: left;
    white-space: normal;
    font-size: 16px;
    line-height: 1.45;
  }
  body.cml-polish-gal .cml-mobile-size-banner-title {
    color: #ad1851;
    font-size: 27px;
    line-height: 1.15;
  }
  body.cml-polish-gal .cml-mobile-size-banner-benefits {
    color: #62535c;
    font-size: 14px;
  }
  body.cml-polish-gal .cml-mobile-size-banner-action {
    display: block;
    padding: 12px 16px;
    border-radius: 4px;
    background: #c22c68;
    color: #fff;
    font-weight: 700;
    text-align: center;
  }
}

@media (max-width: 359px) {
  body.cml-polish-cz .responsive-tools > .site-name,
  body.cml-polish-sk .responsive-tools > .site-name {
    left: 54px !important;
    width: 140px !important;
    max-width: calc(100vw - 174px) !important;
    margin: 0 !important;
  }
  body.cml-polish-cz .responsive-tools > .site-name img,
  body.cml-polish-sk .responsive-tools > .site-name img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    max-height: 36px !important;
    object-fit: contain;
  }
}

/* Preserve the existing mobile layout at fractional CSS viewport widths. */
@media (767px < width < 768px) {
  body[class*="cml-polish-"].type-product #variants .variant-table .table-row {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #c9c9c9 !important;
  }

  body[class*="cml-polish-"].type-product #variants .variant-table .variant-name-wrapper {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center !important;
    gap: 4px 12px;
    min-width: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body[class*="cml-polish-"].type-product #variants .variant-table .variant-image {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 96px !important;
    margin: 0 !important;
  }

  body[class*="cml-polish-"].type-product #variants .variant-table .variant-image a,
  body[class*="cml-polish-"].type-product #variants .variant-table .variant-image img {
    display: block;
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
    object-fit: contain;
  }

  body[class*="cml-polish-"].type-product #variants .variant-table .variant-image + div {
    grid-column: 2;
    width: auto !important;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body[class*="cml-polish-"].type-product #variants .variant-table .variant-name {
    width: auto !important;
    max-width: 100%;
    white-space: normal;
  }

  body[class*="cml-polish-"].type-product #variants .variant-table .variant-name-wrapper > .var-dostupnost {
    position: static !important;
    grid-column: 2;
    grid-row: 2;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    align-self: start;
    text-align: left;
  }

  body[class*="cml-polish-"].type-product #variants .variant-table .table-row > .price {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body[class*="cml-polish-"].type-product #variants .variant-table .table-row > .cart {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
  }

  body[class*="cml-polish-"].type-product.template-13 #variants .variant-table .variant-name-wrapper {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  body[class*="cml-polish-"].type-product.template-13 #variants .variant-table .variant-image {
    width: 128px !important;
  }

  body[class*="cml-polish-"].type-product.template-13 #variants .variant-table .variant-image a,
  body[class*="cml-polish-"].type-product.template-13 #variants .variant-table .variant-image img {
    width: 128px !important;
    height: 128px !important;
    max-width: 128px !important;
    max-height: 128px !important;
  }
}
