:root{
    --tip_popup_overlay:#d3d3d390;
    --tip_title_color:#e679ca;
    --tip_popup_bg:#3b5ba5;
    --tip_text_color:#ffffff;
    --popup_display:flex;
}

.tip_popup_background{
    position: fixed;
    display: var(--popup_display);
    justify-content: center;
    align-items: center;
    inset:0 0 0 0;
    background-color: var(--tip_popup_overlay);
    z-index: 99999;
}

.tip_popup_wrapper{
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto auto;
    padding: 1rem;
    width: min(85%, 600px);
    aspect-ratio: 1/1;
    color:var(--text_color);
    background-color: var(--tip_popup_bg);
}

.tip_popup_wrapper img{ 
    display: block;
    margin: auto;
    width: 85%;
    height: 85%;
}

.tip_popup_wrapper h3, .tip_popup_wrapper p{
    width: 100%;
    text-align: center;
    align-items: center;
    text-wrap: wrap;
}

.tip_popup_wrapper h3{
    font-size: 20px !important;
}

.tip_popup_closing_btn{
    display: grid;
    place-items: center;
    position: absolute;
    inset: 0 0 auto auto;
    transform: translate(50%, -50%);
    border: 2px solid rgb(0, 208, 255);
    background-color: rgb(0, 208, 255);
    width: 3ch;
    height: 3ch;
    aspect-ratio: 1/1;
    border-radius: 50%;
    cursor: pointer;
}:root{
    --scrollbar-thumb-bg-color : lightgray;
}

.button-chatbot-toggle-wrapper{
    position: fixed;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999999;
    bottom: 4%;
    left: 10%;
}

.button-chatbot-toggle-wrapper .chatbot-window-front-toggle-btn{
    position: relative;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    margin: 0;
    font-size: 2rem;
}

.button-chatbot-toggle-wrapper .chatbot-front-pulse-wrapper{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,0%);
    display: flex;
    gap: 2px;
    border-radius: 50%;
}

.button-chatbot-toggle-wrapper .chatbot-pulse-div{
    --duration: 2s;
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 50%;
    animation: pulse var(--duration) calc(var(--duration)/var(--tot) * var(--i)) forwards infinite ;
}

.button-chatbot-toggle-wrapper .chatbot-front-wrapper {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    display: grid;
    grid-template-rows: 1fr 5fr auto;
    width: fit-content;
    max-width: 30vw;
    height: 65vh;
    box-shadow: 1px 0 5px #044580, 
                2px 0 10px #025668;
}

.button-chatbot-toggle-wrapper .chatbot-front-wrapper.hide{
    display: none;
}

.button-chatbot-toggle-wrapper .chatbot-front-wrapper .chatbot-header{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-inline: 10px;
    justify-content: space-between;
    color: white;
    font-size: 1rem;
    background-color: #044580;

}


.button-chatbot-toggle-wrapper .chatbot-front-wrapper .chatbot-body{
    overflow-y: scroll;
}

.button-chatbot-toggle-wrapper .front-chatbot-closing-btn{
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3ch;
    height: 3ch;
    border-radius: 50%;
    border: 1px solid #025668;
    color: #025668;
    transition: all 350ms ease;
}

.button-chatbot-toggle-wrapper .front-chatbot-closing-btn:hover{
    border: 1px solid #025668;
    background-color: #025668;
    color: white;
}

.button-chatbot-toggle-wrapper .chatbot-front-wrapper .chatbot-input-button-wrapper{
    display: flex;
    margin: 4px;
    gap: 2px;
}

.button-chatbot-toggle-wrapper .chatbot-front-wrapper .chatbot-input-button-wrapper button.front-chatbot-btn{
    flex: 1;
}

.button-chatbot-toggle-wrapper .chatbot-front-wrapper .chatbot-input-button-wrapper input{
    min-width: 60%;
    height: 100%;
    flex: 1;
}

/*----styling suggestion in chatbot-------*/

.button-chatbot-toggle-wrapper .chatbot-suggestions{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #fff;
}

.button-chatbot-toggle-wrapper .chatbot-suggestion{
    display: flex;
    justify-content: center;
    background-color: #044580;
    width: 80%;
    padding: 10px 5px;
    cursor: pointer;
    transition: background-color 250ms linear ;
}

.button-chatbot-toggle-wrapper .chatbot-suggestion:hover{
    background-color: #15a2a7;
}

/*-------styling botchat and user-chat-------------------------*/

.button-chatbot-toggle-wrapper .chatbot-bot-chat{
    display: flex;
    justify-content: flex-start;
}

.button-chatbot-toggle-wrapper .chatbot-bot-chat .chatbot-bot-text{
    background-color: #044580;
    margin: 10px 30px 10px 10px;
    padding: 15px 10px;
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    transition: background-color 350ms ease;
}

