/* Nanolab mobile header, 2026-11-27.
 * Keep the logo/tools and search in one stable layout. The product-detail
 * compact class may still toggle, but must not move individual header items.
 * Desktop and the checkout's existing search visibility are left to the theme.
 */
@media (max-width: 767px) {
  html body .top-navigation-bar,
  html.nl-mpd body .top-navigation-bar {
    position: sticky !important;
    top: 0 !important;
    height: 56px !important;
    min-height: 56px !important;
    transform: none !important;
    transition: none !important;
    background: #fff;
    z-index: 55 !important;
  }

  html body #header,
  html.nl-mpd body #header {
    position: sticky !important;
    top: 56px !important;
    height: auto !important;
    min-height: 0 !important;
    transform: none !important;
    transition: none !important;
    background: #fff;
    z-index: 55 !important;
  }

  html body .top-navigation-bar > .container,
  html body .top-navigation-tools,
  html body .responsive-tools,
  html.nl-mpd body .responsive-tools {
    height: 56px !important;
    min-height: 56px !important;
  }

  html body .responsive-tools,
  html.nl-mpd body .responsive-tools {
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html body #header .header-top,
  html.nl-mpd body #header .header-top {
    height: auto !important;
    min-height: 0 !important;
  }

  html body #header .site-name,
  html.nl-mpd body.nl-mpd-compact #header .site-name {
    position: absolute !important;
    top: -56px !important;
    left: 12px !important;
    right: auto !important;
    height: 56px !important;
    width: calc(100% - 168px) !important;
    max-width: 160px;
    display: flex !important;
    align-items: center !important;
    transform: none !important;
  }

  html body #header .site-name a {
    display: flex;
    align-items: center;
    max-width: 100%;
    height: 56px;
  }

  html body #header .site-name img,
  html.nl-mpd body.nl-mpd-compact #header .site-name img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    max-height: 42px !important;
    object-fit: contain;
  }

  html body #header .navigation-wrapper .navigation-buttons a.cart-count,
  html.nl-mpd body.nl-mpd-compact #header .navigation-buttons a.cart-count {
    position: absolute !important;
    top: -56px !important;
    right: 48px !important;
    width: 44px !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transform: none !important;
  }

  html body #header .navigation-buttons a.cart-count::before {
    position: static !important;
    display: block !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  html body #header .navigation-buttons a.cart-count i {
    top: 26px !important;
    left: auto !important;
    right: 0 !important;
    margin: 0 !important;
  }

  html body .responsive-tools > [data-target="login"],
  html body .responsive-tools > [data-target="navigation"] {
    position: absolute !important;
    top: 6px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  html body .responsive-tools > [data-target="login"] {
    right: 96px !important;
  }

  html body.ordering-process .responsive-tools > [data-target="login"] {
    right: 48px !important;
  }

  html body .responsive-tools > [data-target="navigation"] {
    right: 0 !important;
    flex-direction: column;
  }

  html body .responsive-tools > [data-target="navigation"]::before {
    position: static !important;
    display: block !important;
    height: 28px !important;
    line-height: 28px !important;
    margin: 0 !important;
  }

  html body .responsive-tools > [data-target="navigation"]::after {
    position: static !important;
    display: block !important;
    height: 12px !important;
    line-height: 12px !important;
  }

  html body .responsive-tools > [data-target="search"],
  html.nl-mpd body.nl-mpd-compact .responsive-tools > [data-target="search"] {
    display: none !important;
  }

  html.nl-mpd body #header .search,
  html.nl-mpd body.nl-mpd-compact #header .header-top .search {
    display: block !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
  }

  /* No transformed ancestor: the fixed navigation uses the viewport again. */
  html body #navigation,
  html.nl-mpd body #navigation,
  html body #navigation::before,
  html.nl-mpd body #navigation::before {
    top: 56px !important;
    height: calc(100vh - 56px) !important;
    height: calc(100dvh - 56px) !important;
  }
}

/* Mobile product quantity: show Shoptet's existing sign spans consistently. */
@media (max-width: 767px) {
  html.nl-mpd body.type-detail #content .buy-box .quantity button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #162329 !important;
    background: #f4f7f8 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
  }

  html.nl-mpd body.type-detail #content .buy-box .quantity button::before {
    content: none !important;
    display: none !important;
  }

  html.nl-mpd body.type-detail #content .buy-box .quantity .increase__sign,
  html.nl-mpd body.type-detail #content .buy-box .quantity .decrease__sign {
    display: block !important;
    color: inherit !important;
    font: inherit;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
  }

  html.nl-mpd body.type-detail #content .buy-box .quantity button:hover,
  html.nl-mpd body.type-detail #content .buy-box .quantity button:focus,
  html.nl-mpd body.type-detail #content .buy-box .quantity button:active {
    color: #162329 !important;
    background: #e9f8fc !important;
  }

  html.nl-mpd body.type-detail #content .buy-box .quantity .amount {
    color: #162329;
    font-size: 16px;
    font-weight: 600;
  }

  /* Keep the existing delivery action and its dynamically calculated date. */
  html.nl-mpd body.type-detail #content .availability-value .nl-mpd-delivery {
    flex: 0 0 100%;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    margin: 3px 0 6px;
    padding: 8px 12px;
    border: 1px solid #bde8f0;
    border-radius: 8px;
    background: #e9f8fc;
    color: #162329;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    justify-content: flex-start;
  }

  html.nl-mpd body.type-detail #content .availability-value .nl-mpd-delivery:hover,
  html.nl-mpd body.type-detail #content .availability-value .nl-mpd-delivery:focus {
    background: #dff3f8;
    color: #162329;
  }
}

