/* D&D Home PWA: install guide, mobile app bar, search sheet. Brand: blue #783942, green #B99874. */
:root {
  --dd-pwa-blue: #783942;
  --dd-pwa-blue-d: #5C2C35;
  --dd-pwa-green: #B99874;
  --dd-pwa-ink: #2B1B22;
  --dd-pwa-mute: #7C6D70;
  --dd-bn-h: 0px;
}

/* The Elementor kit / Hello skin styles every <button> and link; lock the look of ours. */
.dd-bn__i,
.dd-bs__x,
.dd-ia__x,
.dd-ia__go,
.dd-ia__later,
.dd-ia__never,
.dd-guide__x,
.dd-guide__ok,
.dd-guide__copy,
.dd-pwa-btn {
  text-transform: none !important;
  letter-spacing: normal !important;
  text-shadow: none !important;
  white-space: normal;
  -webkit-appearance: none;
  appearance: none;
}

/* ------------------------------------------------------------ app bar */
.dd-bn {
  display: none;
}

@media (max-width: 768px) {
  body.dd-has-bn {
    --dd-bn-h: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: var(--dd-bn-h);
  }

  .dd-bn {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99990;
    height: var(--dd-bn-h);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid rgba(120, 57, 66, .14);
    box-shadow: 0 -8px 26px rgba(57, 36, 45, .08);
  }

  html.dd-kb .dd-bn,
  html.dd-guide-open .dd-bn {
    display: none;
  }

  .dd-bn__i {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0 !important;
    padding: 6px 2px 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: var(--dd-pwa-mute) !important;
    font-family: inherit;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color .18s ease, transform .12s ease;
  }

  .dd-bn__i:active {
    transform: scale(.93);
  }

  .dd-bn__i:focus-visible {
    outline: 2px solid var(--dd-pwa-blue) !important;
    outline-offset: -4px;
    border-radius: 12px !important;
  }

  .dd-bn__i svg {
    display: block;
  }

  .dd-bn__i.is-active {
    color: var(--dd-pwa-blue) !important;
    font-weight: 700 !important;
  }

  .dd-bn__i.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 26px;
    height: 3px;
    margin-left: -13px;
    border-radius: 0 0 4px 4px;
    background: var(--dd-pwa-green);
  }

  .dd-bn__ico {
    position: relative;
    display: block;
    line-height: 0;
  }

  .dd-bn-badge {
    position: absolute;
    top: -6px;
    inset-inline-end: -10px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--dd-pwa-green);
    color: #14260a;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
  }

  .dd-bn-badge[hidden] {
    display: none;
  }

  /* lift the AI advisor above the bar */
  body.dd-has-bn .ddaa-root {
    bottom: calc(var(--dd-bn-h) + 12px) !important;
  }

  body.dd-has-bn .ddaa-panel {
    bottom: calc(var(--dd-bn-h) + 70px) !important;
    height: min(64vh, 520px) !important;
  }
}

/* ------------------------------------------------------ search sheet (header icon + app bar) */
.dd-bs {
  display: block;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 100003;
}

.dd-bs[hidden] {
  display: none;
}

.dd-bs__back {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(57, 36, 45, .45);
  opacity: 0;
  transition: opacity .2s ease;
}

.dd-bs__form {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(14px, calc((100% - 760px) / 2)) 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(57, 36, 45, .16);
  color: var(--dd-pwa-mute);
  transform: translateY(-105%);
  transition: transform .22s ease;
}

.dd-bs.is-on .dd-bs__back {
  opacity: 1;
}

.dd-bs.is-on .dd-bs__form {
  transform: none;
}

.dd-bs__form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid rgba(120, 57, 66, .25) !important;
  border-radius: 999px !important;
  background: #f5f8fc !important;
  color: var(--dd-pwa-ink) !important;
  font-family: inherit;
  font-size: 16px !important;
  -webkit-appearance: none;
  appearance: none;
}

.dd-bs__form input[type="search"]:focus {
  outline: 2px solid var(--dd-pwa-blue) !important;
  outline-offset: 1px;
  background: #fff !important;
}

.dd-bs__x {
  flex: 0 0 auto;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #eef2f8 !important;
  color: var(--dd-pwa-ink) !important;
  font-size: 24px !important;
  line-height: 1 !important;
  cursor: pointer;
}

html.dd-bs-open {
  overflow: hidden;
}

/* ------------------------------------------------------ install banner */
.dd-ia {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--dd-bn-h);
  z-index: 100000;
  display: flex;
  justify-content: center;
  padding: 0 12px 12px;
  pointer-events: none;
  transform: translateY(24px);
  opacity: 0;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .25s ease;
}

.dd-ia.is-on {
  transform: none;
  opacity: 1;
}

.dd-ia__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 16px 16px 10px;
  border: 1px solid rgba(120, 57, 66, .16);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(57, 36, 45, .22);
  color: var(--dd-pwa-ink);
  pointer-events: auto;
}

.dd-ia__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--dd-pwa-blue), var(--dd-pwa-green));
}

.dd-ia__x {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--dd-pwa-mute) !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer;
}

.dd-ia__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline-end: 24px;
}

.dd-ia__logo {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  box-shadow: 0 3px 10px rgba(57, 36, 45, .16);
}

.dd-ia__txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dd-ia__txt strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.dd-ia__txt span {
  font-size: 13px;
  line-height: 1.7;
  color: var(--dd-pwa-mute);
}

