/* แต้มของฉัน · mock v5 look · CSS variables for Elementor/theme override
   Banks can recolor via Customizer additional CSS, e.g.:
   .areenan-taem { --taem-red: #c00; --taem-gold: #e0b84a; }
*/
.areenan-taem {
  --taem-sand: #e8d9bf;
  --taem-ivory: #f8f2e6;
  --taem-camel: #c19a6b;
  --taem-olive: #6b6b3a;
  --taem-walnut: #5a3e2b;
  --taem-gold: #d4a53a;
  --taem-gold2: #f6dc87;
  --taem-red: #d0201f;
  --taem-orange: #e8741c;
  --taem-phone-max: 390px;
  --taem-hero-image: url(hero-family.jpg);
  --taem-font: Kanit, "Sarabun", sans-serif;
  box-sizing: border-box;
  font-family: var(--taem-font);
  font-weight: 300;
  color: var(--taem-walnut);
  padding: 16px 0 40px;
  background: linear-gradient(160deg, #cdb894, #a88a62);
}
.areenan-taem *,
.areenan-taem *::before,
.areenan-taem *::after { box-sizing: border-box; }
.areenan-taem-page { max-width: 720px; margin: 0 auto; }
.areenan-taem-intro { padding: 12px 16px; text-align: center; }

.taem-phone {
  width: var(--taem-phone-max);
  max-width: 100%;
  margin: 0 auto;
  background: var(--taem-ivory);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 20px 50px #0005, 0 0 0 8px #2d2016;
}
.taem-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--taem-ivory);
  border-bottom: 1px solid var(--taem-gold);
}
.taem-logo { font-weight: 800; font-size: 24px; letter-spacing: .5px; color: var(--taem-walnut); }
.taem-host { font-family: Helvetica, Arial, sans-serif; font-size: 10px; color: var(--taem-camel); }

.taem-hero {
  height: 210px;
  background: var(--taem-hero-image) center/cover;
  position: relative;
}
.taem-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0000 30%, #3a2618e0);
}
.taem-hero h1 {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 1;
  color: var(--taem-ivory);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}
