/* Theme drawers (cart, mobile menu, product details…): same heading as the PX filters drawer,
   title in the headings font, a plain X icon instead of "X Fermer". */
.wd-side-hidden .wd-heading {
  flex-direction: row !important;
  justify-content: space-between !important;
  gap: 16px;
  padding: 22px 20px; /* the theme drawers' content starts 20px from the edge */
  border-bottom: 1px solid #e8e8e8 !important;
}
.wd-side-hidden .wd-heading .title {
  flex: 1;
  margin: 0;
  font-family: var(--px-sheet-title-font, var(--wd-title-font, inherit));
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: #1b1b1b;
  text-transform: none;
  letter-spacing: normal;
}
.wd-side-hidden .wd-heading .wd-action-btn { margin-left: auto; }
.wd-side-hidden .wd-heading .wd-action-btn > a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -8px -10px -8px 0;
  padding: 0;
  color: #1b1b1b;
}
.wd-side-hidden .wd-heading .wd-action-text { display: none !important; }
.wd-side-hidden .wd-heading .wd-cross-icon .wd-action-icon { display: block; width: 22px; height: 22px; margin: 0; }
.wd-side-hidden .wd-heading .wd-cross-icon .wd-action-icon::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wd-side-hidden .wd-heading .wd-action-btn > a:hover { opacity: .6; }

@media (max-width: 767px) {
  .wd-side-hidden .wd-heading { padding: 16px 20px; }
  .wd-side-hidden .wd-heading .title { font-size: 20px; }
}
