.offer-overlay {
  position: fixed;
  /* inset: 0; */
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  z-index: 1000;
}

.offer-box {
  --primary: #0d3ef2;
  background: var(--primary); /* blue-600 */
  color: white;
  padding: 2rem;
  border-radius: 10px;
  width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.offer-title {
  color: #f2c10d;
}

.offer-box h3 {
  border-top: 1px solid #2563eb;
  border-bottom: 1px solid #2563eb;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.offer-box h3 span {
  color: #f2c10d;
}

.offer-box p {
  margin-bottom: 1rem;
  color: #8bb6f1;
}

.offer-close {
  position: absolute;
  /* top: 0.75rem; */
  /* right: 0.75rem; */
  /* background: none; */
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;

  top: -16px;
  right: -18px;
  width: auto;
  margin: 0;
  padding: 10px 12px;
  overflow: visible;
  background-color: #ffffff;
  border-radius: 100%;
  display: flex;
}

.offer-btn {
  display: inline-block;
  margin-top: 1rem;
  background: white;
  color: #2563eb;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
}

.offer-btn:hover {
  background: #e0e7ff; /* lighter */
}
/* Add these to your existing CSS */
.offer-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.offer-overlay:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.offer-box {
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.offer-overlay:not([hidden]) .offer-box {
  transform: scale(1);
}