.taem-seal {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 133px;
  height: 133px;
  z-index: 2;
  transform: rotate(-12deg);
  filter: drop-shadow(0 5px 8px #0008);
  pointer-events: none;
}

.taem-main { padding: 18px 18px 8px; background: var(--taem-camel); }
.taem-state[hidden] { display: none !important; }
.taem-state.on { display: block; }

.taem-card {
  border-radius: 6px;
  padding: 18px;
  margin-bottom: 14px;
  position: relative;
  border: 2.5px solid transparent;
  background:
    linear-gradient(var(--taem-ivory), var(--taem-ivory)) padding-box,
    linear-gradient(135deg, #a77b1f, var(--taem-gold2) 30%, var(--taem-gold) 50%, #fff3c4 65%, #a77b1f) border-box;
  box-shadow: 0 4px 14px #5a3e2b22, 0 0 10px #f6dc8766;
}
.taem-card.taem-stampcard {
  background:
    radial-gradient(circle, #c19a6b33 1.4px, transparent 1.6px) 0 0 / 14px 14px padding-box,
    repeating-linear-gradient(45deg, #f3e8d3 0 8px, #efe1c6 8px 16px) padding-box,
    linear-gradient(135deg, #a77b1f, var(--taem-gold2) 30%, var(--taem-gold) 50%, #fff3c4 65%, #a77b1f) border-box;
}
.taem-card.taem-mustard {
  background:
    linear-gradient(#f3e2a0, #f3e2a0) padding-box,
    linear-gradient(135deg, #a77b1f, var(--taem-gold2) 30%, var(--taem-gold) 50%, #fff3c4 65%, #a77b1f) border-box;
}

.taem-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--taem-walnut);
}
.taem-ic {
  width: 26px;
  height: 26px;
  stroke: var(--taem-olive);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.taem-card label {
  font-size: 14px;
  font-weight: 400;
  display: block;
  margin: 10px 0 4px;
}
.taem-card input[type=tel],
.taem-card input[type=text],
.taem-card input[type=email],
.taem-card input[type=date] {
  width: 100%;
  font: inherit;
  font-size: 18px;
  padding: 12px 14px;
  border: 1.5px solid var(--taem-camel);
  border-radius: 5px;
  background: #fffdf8;
  color: var(--taem-walnut);
}
.taem-card input:focus { outline: 2px solid var(--taem-gold); }
.taem-note { font-size: 12px; color: var(--taem-olive); margin-top: 6px; font-weight: 300; }
.taem-msg { font-size: 14px; margin-bottom: 6px; }
.taem-em { color: var(--taem-red); font-weight: inherit; }
.taem-demo {
  display: inline-block;
  font-size: 11px;
  background: var(--taem-olive);
  color: var(--taem-ivory);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 400;
}

.taem-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #e8322f, var(--taem-red));
  color: #fff;
  font: 600 18px var(--taem-font);
  box-shadow: 0 4px 0 #8f1414, 0 0 0 2px var(--taem-gold) inset;
  cursor: pointer;
  letter-spacing: .3px;
}
.taem-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #8f1414; }
.taem-btn:disabled { opacity: .6; cursor: wait; }

.taem-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  background: #efe3cc;
  padding: 12px;
  border-radius: 5px;
  margin-top: 10px;
  border: 1px dashed var(--taem-camel);
}
.taem-consent input {
  width: 22px;
  height: 22px;
  accent-color: var(--taem-red);
  flex: none;
  margin-top: 2px;
}
.taem-consent a { color: var(--taem-gold); }

.taem-locked { display: flex; gap: 10px; margin: 10px 0; }
.taem-locked div {
  flex: 1;
  background: repeating-linear-gradient(45deg, #e4d4b6, #e4d4b6 6px, #ecdfc6 6px, #ecdfc6 12px);
  border-radius: 5px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
}
.taem-locked b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--taem-camel);
  filter: blur(4px);
}

.taem-pts { font-size: 64px; font-weight: 800; line-height: 1; color: var(--taem-walnut); }
.taem-pts small { font-size: 18px; font-weight: 800; }
.taem-row { display: flex; justify-content: space-between; align-items: center; }
.taem-tier {
  padding: 5px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #a77b1f, var(--taem-gold2), var(--taem-gold));
  color: var(--taem-walnut);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #8a6416;
}
.taem-bar {
  height: 12px;
  background: #e4d4b6;
  border-radius: 8px;
  overflow: hidden;
  margin: 10px 0 4px;
  border: 1px solid var(--taem-gold);
}
.taem-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--taem-olive), var(--taem-gold));
  transition: width .3s;
}
.taem-hello { font-size: 16px; margin: 0; }
.taem-hello b { font-weight: inherit; color: var(--taem-red); }
.taem-ok-next b,
#taem-ok-next b { font-weight: inherit; color: var(--taem-red); }

