/* Deal Widget styles (v1.0.8) */
/* Desktop: inline card; Mobile: sticky bottom CTA (button only) */

.deal-widget-inline {
  max-width: 480px;
  width: 100%;
  margin: 1.25rem 0;
  box-sizing: border-box;
}
.deal-widget-inline .dw-card{
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 28px 24px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
.deal-widget-inline .dw-title{
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}
.deal-widget-inline .dw-desc{
  font-size: 16px;
  color: #333333;
  margin-bottom: 12px;
}
.deal-widget-inline .dw-price{
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin: 10px 0 20px 0;
  color: #111111;
}
.deal-widget-inline .dw-btn-wrap{
  display: flex;
  justify-content: center;
  align-items: center;
}
.deal-widget-inline .dw-btn{
  display: block;
  width: 100%;
  max-width: 420px;
  background: #ffeb3b;
  border-radius: 999px;
  padding: 12px 0;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: #000;
  text-align: center;
  transition: color .2s ease, box-shadow .2s ease, transform .1s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}
.deal-widget-inline .dw-btn:hover{
  color: #d00000;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}
.deal-widget-inline .dw-btn:active{
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Mobile sticky CTA: ẩn mặc định, chỉ hiện ở màn nhỏ */
.dw-mobile-cta{
  position: fixed;
  left: 0; right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom, 0));
  display: none;
  justify-content: center;
  pointer-events: none;            /* tránh chặn các click phía sau */
  z-index: 9999;
  transition: transform .2s ease, opacity .2s ease;
}
.dw-mobile-cta .dw-mobile-btn{
  pointer-events: auto;            /* nút vẫn click được */
  display: block;
  width: calc(100% - 32px);
  max-width: 720px;
  background: #ffeb3b;
  color: #000;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  padding: 12px 0;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.20);
}
.dw-mobile-cta .dw-mobile-btn:hover{
  color: #d00000;
}

/* Khi gần footer -> ẩn mượt */
.dw-mobile-cta.is-hidden{
  transform: translateY(120%);
  opacity: 0;
}

@media (max-width: 768px){
  .deal-widget-inline { display: none; }  /* Ẩn card trên mobile */
  .dw-mobile-cta { display: flex; }       /* Hiện sticky CTA */
}
