.remodeling-pack-prompt,
.remodeling-pack-bubble {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  z-index: 44;
  font-family: var(--sans, Inter, ui-sans-serif, system-ui, sans-serif);
}

.remodeling-pack-prompt[hidden],
.remodeling-pack-bubble[hidden] {
  display: none;
}

.remodeling-pack-prompt {
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.7rem);
  width: min(370px, calc(100vw - 2rem));
  padding: 1.25rem 1.25rem 1.2rem;
  border: 1px solid rgba(22, 23, 20, .14);
  border-radius: 1.2rem;
  background: #fff;
  color: var(--ink, #161714);
  box-shadow: 0 26px 75px rgba(22, 23, 20, .24);
  animation: remodeling-pack-in .28s cubic-bezier(.2, .75, .25, 1);
}

.remodeling-pack-prompt::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: .38rem;
  border-radius: 1.2rem 1.2rem 0 0;
  background: linear-gradient(90deg, var(--accent, #8b572a), var(--accent-2, #d4b383));
}

.remodeling-pack-dismiss {
  position: absolute;
  top: .8rem;
  right: .8rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(22, 23, 20, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--ink, #161714);
  font: 400 1.45rem/1 var(--sans, Inter, ui-sans-serif, sans-serif);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.remodeling-pack-dismiss:hover {
  background: var(--paper, #f3eee5);
  transform: rotate(4deg);
}

.remodeling-pack-kicker {
  margin: 0 3rem .55rem 0;
  color: var(--accent, #8b572a);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.remodeling-pack-title {
  display: block;
  max-width: 18ch;
  margin: 0;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  font-weight: 500;
  line-height: 1.05;
}

.remodeling-pack-description {
  margin: .75rem 0 1rem;
  color: rgba(22, 23, 20, .72);
  font-size: .9rem;
  line-height: 1.5;
}

.remodeling-pack-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .78rem 1.05rem;
  border-radius: 999px;
  background: var(--ink, #161714);
  color: #fff;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .045em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}

.remodeling-pack-cta:hover {
  background: var(--accent, #8b572a);
  transform: translateY(-1px);
}

.remodeling-pack-bubble {
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  min-height: 64px;
  max-width: min(320px, calc(100vw - 2rem));
  padding: .72rem .95rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 1rem 1rem 1rem .35rem;
  background: var(--accent, #8b572a);
  color: #fff;
  box-shadow: 0 20px 52px rgba(22, 23, 20, .28);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.remodeling-pack-bubble:hover {
  transform: translateY(-2px);
  background: var(--ink, #161714);
}

.remodeling-pack-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
}

.remodeling-pack-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.remodeling-pack-bubble-copy {
  display: grid;
  gap: .2rem;
  min-width: 0;
}

.remodeling-pack-bubble-copy strong {
  color: #fff;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .035em;
  line-height: 1.16;
  text-transform: uppercase;
}

.remodeling-pack-bubble-copy span {
  color: rgba(255, 255, 255, .84);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

.remodeling-pack-dismiss:focus-visible,
.remodeling-pack-cta:focus-visible,
.remodeling-pack-bubble:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink, #161714);
}

@keyframes remodeling-pack-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .remodeling-pack-prompt {
    left: max(.85rem, env(safe-area-inset-left));
    right: max(.85rem, env(safe-area-inset-right));
    bottom: calc(max(.85rem, env(safe-area-inset-bottom)) + 4.9rem);
    width: auto;
  }

  .remodeling-pack-bubble {
    left: max(.85rem, env(safe-area-inset-left));
    bottom: max(.85rem, env(safe-area-inset-bottom));
    max-width: 48vw;
    padding: .68rem .8rem;
  }

  .remodeling-pack-bubble-copy strong {
    font-size: .7rem;
  }

  .remodeling-pack-bubble-copy span {
    font-size: .64rem;
  }
}

@media (max-width: 390px) {
  .remodeling-pack-bubble {
    max-width: 44vw;
    gap: 0;
  }

  .remodeling-pack-icon {
    display: none;
  }

  .remodeling-pack-bubble-copy strong {
    font-size: .67rem;
  }

  .remodeling-pack-bubble-copy span {
    font-size: .6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .remodeling-pack-prompt,
  .remodeling-pack-bubble,
  .remodeling-pack-dismiss,
  .remodeling-pack-cta {
    animation: none;
    transition: none;
  }
}