.taem-stamps { display: flex; justify-content: space-between; margin: 14px 0 6px; }
.taem-st {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px dashed var(--taem-camel);
  background: transparent;
  display: grid;
  place-items: center;
  font-weight: 400;
  font-size: 14px;
  color: var(--taem-camel);
  position: relative;
}
.taem-st.f {
  border: none;
  color: var(--taem-gold2);
  font-weight: 600;
  filter: drop-shadow(0 2px 3px #0005);
}
.taem-st.f > svg:not(.tick) { width: 58px; height: 58px; position: absolute; inset: 0; }
.taem-st.f .tick {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  display: block;
  pointer-events: none;
}

.taem-err {
  color: var(--taem-red);
  font-size: 14px;
  margin-top: 8px;
  font-weight: 400;
}
.taem-err[hidden] { display: none !important; }
.taem-back {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--taem-olive);
  cursor: pointer;
  background: none;
  border: 0;
  font-family: var(--taem-font);
  text-decoration: underline;
  padding: 0;
}
.taem-back-light { margin: 0 0 14px; color: #efe3cc; }

.taem-footer {
  background: var(--taem-walnut);
  color: var(--taem-sand);
  text-align: center;
  padding: 16px;
  font-size: 13px;
  line-height: 1.9;
}
.taem-footer a { color: var(--taem-gold2); text-decoration: none; }
.taem-footer a:hover { color: var(--taem-orange); }

.taem-pdpa {
  margin: 12px 0;
  padding: 12px 14px;
  background: #efe3cc;
  border: 1px dashed var(--taem-camel, #c19a6b);
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  font-weight: 300;
}
.taem-btn-no {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1.5px solid var(--taem-walnut, #5a3e2b);
  border-radius: 5px;
  background: transparent;
  color: var(--taem-walnut, #5a3e2b);
  font: 600 16px Kanit, sans-serif;
  cursor: pointer;
}
#taem-consent-declined { color: var(--taem-walnut, #5a3e2b); }

/* v0.2.10 optional email (Banks t409u) */
.taem-okmsg { color: var(--taem-olive, #556b2f); font-size: 14px; margin-top: 8px; font-weight: 400; }
.taem-okmsg[hidden], #taem-email-current[hidden] { display: none !important; }
.taem-emailcard .taem-btn { margin-top: 10px; }

/* v0.2.11 ของรางวัล button on logged-in points view (Banks t416u) */
.areenan-taem a.taem-btn {
  text-align: center;
  text-decoration: none;
  color: #fff;
}
.areenan-taem .taem-btn-gift {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.areenan-taem .taem-btn-gift .taem-gift-bg {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%) rotate(-10deg);
  fill: none;
  stroke: #f8f2e6;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .38;
  z-index: 0;
  pointer-events: none;
}
.areenan-taem .taem-btn-gift .taem-btn-txt {
  position: relative;
  z-index: 1;
}

/* v0.2.17 Banks t427u: points card + stamp card gold border 2.5px -> 3px (+20%), points italic bold,
   rule notes, 10-place stamp card (2 rows of 5), MOHE+ watermark at 5, icon at 10 (v0.2.18: dinner plate) */
.areenan-taem .taem-card.taem-ptscard,
.areenan-taem .taem-card.taem-stampcard { border-width: 3px; }
.areenan-taem .taem-pts,
.areenan-taem .taem-pts small { font-style: italic; font-weight: 800; }
.areenan-taem .taem-rule { line-height: 1.55; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--taem-camel); }
.areenan-taem .taem-stamps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 4px;
  justify-items: center;
  align-items: center;
  margin: 14px -10px 6px;
}
.areenan-taem .taem-st { width: 100%; max-width: 58px; height: auto; aspect-ratio: 1 / 1; }
.areenan-taem .taem-st.f > svg:not(.tick) { width: 100%; height: 100%; }
.areenan-taem .taem-st.f .tick { width: 45%; height: 45%; }
.areenan-taem .taem-st > span { position: relative; z-index: 1; text-shadow: 0 0 3px #f8f2e6, 0 0 6px #f8f2e6; }
.areenan-taem .taem-st.taem-st-m { border-color: var(--taem-gold); color: #8a6416; font-weight: 600; }
.areenan-taem .taem-st .taem-wm {
  position: absolute; left: 10%; top: 6%; width: 80%; height: 88%;
  object-fit: contain; opacity: .45; pointer-events: none; z-index: 0;
}
.areenan-taem .taem-st .taem-wm-plate {
  left: 14%; top: 14%; width: 72%; height: 72%;
  fill: none; stroke: #8a6416; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .5;
}

/* v0.2.18 Banks t428u: rate line in สะสมแต้มแลกรางวัล; email card small เปลี่ยนอีเมล pill next to the title */
.areenan-taem .taem-rate { margin-bottom: 4px; }
.areenan-taem .taem-rate .taem-em { font-weight: 600; font-size: 16px; }
.areenan-taem .taem-email-edit {
  margin-left: auto;
  display: inline-flex; align-items: center;
  padding: 3px 12px;
  border: 1.5px solid var(--taem-gold);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--taem-red);
  font: 400 13px/1.4 var(--taem-font);
  cursor: pointer;
  white-space: nowrap;
}
.areenan-taem .taem-email-edit:active { transform: translateY(1px); }
.areenan-taem .taem-email-edit[aria-expanded="true"] { background: var(--taem-red); color: #fff; border-color: var(--taem-red); }
.areenan-taem .taem-email-edit[hidden],
.areenan-taem .taem-email-form[hidden] { display: none; }
.taem-tier.is-bronze { background: linear-gradient(135deg, #b76e79 0%, #f7d1cd 40%, #fff1ec 50%, #e8b4a8 60%, #b76e79 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 4px rgba(183,110,121,.45); color: #6b2f3a; border: 1px solid #a65d68; }

/* Banks t542u: lifetime_earned line under the points number */
.areenan-taem .taem-life {
  font-size: 12px;
  font-weight: 300;
  font-style: normal;
  color: var(--taem-olive);
  margin: 6px 0 0;
  line-height: 1.4;
}
