/* Rehvitakso cart/search patch 1.2.0. Mobile header rules override the theme's inline CSS. */
#rt-cf-mobile-cart { display: none; }
.rt-cf-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin: 16px 0 24px; clear: both;
}
.rt-cf-button {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 18px; border: 1px solid #222; border-radius: 8px;
  color: #111 !important; background: #fff; text-decoration: none !important;
  font: 400 16px/1.35 'latoregular', Arial, sans-serif; cursor: pointer;
  text-align: center; white-space: normal;
}
.rt-cf-button:hover { background: #f4f4f4; }
.rt-cf-button:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
#popUpConfirm .rt-cf-popup-cart,
#popUpConfirm .rt-cf-popup-continue {
  box-sizing: border-box; min-height: 44px; max-width: 100%;
  padding: 12px 16px; white-space: normal; height: auto;
  font: 700 16px/1.35 'latoregular', Arial, sans-serif; text-align: center;
}
@media (max-width: 767px) {
  #header.rt-cf-has-header-cart {
    position: sticky !important; top: 0 !important; z-index: 1001;
    display: block !important; width: 100%; height: auto !important; min-height: 0 !important;
    padding: 0 !important; margin: 0 !important; background: #fff;
    border-bottom: 1px solid #ededed; box-sizing: border-box;
  }
  #header.rt-cf-has-header-cart > .wrap_container {
    width: 100% !important; max-width: 700px; height: auto !important;
    margin: 0 auto !important; padding: 0 !important; overflow: visible;
  }
  #header.rt-cf-has-header-cart #mobile_container {
    display: grid !important; grid-template-columns: minmax(80px,1fr) minmax(102px,124px) 44px 44px !important;
    align-items: start !important; gap: 8px !important; width: 100% !important;
    float: none !important; margin: 0 !important; padding: 16px 16px 12px !important;
    height: auto !important; min-height: 0 !important; box-sizing: border-box !important;
    position: relative !important; overflow: visible !important;
  }
  #header.rt-cf-has-header-cart .mobile_left_block { grid-column: 1; grid-row: 1; }
  #header.rt-cf-has-header-cart .mobile_left_block form { margin: 0 0 8px; }
  #header.rt-cf-has-header-cart .mob_lang_select {
    float: none !important; margin: 0 !important; width: 100% !important;
  }
  #header.rt-cf-has-header-cart .mob_lang_select select {
    font-size: 16px !important; line-height: 1.2; max-width: 100%;
  }
  #header.rt-cf-has-header-cart #mobile_container .mobile_logo img { width: 108px !important; max-width: 100% !important; }
  #header.rt-cf-has-header-cart #mobile_container .mobile_contact_compact {
    grid-column: 2; grid-row: 1; width: 100% !important; min-width: 0 !important;
    gap: 8px !important;
  }
  #header.rt-cf-has-header-cart #mobile_container .mob_text_phone {
    position: static !important; width: 100% !important; margin: 0 !important; padding: 0 !important;
  }
  #header.rt-cf-has-header-cart #mobile_container .bron_button_mob,
  #header.rt-cf-has-header-cart #mobile_container .mob_text_phone a {
    width: 100% !important; min-width: 0 !important; height: 40px !important; min-height: 40px !important;
    margin: 0 !important; padding: 0 4px !important; float: none !important; border: 0 !important;
    font-size: 11px !important; background: #ffd400 !important;
  }
  #header.rt-cf-has-header-cart #mobile_container .mob_text_phone a { font-size: 13px !important; }
  #header.rt-cf-has-header-cart #mobile_container .mobile_menu_cont {
    grid-column: 3; grid-row: 1; position: static !important; width: 44px !important; min-width: 44px !important;
  }
  #header.rt-cf-has-header-cart #mobile_container .mobile_menu_cont > img {
    width: 44px !important; height: 44px !important; float: none !important; border-radius: 6px;
  }
  #header.rt-cf-has-header-cart #mobile_container .mobile_nav {
    top: 100% !important; left: 16px !important; right: 16px !important;
    width: auto !important; min-width: 0 !important; max-width: none !important;
    max-height: calc(100vh - 150px) !important; max-height: calc(100dvh - 150px) !important;
  }
  #header.rt-cf-has-header-cart #rt-cf-mobile-cart {
    grid-column: 4; grid-row: 1; display: flex; align-items: center; justify-content: center;
    position: relative; width: 44px; height: 44px; min-width: 44px; min-height: 44px;
    margin: 0; padding: 0; border: 0; border-radius: 6px;
    background: #ffd400; color: #111; text-decoration: none; box-sizing: border-box;
  }
  #rt-cf-mobile-cart:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
  #rt-cf-mobile-cart svg { display: block; width: 27px; height: 27px; pointer-events: none; }
  #rt-cf-mobile-cart .rt-cf-cart-count {
    position: absolute; top: -7px; right: -6px; display: flex; align-items: center; justify-content: center;
    min-width: 21px; height: 21px; padding: 0 4px; border: 2px solid #fff; border-radius: 20px;
    background: #111; color: #fff; box-sizing: border-box; pointer-events: none;
    font: 700 11px/1 Arial,sans-serif;
  }
  #rt-cf-mobile-cart .rt-cf-cart-count[hidden] { display: none; }
  #rt-cf-cart-nav { gap: 10px; margin: 12px 0 20px; }
  #rt-cf-cart-nav .rt-cf-button { flex: 1 1 100%; font-size: 16px; }
  #popUpConfirm .rt-cf-popup-cart,
  #popUpConfirm .rt-cf-popup-continue {
    display: block; width: 100%; float: none; margin: 10px 0 0;
  }
}
@media (max-width: 359px) {
  #header.rt-cf-has-header-cart #mobile_container {
    gap: 6px !important; padding-left: 10px !important; padding-right: 10px !important;
  }
}
