/* EDC provider picker (/accept-payment). Background follows home-hero.css */
.es { overflow: hidden; padding-bottom: 48px; background: #f6f8fc; color: #0b1b33; font-family: 'Sarabun', 'Noto Sans Thai', sans-serif; }
.es-wrap { position: relative; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- head ---------- */
.es-head {
  position: relative;
  overflow: hidden;
  margin-top: 56px; /* fixed navigation bar */
  color: #fff;
  text-align: center;
  background: linear-gradient(125deg, #1597de 0%, #1ea2e6 55%, #24a8ea 100%);
}
.es-head .es-wrap { padding-top: 36px; padding-bottom: 150px; }
.es .es-crumb { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; font-size: 16px; }
.es .es-crumb a { color: #fff; text-decoration: underline; }
.es .es-title { margin: 22px 0 8px; color: #fff; font-family: inherit; font-size: clamp(30px, 5vw, 50px); font-weight: 800; line-height: 1.35; }
.es-title em { color: #ffd23f; font-style: normal; }
.es .es-sub { margin: 0; font-size: 18px; }

/* ---------- cards ---------- */
.es-cards { z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: -80px; padding-bottom: 32px; }
.es .es-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid rgba(15, 40, 80, 0.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(7, 26, 56, 0.28);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.es .es-card:hover,
.es .es-card:focus-visible { transform: translateY(-8px); border-color: var(--c); box-shadow: 0 30px 50px -20px var(--c); }
.es-card--kbank { --c: #138f4a; --tint: #e9f7ef; }
.es-card--ktc { --c: #0b5cb5; --tint: #e8f1fc; }
.es-card--beam { --c: #5b3fd6; --tint: #f0edfd; }
.es-shot { display: flex; align-items: center; justify-content: center; height: 216px; padding: 16px; border-radius: 20px; background: radial-gradient(circle at 50% 40%, #fff 0%, var(--tint) 72%); }
.es-shot img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(7, 26, 56, 0.22)); transition: transform 0.35s; }
.es-card:hover .es-shot img { transform: scale(1.06); }
.es-body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 18px 12px 8px; }
.es .es-name { display: flex; align-items: center; gap: 10px; margin: 0; font-family: inherit; font-size: 22px; font-weight: 800; }
.es-name img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 0 1px #e2e8f0; object-fit: contain; }
.es .es-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: #5a6a85; font-size: 15px; }
.es-list li { display: flex; align-items: baseline; gap: 10px; }
.es-list li::before { content: '✓'; color: var(--c); font-weight: 800; }
.es .es-note { margin: 0; color: #5a6a85; font-size: 12px; }
.es-go { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 8px 8px 8px 20px; border-radius: 99px; background: var(--tint); color: var(--c); font-weight: 700; transition: background 0.25s, color 0.25s; }
.es-go i { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; }
.es-card:hover .es-go,
.es-card:focus-visible .es-go { background: var(--c); color: #fff; }
.es-card:hover .es-go i,
.es-card:focus-visible .es-go i { background: #fff; color: var(--c); }

/* two-provider layout (/accept-payment/qr-payment) */
.es-cards.es-cards--two { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
.es-col { display: flex; flex-direction: column; gap: 10px; }
.es-col .es-card { flex: 1; }
.es .es-more { align-self: center; height: 22px; color: #5a6a85; font-size: 14px; text-decoration: underline; }
.es-col:not(:has(.es-more))::after { content: ''; height: 22px; } /* keep card bottoms level */

/* ---------- help bar ---------- */
.es-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 26px; border-radius: 22px; background: linear-gradient(120deg, #1686cf, #0b5e9e); color: #fff; font-size: 16px; }
.es .es-help a { padding: 8px 18px; border-radius: 99px; background: #06c755; color: #04210f; font-weight: 700; text-decoration: none; }

/* ---------- background effects ---------- */
.es-fx,
.es-dots { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.es-ring,
.es-blob { position: absolute; border-radius: 50%; }
.es-ring { top: -320px; right: -240px; width: 760px; height: 760px; border: 1px dashed rgba(255, 255, 255, 0.35); animation: es-spin 120s linear infinite; }
.es-blob { top: -240px; left: -190px; width: 500px; height: 500px; background: rgba(255, 255, 255, 0.14); }
.es-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.24) 1.2px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 55% 80% at 78% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 80% at 78% 40%, #000, transparent 75%);
}
.es-icon { position: absolute; opacity: 0.22; transform: rotate(var(--r)); animation: es-drift 12s ease-in-out infinite; }
.es-coin { position: absolute; bottom: -40px; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 236, 160, 0.9); border-radius: 50%; background: linear-gradient(145deg, #ffe58a, #f5b700); color: #8a6100; font-weight: 800; opacity: 0; animation: es-coin linear infinite; }
.es-spark { position: absolute; opacity: 0.35; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7)); animation: es-twinkle 6s ease-in-out infinite; }
.es-sweep { position: absolute; top: -10%; bottom: -10%; left: 0; width: 28%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent); transform: translateX(-150%) skewX(-18deg); animation: es-sweep 14s ease-in-out 2s infinite; }
.es-waves { position: absolute; right: 0; bottom: -1px; left: 0; height: 80px; overflow: hidden; }
.es-waves svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; animation: es-wave 18s linear infinite; }
.es-waves .es-wave-back { animation-duration: 28s; animation-direction: reverse; }

@keyframes es-spin { to { transform: rotate(360deg); } }
@keyframes es-drift { 50% { transform: translateY(-14px) rotate(var(--r)); } }
@keyframes es-coin {
  10%, 75% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-440px) rotateY(720deg); }
}
@keyframes es-twinkle { 50% { opacity: 1; transform: scale(1.3) rotate(45deg); } }
@keyframes es-sweep { 45%, 100% { transform: translateX(520%) skewX(-18deg); } }
@keyframes es-wave { to { transform: translateX(-50%); } }

@media (max-width: 767px) {
  .es-cards,
  .es-cards.es-cards--two { grid-template-columns: 1fr; }
  .es-col:not(:has(.es-more))::after { display: none; }
  .es-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .es-fx * { animation: none !important; }
  .es .es-card,
  .es-shot img,
  .es-go { transition: none; }
  .es .es-card:hover,
  .es .es-card:focus-visible,
  .es-card:hover .es-shot img { transform: none; }
}
