/* BookMyGroomer smart promotional cards: premium shared shell, disabled by default. */
.bmg-smart-prompt {
  --bmg-prompt-accent: #f98212;
  --bmg-prompt-accent-dark: #d85f00;
  --bmg-prompt-ink: #13213a;
  position: fixed;
  z-index: 9990;
  right: clamp(16px, 2.5vw, 36px);
  bottom: clamp(18px, 2.5vw, 36px);
  width: min(408px, calc(100vw - 32px));
  color: var(--bmg-prompt-ink);
  font-family: "DM Sans", Inter, Arial, sans-serif;
}

.bmg-smart-prompt[hidden] { display: none; }

.bmg-smart-prompt__card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(19, 33, 58, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(249, 130, 18, 0.16), transparent 38%),
    linear-gradient(155deg, #ffffff 0%, #ffffff 66%, #fffaf5 100%);
  box-shadow:
    0 28px 70px rgba(19, 33, 58, 0.2),
    0 4px 14px rgba(19, 33, 58, 0.07);
  isolation: isolate;
}

.bmg-smart-prompt__card::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -64px;
  right: -56px;
  width: 160px;
  height: 160px;
  border: 34px solid rgba(249, 130, 18, 0.07);
  border-radius: 50%;
}

.bmg-smart-prompt__top {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 11px;
  margin: 0 48px 15px 0;
}

.bmg-smart-prompt__icon {
  position: relative;
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(249, 130, 18, 0.2);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff8f0, #ffe8d1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.bmg-smart-prompt__icon::before {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--bmg-prompt-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bmg-smart-prompt[data-bmg-smart-prompt="owner_blog"] .bmg-smart-prompt__icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H11a3 3 0 0 1 3 3v15a3 3 0 0 0-3-3H4V5.5Z'/%3E%3Cpath d='M20 5.5A2.5 2.5 0 0 0 17.5 3H14v18a3 3 0 0 1 3-3h3V5.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H11a3 3 0 0 1 3 3v15a3 3 0 0 0-3-3H4V5.5Z'/%3E%3Cpath d='M20 5.5A2.5 2.5 0 0 0 17.5 3H14v18a3 3 0 0 1 3-3h3V5.5Z'/%3E%3C/svg%3E");
}

.bmg-smart-prompt[data-bmg-smart-prompt="pro_upgrade"] .bmg-smart-prompt__icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 1.8 4.2L18 9l-4.2 1.8L12 15l-1.8-4.2L6 9l4.2-1.8L12 3Z'/%3E%3Cpath d='m19 15 .9 2.1L22 18l-2.1.9L19 21l-.9-2.1L16 18l2.1-.9L19 15Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 1.8 4.2L18 9l-4.2 1.8L12 15l-1.8-4.2L6 9l4.2-1.8L12 3Z'/%3E%3Cpath d='m19 15 .9 2.1L22 18l-2.1.9L19 21l-.9-2.1L16 18l2.1-.9L19 15Z'/%3E%3C/svg%3E");
}

.bmg-smart-prompt__label {
  display: block;
  color: #9b4700;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  line-height: 1.25;
  text-transform: uppercase;
}

.bmg-smart-prompt__close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #657084;
  font: inherit;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.bmg-smart-prompt__close:hover {
  background: #fff;
  color: var(--bmg-prompt-ink);
  transform: rotate(4deg);
}

.bmg-smart-prompt__close:focus-visible,
.bmg-smart-prompt__primary:focus-visible,
.bmg-smart-prompt__secondary:focus-visible {
  outline: 3px solid rgba(249, 130, 18, 0.34);
  outline-offset: 3px;
}

.bmg-smart-prompt__title {
  max-width: 330px;
  margin: 0 0 10px;
  color: var(--bmg-prompt-ink);
  font-size: clamp(1.38rem, 2vw, 1.58rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.bmg-smart-prompt__body,
.bmg-smart-prompt__disclosure {
  margin: 0;
  color: #566176;
  font-size: 0.94rem;
  line-height: 1.5;
}

.bmg-smart-prompt__proof {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0 0;
  color: #25324a;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.bmg-smart-prompt__proof::before {
  content: "✓";
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #fff0df;
  color: #c65600;
  font-size: 0.72rem;
  font-weight: 900;
}

.bmg-smart-prompt__actions {
  display: grid;
  gap: 5px;
  margin-top: 19px;
}

.bmg-smart-prompt__primary {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px 12px 17px;
  border: 1px solid var(--bmg-prompt-accent);
  border-radius: 14px;
  background: linear-gradient(135deg, #ff922e, var(--bmg-prompt-accent));
  box-shadow: 0 11px 24px rgba(249, 130, 18, 0.28);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.bmg-smart-prompt__primary::after {
  content: "→";
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.05rem;
}

.bmg-smart-prompt__primary:hover {
  border-color: var(--bmg-prompt-accent-dark);
  background: linear-gradient(135deg, var(--bmg-prompt-accent), var(--bmg-prompt-accent-dark));
  box-shadow: 0 14px 30px rgba(216, 95, 0, 0.32);
  color: #fff;
  transform: translateY(-2px);
}

.bmg-smart-prompt__secondary {
  min-height: 42px;
  padding: 9px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #657084;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
}

.bmg-smart-prompt__secondary:hover { background: rgba(19, 33, 58, 0.045); color: #25324a; }

.bmg-smart-prompt__disclosure {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(19, 33, 58, 0.08);
  font-size: 0.7rem;
  line-height: 1.42;
}

.bmg-smart-prompt.is-entering { animation: bmg-prompt-in 300ms cubic-bezier(.2,.8,.2,1) both; }
.bmg-smart-prompt.is-leaving { animation: bmg-prompt-out 160ms ease-in both; }

@keyframes bmg-prompt-in {
  from { opacity: 0; transform: translateY(18px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bmg-prompt-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(10px) scale(0.985); }
}

@media (max-width: 620px) {
  .bmg-smart-prompt {
    right: 10px;
    bottom: calc(var(--bmg-mobile-nav-height, 68px) + 20px);
    left: 10px;
    width: auto;
    max-height: 48vh;
  }

  .bmg-smart-prompt__card {
    max-height: 48vh;
    overflow-y: auto;
    padding: 19px;
    border-radius: 21px;
    box-shadow: 0 20px 50px rgba(19, 33, 58, 0.24);
  }

  .bmg-smart-prompt__top { min-height: 40px; margin-bottom: 12px; }
  .bmg-smart-prompt__icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 13px; }
  .bmg-smart-prompt__icon::before { width: 20px; height: 20px; }
  .bmg-smart-prompt__title { max-width: 310px; font-size: 1.3rem; }
  .bmg-smart-prompt__body { font-size: 0.88rem; line-height: 1.44; }
  .bmg-smart-prompt__proof { margin-top: 12px; font-size: 0.77rem; }
  .bmg-smart-prompt__actions { margin-top: 15px; }
  .bmg-smart-prompt__primary { min-height: 48px; }
  .bmg-smart-prompt__secondary { min-height: 40px; }
  .bmg-smart-prompt__disclosure { font-size: 0.66rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bmg-smart-prompt.is-entering,
  .bmg-smart-prompt.is-leaving { animation: none; }

  .bmg-smart-prompt__primary,
  .bmg-smart-prompt__close { transition: none; }
}