/* Mobile header search: the submit button shares the input's exact edges. */
@media (max-width: 767px) {
  html body #header #formSearchForm button[type="submit"] {
    top: 0 !important;
    right: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: normal !important;
    transform: none !important;
  }
}

/* Homepage product sliders: separate finger-sized controls, 2026-11-27. */
@media (max-width: 767px) {
  body.in-index #content .homepage-group-title[class*="homepage-products-heading-"] {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 48px;
    padding-right: 120px;
    margin-bottom: 12px;
    line-height: 1.25;
  }

  body.in-index #content .homepage-group-title + .products.slick-slider > .slick-arrow {
    top: -60px !important;
    left: auto !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    min-height: 48px;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transform: none !important;
    touch-action: manipulation;
  }

  body.in-index #content .homepage-group-title + .products.slick-slider > .slick-prev {
    right: 72px !important;
  }

  body.in-index #content .homepage-group-title + .products.slick-slider > .slick-next {
    right: 12px !important;
  }
}

/* Keep long headings intact on the narrowest phones. */
@media (max-width: 359px) {
  body.in-index #content .homepage-group-title[class*="homepage-products-heading-"] {
    min-height: 0;
    padding-right: 0;
    margin-bottom: 72px;
  }
}

/* Add-to-cart confirmation: a clear status and a highlighted shipping goal. */
#colorbox .advanced-order > .h1:not(.advanced-order-suggestion) {
  position: relative;
  margin: 0;
  padding: 0 0 0 72px;
  color: #162329;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}
#colorbox .advanced-order > .h1:not(.advanced-order-suggestion)::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #178a56;
  color: #fff;
  font-size: 20px;
  line-height: 56px;
  text-align: center;
  transform: none;
}
#colorbox .advanced-order > .h2 {
  margin: 6px 0 26px;
  padding: 0 0 0 72px;
  color: #42565f;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
#colorbox .advanced-order > .extras-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 0 -8px;
  padding: 0 0 24px;
  background: transparent;
}
#colorbox .advanced-order > .extras-wrap > .do-obchodu,
#colorbox .advanced-order > .extras-wrap > .extra.step {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}
#colorbox .advanced-order > .extras-wrap > .extra.delivery {
  display: block;
  order: 0;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #bde8f0;
  border-top: 4px solid #27c0dc;
  border-radius: 14px;
  background: #e9f8fc;
  color: #263e47;
  text-align: center;
}
#colorbox .advanced-order .extra.delivery > span {
  display: block;
  width: 100%;
  color: #263e47;
  font-size: 16px;
  line-height: 1.5;
}
#colorbox .advanced-order .extra.delivery > span::before {
  position: relative;
  top: 3px;
  left: 0;
  margin: 0 8px 0 0;
  color: #0d8298;
  font-size: 24px;
  line-height: 1;
}
#colorbox .advanced-order .extra.delivery strong {
  color: #086479;
  font-size: inherit;
  font-weight: 700;
  text-transform: none;
  white-space: nowrap;
}
#colorbox .advanced-order .extra.delivery strong:first-of-type {
  display: block;
  margin: 4px 0 5px;
  color: #162329;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}
#colorbox .advanced-order .extra.delivery strong:only-of-type {
  white-space: normal;
}
#colorbox .advanced-order .extra.delivery .price-range {
  width: 100%;
  height: 10px;
  margin: 14px 0 0;
  border: 0;
  border-radius: 99px;
  background: #c8e7ee;
  overflow: hidden;
}
#colorbox .advanced-order .extra.delivery .price-range > div {
  height: 100%;
  border-radius: inherit;
  background: #27c0dc;
}
#colorbox .advanced-order > .advanced-order-suggestion {
  margin: 0 -8px;
  padding-top: 24px;
  border-top: 1px solid #e1eaed;
}
@media (min-width: 768px) and (max-width: 1023px) {
  #colorbox .advanced-order > .extras-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  #colorbox .advanced-order > .extras-wrap > .extra.delivery {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  #colorbox .advanced-order > .extras-wrap > .do-obchodu {
    grid-column: 1;
    grid-row: 2;
  }
  #colorbox .advanced-order > .extras-wrap > .extra.step {
    grid-column: 2;
    grid-row: 2;
  }
}
@media (max-width: 767px) {
  #colorbox .advanced-order > .h1:not(.advanced-order-suggestion) {
    padding: 60px 0 0;
    font-size: 22px;
    text-align: center;
  }
  #colorbox .advanced-order > .h1:not(.advanced-order-suggestion)::before {
    left: 50%;
    width: 48px;
    height: 48px;
    font-size: 18px;
    line-height: 48px;
    transform: translateX(-50%);
  }
  #colorbox .advanced-order > .h2 {
    margin: 6px 0 20px;
    padding: 0;
    font-size: 16px;
    text-align: center;
  }
  #colorbox .advanced-order > .extras-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 20px;
  }
  #colorbox .advanced-order > .extras-wrap > .extra.delivery {
    order: -1;
    padding: 16px;
  }
  #colorbox .advanced-order .extra.delivery strong:first-of-type {
    font-size: 26px;
  }
}
@media (max-width: 359px) {
  #colorbox .advanced-order .extra.delivery > span { font-size: 15px; }
}

