
/* =====================================
   HORSESHOE MENU
   ===================================== */

.mm-horseshoe {
  --mm-active-offset: var(--mm-desktop-offset, 24px);

  position: fixed;
  z-index: 99999;

  width: 64px;
  height: 64px;

  margin: 0;
  padding: 0;
}


/* =====================================
   BUTTON: IMAGE ONLY
   ===================================== */

.mm-horseshoe-button {
  appearance: none;
  -webkit-appearance: none;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 64px;
  height: 64px;
  min-width: 64px;
  margin: 0;
  padding: 0;

  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;

  background: transparent !important;
  color: inherit;

  line-height: 1;
  cursor: pointer;
}

.mm-horseshoe-button:hover,
.mm-horseshoe-button:active,
.mm-horseshoe-button:focus,
.mm-horseshoe-button:focus-visible {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.mm-horseshoe-button img {
  display: block;

  width: 56px;
  height: 56px;
  max-width: 100%;

  margin: 0;
  padding: 0;

  border: 0;
  outline: none;
  box-shadow: none;

  background: transparent;
  object-fit: contain;
}

.mm-horseshoe-placeholder {
  font-family: Georgia, serif;
  font-size: 12px;
}


/* =====================================
   DROPDOWN PANEL
   ===================================== */

.mm-horseshoe-panel {
  position: absolute;

  /*
   * PHP calculates the selected horseshoe anchor
   * and applies signed spacing through these values.
   */

  left: var(--mm-panel-left, 100%);
  top: var(--mm-panel-top, 0%);

  transform: translate(
    calc(0% - var(--mm-panel-anchor-x, 100%)),
    calc(0% - var(--mm-panel-anchor-y, 100%))
  );

  width: max-content;
  min-width: 190px;
  max-width: min(280px, calc(100vw - 24px));

  margin: 0;
  padding: 12px 18px;

  border: var(--mm-panel-border, 1px solid #796747);
  border-radius: var(--mm-panel-radius, 3px);

  color: var(--mm-panel-text, #211d17);
  background: var(--mm-panel-background, #fffdf7);

  box-shadow: var(--mm-panel-shadow, 0 4px 16px rgb(0 0 0 / 15%));

  font-family: "Macondo Swash Caps", serif;
  font-size: 1rem;
  line-height: 1.5;

  overflow-wrap: anywhere;
}

.mm-horseshoe-panel[hidden] {
  display: none !important;
}


/* =====================================
   MENU LIST
   ===================================== */

.mm-horseshoe-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mm-horseshoe-menu-list li {
  margin: 0;
  padding: 0;
}

.mm-horseshoe-menu-list li + li {
  border-top: 1px solid rgb(121 103 71 / 25%);
}

.mm-horseshoe-menu-list a {
  display: block;
  padding: 8px 2px;

  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mm-horseshoe-menu-list a:hover,
.mm-horseshoe-menu-list a:focus-visible {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mm-horseshoe-empty {
  margin: 0;
}


/* =====================================
   MOBILE
   ===================================== */

@media (max-width: 650px) {
  .mm-horseshoe {
    --mm-active-offset: var(--mm-mobile-offset, 12px);

    width: 60px;
    height: 60px;
  }

  .mm-horseshoe-button {
    width: 60px;
    height: 60px;
    min-width: 60px;
  }

  .mm-horseshoe-button img {
    width: 52px;
    height: 52px;
  }
}
