/* La Maison de la Poêle – Menu compte mobile V4.5 : carrés de même dimension.
   Chargé uniquement par header.tpl de cette boutique.
   Aucun changement sur ordinateur et aucun impact sur le panier. */
#header .hgd-mobile-account { display: none !important; }

@media (max-width: 991px) {
  #header .hgd-header-main {
    position: relative;
    z-index: 60;
    overflow: visible !important;
  }
  #header .hgd-header-main > .container {
    position: relative !important;
    overflow: visible !important;
  }
  #header .hgd-mobile-account {
    display: block !important;
    position: absolute !important;
    z-index: 5000 !important;
    top: 17px !important;
    right: 78px !important;
    float: none !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-sizing: border-box;
  }
  #header .hgd-mobile-account > summary.hgd-mobile-account-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #1b1b1b !important;
    border-radius: 6px !important;
    background: #1b1b1b !important;
    color: #e1b773 !important;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none !important;
    box-sizing: border-box;
  }
  #header .hgd-mobile-account > summary::-webkit-details-marker { display: none !important; }
  #header .hgd-mobile-account > summary::marker { content: '' !important; }
  #header .hgd-mobile-account > summary svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    color: inherit !important;
  }
  #header .hgd-mobile-account[open] > summary,
  #header .hgd-mobile-account > summary:hover,
  #header .hgd-mobile-account > summary:focus {
    border-color: #252d35 !important;
    color: #f1d5a5 !important;
    background: #252d35 !important;
  }
  #header .hgd-mobile-account > summary:focus-visible {
    outline: 2px solid #a67a45 !important;
    outline-offset: 2px;
  }
  #header .hgd-mobile-account .hgd-mobile-account-panel {
    position: absolute !important;
    display: block !important;
    top: calc(100% + 10px) !important;
    right: -4px !important;
    left: auto !important;
    z-index: 5001 !important;
    width: 265px !important;
    max-width: calc(100vw - 24px) !important;
    height: auto !important;
    margin: 0 !important;
    padding: 7px 0 !important;
    border: 1px solid #e3d5c1 !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: #252d35 !important;
    box-shadow: 0 12px 28px rgba(22,27,31,.19) !important;
    box-sizing: border-box !important;
    text-align: left !important;
    white-space: normal !important;
  }
  #header .hgd-mobile-account .hgd-mobile-account-panel::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 15px;
    width: 12px;
    height: 12px;
    border-left: 1px solid #e3d5c1;
    border-top: 1px solid #e3d5c1;
    background: #fff;
    transform: rotate(45deg);
  }
  #header .hgd-mobile-account .hgd-mobile-account-heading {
    padding: 10px 16px 8px !important;
    color: #8a663c !important;
    font: 700 11px/1.4 'Open Sans',Arial,sans-serif !important;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  #header .hgd-mobile-account .hgd-mobile-account-panel > a {
    position: static !important;
    display: block !important;
    float: none !important;
    height: auto !important;
    width: 100% !important;
    padding: 13px 17px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #252d35 !important;
    font: 500 14px/1.4 'Open Sans',Arial,sans-serif !important;
    text-align: left !important;
    text-decoration: none !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }
  #header .hgd-mobile-account .hgd-mobile-account-panel > a:hover,
  #header .hgd-mobile-account .hgd-mobile-account-panel > a:focus {
    background: #fbf6ef !important;
    color: #885b2c !important;
  }
  #header .hgd-mobile-account .hgd-mobile-account-panel > a.hgd-mobile-account-tracking {
    color: #885b2c !important;
  }
  #header .hgd-mobile-account .hgd-mobile-account-panel > a.hgd-mobile-account-logout {
    margin-top: 5px !important;
    border-top: 1px solid #ece5dd !important;
    color: #68727c !important;
  }
}
@media (max-width: 360px) {
  #header .hgd-mobile-account { right: 66px !important; }
  #header .hgd-mobile-account .hgd-mobile-account-panel { right: -12px !important; }
}