/* Nanolab SK: do not offer ReBox, including AJAX cart updates. */
body.in-kosik.sk .fvDoplnek-upsell .fvDoplnek-category:has(.fvcontent[code="3067"]),
body.in-kosik.sk .fvDoplnek-upsell .nl-a1-rebox {
  display:none!important;
}

/* ReBox is not offered on the Slovak storefront. */
body.sk #footer li.footer-link:has(> a[href="https://www.nanolab.cz/rebox/"]) {
  display:none!important;
}

/* Cart CZ/SK: shipping goal and delivery date. Native amounts and dates stay dynamic. */
body.in-kosik #content .cart-content .extras-wrap > .extra.delivery {
  display:block;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:none;
  margin:0 0 16px;
  padding:20px;
  border:1px solid #bde8f0;
  border-top:4px solid #38bddd;
  border-radius:14px;
  background:#e9f8fc;
  color:#263e47;
  text-align:center;
}
body.in-kosik #content .cart-content .extra.delivery > span {
  display:block;
  width:100%;
  min-width:0;
  padding:0;
  color:inherit;
  font-size:16px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
body.in-kosik #content .cart-content .extra.delivery > span::before {
  display:inline-block;
  position:relative;
  top:0;
  left:0;
  width:40px;
  height:40px;
  margin:0 8px 6px 0;
  border-radius:10px;
  background:#fff;
  color:#0d8298;
  font-size:26px;
  line-height:40px;
  text-align:center;
  vertical-align:middle;
  transform:none;
}
body.in-kosik #content .cart-content .extra.delivery > span > strong {
  color:#086479;
  font-weight:700;
  text-transform:none;
}
body.in-kosik #content .cart-content .extra.delivery > span > strong:first-of-type:not(:only-of-type) {
  display:block;
  margin:4px 0 6px;
  color:#162329;
  font-size:28px;
  line-height:1.2;
  white-space:nowrap;
}
body.in-kosik #content .cart-content .extra.delivery .price-range {
  width:100%;
  height:10px;
  margin:16px 0 0;
  border:0;
  border-radius:99px;
  background:#c8e7ee;
  overflow:hidden;
}
body.in-kosik #content .cart-content .extra.delivery .price-range > div {
  height:100%;
  border-radius:inherit;
  background:#38bddd;
}
body.in-kosik #content .cart-content .extras-wrap > .extra.delivery:not(:has(.price-range)) {
  border-color:#bddfc5;
  border-top-color:#25824d;
  background:#edf8ee;
}
body.in-kosik #content .cart-content .extra.delivery:not(:has(.price-range)) > span::before {
  color:#217a45;
}
body.in-kosik #content .cart-content .extra.delivery > span > strong:only-of-type {
  display:block;
  margin:2px 0 0;
  color:#217a45;
  font-size:22px;
  line-height:1.35;
  white-space:normal;
}
body.in-kosik #content .cart-content > .delivery-time[data-testid="deliveryTime"],
body.in-kosik #content .cart-content .extras-wrap > .delivery-time[data-testid="deliveryTime"] {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:4px 8px;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:none;
  margin:0 0 24px;
  padding:18px 20px;
  border:1px solid #bde8f0;
  border-top:4px solid #38bddd;
  border-radius:14px;
  background:#e9f8fc;
  color:#263e47;
  font-size:15px;
  font-weight:500;
  line-height:1.5;
}
body.in-kosik #content .cart-content > .delivery-time[data-testid="deliveryTime"] {
  max-width:520px;
  margin:20px 0 24px auto;
}
body.in-kosik #content .cart-content > .delivery-time[data-testid="deliveryTime"] > strong,
body.in-kosik #content .cart-content .extras-wrap > .delivery-time[data-testid="deliveryTime"] > strong {
  color:#162329;
  font-size:22px;
  font-weight:700;
  line-height:1.25;
  white-space:nowrap;
}
body.in-kosik #content .cart-content .extras-wrap > .extra.delivery:has(+ .delivery-time[data-testid="deliveryTime"]) {
  margin-bottom:0;
  border-bottom:0;
  border-radius:14px 14px 0 0;
}
body.in-kosik #content .cart-content .extras-wrap > .extra.delivery + .delivery-time[data-testid="deliveryTime"] {
  margin-top:0;
  border-top-width:1px;
  border-top-color:#bde8f0;
  border-radius:0 0 14px 14px;
  background:#fff;
}
body.in-kosik #content .cart-content .extras-wrap > .extra.delivery:not(:has(.price-range)) + .delivery-time[data-testid="deliveryTime"] {
  border-color:#bddfc5;
}
@media (max-width:767px) {
  body.in-kosik #content .cart-content .extras-wrap > .extra.delivery {
    padding:16px;
  }
  body.in-kosik #content .cart-content .extra.delivery > span > strong:first-of-type:not(:only-of-type) {
    font-size:26px;
  }
  body.in-kosik #content .cart-content > .delivery-time[data-testid="deliveryTime"],
  body.in-kosik #content .cart-content .extras-wrap > .delivery-time[data-testid="deliveryTime"] {
    max-width:none;
    padding:16px;
  }
  body.in-kosik #content .cart-content > .delivery-time[data-testid="deliveryTime"] {
    margin:20px 0 24px;
  }
}