.button-chatbot-toggle-wrapper .chatbot-user-message{
    display: flex;  
    justify-content: flex-end;

}

.button-chatbot-toggle-wrapper .chatbot-user-message .chatbot-user-text{
    background-color: #044580;
    margin: 10px 10px 10px 30px;
    padding: 15px 10px;
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 15px;
    transition: background-color 350ms ease;

}

/*---------------style scroll bar------------------*/

/* Chrome, Safari, Edge */
.button-chatbot-toggle-wrapper .chatbot-front-wrapper .chatbot-body::-webkit-scrollbar {
    width: 6px; /* thin scrollbar */
}

.button-chatbot-toggle-wrapper .chatbot-front-wrapper .chatbot-body::-webkit-scrollbar-track {
    background: #f1f1f1; /* light track */
    border-radius: 3px;
}

.button-chatbot-toggle-wrapper .chatbot-front-wrapper .chatbot-body::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-bg-color ); 
    border-radius: 3px;
}

/*-----------------styling responses in chatbot----------------------*/

.button-chatbot-toggle-wrapper .chatbot-bot-response{
    display: flex;
    justify-content: flex-start;
    margin: 5px;
}

.button-chatbot-toggle-wrapper .chatbot-bot-response .chatbot-bot-response-inner{
    display: inline-block;
    background-color: #f1f3f4;
    padding: 5px;
    font-size: 1rem;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.button-chatbot-toggle-wrapper .chatbot-bot-response .chatbot-bot-response-inner strong, .chatbot-bot-response .chatbot-bot-response-inner a{
    padding: 5px;
}

.button-chatbot-toggle-wrapper .chatbot-bot-response .chatbot-bot-response-inner a{
    text-wrap: nowrap;
}

.button-chatbot-toggle-wrapper .chatbot-body .chatbot-bot-response img[src*='box.png']{
    width:1rem !important;
    height:1rem !important;
}
.button-chatbot-toggle-wrapper .chatbot-body .chatbot-bot-response:has(img[src*='box.png']):nth-child(1 of :has(img[src*='box.png'])) img[src*='box.png']{
    width:1rem !important;
    height:1rem !important;
}

.button-chatbot-toggle-wrapper .chatbot-body .chatbot-bot-response:has(img[src*='box.png']):nth-child(2 of :has(img[src*='box.png'])) img[src*='box.png']{
    width:1.4rem !important;
    height:1.4rem !important;
}

.button-chatbot-toggle-wrapper .chatbot-body .chatbot-bot-response:has(img[src*='box.png']):nth-child(3 of :has(img[src*='box.png'])) img[src*='box.png']{
    width:1.8rem !important;
    height:1.8rem !important;
}




/*------pulse styling in chat icon------*/

@keyframes pulse{
    0%,75%{
        transform: scale(50%);
    }
    50%{
        transform: scale(100%);
    }
    25%,100%{
        transform: scale(50%);
    }
}

/*------media queries--------*/ 

@media screen and (max-width: 768px) {
    .button-chatbot-toggle-wrapper .chatbot-front-wrapper {
        background-color: #ffff;
        transform: translate(-7%, 10px);
        border-radius: 5px;
        overflow: hidden;
        display: grid;
        grid-template-rows: 1fr 5fr auto;
        max-width: 100%;
        min-width: fit-content;
        height: 65vh;
        box-shadow: 1px 0 5px #044580, 
                    2px 0 10px #025668;
    }

    .button-chatbot-toggle-wrapper{
        bottom: 3%;
    }

}

@media screen and (max-width: 835px) and (orientation: landscape){
    .button-chatbot-toggle-wrapper .chatbot-front-wrapper {
        background-color: #ffff;
        transform: translate(-7%, 10px);
        border-radius: 5px;
        overflow: hidden;
        display: grid;
        grid-template-rows: 1fr 5fr auto;
        max-width: 100%;
        min-width: fit-content;
        height: 65vh;
        box-shadow: 1px 0 5px #044580, 
                    2px 0 10px #025668;
    }

    .button-chatbot-toggle-wrapper{
        bottom: 3%;
    }

}#masthead.site-header{
  padding: 0;
  padding-top: 0 !important;
  position: sticky !important;
  top: 0;
}

/*----keeps mobile sticky------*/
.ast-header-break-point #content.site-content{
	overflow:hidden;
}

.ast-desktop-wrapper{
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
}

.ast-desktop-wrapper .logo-fb-account-wrapper{
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  padding: 10px;
  color: white;
  background-color: #004B90;
}

/*----------set color text my account white in header--------*/
.ast-desktop-wrapper .logo-fb-account-wrapper a, .ast-desktop-wrapper .logo-fb-account-wrapper span {
  color: white;
  border-left: 1px solid white;
  padding-inline: 10px;
}

