* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Lora';
  min-height: 100vh;
  background: #f5f5f5;
}

/* WRAPPER POSITION */
.promo-wrapper {
  position: fixed;
  z-index: 9999;
  display: none;
}

.promo-wrapper.full-size {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* MOBILE CENTER */
@media (max-width: 767px) {
  .promo-wrapper {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .promo-wrapper.hide-mobile {
    display: none !important;
  }

  .promo-box {
    border-radius: 20px;
  }
}

/* DESKTOP RIGHT BOTTOM */
@media (min-width: 768px) {
  .promo-wrapper:not(.full-size) {
    right: 30px;
    bottom: 30px;
  }
}

.promo-box {
    position: relative;
    max-width: 320px;
    height: auto;
    overflow: hidden;
    padding: 0;
    color: #f6d17a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.promo-wrapper.full-size .promo-box {
  padding: 0px;
}

.promo-wrapper.full-size .promo-box,
.promo-wrapper.full-size .promo-box img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
}

/* Decorative border glow */
.promo-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.03)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* CLOSE BUTTON */
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: white;
  cursor: pointer;
  font-size: 18px;
  transition: 0.2s ease;
}

.close-btn:hover {
  background: rgba(255,255,255,0.2);
}

.promo-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.icon {
  width: 56px;
  height: 56px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 28px;
}

.title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  color: #fff5d6;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.discount {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
  color: #fff5d6;
}

.small-text {
  font-size: 14px;
  line-height: 1.4;
  color: white;
  margin-bottom: 14px;
}

.cta-btn {
  width: 100%;
  min-height: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #f4f0ea;
  color: #5e0022;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  line-height: inherit;
  -webkit-appearance: button;
  text-transform: none;
  padding-top: 8px;
}

.cta-btn:focus,
.cta-btn:hover,
.cta-btn:visited,
.cta-btn:active {
    color: #5e0022;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

@media all and (max-width: 767px){
  .mobile-hide {
    display: none !important;
  }

  .promo-wrapper {
    width: 90%;
  }

  .promo-box {
    max-width: unset;
  }
}

@media all and (min-width: 768px){
  .desktop-hide {
    display: none !important;
  }
}