/* Cart desktop: compact shipping summary; mobile remains unchanged. */
@media (min-width:768px) {
  body.in-kosik #content .cart-content .extras-wrap > .extra.delivery {
    margin-bottom:12px;
    padding:10px 14px;
    border:1px solid #dce8eb;
    border-radius:8px;
    background:#f6fbfc;
    text-align:left;
  }
  body.in-kosik #content .cart-content .extra.delivery > span {
    font-size:14px;
    line-height:1.45;
    overflow-wrap:normal;
  }
  body.in-kosik #content .cart-content .extra.delivery > span::before {
    width:22px;
    height:22px;
    margin:0 7px 0 0;
    border-radius:0;
    background:transparent;
    font-size:21px;
    line-height:22px;
    vertical-align:-4px;
  }
  body.in-kosik #content .cart-content .extra.delivery > span > strong:first-of-type:not(:only-of-type) {
    display:inline;
    margin:0;
    font-size:16px;
    line-height:inherit;
  }
  body.in-kosik #content .cart-content .extra.delivery .price-range {
    height:6px;
    margin-top:8px;
    background:#e1ecef;
  }
  body.in-kosik #content .cart-content .extras-wrap > .extra.delivery:not(:has(.price-range)) {
    border-color:#d5e8db;
    background:#f4faf5;
  }
  body.in-kosik #content .cart-content .extra.delivery > span > strong:only-of-type {
    display:inline;
    margin:0;
    font-size:16px;
    line-height:inherit;
  }
  body.in-kosik #content .cart-content > .delivery-time[data-testid="deliveryTime"],
  body.in-kosik #content .cart-content .extras-wrap > .delivery-time[data-testid="deliveryTime"] {
    margin-bottom:18px;
    padding:9px 14px;
    border:1px solid #dce8eb;
    border-radius:8px;
    background:#f6fbfc;
    font-size:14px;
    line-height:1.4;
  }
  body.in-kosik #content .cart-content > .delivery-time[data-testid="deliveryTime"] {
    margin-top:14px;
  }
  body.in-kosik #content .cart-content > .delivery-time[data-testid="deliveryTime"] > strong,
  body.in-kosik #content .cart-content .extras-wrap > .delivery-time[data-testid="deliveryTime"] > strong {
    font-size:16px;
    line-height:1.4;
  }
  body.in-kosik #content .cart-content .extras-wrap > .extra.delivery:has(+ .delivery-time[data-testid="deliveryTime"]) {
    margin-bottom:0;
    border-bottom:0;
    border-radius:8px 8px 0 0;
  }
  body.in-kosik #content .cart-content .extras-wrap > .extra.delivery + .delivery-time[data-testid="deliveryTime"] {
    margin-top:0;
    border-top-color:#dce8eb;
    border-radius:0 0 8px 8px;
    background:#fff;
  }
  body.in-kosik #content .cart-content .extras-wrap > .extra.delivery:not(:has(.price-range)) + .delivery-time[data-testid="deliveryTime"] {
    border-color:#d5e8db;
  }
}

/* Cart mobile: slightly tighter spacing, same readable amounts and dates. */
@media (max-width:767px) {
  body.in-kosik #content .cart-content .extras-wrap > .extra.delivery {
    padding:12px 16px;
  }
  body.in-kosik #content .cart-content .extra.delivery > span::before {
    width:32px;
    height:32px;
    margin:0 8px 4px 0;
    border-radius:8px;
    font-size:23px;
    line-height:32px;
  }
  body.in-kosik #content .cart-content .extra.delivery > span > strong:first-of-type:not(:only-of-type) {
    margin:2px 0 4px;
  }
  body.in-kosik #content .cart-content .extra.delivery .price-range {
    height:8px;
    margin:10px 0 0;
  }
  body.in-kosik #content .cart-content > .delivery-time[data-testid="deliveryTime"],
  body.in-kosik #content .cart-content .extras-wrap > .delivery-time[data-testid="deliveryTime"] {
    padding:10px 16px;
  }
}

/* Cart mobile: an additional 5–9% vertical reduction; typography unchanged. */
@media (max-width:767px) {
  body.in-kosik #content .cart-content .extras-wrap > .extra.delivery {
    padding:8px 16px;
  }
  body.in-kosik #content .cart-content .extra.delivery > span::before {
    width:30px;
    height:30px;
    font-size:22px;
    line-height:30px;
  }
  body.in-kosik #content .cart-content .extra.delivery .price-range {
    margin:8px 0 0;
  }
  body.in-kosik #content .cart-content > .delivery-time[data-testid="deliveryTime"],
  body.in-kosik #content .cart-content .extras-wrap > .delivery-time[data-testid="deliveryTime"] {
    padding:8px 16px;
  }
}

