/* ==========================================================================
   La Casita Luna - share.button.css
   ========================================================================== */

.share-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

.sharebutton .share-icon {
  color: currentColor !important;
}

.sharediv {
  padding: 12px 0 16px;
  text-align: right;
}

/* LinkStack renders the share trigger with classes shared with the
   link-card buttons (".button-hover", "icon-hover"). Fully reset the
   layout-affecting properties here so nothing inherited from brands.css /
   animations.css can leak in and stretch the pill out of shape. */
.sharebutton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: max-content;
  min-height: 40px;
  height: 40px;
  margin-bottom: 0;
  padding: 0 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  color: #C86D46;
  background-color: #FAF4ED;
  border: 1px solid #ECDAC9;
  box-shadow: none;
  transform: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  .sharebutton {
    color: #F2B99E;
    background-color: #261F1B;
    border-color: #3D322B;
  }
}

.sharebutton:hover {
  background-color: #C86D46;
  color: #FFFFFF;
  border-color: #C86D46;
  transform: none;
}

@media (max-width: 480px) {
  .sharebutton {
    width: 40px;
    max-width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .sharebutton-mb {
    display: none;
  }

  .sharebutton .share-icon {
    margin-right: 0;
  }
}

.toastbox {
  width: min(280px, calc(100vw - 24px));
  padding: 12px 18px;
  box-sizing: border-box;
  background-color: rgba(56, 26, 15, 0.92);
  color: #FAF4ED;
  border-radius: 10px;
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  left: 50%;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, calc(100% + 30px));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 99999;
}

.toastbox.toast-tox--active {
  transform: translate(-50%, 0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .sharebutton,
  .toastbox {
    transition-duration: 0.01ms;
  }
}