.ast-desktop-wrapper .logo-fb-account-wrapper .general-info span:first-child {
  border-left: none;
}

.ast-desktop-wrapper .logo-fb-account-wrapper span i{
  padding-right: 5px;
}

/**********------style logo image in header--------**********/
#masthead .ast-desktop-wrapper div.logo-mainmenu-search-cart-wrapper div.logo span.site-logo-img img{
  width: 250px;
  max-width: 250px;
}
/*------------set horizontal alignment for logo mega menu serach and cart--------*/
.ast-desktop-wrapper .logo-mainmenu-search-cart-wrapper{
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
}

.ast-desktop-wrapper .general-info{
  display: flex;
  flex-direction: row;
  gap: 10px;
}

/* =====================================================================
   DESKTOP MEGA MENU (mytek style)
   - bouton "Tous nos rayons"
   - liste verticale des rayons (niveau 1) a gauche
   - panneau horizontal a droite : niveau 2 = titres de colonnes,
     niveau 3 = liens
   ===================================================================== */
.ast-desktop-wrapper nav.main-menu{
  position: relative;
  display: flex;
  align-items: center;
  min-height: 70px;
}

/* ---- bouton ---- */
.ast-desktop-wrapper .mtnmm-rayons-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #006CC4;
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.ast-desktop-wrapper nav.main-menu:hover .mtnmm-rayons-btn,
.ast-desktop-wrapper nav.main-menu.is-open .mtnmm-rayons-btn{
  background: #004B90;
}

/* ---- conteneur du menu : cache, s'ouvre au survol ---- */
.ast-desktop-wrapper nav.main-menu .my-mega-menu-container{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 99999;
  width: 290px;
}
.ast-desktop-wrapper nav.main-menu:hover .my-mega-menu-container,
.ast-desktop-wrapper nav.main-menu.is-open .my-mega-menu-container{
  display: block;
}

/* ---- liste verticale (niveau 1) ---- */
.ast-desktop-wrapper nav.main-menu ul.my-mega-menu{
  position: relative;
  display: block;
  width: 290px;
  height: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #006CC4;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  font-size: 14px;
}
.ast-desktop-wrapper nav.main-menu ul.my-mega-menu > li{
  display: block;
  flex: none;
  height: auto;
  position: static;       /* le panneau se positionne par rapport a la liste */
}
.ast-desktop-wrapper nav.main-menu ul.my-mega-menu > li > a{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: 13px 20px;
  text-align: left;
  text-transform: uppercase;
  text-decoration: none;
  color: #222;
}
.ast-desktop-wrapper nav.main-menu ul.my-mega-menu > li.has-mega-submenu > a::after{
  content: "\203A";
  margin-left: auto;
  font-size: 20px;
  line-height: 1;
}
.ast-desktop-wrapper nav.main-menu ul.my-mega-menu > li:hover > a{
  background: #eef5fc;
  color: #006CC4 !important;
}

/* ---- panneau horizontal (niveau 2) ---- */
.ast-desktop-wrapper nav.main-menu ul.my-mega-menu > li > ul.sub-menu{
  position: absolute;
  top: -1px;
  left: 100%;
  box-sizing: border-box;
  min-height: calc(100% + 2px);
  width: 700px;
  max-width: calc(100vw - 620px);
  min-width: 380px;
  margin: 0;
  padding: 24px 28px;
  list-style: none;
  background: #fff;
  border: 1px solid #006CC4;
  border-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  align-content: start;
  gap: 22px 28px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 200ms ease;
}
.ast-desktop-wrapper nav.main-menu ul.my-mega-menu > li:hover > ul.sub-menu{
  visibility: visible;
  opacity: 1;
}

/* items du panneau */
.ast-desktop-wrapper nav.main-menu ul.my-mega-menu ul.sub-menu li{
  display: block;
  flex: none;
  height: auto;
  position: static;
  overflow: visible;
}
.ast-desktop-wrapper nav.main-menu ul.my-mega-menu ul.sub-menu a{
  display: block;
  height: auto;
  padding: 5px 0;
  font-size: 14px;
  text-decoration: none;
  color: #333;
}
.ast-desktop-wrapper nav.main-menu ul.my-mega-menu ul.sub-menu a:hover{
  color: #006CC4 !important;
}

/* titre de colonne = item de niveau 2 qui a des enfants */
.ast-desktop-wrapper nav.main-menu ul.my-mega-menu ul.sub-menu > li.has-mega-submenu > a{
  font-weight: 700;
  color: #006CC4;
  margin-bottom: 6px;
}

/* niveau 3 : simple liste de liens, toujours visible dans la colonne */
.ast-desktop-wrapper nav.main-menu ul.my-mega-menu ul.sub-menu ul.sub-menu{
  position: static;
  display: block;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
  background: transparent;
  visibility: visible;
  opacity: 1;
}

