/* RO-only candidate. Load after the unchanged allstyle.css.
   Only the three confirmed header fadeIn declarations are disabled. */
.top-navigation-bar .container > div.top-navigation-tools,
header#header .header-top > div.search,
header#header .header-top > div.responsive-tools {
  animation: none !important;
}

/* Transition colors only: no layout movement and no invisible header controls. */
@media (prefers-reduced-motion: no-preference) {
  .btn,
  header#header .responsive-tools .superCart,
  header#header .responsive-tools > a[data-target="navigation"] {
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease !important;
  }
}

/* Shoptet's existing .exp/display state remains authoritative.
   Exit is immediate; no retained overlay, visibility rules, or delayed clicks. */
@keyframes pfRoMenuEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pfRoCartEnter {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  nav#navigation .navigation-in ul.menu-level-1 > li.ext.exp > ul.menu-level-2 {
    animation: pfRoMenuEnter 150ms ease-out;
  }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  body.navigation-window-visible nav#navigation {
    animation: pfRoMenuEnter 150ms ease-out;
  }
}
@media (prefers-reduced-motion: no-preference) {
  body.cartIsOpen #cart-widget {
    animation: pfRoCartEnter 180ms cubic-bezier(.2,.7,.2,1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  header#header .responsive-tools .superCart,
  header#header .responsive-tools > a[data-target="navigation"] {
    transition: none !important;
  }
  nav#navigation .navigation-in ul.menu-level-1 > li.ext > ul.menu-level-2,
  body.navigation-window-visible nav#navigation,
  body.cartIsOpen #cart-widget {
    animation: none !important;
  }
}

/* RO contact bar: one confirmed telephone number, explicit support languages.
   No Czech holiday/open-hours assertion is shown on the RO storefront. */
.top-navigation-bar .container > div.customContactBar.ro-contact-bar {
  right: auto;
  min-width: 0;
}
.customContactBar.ro-contact-bar .center {
  min-width: 0;
}
.customContactBar.ro-contact-bar .center .contactPhone .info {
  line-height: 1.3;
  white-space: normal;
}
html[lang|="ro" i] header#header .header-top > div.responsive-tools > a[data-target="navigation"]:after {
  content: "Meniu";
}
/* RO homepage only. Let the mobile copy determine the hero's height instead of
   centering 200+px of text over a desktop image scaled to about 105px. */
@media (max-width: 767px) {
  html[lang|="ro" i] body.type-index #carousel {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto;
    right: auto;
    overflow: hidden;
  }
  html[lang|="ro" i] body.type-index #carousel .carousel-inner {
    min-height: 0 !important;
    height: auto !important;
  }
  html[lang|="ro" i] body.type-index #carousel .item > a {
    display: block;
    position: relative;
    width: 100%;
    min-height: 320px;
  }
  html[lang|="ro" i] body.type-index #carousel .item > a > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }
  html[lang|="ro" i] body.type-index #carousel .item > a > .extended-banner-texts {
    box-sizing: border-box;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    z-index: 1;
    width: 100% !important;
    height: auto !important;
    min-height: 320px;
    margin: 0 !important;
    padding: 16px !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
  }
  html[lang|="ro" i] body.type-index #carousel .item .extended-banner-title {
    order: 0;
    margin: 0;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .93);
    color: #244c29;
  }
  html[lang|="ro" i] body.type-index #carousel .item .extended-banner-text {
    order: 1;
    width: 100%;
    margin: 0;
  }
  html[lang|="ro" i] body.type-index #carousel .item .extended-banner-text .titleText {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px !important;
    font-size: 32px !important;
  }
  html[lang|="ro" i] body.type-index #carousel .item .extended-banner-link {
    order: 2;
    margin: 0;
    max-width: 100%;
    white-space: normal;
  }
}
/* RO homepage: the parent Bootstrap row caused the remaining mobile overflow. */
@media (max-width: 767px) {
  html[lang|="ro" i] body.type-index .row.banners-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* The benefit strip overlaps the desktop photo by 97px at tablet widths and
   50px from 992px. Keep copy in normal flow and reserve room below the CTA. */
@media (min-width: 768px) {
  html[lang|="ro" i] body.type-index #carousel .carousel-inner {
    min-height: 0 !important;
    height: auto !important;
  }
  html[lang|="ro" i] body.type-index #carousel .item > a {
    display: block;
    position: relative;
    min-height: 380px;
  }
  html[lang|="ro" i] body.type-index #carousel .item > a > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }
  html[lang|="ro" i] body.type-index #carousel .item > a > .extended-banner-texts {
    box-sizing: border-box;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    z-index: 1;
    height: auto !important;
    min-height: 380px;
    max-width: 100%;
    margin: 0 auto !important;
    padding: 24px 20px 120px !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
  }
  html[lang|="ro" i] body.type-index #carousel .item .extended-banner-title {
    order: 0;
    margin: 0;
  }
  html[lang|="ro" i] body.type-index #carousel .item .extended-banner-text {
    order: 1;
    margin: 0;
  }
  html[lang|="ro" i] body.type-index #carousel .item .extended-banner-link {
    order: 2;
    margin: 0;
    max-width: 100%;
    white-space: normal;
  }
}
@media (min-width: 992px) {
  html[lang|="ro" i] body.type-index #carousel .item > a > .extended-banner-texts {
    padding-bottom: 72px !important;
  }
}