/* CZ/SK: the existing coupon follows the complete native shipping/date block. */
body.in-kosik #content .cart-summary .extras-wrapper.nl-coupon-layout {
  align-items:flex-start;
  flex-wrap:wrap;
}
body.in-kosik #content .cart-summary .nl-coupon-layout > .extras-col.nl-coupon-empty {
  display:none;
}
body.in-kosik #content .cart-summary .extras-col.nl-coupon-column {
  display:block;
  flex:1 1 100%;
  width:100%;
  min-width:0;
  max-width:100%;
  padding:0;
}
body.in-kosik #content .cart-summary .nl-coupon-column > .extras-wrap.nl-coupon-stack {
  display:block;
  box-sizing:border-box;
  width:50%;
  min-width:min(360px,100%);
  max-width:100%;
  margin:0 0 0 auto;
  padding:0;
}
body.in-kosik #content .cart-summary .nl-coupon-stack > .discount-coupon.nl-coupon-card {
  width:100%;
  min-width:0;
  max-width:100%;
}
@media(max-width:767px) {
  body.in-kosik #content .cart-summary .extras-wrapper.nl-coupon-layout {
    box-sizing:border-box;
    padding:0;
  }
  body.in-kosik #content .cart-summary .nl-coupon-column > .extras-wrap.nl-coupon-stack {
    width:100%;
    min-width:0;
    margin:0;
  }
}

/* Nanolab coupon, approved variant 1. Native Shoptet form stays intact. */
body.in-kosik #content .discount-coupon.nl-coupon-card {
  position:relative;
  isolation:isolate;
  display:block;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:none;
  min-height:132px;
  margin:18px 0 0;
  padding:18px 14px 16px 96px;
  border:1px solid #d8f1f5;
  border-radius:24px;
  background:
    radial-gradient(ellipse 134px 100px at 108% -8%,#86d5df80 0 65%,transparent 66%),
    radial-gradient(ellipse 230px 42px at 14% 111%,#8de0ec8c 0 66%,transparent 68%),
    linear-gradient(112deg,#f7fcfd 0%,#edfafd 48%,#c8f3fb 100%);
  color:#08556a;
  font-family:Quicksand,sans-serif;
  text-align:left;
  overflow:visible;
}
body.in-kosik #content .nl-coupon-card > .kupon-odkaz {
  display:none!important;
}
body.in-kosik #content .nl-coupon-card > .nl-coupon-art {
  position:absolute;
  z-index:0;
  top:-7px;
  left:-2px;
  display:block;
  width:98px;
  height:134px;
  background:url('/user/documents/upload/Codex/cq2711.svg') center / contain no-repeat;
  pointer-events:none;
  user-select:none;
}
body.in-kosik #content .nl-coupon-card > .nl-coupon-title {
  position:relative;
  z-index:1;
  display:block;
  width:auto;
  min-width:0;
  margin:0 0 13px;
  padding:0;
  color:#08556a;
  font-family:inherit;
  font-size:21px;
  font-weight:500;
  line-height:1.3;
  text-align:left;
  cursor:text;
}
body.in-kosik #content .nl-coupon-title > strong {
  position:relative;
  display:inline-block;
  color:#07323e;
  font:inherit;
  font-weight:700;
  white-space:nowrap;
}
body.in-kosik #content .nl-coupon-title > strong::after {
  content:'';
  position:absolute;
  z-index:-1;
  left:4%;
  right:-1%;
  bottom:-3px;
  height:5px;
  border-radius:60% 45% 50% 50%;
  background:linear-gradient(90deg,#dff4a8,#b1df22 74%);
  transform:rotate(-2deg);
  pointer-events:none;
}
body.in-kosik #content .nl-coupon-card > form.compact-form {
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:0;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:none;
  min-height:52px;
  margin:0;
  padding:3px;
  border:1px solid #a8e4ef;
  border-radius:999px;
  background:#fff;
  box-shadow:0 5px 12px #07728b0c;
  float:none;
  overflow:visible;
}
body.in-kosik #content .nl-coupon-card > form.compact-form:focus-within {
  border-color:#159ab5;
  box-shadow:0 0 0 3px #159ab51f;
}
body.in-kosik #content .nl-coupon-card > form.compact-form > input.form-control {
  position:static!important;
  flex:1 1 0%;
  box-sizing:border-box;
  display:block;
  float:none;
  width:0;
  min-width:0;
  max-width:none;
  height:44px;
  min-height:44px;
  margin:0!important;
  padding:10px 8px 10px 13px!important;
  border:0!important;
  border-radius:999px 0 0 999px;
  outline:none;
  background:transparent;
  box-shadow:none!important;
  color:#163b46;
  font-family:inherit;
  font-size:16px;
  font-weight:500;
  line-height:24px;
}
body.in-kosik #content .nl-coupon-card > form.compact-form > input.form-control::placeholder {
  color:#79878d;
  font-family:inherit;
  font-size:16px;
  font-weight:400;
  opacity:1;
}
body.in-kosik #content .nl-coupon-card > form.compact-form > button[type='submit'] {
  position:static!important;
  inset:auto!important;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:auto!important;
  min-width:90px;
  height:44px;
  min-height:44px;
  margin:0!important;
  padding:8px 14px!important;
  border:0!important;
  border-radius:999px!important;
  background:linear-gradient(115deg,#3cc2df,#1bbbd5)!important;
  box-shadow:0 4px 9px #08728c20;
  color:#fff!important;
  font-family:inherit;
  font-size:17px;
  font-weight:700;
  line-height:24px;
  letter-spacing:0;
  text-align:center;
  text-transform:none;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  touch-action:manipulation;
  transform:none!important;
}
body.in-kosik #content .nl-coupon-card > form.compact-form > button[type='submit']::before,
body.in-kosik #content .nl-coupon-card > form.compact-form > button[type='submit']::after {
  content:none;
}
body.in-kosik #content .nl-coupon-card > form.compact-form > button[type='submit']:hover {
  background:linear-gradient(115deg,#22b3d1,#0ca8c4)!important;
}
body.in-kosik #content .nl-coupon-card > form.compact-form > button[type='submit']:focus-visible {
  outline:2px solid #086479;
  outline-offset:3px;
}
body.in-kosik #content .nl-coupon-card > form.compact-form > button[type='submit']:disabled {
  opacity:.6;
  cursor:default;
}
body.in-kosik #content .nl-coupon-card > form.compact-form > input.form-control[aria-invalid='true'] {
  color:#a02829;
}
body.in-kosik #content .nl-coupon-card > form.compact-form:has(input[aria-invalid='true']) {
  border-color:#b54b4c;
}
@media (max-width:767px) {
  body.in-kosik #content .discount-coupon.nl-coupon-card {
    min-height:128px;
    margin-top:16px;
    padding:16px 12px 16px 86px;
    border-radius:22px;
  }
  body.in-kosik #content .nl-coupon-card > .nl-coupon-art {
    top:-6px;
    left:-4px;
    width:91px;
    height:128px;
  }
  body.in-kosik #content .nl-coupon-card > .nl-coupon-title {
    margin-bottom:12px;
    font-size:20px;
  }
  body.in-kosik #content .nl-coupon-card > form.compact-form > button[type='submit'] {
    min-width:84px;
    padding-right:11px!important;
    padding-left:11px!important;
    font-size:16px;
  }
}
@media (max-width:359px) {
  body.in-kosik #content .discount-coupon.nl-coupon-card {
    padding-left:76px;
    padding-right:9px;
  }
  body.in-kosik #content .nl-coupon-card > .nl-coupon-art {
    left:-5px;
    width:81px;
  }
  body.in-kosik #content .nl-coupon-card > .nl-coupon-title {
    font-size:18px;
  }
  body.in-kosik #content .nl-coupon-card > form.compact-form > input.form-control {
    padding-left:10px!important;
  }
  body.in-kosik #content .nl-coupon-card > form.compact-form > button[type='submit'] {
    min-width:80px;
    padding-right:9px!important;
    padding-left:9px!important;
  }
}

