/* Official Sunpal Shopee store — footer link + leave-site modal */

.sunpal-shopee-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color .18s ease;
}

.sunpal-shopee-link::after {
  content: "↗";
  font-size: 12px;
  opacity: .72;
  transform: translateY(-1px);
  transition: transform .18s ease, opacity .18s ease;
}

.sunpal-shopee-link:hover {
  color: var(--ink);
}

.sunpal-shopee-link:hover::after {
  opacity: 1;
  transform: translate(2px, -2px);
}

.sunpal-shopee-link--badge {
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid #ffd9c8;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7f2 0%, #fff 100%);
  color: #7a3412;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.01em;
  box-shadow: 0 8px 18px rgba(238, 77, 45, .08);
}

.sunpal-shopee-link--badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ee4d2d;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, .18);
}

.sunpal-shopee-link--badge::after {
  content: none;
}

.sunpal-shopee-modal[hidden] {
  display: none !important;
}

.sunpal-shopee-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 18px;
}

.sunpal-shopee-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 11, .52);
  backdrop-filter: blur(3px);
  animation: sunpal-shopee-fade .22s ease;
}

.sunpal-shopee-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  border: 1px solid rgba(15, 23, 18, .08);
  border-radius: 12px;
  background:
    radial-gradient(560px 200px at 100% 0%, rgba(238, 77, 45, .12), transparent 58%),
    radial-gradient(420px 180px at 0% 0%, rgba(22, 139, 61, .1), transparent 60%),
    #fff;
  box-shadow: 0 28px 70px rgba(9, 14, 11, .24);
  animation: sunpal-shopee-rise .28s cubic-bezier(.2, .8, .2, 1);
}

.sunpal-shopee-modal-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 22px 22px 10px;
}

.sunpal-shopee-modal-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff4eb;
  color: #c2410c;
}

.sunpal-shopee-modal-icon svg {
  width: 22px;
  height: 22px;
}

.sunpal-shopee-modal-eyebrow {
  margin: 0 0 6px;
  color: #c2410c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sunpal-shopee-modal-header h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.sunpal-shopee-modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f6f4;
  color: #18241c;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.sunpal-shopee-modal-body {
  padding: 6px 22px 8px;
}

.sunpal-shopee-modal-store {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #ffe2d4;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8f4 0%, #fff 100%);
}

.sunpal-shopee-modal-store span {
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sunpal-shopee-modal-store strong {
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.sunpal-shopee-modal-points {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #24352b;
  font-size: 14px;
  line-height: 1.55;
}

.sunpal-shopee-modal-points li + li {
  margin-top: 8px;
}

.sunpal-shopee-modal-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f7f5;
  color: var(--muted, #5b6b61);
  font-size: 12px;
  line-height: 1.5;
}

.sunpal-shopee-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px 22px 22px;
}

.sunpal-shopee-modal-actions .button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin: 0 !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.sunpal-shopee-modal-stay {
  border: 1px solid #d5ddd7 !important;
  background: #fff !important;
  color: var(--ink, #0f1712) !important;
}

.sunpal-shopee-modal-stay:hover {
  border-color: var(--green, #168b3d) !important;
  background: #f2faf4 !important;
}

.sunpal-shopee-modal-continue {
  border: 0 !important;
  background: linear-gradient(180deg, #ff6434 0%, #ee4d2d 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(238, 77, 45, .28);
}

.sunpal-shopee-modal-continue:hover {
  filter: brightness(1.03);
}

body.sunpal-shopee-open {
  overflow: hidden;
}

@keyframes sunpal-shopee-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sunpal-shopee-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .sunpal-shopee-modal-actions {
    grid-template-columns: 1fr;
  }

  .sunpal-shopee-modal-continue {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sunpal-shopee-modal-backdrop,
  .sunpal-shopee-modal-dialog {
    animation: none;
  }
}