.dd-ia__act {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.dd-ia__go,
.dd-ia__later,
.dd-guide__ok,
.dd-guide__copy {
  margin: 0 !important;
  border-radius: 999px !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dd-ia__go {
  flex: 1 1 auto;
  padding: 13px 18px !important;
  border: 0 !important;
  background: var(--dd-pwa-blue) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(120, 57, 66, .3) !important;
}

.dd-ia__go:active,
.dd-guide__ok:active {
  transform: scale(.97);
}

.dd-ia__later {
  flex: 0 0 auto;
  padding: 13px 18px !important;
  border: 1px solid rgba(120, 57, 66, .25) !important;
  background: #fff !important;
  color: var(--dd-pwa-blue) !important;
}

.dd-ia__never {
  display: block;
  margin: 8px auto 0 !important;
  padding: 6px 10px !important;
  border: 0 !important;
  background: none !important;
  color: var(--dd-pwa-mute) !important;
  font-family: inherit;
  font-size: 12px !important;
  text-decoration: underline !important;
  cursor: pointer;
}

.dd-ia button:focus-visible,
.dd-guide button:focus-visible {
  outline: 2px solid var(--dd-pwa-blue);
  outline-offset: 2px;
}

/* ---------------------------------------------------------- guide dialog */
.dd-guide {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 100001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}

.dd-guide.is-on {
  opacity: 1;
}

.dd-guide__back {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(57, 36, 45, .6);
}

.dd-guide__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 26px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0;
  background: #fff;
  color: var(--dd-pwa-ink);
  text-align: center;
  transform: translateY(40px);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.dd-guide.is-on .dd-guide__panel {
  transform: none;
}

@media (min-width: 560px) {
  .dd-guide {
    align-items: center;
  }

  .dd-guide__panel {
    border-radius: 24px;
    padding-bottom: 22px;
  }
}

.dd-guide__x {
  position: absolute;
  top: 10px;
  inset-inline-end: 12px;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #eef2f8 !important;
  color: var(--dd-pwa-ink) !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer;
}

.dd-guide__logo {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  border-radius: 15px;
  box-shadow: 0 4px 14px rgba(57, 36, 45, .18);
}

.dd-guide__title {
  margin: 0 0 4px !important;
  padding: 0 !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  color: var(--dd-pwa-blue) !important;
}

.dd-guide__panel.has-arrow {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

.dd-guide__intro {
  margin: 0 0 16px !important;
  font-size: 14px;
  line-height: 1.8;
  color: var(--dd-pwa-mute);
}

.dd-guide__steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  text-align: start;
}

.dd-guide__step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(120, 57, 66, .14);
  border-radius: 16px;
  background: #f6f9fd;
}

.dd-guide__n {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dd-pwa-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.dd-guide__t {
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.85;
}

.dd-guide__t b {
  color: var(--dd-pwa-blue-d);
  font-weight: 700;
}

.dd-guide__i {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  color: var(--dd-pwa-blue);
  box-shadow: 0 2px 8px rgba(57, 36, 45, .1);
}

.dd-guide__note {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--dd-pwa-mute);
}

.dd-guide__copy {
  display: block;
  width: 100% !important;
  margin: 0 0 10px !important;
  padding: 13px 18px !important;
  border: 1px solid rgba(120, 57, 66, .3) !important;
  background: #fff !important;
  color: var(--dd-pwa-blue) !important;
}

.dd-guide__ok {
  display: block;
  width: 100% !important;
  padding: 14px 18px !important;
  border: 0 !important;
  background: var(--dd-pwa-blue) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(120, 57, 66, .3) !important;
}

/* bouncing hint toward Safari's toolbar (bottom on iPhone, top on iPad) */
.dd-guide__arrow {
  position: fixed;
  bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  margin-left: -17px;
  color: var(--dd-pwa-green);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5));
  pointer-events: none;
  animation: dd-bounce 1.1s ease-in-out infinite;
}

.dd-guide__arrow.is-top {
  top: 8px;
  bottom: auto;
  left: auto;
  right: 18px;
  margin-left: 0;
  transform: rotate(180deg);
  animation: dd-bounce-top 1.1s ease-in-out infinite;
}

@keyframes dd-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes dd-bounce-top {
  0%, 100% { transform: rotate(180deg) translateY(0); }
  50% { transform: rotate(180deg) translateY(-9px); }
}

/* ------------------------------------------------------------------ toast */
.dd-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dd-bn-h) + 22px);
  z-index: 100002;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--dd-pwa-ink);
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}

.dd-toast.is-on {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* --------------------------------------------------- [dd_install_app] button */
.dd-pwa-btn {
  display: inline-block;
  margin: 0;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--dd-pwa-blue);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(120, 57, 66, .28);
}

.dd-pwa-btn:hover {
  background: var(--dd-pwa-blue-d) !important;
}

html.dd-standalone .dd-pwa-open {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .dd-ia,
  .dd-guide,
  .dd-guide__panel,
  .dd-bs__back,
  .dd-bs__form,
  .dd-toast,
  .dd-bn__i {
    transition: none;
  }

  .dd-guide__arrow,
  .dd-guide__arrow.is-top {
    animation: none;
  }
}

/* ---- AI advisor widget: the Elementor kit skins its <button>s (square bubble, pink outline); restore the intended look ---- */
.ddaa-root .ddaa-bubble {
  width: 58px !important;
  height: 58px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #783942, #5C2C35) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(120, 57, 66, .4) !important;
}

.ddaa-root .ddaa-close {
  padding: 4px 8px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: none !important;
  color: #fff !important;
  box-shadow: none !important;
}

.ddaa-root .ddaa-form button {
  width: 36px !important;
  height: 36px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #B99874 !important;
  color: #fff !important;
  box-shadow: none !important;
}