/* Cart mobile: continuous free-shipping text with natural wrapping. */
@media (max-width:767px) {
  body.in-kosik #content .cart-content .extra.delivery > span {
    font-size:15px;
    line-height:22px;
    overflow-wrap:normal;
    white-space:normal;
  }
  body.in-kosik #content .cart-content .extra.delivery > span::before {
    width:22px;
    height:22px;
    margin:0 6px 0 0;
    border-radius:0;
    background:transparent;
    font-size:21px;
    line-height:22px;
    vertical-align:-4px;
  }
  body.in-kosik #content .cart-content .extra.delivery > span > strong:first-of-type:not(:only-of-type) {
    display:inline;
    margin:0;
    font-size:16px;
    line-height:inherit;
    white-space:nowrap;
  }
  body.in-kosik #content .cart-content .extra.delivery > span > strong:only-of-type {
    display:inline;
    margin:0;
    font-size:16px;
    line-height:inherit;
  }
}

/* Desktop cart: help, delivery, coupon and total share the right column. */
@media (min-width:992px) {
  body.in-kosik #content .cart-summary.nl-coupon-summary-empty {
    display:none;
  }
  body.in-kosik #content .sidebar-in-cart > .cart-content.nl-cart-sidebar-extras {
    display:block;
    box-sizing:border-box;
    width:100%;
    min-width:0;
    max-width:none;
    margin:20px 0 0;
    padding:0;
    border:0;
    background:transparent;
    box-shadow:none;
  }
  body.in-kosik #content .nl-cart-sidebar-extras > .extras-wrap.nl-coupon-stack {
    display:block;
    box-sizing:border-box;
    width:100%;
    min-width:0;
    max-width:100%;
    margin:0;
    padding:0;
  }
  body.in-kosik #content .nl-cart-sidebar-extras > .extras-wrap > .delivery-time[data-testid="deliveryTime"] {
    margin-bottom:0;
  }
  body.in-kosik #content .nl-coupon-in-sidebar > .discount-coupon.nl-coupon-card {
    min-height:0;
    margin-top:16px;
    padding:12px;
    border-radius:20px;
  }
  body.in-kosik #content .nl-coupon-in-sidebar .nl-coupon-card > .nl-coupon-art {
    top:-9px;
    left:8px;
    width:58px;
    height:70px;
  }
  body.in-kosik #content .nl-coupon-in-sidebar .nl-coupon-card > .nl-coupon-title {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    align-content:center;
    gap:0 .25em;
    box-sizing:border-box;
    min-height:40px;
    margin:0 0 9px;
    padding:0 0 0 56px;
    font-size:18px;
    line-height:23px;
  }
  body.in-kosik #content .nl-coupon-in-sidebar .nl-coupon-card > form.compact-form {
    width:100%;
    min-width:0;
    margin:0;
  }
  body.in-kosik #content .nl-coupon-in-sidebar .nl-coupon-card > form.compact-form > button[type='submit'] {
    min-width:84px;
    padding-right:11px!important;
    padding-left:11px!important;
    font-size:16px;
  }
  body.in-kosik #content .nl-cart-sidebar-extras + .summary-wrapper {
    margin-top:20px;
  }
  /* The upsell add-on sets descriptions to 150% width; keep them in the left column. */
  body.in-kosik #content .fvDoplnek-upsell .fvDoplnek-alignCenter > .fvcontent {
    min-width:0;
    max-width:100%;
  }
  body.in-kosik #content .fvDoplnek-upsell .fvcontent > .fvDoplnek-description {
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    white-space:normal;
    overflow-wrap:break-word;
  }
  body.in-kosik #content .fvDoplnek-upsell .fvDoplnek-text > .price,
  body.in-kosik #content .fvDoplnek-upsell .fvDoplnek-text > .common_price {
    white-space:nowrap;
  }
}

