/* ── HISS "Gift Certificates for the Holidays" popup — 2026-11-03 ─────────
   Shared by index.html (shows every visit) and beginning-Sewing-Classes.html
   (shows once ever, via giftcert-popup.js reading the popup's data-mode
   attribute). Anchored to the lower-right of the screen instead of a
   full-screen overlay, so it's less obtrusive than a centered modal — no
   dark backdrop, page stays usable behind it.
     --hiss-blue   #0936b4
     --hiss-red    #b31812
     --hiss-yellow #ffcd45
   Font is Raleway (already loaded site-wide). Runs through Jan 1, 2027 —
   see END_DATE in giftcert-popup.js. */

.hiss-gift-popup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
  border-top: 6px solid #ffcd45;
  font-family: 'Raleway', sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

.hiss-gift-popup.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hiss-gift-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #b31812;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  z-index: 2;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hiss-gift-popup-close:hover,
.hiss-gift-popup-close:focus {
  background: #8f120e;
  transform: scale(1.08);
}

.hiss-gift-popup-image {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 15%;
}

.hiss-gift-popup-body {
  padding: 14px 18px 18px;
  text-align: center;
}

p.hiss-gift-popup-title {
  font-size: 1.42rem;
  font-weight: 800;
  color: #0936b4;
  margin: 0 0 8px;
  line-height: 1.25;
}

p.hiss-gift-popup-text {
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.4;
  color: #262626;
  margin: 0 0 16px;
}

.hiss-gift-popup-btn {
  display: inline-block;
  background: #b31812;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 28px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(179, 24, 18, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}

.hiss-gift-popup-btn:hover {
  background: #8f120e;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 575px) {
  .hiss-gift-popup {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    width: auto;
  }

  .hiss-gift-popup-image {
    height: 190px;
  }
}
