@font-face {
  font-family: "Noto Sans Thai";
  src: url("/wp-content/uploads/2024/01/NotoSansThai-Regular.ttf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Thai";
  src: url("/wp-content/uploads/2024/01/NotoSansThai-Light.ttf");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Thai";
  src: url("/wp-content/uploads/2024/01/NotoSansThai-Medium.ttf");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Thai";
  src: url("/wp-content/uploads/2024/01/NotoSansThai-Black.ttf");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.benjaruk-welcome-pack.wp,
.wp.benjaruk-welcome-pack {
  --ink: #1a1a1a;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --brand: #8fb3e8;
  --brand-dark: #4d78b7;
  --brand-soft: #eef4fc;
  --line: #06c755;
  --card: #ffffff;
  --surface: #ffffff;
  --highlight: #ecfdf3;
  --highlight-border: #bbf7d0;
  --border: rgba(26, 26, 26, 0.06);
  --float-bar-h: 148px;
  --product-popup-gap: 0px;
  --float-h: calc(var(--float-bar-h) + var(--product-popup-gap));
  --wp-font-text: var(--clb-text-font-family, "Noto Sans Thai", sans-serif);
  --wp-font-title: var(--clb-title-font-family, "Noto Sans Thai", sans-serif);
  --wp-font-title-weight: var(--clb-title-font-weight, 500);
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 calc(var(--float-h) + env(safe-area-inset-bottom, 0px));
  font-family: var(--wp-font-text);
  color: var(--ink);
  line-height: 1.5;
  box-sizing: border-box;
  background: var(--surface);
  min-height: 100dvh;
}

.benjaruk-welcome-pack.wp--product-popup-open,
.wp.benjaruk-welcome-pack.wp--product-popup-open {
  --product-popup-gap: 118px;
}

.benjaruk-welcome-pack *,
.benjaruk-welcome-pack *::before,
.benjaruk-welcome-pack *::after {
  box-sizing: border-box;
}

.wp__head {
  text-align: center;
  padding: 28px 20px 16px;
  background: #fff;
}

.wp__head-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  display: grid;
  place-items: center;
}

.wp__head-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wp__title {
  margin: 0 0 6px;
  font-family: var(--wp-font-title);
  font-size: 20px;
  font-weight: var(--wp-font-title-weight);
  line-height: 1.35;
  color: var(--ink);
}

.wp__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.wp__tier-label {
  margin: 4px 4px 0;
  font-family: var(--wp-font-title);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-dark);
}