/* Cart CZ/SK: consistent card corners and the approved pale cyan palette.
   Scope is the first cart step only; native controls and calculations stay intact. */
body.in-kosik #content {
  --nl-cart-card-radius:20px;
}
body.in-kosik #content .cart-content.checkout-box-wrapper,
body.in-kosik #content .cart-content.summary-wrapper {
  border-color:#c7eaf3;
  border-radius:var(--nl-cart-card-radius);
  background:linear-gradient(125deg,#fff 0%,#f5fcfe 60%,#eaf9fd 100%);
  box-shadow:0 4px 16px rgba(23,117,140,.04);
}
body.in-kosik #content .cart-content.checkout-box-wrapper > .box,
body.in-kosik #content .cart-content.summary-wrapper > .box,
body.in-kosik #content .checkout-box-wrapper .contact-box > ul {
  background:transparent;
}
body.in-kosik #content .fvDoplnek-upsell .fvDoplnek-produkt,
body.in-kosik #content .discount-coupon.nl-coupon-card,
body.in-kosik #content .nl-coupon-in-sidebar > .discount-coupon.nl-coupon-card {
  border-radius:var(--nl-cart-card-radius);
}

/* Shipping and its date are two native elements that form one rounded card. */
body.in-kosik #content .cart-content .extras-wrap > .extra.delivery,
body.in-kosik #content .cart-content > .delivery-time[data-testid="deliveryTime"],
body.in-kosik #content .cart-content .extras-wrap > .delivery-time[data-testid="deliveryTime"] {
  border-radius:var(--nl-cart-card-radius);
}
body.in-kosik #content .cart-content .extras-wrap > .extra.delivery:has(+ .delivery-time[data-testid="deliveryTime"]) {
  border-radius:var(--nl-cart-card-radius) var(--nl-cart-card-radius) 0 0;
}
body.in-kosik #content .cart-content .extras-wrap > .extra.delivery + .delivery-time[data-testid="deliveryTime"] {
  border-radius:0 0 var(--nl-cart-card-radius) var(--nl-cart-card-radius);
}

/* Desktop has one product table; mobile has a separate card for each item. */
@media (min-width:768px) {
  body.in-kosik #content .cart-table {
    border-collapse:separate;
    border-spacing:0;
    border-radius:var(--nl-cart-card-radius);
    background:linear-gradient(125deg,#fff 0%,#fbfeff 70%,#f4fcfe 100%);
    box-shadow:inset 0 0 0 1px #d1e9f0;
  }
  body.in-kosik #content .cart-table > tbody > tr > td {
    background:transparent;
  }
  body.in-kosik #content .cart-table > tbody > tr[data-micro-sku]:not(.related-visible):has(~ tr[data-micro-sku]) > td,
  body.in-kosik #content .cart-table > tbody > tr.related:has(~ tr[data-micro-sku]) > td {
    border-bottom:1px solid #e4e4e4;
  }
  body.in-kosik #content .cart-table > tbody > tr[data-micro-sku]:not(:has(~ tr[data-micro-sku])) > td,
  body.in-kosik #content .cart-table > tbody > tr.related:last-child > td {
    border-bottom:0;
  }
}
@media (max-width:767px) {
  body.in-kosik #content .cart-table > tbody > tr[data-micro-sku] {
    border-radius:var(--nl-cart-card-radius);
  }
}

/* Cart CZ/SK: tablet uses the same full-width stack as the mobile cart.
   The right sidebar starts at 992px in both the CSS and existing rv35.js. */
@media (max-width:991px) {
  body.in-kosik #content .cart-summary .extras-wrapper.nl-coupon-layout {
    box-sizing:border-box;
    padding:0;
  }
  body.in-kosik #content .cart-summary .nl-coupon-column > .extras-wrap.nl-coupon-stack {
    width:100%;
    min-width:0;
    margin:0;
  }
}

@media (min-width:768px) and (max-width:991px) {
  body.in-kosik #content .cart-summary {
    padding-left:0;
    padding-right:0;
  }
  body.in-kosik #content .cart-summary .extras-wrapper.nl-coupon-layout {
    margin-bottom:0;
  }
}

/* Allow the help heading to wrap without overlapping its next line. */
body.in-kosik #content .checkout-box-wrapper h2 {
  line-height:1.25!important;
}

