/* Amadyny Coffee 1.0.0 — scoped, dependency-free, keyboard and mobile friendly. */
.amc-widget {
  --amc-accent: #a76e53;
  --amc-bottom: 24px;
  --amc-side: 24px;
  --amc-panel: #fffdfb;
  --amc-ink: #2d302e;
  --amc-soft: #6d706d;
  --amc-border: rgba(67, 54, 45, .115);
  --amc-icon-bg: #f7eee7;
  --amc-highlight: #f5e9df;
  position: fixed;
  z-index: 980;
  bottom: calc(var(--amc-bottom) + env(safe-area-inset-bottom, 0px));
  width: min(340px, calc(100vw - 32px));
  color: var(--amc-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 12px, 0);
  transition: opacity .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
  isolation: isolate;
}
.amc-widget[hidden], .amc-widget [hidden] { display: none !important; }
.amc-widget *, .amc-widget *::before, .amc-widget *::after { box-sizing: border-box; }
.amc-widget.amc-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}
.amc-widget.amc-on-right { right: var(--amc-side); }
.amc-widget.amc-on-left { left: var(--amc-side); }
.amc-widget :is(button, a) {
  font-family: inherit;
  letter-spacing: normal;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.amc-widget :is(button, a):focus-visible { outline: 3px solid var(--amc-accent); outline-offset: 3px; }
.amc-widget button { cursor: pointer; }
.amc-widget button:disabled { cursor: default; }

/* A discreet two-button floating chip. */
.amc-pill {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: 0;
  border: 1px solid var(--amc-border);
  border-radius: 999px;
  background: var(--amc-panel);
  box-shadow: 0 7px 30px rgba(34, 29, 24, .11), 0 1px 5px rgba(34, 29, 24, .04);
  overflow: hidden;
  transition: opacity .2s ease, transform .3s ease, visibility .2s;
}
.amc-on-left .amc-pill { margin-left: 0; margin-right: auto; }
.amc-pill-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 7px 9px 11px;
  color: var(--amc-ink);
  background: none;
  border: 0;
  border-radius: 999px 0 0 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  transition: color .2s ease;
}
.amc-pill-open:hover { color: var(--amc-accent); }
.amc-pill-icon {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  height: 31px;
  color: var(--amc-accent);
  background: var(--amc-icon-bg);
  border-radius: 50%;
}
.amc-pill-icon svg { display: block; width: 18px; height: 18px; }
.amc-pill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--amc-accent); opacity: .55; }
.amc-pill-hide {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  margin: 6px 3px 6px 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--amc-border);
  color: var(--amc-soft);
  background: transparent;
  transition: color .2s ease, background .2s ease;
}
.amc-pill-hide:hover { color: var(--amc-ink); background: var(--amc-highlight); }
.amc-pill-hide svg { width: 12px; height: 12px; }

/* Expanded invitation card. */
.amc-card {
  position: relative;
  background: var(--amc-panel);
  border: 1px solid var(--amc-border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 20px 65px rgba(36, 30, 26, .14), 0 4px 17px rgba(36, 30, 26, .04);
  overflow: hidden;
}
.amc-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amc-accent), transparent 95%);
  opacity: .8;
}
.amc-card-hide {
  position: absolute;
  right: 11px;
  top: 12px;
  display: grid;
  place-items: center;
  height: 31px;
  width: 31px;
  padding: 0;
  color: var(--amc-soft);
  background: transparent;
  border: 0;
  border-radius: 50%;
}
.amc-card-hide:hover { color: var(--amc-ink); background: var(--amc-icon-bg); }
.amc-card-hide svg { width: 15px; height: 15px; }
.amc-card-top { display: flex; align-items: center; gap: 13px; margin: 0 22px 15px 0; }
.amc-logo {
  display: grid;
  place-items: center;
  height: 48px;
  width: 48px;
  flex: 0 0 48px;
  border-radius: 15px;
  background: var(--amc-icon-bg);
  color: var(--amc-accent);
}
.amc-logo svg { width: 25px; height: 25px; }
.amc-widget .amc-overline {
  margin: 0 0 4px;
  padding: 0;
  color: var(--amc-accent);
  font-size: 9px;
  line-height: 1.5;
  font-weight: 750;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.amc-widget .amc-card-copy h2 {
  margin: 0;
  padding: 0;
  font-family: inherit;
  color: var(--amc-ink);
  line-height: 1.2;
  letter-spacing: -.035em;
  font-size: 19px;
  font-weight: 720;
  text-transform: none;
}
.amc-widget .amc-message {
  margin: 0 0 19px;
  padding: 0;
  color: var(--amc-soft);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.amc-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
  min-height: 43px;
  padding: 10px 15px 10px 17px;
  border-radius: 10px;
  background: var(--amc-accent);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 5px 14px rgba(111, 77, 54, .15);
  transition: filter .2s ease, transform .2s ease;
}
.amc-cta:hover { color: #fff !important; filter: brightness(.92); transform: translateY(-1px); }
.amc-cta svg { width: 18px; height: 18px; flex: 0 0 18px; }
.amc-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 11px; }
.amc-widget .amc-footnote { font-size: 10px; line-height: 1.4; color: var(--amc-soft); opacity: .85; }
.amc-later {
  padding: 3px 0 3px 7px;
  border: 0;
  background: transparent;
  color: var(--amc-soft);
  font-size: 11px;
  white-space: nowrap;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.amc-later:hover { color: var(--amc-accent); }
.amc-widget.amc-open .amc-pill { display: none; }

.amc-theme-dark {
  --amc-panel: #282827;
  --amc-ink: #fbf8f4;
  --amc-soft: #c5bfba;
  --amc-border: rgba(255, 255, 255, .12);
  --amc-icon-bg: #3c3430;
  --amc-highlight: #3b3431;
}
@media (prefers-color-scheme: dark) {
  .amc-theme-auto {
    --amc-panel: #282827;
    --amc-ink: #fbf8f4;
    --amc-soft: #c5bfba;
    --amc-border: rgba(255, 255, 255, .12);
    --amc-icon-bg: #3c3430;
    --amc-highlight: #3b3431;
  }
}
@media (max-width: 767px) {
  .amc-widget {
    --amc-side: 14px !important;
    --amc-bottom: 15px !important;
    width: min(330px, calc(100vw - 28px));
  }
  .amc-widget.amc-on-right { right: var(--amc-side); }
  .amc-widget.amc-on-left { left: var(--amc-side); }
  .amc-widget .amc-card { padding: 18px; border-radius: 16px; }
  .amc-pill-open { padding: 6px 7px 6px 8px; }
  .amc-pill-icon { height: 29px; flex-basis: 29px; }
  .amc-card-top { margin-bottom: 12px; }
}
@media (max-width: 359px) { .amc-pill-dot { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .amc-widget, .amc-widget *, .amc-widget *::before, .amc-widget *::after {
    transition-duration: .01ms !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media print { .amc-widget { display: none !important; } }