/* images dans le menu */
.ast-desktop-wrapper nav.main-menu ul.my-mega-menu > li > a img{
  width: 30px;
  flex: none;
}

.ast-desktop-header .ast-header-woo-cart-wrapper{
  display: flex;
  padding-right: 10px;
}

/*------------position Astra Cart before the form wirder methos-----*/

.ast-header-woo-cart-wrapper {
    order: 4; /* before search */
}

.search-form,
.ast-search-box {
    order: 3;
}

.main-menu {
    order: 2;
}

/*---------styling img in menu-----*/
nav.main-menu li img{
  width: 30px;
}

/*----hide + toggle button in desktop------*/
.ast-desktop-wrapper .mtnmm-mobile-li-toggle-button {
  display: none;
}

/* style my mobile menu*/

.my-mobile-menu {
    transform: translate(100%,0);
    position: fixed;
    top: 0;
    width: 100%; 
    height: 100%;
    background: #fff;
    transition: transform 0.3s ease;
    z-index: 9999;
    overflow: scroll;
}

.my-mobile-menu .my-account{
  padding-left: 5px;
}

body.admin-bar .my-mobile-menu {
    top: 32px;
    height: calc(100dvh - 32px);
}

.my-mobile-menu.open {
    transform: translate(0%,0);
}

.my-mobile-menu ul, .my-mobile-nav ul{
  margin: 0;
  background-color: #fff;
  list-style: none;
}

.my-mobile-menu .mtnmm-open-mobile-menu-closing-btn{
  padding: 5px;
  display: flex;
  justify-content: end;
}
.my-mobile-menu .mtnmm-open-mobile-menu-closing-btn span{
  display: grid;
  align-content: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid black;
  border-radius: 50%;
}
/*--------------------------------------------------------------------------------------------------

Begin Some changes to improve

---------------------------------------------------------------------------------------------------*/
/*---------select widget parag and change text color to darker--------*/

[class^="site-footer-primary-section"] a, [class^="site-footer-primary-section"] p {
    color: #686767 !important;
}

.middle-block-withbkimage .elementor-background-overlay{
  background-size: 100% 60%;
}

/*--------------------------------------------------------------------------------------------------

End Some changes to improve

---------------------------------------------------------------------------------------------------*/


/* ===== MOBILE STYLES ===== */
@media (max-width: 992px) {

  #ast-mobile-header .ps-ast-below-mobile-header{
    background-color: #004B90;
    display: flex;
    justify-content: space-around;
  }

  #ast-mobile-header .ps-ast-below-mobile-header a{
    color: white;
    border-left: 1px solid white;
    padding-inline: 10px;
    font-size: clamp(0.6rem, calc(0.7rem + 1vw), 1rem);
  }

  #ast-mobile-header .ps-ast-below-mobile-header .my-account a{
    border: none;
  }

  #ast-mobile-header .logo-fb-account-wrapper{
    display: flex;
    flex-direction: row;
    gap: 5px;
  }

  #ast-mobile-header .site-logo-img img{
    width: 150px !important;
    max-width: 150px;
  }

  #ast-mobile-header .site-branding {
    padding: 0;
  }

  .ast-mobile-header-wrap input[type="submit"].search-submit{
    display: none;
  }

  .ast-mobile-header-wrap .mobile-search-bar-wrapper{
    display: flex;
    justify-content: center;
  }

  button.my-mobile-toggle, div.ast-site-header-cart .astra-icon{
    color: #004B90;
  }

  .my-mobile-nav li ul.sub-menu {
    position: static;
    box-shadow: none;
    padding: 10px 0;
    display: none;
    opacity: 1;
    visibility: visible;
  }

  .my-mobile-nav li.open-menu-lists ul.sub-menu {
    display: block;
  }

  .my-mobile-nav li{
    padding-left: 5px;
    line-height: 2rem;
  }

  .my-mobile-nav .mtnmm-mobile-li-toggle-button{
    z-index: 999999;
    border: none;
    padding-left: 90% !important;
    width: 100%;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 0;
    background-color: transparent;
    line-height: 2rem;
    color: black;
  }

  body.admin-bar .my-mobile-menu {
      top: 46px;
      height: calc(100dvh - 46px);
  }

}



@media (max-width: 992px) {
  @keyframes hideMobileSubBar {
    0% {
      opacity: 1;
      transform: translateY(0);
      max-height: 80px;
    }
    100% {
      opacity: 0;
      transform: translateY(-100%);
      max-height: 0;
      overflow: hidden;
    }
  }

  #ast-mobile-header .ps-ast-below-mobile-header {
    max-height: 80px;
    animation: hideMobileSubBar linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 120px; /* fades & slides out over the first 120px of scroll */
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  #ast-mobile-header .ps-ast-below-mobile-header {
    animation: none;
    max-height: none;
    opacity: 1;
    transform: none;
  }
}