/* The add-on's 150% description width must be corrected on tablet too. */
body.in-kosik #content .fvDoplnek-upsell .fvDoplnek-alignCenter > .fvcontent {
  min-width:0;
  max-width:100%;
}
body.in-kosik #content .fvDoplnek-upsell .fvcontent > .fvDoplnek-description {
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  white-space:normal;
  overflow-wrap:break-word;
}
body.in-kosik #content .fvDoplnek-upsell .fvDoplnek-text > .price,
body.in-kosik #content .fvDoplnek-upsell .fvDoplnek-text > .common_price {
  white-space:nowrap;
}

/* Cart CZ/SK: sharper, consistent corners. */
body.in-kosik #content {
  --nl-cart-card-radius:12px;
}

/* Keep the name and contact links together instead of a separate padded band. */
body.in-kosik #content .cart-content.checkout-box-wrapper {
  padding:20px;
}
body.in-kosik #content .checkout-box-wrapper .contact-box > h2 {
  margin-bottom:4px;
}
body.in-kosik #content .checkout-box-wrapper .contact-box > strong {
  margin-bottom:0;
}
body.in-kosik #content .checkout-box-wrapper .contact-box > ul {
  margin:10px 0 0;
  padding:0;
}

/* ReBox mobile: retain the 44px information control and switch hit area. */
@media (max-width:767px) {
  body.in-kosik.cs #content .fvDoplnek-upsell .nl-a1-rebox {
    padding:8px 10px!important;
  }
  body.in-kosik.cs #content .fvDoplnek-upsell .nl-a1-rebox form.fvDoplnek-alignCenter {
    grid-template-columns:52px minmax(0,1fr) 48px!important;
    gap:4px 8px!important;
  }
  body.in-kosik.cs #content .fvDoplnek-upsell .nl-a1-rebox .nl-a1-photo,
  body.in-kosik.cs #content .fvDoplnek-upsell .nl-a1-rebox .nl-a1-photo .fvDoplnek-product-image {
    width:52px!important;
    height:52px!important;
  }
  body.in-kosik.cs #content .fvDoplnek-upsell .nl-a1-rebox .nl-a1-short {
    line-height:18px;
  }
  body.in-kosik.cs #content .fvDoplnek-upsell .nl-a1-rebox .nl-a1-prices {
    row-gap:0;
    line-height:18px;
  }
  body.in-kosik.cs #content .fvDoplnek-upsell .nl-a1-rebox .nl-a1-info-panel {
    margin-top:6px;
    padding:10px;
  }
}

/* Compact the native desktop/tablet ReBox without changing its controls. */
@media (min-width:768px) {
  body.in-kosik.cs #content .fvDoplnek-upsell .fvDoplnek-produkt:has(.fvcontent[code="3067"]) {
    padding:8px 12px!important;
  }
  body.in-kosik.cs #content .fvDoplnek-upsell .fvDoplnek-produkt:has(.fvcontent[code="3067"]) .fvDoplnek-product-image {
    width:48px!important;
    height:48px!important;
    margin-right:12px!important;
    flex:0 0 48px;
    object-fit:contain;
  }
  body.in-kosik.cs #content .fvDoplnek-upsell .fvcontent[code="3067"] > .header {
    line-height:22px;
  }
  body.in-kosik.cs #content .fvDoplnek-upsell .fvcontent[code="3067"] > .fvDoplnek-description {
    font-size:13px;
    line-height:18px;
  }
}

/* The mobile cart's Heureka panel opens only after an explicit action.
   Keep the existing certificate artwork and the provider's review iframe. */
@media (max-width:767px) {
  body.in-kosik #heurekaIfrBoxleft { display:none !important; }
  body.in-kosik #nl-cart-heureka-slot {
    height:68px !important;
    padding:0;
  }
  body.in-kosik #nl-cart-heureka-slot.nl-heureka-open {
    height:385px !important;
  }
  body.in-kosik #nl-cart-heureka-slot > div {
    position:absolute !important;
    top:20px !important;
    right:auto !important;
    bottom:auto !important;
    left:0 !important;
    width:320px !important;
    max-width:100%;
    height:auto !important;
    padding-top:36px;
    z-index:auto !important;
  }
  body.in-kosik #nl-cart-heureka-slot #heurekaTableft {
    left:0 !important;
    cursor:pointer;
  }
  body.in-kosik #nl-cart-heureka-slot #heurekaTableft:focus-visible {
    outline:2px solid #08748c;
    outline-offset:3px;
  }
  body.in-kosik #nl-cart-heureka-slot #heurekaIfrBoxleft {
    display:none !important;
    position:relative !important;
    float:none !important;
    top:0 !important;
    left:0 !important;
    width:100% !important;
    max-width:320px;
    height:317px;
    overflow-x:auto !important;
    overflow-y:hidden !important;
  }
  body.in-kosik #nl-cart-heureka-slot.nl-heureka-open #heurekaIfrBoxleft {
    display:block !important;
  }
  body.in-kosik #nl-cart-heureka-slot #iframe-widgetleft {
    display:block;
    float:none !important;
    width:320px !important;
    height:317px !important;
  }
}
@media (max-width:335px) {
  body.in-kosik #nl-cart-heureka-slot.nl-heureka-open { height:400px !important; }
  body.in-kosik #nl-cart-heureka-slot #heurekaIfrBoxleft { height:332px; }
}
@media print {
  body.in-kosik #nl-cart-heureka-slot,
  body.in-kosik #hw-87kwowifjjowiklsadh666left {
    display:none !important;
  }
}