.wp__soft-note {
  margin: 2px 4px 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.wp__offer-id {
  display: none;
  margin: 0;
  padding: 8px 20px 0;
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
  background: #fff;
}

.wp__offer-id.is-visible {
  display: block;
}

.wp__stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.wp__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.wp__row--highlight {
  background: var(--highlight);
  border-color: var(--highlight-border);
}

.wp__row-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.wp__row-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wp__row--highlight .wp__row-icon {
  background: rgba(255, 255, 255, 0.85);
}

.wp__row-body {
  flex: 1;
  min-width: 0;
}

.wp__row-body strong {
  display: block;
  font-family: var(--wp-font-title);
  font-size: 15px;
  font-weight: var(--wp-font-title-weight);
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.35;
}

.wp__row-body span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.wp__web-note {
  margin: 4px 16px 0;
  padding: 0 4px 8px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.wp__web-link {
  color: var(--brand-dark) !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.wp__preview {
  margin: 20px 0 8px;
  padding: 0;
}

.wp__preview-caption {
  margin: 0 0 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.wp__preview-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.wp__preview--portrait .wp__preview-img {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.wp__more {
  margin: 0 16px 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.wp__more-summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  user-select: none;
}

.wp__more-summary::-webkit-details-marker {
  display: none;
}

.wp__more[open] .wp__more-summary {
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.wp__stack--more {
  padding-top: 12px;
  padding-bottom: 12px;
}

.wp__cta-hint {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.wp__problem {
  margin-top: 8px;
  text-align: center;
}

.wp__problem-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.wp__problem-link:hover,
.wp__problem-link:focus-visible {
  color: var(--ink);
}

.wp__problem-panel {
  margin-top: 10px;
  text-align: left;
}

.wp__problem-prompt {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.wp__problem-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.wp__problem-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
}

.wp__problem-chip:hover,
.wp__problem-chip:focus-visible {
  border-color: rgba(77, 120, 183, 0.35);
  background: var(--brand-soft);
}

.wp__problem-thanks {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.wp__float-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 24%, #ffffff 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wp__float-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px 20px;
  border-radius: 14px;
  text-decoration: none !important;
  font-family: var(--wp-font-title);
  font-weight: var(--wp-font-title-weight);
  font-size: 16px;
  background: var(--line);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.32);
}

.wp__float-btn--web {
  background: var(--brand-dark);
  box-shadow: 0 8px 24px rgba(77, 120, 183, 0.32);
}

/* Affiliate: web buy + LINE green button stacked */
.benjaruk-welcome-pack.wp:has(.wp__float-bar--web-primary),
.wp.benjaruk-welcome-pack:has(.wp__float-bar--web-primary) {
  --float-bar-h: 148px;
}

.wp__float-bar--web-primary .wp__float-line-secondary {
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: center;
  padding: 16px 20px;
  border-radius: 14px;
  text-decoration: none !important;
  font-family: var(--wp-font-title);
  font-weight: var(--wp-font-title-weight);
  font-size: 16px;
  background: var(--line);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.32);
}

.wp__float-oa {
  display: block;
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--muted) !important;
  text-decoration: none !important;
}

/* Sticky product popup — sits above .wp__float-bar */
.wp__product-popup {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--float-bar-h) + env(safe-area-inset-bottom, 0px));
  z-index: 101;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s;
}

.wp__product-popup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.wp__product-popup-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
}

.wp__product-popup-close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  appearance: none;
  border: 0;
  background: transparent;
  width: 26px;
  height: 26px;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.wp__product-popup-close:hover,
.wp__product-popup-close:focus-visible {
  color: var(--ink);
  background: var(--brand-soft);
}

.wp__product-popup-thumb {
  position: relative;
  flex: 0 0 72px !important;
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  aspect-ratio: 1 / 1 !important;
  align-self: center !important;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-sizing: border-box;
}

.wp__product-popup-thumb img {
  display: block !important;
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  min-height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
  aspect-ratio: 1 / 1 !important;
}

.wp__product-popup-badge {
  position: absolute;
  left: 4px;
  top: 4px;
  z-index: 1;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(26, 26, 26, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.wp__product-popup-body {
  flex: 1;
  min-width: 0;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.wp__product-popup-name {
  margin: 0;
  padding-right: 18px;
  font-family: var(--wp-font-title);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent);
  mask-image: linear-gradient(90deg, #000 72%, transparent);
}

.wp__product-popup-trust {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #0f766e;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wp__product-popup-sold {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}

.wp__product-popup-prices {
  margin: 2px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.wp__product-popup-price {
  font-family: var(--wp-font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.wp__product-popup-normal {
  font-size: 12px;
  color: var(--muted-2);
  text-decoration: line-through;
}

.wp__product-popup-discount {
  font-size: 12px;
  font-weight: 600;
  color: #ee4d2d;
}

.wp__product-popup-buy {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  font-family: var(--wp-font-title);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  background: #ee4d2d;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(238, 77, 45, 0.28);
}

.wp__product-popup-buy:hover,
.wp__product-popup-buy:focus-visible {
  filter: brightness(1.05);
}

/* Legacy shortcode button classes (standalone CTAs) */
.wp__btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none !important;
  font-family: var(--wp-font-title);
  font-weight: var(--wp-font-title-weight);
  font-size: 15px;
}

.wp__btn--line {
  background: var(--line);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.28);
}

.wp__btn--ghost {
  margin-top: 10px;
  background: transparent;
  color: var(--brand-dark) !important;
  font-size: 13px;
  padding: 8px;
}

.wp__btn--soft {
  background: #fff;
  color: var(--brand-dark) !important;
  border: 1px solid rgb(143 179 232 / 40%);
}
