.home-promo:not([open]) { display: none; }
.home-promo [hidden] { display: none; }
html:has(.home-promo[open]) { overflow: hidden; }

.home-promo {
  position: fixed;
  inset: auto 0 0;
  box-sizing: border-box;
  width: min(100%, 450px);
  max-width: none;
  max-height: 88vh;
  max-height: 88dvh;
  padding: 0;
  margin: 0 auto;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 22px 22px 0 0;
  color: #18231d;
  background: #fff;
  font-family: var(--duremarket-font, "Pretendard Variable", sans-serif);
  box-shadow: 0 -8px 32px rgb(15 28 21 / .16);
}

.home-promo::backdrop { background: rgb(17 24 20 / .43); }

.home-promo[open] {
  animation: home-promo-in .22s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes home-promo-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.home-promo-panel {
  padding: 22px 24px max(14px, env(safe-area-inset-bottom));
  margin: 0;
}

.home-promo-price {
  display: flex;
  align-items: center;
}

.home-promo-offer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-block-end: 18px;
}

.home-promo h2 {
  margin: 0;
  font-size: clamp(20px, 5.5vw, 24px);
  font-weight: 780;
  letter-spacing: -.048em;
  line-height: 1.2;
  word-break: keep-all;
}

.home-promo h2:focus { outline: 0; }

.home-promo-product {
  margin: 5px 0 2px;
  color: #516058;
  font-size: 14px;
  font-weight: 520;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.home-promo-price {
  gap: 7px;
  margin: 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.home-promo-price > span { color: #08783f; font-weight: 750; }
.home-promo-price strong { font-weight: 760; }

.home-promo-photo {
  width: 60px;
  aspect-ratio: 1;
  overflow: hidden;
}

.home-promo-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-promo-product-photo { border-radius: 9px; }
.home-promo-product-photo img { object-fit: cover; }

.home-promo-action,
.home-promo-dismiss {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  line-height: 1.3;
}

.home-promo-action {
  min-height: 49px;
  gap: 7px;
  color: #fff;
  background: #08783f;
  font-size: 15px;
  font-weight: 740;
  text-decoration: none;
}

.home-promo-action:hover { background: #066434; }

.home-promo-dismiss {
  margin-top: 2px;
  color: #556159;
  background: transparent;
  font-size: 14px;
  font-weight: 620;
  cursor: pointer;
}

.home-promo-dismiss:hover { color: #08783f; }
.home-promo :focus-visible { outline-offset: -3px; }
.home-promo-action:focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .home-promo[open] { animation: none; }
}
