/* ============================================================
   MONEYPIN (머니핀) unified brand layer
   Injected site-wide by server.js into every public page.
   Owns: top brand bar, trust strip, footer, floating CS,
   mobile bottom tab, and standalone app pages
   (order-inquiry / login / register / mypage).
   ============================================================ */

:root {
  --ph-primary: #2b57e6;
  --ph-primary-dark: #1e3fb0;
  --ph-ink: #17203a;
  --ph-ink-soft: #5b6478;
  --ph-line: #e6e9f2;
  --ph-bg: #f4f6fb;
  --ph-safe: #12b981;
  --ph-safe-bg: #e7f8f1;
  --ph-warn: #f59e0b;
  --ph-radius: 14px;
  --ph-shadow: 0 14px 40px rgba(23, 32, 58, .12);
  --ph-font: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  --ph-topbar-h: 60px;
}
.ph-seo-heading { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* keep injected chrome above mirror content */
#ph-topbar, #ph-trust, #ph-cs, #ph-bottomtab { font-family: var(--ph-font); box-sizing: border-box; }
#ph-topbar *, #ph-footer *, #ph-cs *, #ph-bottomtab *, #ph-trust * { box-sizing: border-box; }

/* push page content below the fixed brand bar */
body.ph-has-topbar { padding-top: var(--ph-topbar-h) !important; }

/* ---------- Top brand bar ---------- */
#ph-topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--ph-topbar-h);
  z-index: 2147483000; display: flex; align-items: center; gap: 18px;
  padding: 0 clamp(14px, 4vw, 40px);
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ph-line);
  box-shadow: 0 2px 14px rgba(23, 32, 58, .05);
}
#ph-topbar .ph-logo {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  color: var(--ph-ink); font-weight: 900; font-size: 21px; letter-spacing: -.5px; flex: none;
}
#ph-topbar .ph-logo img { display: block; width: 154px; height: auto; }
#ph-topbar .ph-logo .ph-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ph-primary), #4f7bff); color: #fff;
  font-size: 17px; font-weight: 900; box-shadow: 0 6px 16px rgba(43, 87, 230, .35);
}
#ph-topbar .ph-logo .ph-word { color: var(--ph-primary); }
#ph-topbar .ph-nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
#ph-topbar .ph-nav a {
  position: relative; padding: 9px 14px; border-radius: 10px; text-decoration: none;
  color: var(--ph-ink); font-weight: 700; font-size: 15.5px; white-space: nowrap; transition: .15s;
}
#ph-topbar .ph-nav a:hover { background: var(--ph-bg); color: var(--ph-primary); }
#ph-topbar .ph-nav a.ph-active { color: var(--ph-primary); }
#ph-topbar .ph-nav a.ph-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--ph-primary);
}
#ph-topbar .ph-spacer { flex: 1; }
#ph-topbar .ph-auth { display: flex; align-items: center; gap: 8px; flex: none; }
#ph-topbar .ph-auth a {
  text-decoration: none; font-weight: 800; font-size: 14.5px; padding: 9px 15px; border-radius: 999px; white-space: nowrap;
}
#ph-topbar .ph-auth .ph-login { color: var(--ph-ink-soft); }
#ph-topbar .ph-auth .ph-login:hover { color: var(--ph-primary); }
#ph-topbar .ph-auth .ph-join { color: #fff; background: var(--ph-primary); box-shadow: 0 8px 18px rgba(43, 87, 230, .28); }
#ph-topbar .ph-auth .ph-join:hover { background: var(--ph-primary-dark); }
#ph-topbar .ph-burger { display: none; border: 0; background: transparent; font-size: 24px; color: var(--ph-ink); cursor: pointer; padding: 4px 8px; }

/* mobile drawer */
#ph-drawer { position: fixed; inset: 0; z-index: 2147483010; display: none; }
#ph-drawer.ph-open { display: block; }
#ph-drawer .ph-drawer-bg { position: absolute; inset: 0; background: rgba(23, 32, 58, .5); }
#ph-drawer .ph-drawer-panel {
  position: absolute; top: 0; right: 0; width: min(320px, 84vw); height: 100%;
  background: #fff; padding: 22px 18px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: -18px 0 50px rgba(23, 32, 58, .25); transform: translateX(100%); transition: transform .22s ease;
}
#ph-drawer.ph-open .ph-drawer-panel { transform: translateX(0); }
#ph-drawer .ph-drawer-panel a {
  text-decoration: none; color: var(--ph-ink); font-weight: 800; font-size: 17px; padding: 14px 12px; border-radius: 10px;
}
#ph-drawer .ph-drawer-panel a:hover { background: var(--ph-bg); color: var(--ph-primary); }
#ph-drawer .ph-drawer-close { align-self: flex-end; border: 0; background: var(--ph-bg); width: 38px; height: 38px; border-radius: 50%; font-size: 22px; cursor: pointer; margin-bottom: 8px; }
#ph-drawer .ph-drawer-cta { margin-top: 10px; display: grid; gap: 8px; }
#ph-drawer .ph-drawer-cta a { text-align: center; }
#ph-drawer .ph-drawer-cta .ph-j { background: var(--ph-primary); color: #fff; }

@media (max-width: 960px) {
  #ph-topbar .ph-nav, #ph-topbar .ph-auth { display: none; }
  #ph-topbar .ph-burger { display: inline-block; }
  #ph-topbar .ph-spacer { flex: 1; }
}

/* ---------- Trust strip (home only) ---------- */
#ph-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  padding: 13px 16px; background: #fff; border-bottom: 1px solid var(--ph-line);
}
#ph-trust .ph-t {
  display: inline-flex; align-items: center; gap: 7px; color: var(--ph-ink);
  font-family: var(--ph-font); font-weight: 800; font-size: 14px;
}
#ph-trust .ph-t b { color: var(--ph-primary); }
#ph-trust .ph-t .ph-ic {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: var(--ph-safe-bg); color: var(--ph-safe); font-size: 13px; font-weight: 900;
}

/* ---------- Simple product search ---------- */
.ph-search-box {
  box-sizing: border-box; position: relative; z-index: 10; margin: 0 0 12px;
  padding: 8px; background: #fff; border-radius: 14px; box-shadow: var(--ph-shadow);
}
.ph-search-box #ph-search {
  width: 100%; box-sizing: border-box; border: 1px solid var(--ph-line); border-radius: 10px;
  padding: 12px 14px 12px 40px; font-family: var(--ph-font); font-size: 14px;
  font-weight: 600; color: var(--ph-ink); outline: none;
}
.ph-search-box .ph-search-icon {
  position: absolute; left: 22px; top: 50%; width: 13px; height: 13px;
  border: 2px solid #6f7890; border-radius: 50%; transform: translateY(-58%);
  pointer-events: none; z-index: 1;
}
.ph-search-box .ph-search-icon::after {
  content: ""; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px;
  border-radius: 2px; background: #6f7890; transform: rotate(45deg); transform-origin: left center;
}
.ph-search-box:focus-within .ph-search-icon { border-color: var(--ph-primary); }
.ph-search-box:focus-within .ph-search-icon::after { background: var(--ph-primary); }

/* ---------- Product purchase modal ---------- */
body.ph-modal-open { overflow: hidden !important; }
#ph-buy-modal { display: none; position: fixed; inset: 0; z-index: 2147483600; font-family: var(--ph-font); }
#ph-buy-modal.ph-open { display: grid; place-items: center; padding: 20px; }
#ph-buy-modal, #ph-buy-modal * { box-sizing: border-box; }
#ph-buy-modal .ph-buy-backdrop { position: absolute; inset: 0; z-index: 0; background: rgba(4, 12, 34, .68); }
#ph-buy-modal .ph-buy-dialog {
  position: relative; z-index: 1; width: min(680px, 100%); max-height: min(880px, calc(100vh - 40px)); overflow: auto;
  padding: 25px; border-radius: 24px; background: #fff; color: var(--ph-ink);
  box-shadow: 0 30px 80px rgba(0, 8, 32, .38); animation: ph-buy-in .22s ease-out;
}
@keyframes ph-buy-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
#ph-buy-modal .ph-buy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
#ph-buy-modal .ph-buy-kicker { display: block; margin-bottom: 5px; color: var(--ph-primary); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
#ph-buy-modal .ph-buy-head h2 { margin: 0; font-size: 25px; font-weight: 900; letter-spacing: -.7px; }
#ph-buy-modal .ph-buy-close {
  width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ph-bg); color: var(--ph-ink-soft);
  font: 300 29px/36px Arial, sans-serif; cursor: pointer;
}
#ph-buy-modal .ph-buy-product {
  display: flex; align-items: center; gap: 13px; margin: 20px 0 16px; padding: 12px 14px;
  border: 1px solid var(--ph-line); border-radius: 15px; background: #f9faff;
}
#ph-buy-modal .ph-buy-thumb { width: 54px; height: 54px; display: grid; place-items: center; flex: none; border-radius: 12px; background: #fff; border: 1px solid var(--ph-line); }
#ph-buy-modal .ph-buy-thumb img { width: 44px; height: 44px; object-fit: contain; }
#ph-buy-modal .ph-buy-product strong { display: block; font-size: 16px; font-weight: 900; }
#ph-buy-modal .ph-buy-product div span { display: block; margin-top: 4px; color: var(--ph-primary); font-size: 12px; font-weight: 800; }
#ph-buy-modal .ph-buy-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 17px; }
#ph-buy-modal .ph-buy-tabs.ph-method-locked { grid-template-columns: 1fr; }
#ph-buy-modal .ph-buy-tabs button {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--ph-line);
  border-radius: 14px; background: #fff; color: var(--ph-ink); text-align: left; cursor: pointer;
}
#ph-buy-modal .ph-buy-tabs.ph-method-locked button { cursor: default; }
#ph-buy-modal .ph-buy-tabs button.ph-active { border-color: var(--ph-primary); background: #f3f6ff; box-shadow: 0 0 0 2px rgba(43, 87, 230, .1); }
#ph-buy-modal .ph-buy-tab-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 11px; overflow: hidden; background: transparent; }
#ph-buy-modal .ph-buy-tab-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
#ph-buy-modal .ph-buy-tabs b, #ph-buy-modal .ph-buy-tabs small { display: block; }
#ph-buy-modal .ph-buy-tabs b { font-size: 14px; font-weight: 900; }
#ph-buy-modal .ph-buy-tabs small { margin-top: 2px; color: var(--ph-ink-soft); font-size: 10.5px; font-weight: 700; }
#ph-buy-modal .ph-buy-fields { display: grid; gap: 11px; }
#ph-buy-modal .ph-buy-two { grid-template-columns: 1fr 1fr; }
#ph-buy-modal .ph-buy-fields + .ph-buy-fields { margin-top: 12px; }
#ph-buy-modal .ph-buy-fields label { min-width: 0; }
#ph-buy-modal .ph-buy-fields label > span { display: block; margin: 0 0 6px 2px; font-size: 12px; font-weight: 800; color: var(--ph-ink); }
#ph-buy-modal .ph-buy-fields input, #ph-buy-modal .ph-buy-fields select {
  width: 100%; height: 45px; padding: 0 12px; border: 1px solid var(--ph-line); border-radius: 11px;
  background: #fff; color: var(--ph-ink); outline: none; font: 600 13px var(--ph-font);
}
#ph-buy-modal .ph-buy-fields input:focus, #ph-buy-modal .ph-buy-fields select:focus { border-color: var(--ph-primary); box-shadow: 0 0 0 3px rgba(43, 87, 230, .1); }
#ph-buy-modal .ph-buy-panel { margin-top: 15px; padding: 14px; border-radius: 14px; background: #f7f9fd; border: 1px solid #edf0f6; }
#ph-buy-modal .ph-buy-panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
#ph-buy-modal .ph-buy-panel-title b { font-size: 13px; font-weight: 900; }
#ph-buy-modal .ph-buy-panel-title span { color: var(--ph-ink-soft); font-size: 10.5px; font-weight: 700; }
#ph-buy-modal .ph-buy-summary { margin-top: 15px; padding: 14px 15px; border: 1px solid var(--ph-line); border-radius: 14px; }
#ph-buy-modal .ph-buy-summary > div { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 12px; color: var(--ph-ink-soft); }
#ph-buy-modal .ph-buy-summary b { color: var(--ph-ink); }
#ph-buy-modal .ph-buy-summary .ph-buy-rate b { color: var(--ph-primary); }
#ph-buy-modal .ph-buy-summary .ph-buy-saving b { color: #ff4268; }
#ph-buy-modal .ph-buy-summary .ph-buy-total { margin-top: 7px; padding-top: 11px; border-top: 1px dashed var(--ph-line); color: var(--ph-ink); font-weight: 900; }
#ph-buy-modal .ph-buy-summary .ph-buy-total strong { color: var(--ph-primary); font-size: 22px; letter-spacing: -.5px; }
#ph-buy-modal .ph-buy-agree { display: flex; align-items: flex-start; gap: 8px; margin: 13px 2px 0; color: var(--ph-ink-soft); font-size: 11.5px; font-weight: 700; line-height: 1.45; cursor: pointer; }
#ph-buy-modal .ph-buy-agree input {
  position: static !important; width: 18px !important; height: 18px !important; margin: 0 !important; flex: none;
  opacity: 1 !important; visibility: visible !important; z-index: auto !important; overflow: visible !important;
  appearance: checkbox !important; -webkit-appearance: checkbox !important; accent-color: var(--ph-primary); cursor: pointer;
}
#ph-buy-modal .ph-buy-message { min-height: 18px; margin: 8px 0 0; color: #e43f5f; font-size: 11.5px; font-weight: 800; text-align: center; }
#ph-buy-modal .ph-buy-submit {
  width: 100%; border: 0; border-radius: 13px; padding: 15px; background: var(--ph-primary); color: #fff;
  font: 900 15px var(--ph-font); box-shadow: 0 12px 26px rgba(43, 87, 230, .25); cursor: pointer;
}
#ph-buy-modal .ph-buy-submit:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
#ph-buy-modal [hidden] { display: none !important; }
#ph-buy-modal .ph-buy-phone-auth { margin-top: 14px; padding: 14px; border: 1px solid #dce4fb; border-radius: 14px; background: #f8faff; }
#ph-buy-modal .ph-buy-phone-auth.ph-member-verified { border-color: #bfe9d9; background: #f3fbf8; }
#ph-buy-modal .ph-buy-phone-auth.ph-member-verified .ph-phone-notice { display: none; }
#ph-buy-modal .ph-phone-row { display: flex !important; flex-flow: row nowrap !important; align-items: stretch !important; gap: 8px; margin-top: 8px; }
#ph-buy-modal .ph-phone-row input { flex: 1 1 auto !important; min-width: 0 !important; width: auto !important; height: 44px; padding: 0 12px; border: 1px solid var(--ph-line); border-radius: 11px; font: 700 13px var(--ph-font); outline: none; }
#ph-buy-modal .ph-phone-row input:focus { border-color: var(--ph-primary); box-shadow: 0 0 0 3px rgba(43, 87, 230, .1); }
#ph-buy-modal .ph-phone-row button { flex: 0 0 132px !important; width: 132px !important; min-width: 132px !important; height: 44px !important; margin: 0 !important; border: 0; border-radius: 11px; padding: 0 10px; background: #17213c; color: #fff; font: 800 12px var(--ph-font); white-space: nowrap; cursor: pointer; }
#ph-buy-modal .ph-phone-row button:disabled { opacity: .55; cursor: not-allowed; }
#ph-buy-modal .ph-phone-status { margin: 9px 1px 0; color: #e43f5f; font-size: 11.5px; font-weight: 800; }
#ph-buy-modal .ph-phone-status.ph-verified { color: var(--ph-safe); }
#ph-buy-modal .ph-phone-notice { display: block; margin-top: 7px; color: var(--ph-ink-soft); font-size: 9.5px; line-height: 1.45; }
#ph-buy-modal .ph-buy-guide { margin: 0; color: var(--ph-ink-soft); font-size: 12px; font-weight: 650; line-height: 1.65; }
#ph-buy-modal .ph-buy-guide b { color: var(--ph-primary); }
#ph-buy-modal .ph-travel-rule { margin-top: 11px; padding: 12px 13px; border: 1px solid #f1d5a7; border-radius: 11px; background: #fffaf0; }
#ph-buy-modal .ph-travel-rule strong { display: block; margin-bottom: 5px; color: #9a5b08; font-size: 12px; font-weight: 900; }
#ph-buy-modal .ph-travel-rule p { margin: 0; color: #71501f; font-size: 10.5px; font-weight: 700; line-height: 1.6; word-break: keep-all; }
#ph-buy-modal .ph-progress-icon img { display: block; width: 46px; height: 46px; object-fit: contain; }
#ph-buy-modal .ph-coin-card #ph-coin-wallet { font-size: 12px; line-height: 1.5; }
#ph-buy-modal .ph-buy-progress { padding: 22px 2px 4px; text-align: center; }
#ph-buy-modal .ph-progress-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; background: #eef2ff; color: var(--ph-primary); font-size: 25px; font-weight: 900; }
#ph-buy-modal .ph-progress-icon.ph-success { background: var(--ph-safe-bg); color: var(--ph-safe); }
#ph-buy-modal .ph-progress-icon.ph-rejected { background: #fff0f3; color: #e43f5f; }
#ph-buy-modal .ph-buy-progress h3 { margin: 0; color: var(--ph-ink); font-size: 22px; font-weight: 900; }
#ph-buy-modal .ph-buy-progress > p { margin: 9px auto 12px; max-width: 470px; color: var(--ph-ink-soft); font-size: 12.5px; line-height: 1.6; }
#ph-buy-modal .ph-progress-order { display: inline-block; padding: 7px 12px; border-radius: 9px; background: #f4f6fa; color: var(--ph-ink); font-size: 12px; }
#ph-buy-modal .ph-account-card { margin: 18px 0; padding: 4px 15px; border: 1px solid #cfd9f5; border-radius: 15px; background: #f8faff; text-align: left; }
#ph-buy-modal .ph-account-card > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #e5eafa; }
#ph-buy-modal .ph-account-card > div:last-child { border-bottom: 0; }
#ph-buy-modal .ph-account-card span { color: var(--ph-ink-soft); font-size: 11px; font-weight: 700; }
#ph-buy-modal .ph-account-card b { color: var(--ph-ink); font-size: 14px; text-align: right; word-break: break-all; }
#ph-buy-modal .ph-secondary { margin-top: 14px; background: #17213c; box-shadow: none; }
#ph-buy-modal .ph-buy-link { margin-top: 12px; padding: 7px 14px; border: 0; background: transparent; color: var(--ph-ink-soft); font: 800 12px var(--ph-font); cursor: pointer; }
#ph-buy-modal .ph-buy-complete { padding: 32px 4px 4px; text-align: center; }
#ph-buy-modal .ph-buy-check { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; background: var(--ph-safe-bg); color: var(--ph-safe); font-size: 28px; font-weight: 900; }
#ph-buy-modal .ph-buy-complete h3 { margin: 0; font-size: 22px; font-weight: 900; }
#ph-buy-modal .ph-buy-complete > p { margin: 8px 0 11px; color: var(--ph-ink-soft); font-size: 13px; }
#ph-buy-modal .ph-buy-complete > strong { display: inline-block; padding: 9px 15px; border-radius: 10px; background: #eef2ff; color: var(--ph-primary); font-size: 16px; letter-spacing: .04em; }
#ph-buy-modal .ph-buy-next { display: flex; flex-direction: column; gap: 5px; margin: 18px 0; padding: 15px; border-radius: 13px; background: #f7f9fd; }
#ph-buy-modal .ph-buy-next b { font-size: 14px; }
#ph-buy-modal .ph-buy-next span { color: var(--ph-ink-soft); font-size: 12px; line-height: 1.5; }
@media (max-width: 720px) {
  #ph-buy-modal.ph-open { place-items: end center; padding: 0; }
  #ph-buy-modal .ph-buy-dialog { width: 100%; max-height: calc(100dvh - 18px); padding: 20px 17px calc(19px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  #ph-buy-modal .ph-buy-head h2 { font-size: 21px; }
  #ph-buy-modal .ph-buy-product { margin: 15px 0 13px; }
  #ph-buy-modal .ph-buy-tabs button { padding: 10px; gap: 7px; }
  #ph-buy-modal .ph-buy-tab-icon { width: 31px; height: 31px; }
  #ph-buy-modal .ph-buy-fields input, #ph-buy-modal .ph-buy-fields select { height: 43px; }
  #ph-buy-modal .ph-phone-row button { flex-basis: 120px !important; width: 120px !important; min-width: 120px !important; padding: 0 7px; font-size: 11px; }
  #ph-buy-modal .ph-buy-progress h3 { font-size: 20px; }
}
@media (max-width: 340px) {
  #ph-buy-modal .ph-buy-two { grid-template-columns: 1fr; }
  #ph-buy-modal .ph-buy-fields + .ph-buy-fields { margin-top: 10px; }
  #ph-buy-modal .ph-buy-panel-title { align-items: flex-start; flex-direction: column; gap: 3px; }
}

/* ---------- Item option wholesale price summary ---------- */
#sit_opt_added li.sit_opt_list {
  display: block !important; position: relative !important; padding: 20px !important;
}
#sit_opt_added li.sit_opt_list .opt_name { min-width: 0; margin: 0 42px 14px 0 !important; line-height: 1.45 !important; }
#sit_opt_added li.sit_opt_list .opt_count {
  display: flex !important; align-items: center !important; flex-wrap: wrap !important; gap: 8px !important;
}
#sit_opt_added li.sit_opt_list .opt_count > button,
#sit_opt_added li.sit_opt_list .opt_count > input { float: none !important; margin: 0 !important; }
#sit_opt_added li.sit_opt_list .sit_opt_del { position: absolute !important; top: 16px !important; right: 16px !important; }
#sit_opt_added li.sit_opt_list .sit_opt_prc { display: none !important; }
#sit_opt_added li.sit_opt_list .wholesale-line-total {
  display: grid !important; grid-template-columns: repeat(3, minmax(105px, 1fr));
  flex: 0 0 100%; width: 100%; clear: both; gap: 8px; min-width: 0;
  margin: 8px 0 0 !important; color: var(--ph-ink) !important;
}
#sit_opt_added .wholesale-price-row {
  display: flex; flex-direction: column; gap: 5px; min-width: 0;
  padding: 10px 12px; border-radius: 11px; background: #f5f7fb; text-align: left;
}
#sit_opt_added .wholesale-price-label { color: var(--ph-ink-soft); font-size: 11px; font-weight: 700; }
#sit_opt_added .wholesale-price-row strong { color: var(--ph-ink); font-size: 14px; font-weight: 900; white-space: nowrap; }
#sit_opt_added .wholesale-price-row:first-child strong { color: var(--ph-primary); }
#sit_opt_added .wholesale-price-total { background: #eef3ff; }
#sit_opt_added .wholesale-price-total strong { color: var(--ph-primary); }
@media (max-width: 720px) {
  #sit_opt_added li.sit_opt_list .wholesale-line-total { grid-template-columns: repeat(3, 1fr); width: 100%; }
  #sit_opt_added .wholesale-price-row { padding: 9px 8px; }
  #sit_opt_added .wholesale-price-row strong { font-size: 12.5px; }
}
@media (max-width: 390px) {
  #sit_opt_added li.sit_opt_list .wholesale-line-total { grid-template-columns: 1fr; }
  #sit_opt_added .wholesale-price-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Product images are previews only; do not present them as clickable links. */
#sit_pvi_big a,
#sit_pvi a.popup_item_image { cursor: default !important; pointer-events: none !important; }

/* ---------- Stats counter band (home) ---------- */
#ph-stats {
  max-width: 1160px; margin: 26px auto; padding: 0 16px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; font-family: var(--ph-font);
}
#ph-stats .ph-stat {
  background: #fff; border: 1px solid var(--ph-line); border-radius: var(--ph-radius);
  padding: 20px 18px; text-align: center; box-shadow: var(--ph-shadow);
}
#ph-stats .ph-stat .ph-num { font-size: 30px; font-weight: 900; color: var(--ph-primary); letter-spacing: -1px; }
#ph-stats .ph-stat .ph-lb { margin-top: 5px; font-size: 13.5px; font-weight: 700; color: var(--ph-ink-soft); }
@media (max-width: 720px) { #ph-stats { grid-template-columns: repeat(2, 1fr); } #ph-stats .ph-stat .ph-num { font-size: 25px; } }

/* ---------- Reviews (home) ---------- */
#ph-reviews { max-width: 1160px; margin: 40px auto 10px; padding: 0 16px; font-family: var(--ph-font); }
#ph-reviews .ph-rv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
#ph-reviews h2 { margin: 0; font-size: 24px; font-weight: 900; color: var(--ph-ink); letter-spacing: -.6px; }
#ph-reviews .ph-rv-avg { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ph-ink-soft); font-size: 14px; }
#ph-reviews .ph-rv-avg b { color: var(--ph-warn); font-size: 20px; }
#ph-reviews .ph-rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
#ph-reviews .ph-rv {
  background: #fff; border: 1px solid var(--ph-line); border-radius: var(--ph-radius); padding: 18px;
  box-shadow: var(--ph-shadow); display: flex; flex-direction: column; gap: 9px;
}
#ph-reviews .ph-rv .ph-stars { color: var(--ph-warn); font-size: 15px; letter-spacing: 1px; }
#ph-reviews .ph-rv .ph-body { color: var(--ph-ink); font-size: 14.5px; line-height: 1.55; word-break: keep-all; }
#ph-reviews .ph-rv .ph-meta { margin-top: auto; color: var(--ph-ink-soft); font-size: 12.5px; font-weight: 700; display: flex; justify-content: space-between; }
#ph-reviews .ph-rv .ph-badge { color: var(--ph-safe); font-weight: 800; }
@media (max-width: 900px) { #ph-reviews .ph-rv-grid { grid-template-columns: 1fr; } }

/* ---------- 매입 시세표 (/info) ---------- */
#ph-rates { max-width: 1160px; margin: 30px auto 10px; padding: 0 16px; font-family: var(--ph-font); }
#ph-rates .ph-rv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
#ph-rates h2 { margin: 0; font-size: 24px; font-weight: 900; color: var(--ph-ink); letter-spacing: -.6px; }
#ph-rates .ph-rv-avg { font-weight: 800; color: var(--ph-ink-soft); font-size: 13.5px; }
#ph-rates .ph-rv-avg b { color: var(--ph-ink); }
#ph-rates .ph-rate-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--ph-line); border-radius: var(--ph-radius); box-shadow: var(--ph-shadow); }
#ph-rates .ph-rate-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14.5px; }
#ph-rates .ph-rate-table th,
#ph-rates .ph-rate-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--ph-line); color: var(--ph-ink); }
#ph-rates .ph-rate-table th { background: #f7f9fc; color: var(--ph-ink-soft); font-size: 12.5px; font-weight: 800; }
#ph-rates .ph-rate-table tbody tr:last-child td { border-bottom: 0; }
#ph-rates .ph-rate-table td b { color: var(--ph-primary); font-size: 16px; font-weight: 900; }

/* ---------- Footer ---------- */
#ph-footer { margin-top: 46px; background: #10182e; color: #aeb6cc; font-family: var(--ph-font); }
#ph-footer .ph-f-inner { max-width: 1160px; margin: 0 auto; padding: 40px 20px 30px; }
#ph-footer .ph-f-top { display: flex; flex-wrap: wrap; gap: 26px 40px; justify-content: space-between; }
#ph-footer .ph-f-brand { max-width: 340px; }
#ph-footer .ph-f-brand .ph-logo { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 900; font-size: 20px; }
#ph-footer .ph-f-brand .ph-logo img { display: block; width: 168px; height: auto; }
#ph-footer .ph-f-brand .ph-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ph-primary), #4f7bff); color: #fff; font-weight: 900; }
#ph-footer .ph-f-brand p { margin: 14px 0 0; font-size: 13px; line-height: 1.7; }
#ph-footer .ph-f-links { display: flex; gap: 40px; flex-wrap: wrap; }
#ph-footer .ph-f-col h4 { margin: 0 0 12px; color: #fff; font-size: 14px; font-weight: 800; }
#ph-footer .ph-f-col a { display: block; color: #aeb6cc; text-decoration: none; font-size: 13.5px; padding: 5px 0; }
#ph-footer .ph-f-col a:hover { color: #fff; }
#ph-footer .ph-f-badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
#ph-footer .ph-f-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  color: #d7ddec; font-size: 12px; font-weight: 800;
}
#ph-footer .ph-f-badge .ph-ic { color: var(--ph-safe); }
#ph-footer .ph-f-biz { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; line-height: 1.85; }
#ph-footer .ph-f-biz .ph-hl { color: var(--ph-warn); font-weight: 700; }
#ph-footer .ph-f-copy { margin-top: 14px; font-size: 12px; color: #7c869e; }

/* Next.js 매입 페이지에 남아 있는 이전 사업자 푸터를 제거한다. */
.css-1woyb5x { display: none !important; }

/* ---------- Floating customer service ---------- */
#ph-cs { position: fixed; right: 18px; bottom: 18px; z-index: 2147483200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
#ph-cs .ph-cs-item {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 11px 16px;
  border-radius: 999px; font-weight: 800; font-size: 14px; color: #fff;
  box-shadow: 0 12px 28px rgba(23, 32, 58, .22); transition: transform .15s;
}
#ph-cs .ph-cs-item:hover { transform: translateY(-2px); }
#ph-cs .ph-cs-item .ph-emoji { font-size: 16px; }
#ph-cs .ph-kakao { background: #fee500; color: #191600; }
#ph-cs .ph-call { background: var(--ph-primary); }
#ph-cs .ph-chat { background: var(--ph-ink); }
#ph-cs .ph-top { background: #fff; color: var(--ph-ink); border: 1px solid var(--ph-line); width: 44px; height: 44px; border-radius: 50%; padding: 0; justify-content: center; }
@media (max-width: 720px) { #ph-cs { bottom: 74px; right: 12px; } #ph-cs .ph-cs-item span.ph-lbl { display: none; } #ph-cs .ph-cs-item { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; } }

/* ---------- Mobile bottom tab ---------- */
#ph-bottomtab { display: none; }
@media (max-width: 720px) {
  #ph-bottomtab {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483100; display: flex;
    background: rgba(255, 255, 255, .98); border-top: 1px solid var(--ph-line);
    box-shadow: 0 -8px 28px rgba(23, 32, 58, .12); padding: 5px 5px env(safe-area-inset-bottom);
    backdrop-filter: blur(16px);
  }
  #ph-bottomtab a {
    flex: 1; text-align: center; text-decoration: none; color: var(--ph-ink-soft);
    font-size: 10.5px; font-weight: 800; padding: 4px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px;
    border-radius: 13px; transition: color .18s ease, background-color .18s ease, transform .18s ease;
  }
  #ph-bottomtab a .ph-ti {
    width: 36px; height: 34px; display: grid; place-items: center; border-radius: 12px;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  }
  #ph-bottomtab a .ph-ti img { display: block; width: 31px; height: 31px; object-fit: contain; }
  #ph-bottomtab a.ph-active { color: var(--ph-primary); background: #f4f7ff; }
  #ph-bottomtab a.ph-active .ph-ti {
    transform: translateY(-2px) scale(1.08); background: #e8eeff;
    box-shadow: 0 6px 13px rgba(43, 87, 230, .16);
  }
  body.ph-has-bottomtab { padding-bottom: 70px !important; }
}

/* ---------- MONEYPIN service image background ---------- */
#sec02 > .card.bg01 {
  position: relative; overflow: hidden; isolation: isolate;
  background-color: #061632 !important;
  background-image: linear-gradient(180deg, rgba(3, 15, 39, .22), rgba(3, 15, 39, .5)), url('/brand/moneypin-service-desktop.webp') !important;
  background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important;
}
#sec02 > .card.bg01 > * { position: relative; z-index: 1; }
#sec02 > .card.bg01 .title01,
#sec02 > .card.bg01 .title02 { color: #fff !important; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
#sec02 > .card.bg01 .col-lg-4 {
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 16px 34px rgba(0, 8, 27, .2);
}
@media (max-width: 720px) {
  #sec02 > .card.bg01 {
    background-image: linear-gradient(180deg, rgba(3, 15, 39, .18), rgba(3, 15, 39, .52)), url('/brand/moneypin-service-mobile.webp') !important;
    background-position: center !important;
  }
}

/* ---------- MONEYPIN hero banner (replaces mirror brand banners) ---------- */
/* neutralize the mirror's blue #main_bn box so only the MONEYPIN hero shows */
#main_bn { min-height: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible !important; }
.ph-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px;
  min-height: 340px; padding: 36px clamp(24px, 4vw, 56px); border-radius: 20px;
  background-color: #07152f;
  background-image: linear-gradient(90deg, rgba(3, 12, 34, .96) 0%, rgba(3, 16, 49, .83) 42%, rgba(3, 16, 49, .24) 72%, rgba(3, 16, 49, .08) 100%), url('/brand/moneypin-hero-desktop.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff; font-family: var(--ph-font);
}
.ph-hero .ph-hero-l { flex: 1 1 460px; max-width: 620px; z-index: 2; }
.ph-hero .ph-hero-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); font-weight: 800; font-size: 13px; letter-spacing: .02em;
}
.ph-hero h2 { margin: 16px 0 0; font-size: clamp(24px, 3.3vw, 38px); line-height: 1.28; font-weight: 900; letter-spacing: -.8px; }
.ph-hero h2 b { color: #ffe45e; }
.ph-hero p { margin: 14px 0 0; font-size: clamp(13px, 1.4vw, 15.5px); line-height: 1.6; color: rgba(255, 255, 255, .9); font-weight: 600; }
.ph-hero .ph-hero-cta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.ph-hero .ph-hero-cta a {
  text-decoration: none; padding: 13px 24px; border-radius: 999px; font-weight: 900; font-size: 15px;
  background: #fff; color: var(--ph-primary); box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.ph-hero .ph-hero-cta a.ghost { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .35); }
.ph-hero .ph-hero-r { position: relative; flex: 0 1 320px; align-self: stretch; min-height: 220px; z-index: 1; }
.ph-hero .ph-chip {
  position: absolute; width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center;
  font-size: 40px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .18);
}
.ph-hero .ph-chip.c1 { top: 8%; left: 6%; transform: rotate(-8deg); }
.ph-hero .ph-chip.c2 { top: 40%; left: 40%; transform: rotate(6deg); background: rgba(255, 255, 255, .2); }
.ph-hero .ph-chip.c3 { top: 12%; right: 6%; transform: rotate(10deg); }
.ph-hero .ph-chip.c4 { bottom: 6%; left: 20%; transform: rotate(-4deg); }
.ph-hero .ph-hero-logo {
  position: absolute; bottom: 4%; right: 4%; display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px; border-radius: 14px; background: #fff; color: var(--ph-primary);
  font-weight: 900; font-size: 22px; box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
}
.ph-hero .ph-hero-logo img { display: block; width: 150px; height: auto; }
.ph-hero .ph-hero-logo .ph-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ph-primary), #4f7bff); color: #fff; font-size: 16px; }
@media (max-width: 860px) {
  .ph-hero { flex-direction: column; align-items: flex-start; min-height: 0; text-align: left; }
  .ph-hero .ph-hero-r { width: 100%; min-height: 150px; }
}

/* ---------- Fix: left product rail scrolls with page (was position:fixed) ---------- */
/* Anchor the rail to #gw_wrapper (page-left) so it keeps its x position and scrolls with the page. */
#gw_wrapper { position: relative !important; }
#aside { position: static !important; }          /* neutralize; it only holds #gw_gnb */
#gw_gnb {
  position: absolute !important;      /* scroll with the page, not viewport-fixed */
  left: 2rem !important;
  right: auto !important;
  top: 8rem !important;
  bottom: auto !important;
  width: 20rem !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  z-index: 500 !important;
}
#gw_gnb .gnb.scrollbar,
#gw_gnb .mCustomScrollBox,
#gw_gnb .mCSB_container { height: auto !important; max-height: none !important; position: static !important; top: auto !important; overflow: visible !important; }
#gw_gnb .mCSB_scrollTools { display: none !important; }

/* ---------- Fix: declutter floating widgets (keep only #ph-cs) ---------- */
#quick_menu { display: none !important; }
.kimstar-buy-quick { display: none !important; }

/* ---------- Mobile polish ---------- */
@media (max-width: 720px) {
  html, body { overflow-x: hidden !important; max-width: 100vw; }   /* kill horizontal scroll on mobile */
  #gw_wrapper, #gw_container { overflow-x: clip; max-width: 100vw; }
  #ph-topbar { height: 54px; padding: 0 14px; }
  body.ph-has-topbar { padding-top: 54px !important; }
  #gw_wrapper { padding-top: 1rem !important; }   /* kill 15rem gap left by hidden mirror mobile header */
  #ph-topbar .ph-burger { margin-left: auto; }
  #ph-topbar .ph-logo { font-size: 19px; }
  #ph-cs { display: none !important; }          /* bottom tab carries CS on mobile */
  #ph-promo { font-size: 11px !important; padding: 9px 30px !important; line-height: 1.4; width: 100vw !important; box-sizing: border-box; white-space: normal; }
  #ph-trust { width: 100vw !important; box-sizing: border-box; justify-content: flex-start; }
  #ph-trust .ph-t { font-size: 11px; }
  #ph-trust { gap: 7px 14px; padding: 9px 12px; }
  #ph-trust .ph-t { font-size: 11.5px; }
  #ph-trust .ph-t .ph-ic { width: 18px; height: 18px; font-size: 11px; }
  .ph-hero {
    min-height: 292px; padding: 24px 20px; border-radius: 16px;
    background-image: linear-gradient(90deg, rgba(3, 12, 34, .94) 0%, rgba(3, 16, 49, .78) 58%, rgba(3, 16, 49, .42) 100%), url('/brand/moneypin-hero-mobile.webp');
    background-position: center;
  }
  .ph-hero .ph-hero-r { display: none; }        /* drop empty decorative space on mobile */
  .ph-hero .ph-hero-l { flex: 0 1 auto; }       /* 460px basis was forcing column height */
  .ph-hero h2 { font-size: 22px; }
  .ph-hero p { font-size: 13px; }
  #ph-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px auto; }
  #ph-reviews { margin: 26px auto 6px; }
  #ph-reviews h2 { font-size: 20px; }
  .kimstar-buy-quick { display: none !important; }
}

/* ---------- Mobile product grid: equal columns, rows, and card controls ---------- */
@media (max-width: 767px) {
  #sec01 .sct_10.lists-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch !important;
    gap: 56px 12px !important;
    margin: 30px 0 8px !important;
    padding: 0 !important;
  }
  #sec01 .sct_10 .sct_li,
  #sec01 .lists-row .col-row-4 {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 14px !important;
    overflow: visible !important;
  }
  #sec01 .sct_10 .sct_li:hover { transform: none !important; }
  #sec01 .sct_10 .sct_li > a {
    display: grid !important;
    grid-template-rows: 150px 104px;
    height: 254px !important;
    color: inherit;
    text-decoration: none;
  }
  #sec01 .sct_10_top {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    height: 150px !important;
    min-height: 150px !important;
    padding: 31px 8px 10px !important;
    box-sizing: border-box !important;
  }
  #sec01 .sct_10 .sct_img {
    top: -22px !important;
    width: 48px !important;
    height: 48px !important;
  }
  #sec01 .sct_10 .sct_ct_wrap {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
  }
  #sec01 .sct_10 .sct_txt02 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 3px 0 8px !important;
    padding: 0 !important;
    overflow: hidden !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    text-align: center !important;
    word-break: keep-all !important;
  }
  #sec01 .sct_10_top .sct_type {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 31px !important;
    min-height: 31px !important;
    margin: auto 0 0 !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
  }
  #sec01 .sct_10_bottom {
    display: grid !important;
    grid-template-rows: 60px 44px !important;
    height: 104px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  #sec01 .sct_10_bottom .discount_item {
    display: flex !important;
    align-items: center !important;
    height: 60px !important;
    margin: 0 !important;
    padding: 9px 6px !important;
    box-sizing: border-box !important;
  }
  #sec01 .sct_10_bottom .discount_item > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 42px !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
  }
  #sec01 .sct_10_bottom .discount_item .fs01 {
    font-size: 13px !important;
    letter-spacing: -.7px !important;
    white-space: nowrap !important;
  }
  #sec01 .sct_10_bottom .sct_btn_02 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    padding: 0 6px !important;
    border-radius: 0 0 14px 14px !important;
    box-sizing: border-box !important;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  #sec01 .sct_10.lists-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px 12px !important;
  }
}

/* ---------- Recolor sell-side red -> brand blue ---------- */
.css-154zorp button[data-selected="true"],
.css-154zorp button[aria-pressed="true"],
.pinshop-giftcard-option[data-selected="true"] { background: var(--ph-primary) !important; }
.kimstar-checkout-head span { color: var(--ph-primary) !important; }
.kimstar-submit { background: var(--ph-primary) !important; box-shadow: 0 12px 26px rgba(43, 87, 230, .25) !important; }

/* ---------- Standalone app pages ---------- */
body[data-pinhub-page] { margin: 0; background: var(--ph-bg); font-family: var(--ph-font); color: var(--ph-ink); }
#ph-root [hidden] { display: none !important; }
#ph-root { max-width: 720px; margin: 0 auto; padding: 34px 16px 60px; }
#ph-root.ph-wide { max-width: 1040px; }
.ph-page-head { text-align: center; margin-bottom: 26px; }
.ph-page-head h1 { margin: 0; font-size: 27px; font-weight: 900; letter-spacing: -.7px; }
.ph-page-head p { margin: 9px 0 0; color: var(--ph-ink-soft); font-size: 14.5px; }
.ph-page-kicker { display: block; margin-bottom: 7px; color: var(--ph-primary); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.ph-card { background: #fff; border: 1px solid var(--ph-line); border-radius: 18px; box-shadow: var(--ph-shadow); padding: 26px; }
.ph-card + .ph-card { margin-top: 16px; }
.ph-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.ph-field label { font-size: 13px; font-weight: 800; color: var(--ph-ink); }
.ph-field input, .ph-field select {
  border: 1px solid var(--ph-line); border-radius: 11px; padding: 13px 14px; font-size: 15px;
  font-family: var(--ph-font); color: var(--ph-ink); background: #fff; outline: none;
}
.ph-field input:focus, .ph-field select:focus { border-color: var(--ph-primary); box-shadow: 0 0 0 3px rgba(43, 87, 230, .12); }
.ph-field input[readonly] { background: #f3f6fc; color: var(--ph-ink-soft); }
.ph-btn {
  width: 100%; border: 0; border-radius: 12px; background: var(--ph-primary); color: #fff;
  font-family: var(--ph-font); font-weight: 900; font-size: 16px; padding: 15px; cursor: pointer;
  box-shadow: 0 12px 26px rgba(43, 87, 230, .26); transition: background .15s;
}
.ph-btn:hover { background: var(--ph-primary-dark); }
.ph-btn.ph-ghost { background: #fff; color: var(--ph-primary); border: 1px solid var(--ph-primary); box-shadow: none; }
.ph-alt { text-align: center; margin-top: 16px; font-size: 14px; color: var(--ph-ink-soft); }
.ph-alt a { color: var(--ph-primary); font-weight: 800; text-decoration: none; }
.ph-note { background: var(--ph-safe-bg); color: #0c6b4d; border-radius: 12px; padding: 13px 15px; font-size: 13px; line-height: 1.6; font-weight: 600; }
.ph-auth-card { max-width: 600px; margin: 0 auto; }
.ph-benefit-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 600px; margin: -9px auto 14px; }
.ph-benefit-row span { padding: 9px 7px; border: 1px solid #dfe6fb; border-radius: 11px; background: #f7f9ff; color: var(--ph-primary); font-size: 11.5px; font-weight: 850; text-align: center; }
.ph-inline-field { display: flex; flex-flow: row nowrap; align-items: stretch; gap: 8px; }
.ph-inline-field input { flex: 1 1 auto; width: auto; min-width: 0; }
.ph-inline-field button { flex: 0 0 132px; min-width: 132px; border: 0; border-radius: 11px; background: #17213c; color: #fff; font: 800 12px var(--ph-font); cursor: pointer; white-space: nowrap; }
.ph-inline-field button:disabled { opacity: .5; cursor: not-allowed; }
.ph-auth-message { min-height: 19px; margin: 3px 0 9px; color: var(--ph-ink-soft); font-size: 12px; font-weight: 800; text-align: center; }
.ph-auth-message.ph-error { color: #e43f5f; }
.ph-auth-message.ph-success { color: var(--ph-safe); }
.ph-auth-help { margin: 13px 0 0; padding: 12px 13px; border-radius: 11px; background: #f4f6fb; color: var(--ph-ink-soft); font-size: 11px; font-weight: 700; line-height: 1.55; word-break: keep-all; }
.ph-text-btn { display: block; margin: 12px auto 0; padding: 5px 8px; border: 0; background: transparent; color: var(--ph-ink-soft); font: 750 12px var(--ph-font); cursor: pointer; }
.ph-text-btn:hover { color: var(--ph-primary); }
.ph-auth-divider { display: flex; align-items: center; gap: 12px; margin: 17px 0 13px; color: #9aa2b2; font-size: 11px; font-weight: 750; }
.ph-auth-divider::before, .ph-auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--ph-line); }
.ph-google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; border: 1px solid #d8dce5; border-radius: 12px; background: #fff; color: #202124; font: 800 14px var(--ph-font); cursor: pointer; }
.ph-google-btn:hover { background: #f8f9fb; border-color: #c9cfda; }
.ph-google-btn:disabled { opacity: .55; cursor: not-allowed; }
.ph-google-mark { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #4285f4; font: 900 18px Arial, sans-serif; }
.ph-guest-note { display: flex; flex-direction: column; gap: 3px; margin-top: 18px; padding: 13px 14px; border-radius: 12px; background: var(--ph-safe-bg); color: #0c6b4d; font-size: 11.5px; line-height: 1.5; text-align: center; }
.ph-guest-note b { font-size: 12.5px; }
@media (max-width: 480px) {
  #ph-root { padding-top: 24px; }
  .ph-card { padding: 21px 17px; }
  .ph-benefit-row { gap: 5px; }
  .ph-benefit-row span { padding: 8px 4px; font-size: 10.5px; }
  .ph-inline-field button { flex-basis: 118px; min-width: 118px; font-size: 11px; }
}

/* order tracking result */
.ph-track-result { margin-top: 18px; }
.ph-steps { display: flex; align-items: center; margin: 8px 0 20px; }
.ph-steps .ph-step { flex: 1; text-align: center; position: relative; }
.ph-steps .ph-step .ph-dot { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 7px; display: grid; place-items: center; background: var(--ph-line); color: #fff; font-weight: 900; font-size: 14px; }
.ph-steps .ph-step .ph-st-lb { font-size: 12.5px; font-weight: 800; color: var(--ph-ink-soft); }
.ph-steps .ph-step.ph-done .ph-dot { background: var(--ph-safe); }
.ph-steps .ph-step.ph-current .ph-dot { background: var(--ph-primary); box-shadow: 0 0 0 4px rgba(43, 87, 230, .18); }
.ph-steps .ph-step.ph-done .ph-st-lb, .ph-steps .ph-step.ph-current .ph-st-lb { color: var(--ph-ink); }
.ph-steps .ph-step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--ph-line); z-index: -1; }
.ph-steps .ph-step:first-child::before { display: none; }
.ph-steps .ph-step.ph-done::before, .ph-steps .ph-step.ph-current::before { background: var(--ph-safe); }
.ph-kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; font-size: 14px; }
.ph-kv dt { color: var(--ph-ink-soft); font-weight: 700; }
.ph-kv dd { margin: 0; font-weight: 700; color: var(--ph-ink); }
.ph-history { margin-top: 16px; border-top: 1px dashed var(--ph-line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ph-history .ph-h { display: flex; gap: 10px; font-size: 13px; }
.ph-history .ph-h time { color: var(--ph-ink-soft); flex: none; }

/* mypage */
.ph-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.ph-tabs button { flex: 1; border: 1px solid var(--ph-line); background: #fff; border-radius: 11px; padding: 12px; font-weight: 800; font-size: 14.5px; color: var(--ph-ink-soft); cursor: pointer; }
.ph-tabs button.ph-active { background: var(--ph-primary); color: #fff; border-color: var(--ph-primary); }
.ph-order-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 4px; border-bottom: 1px solid var(--ph-line); }
.ph-order-row:last-child { border-bottom: 0; }
.ph-order-row .ph-o-name { font-weight: 800; }
.ph-order-row .ph-o-sub { font-size: 12.5px; color: var(--ph-ink-soft); margin-top: 3px; }
.ph-pill { font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; background: var(--ph-bg); color: var(--ph-ink-soft); white-space: nowrap; }
.ph-pill.ph-p-done { background: var(--ph-safe-bg); color: var(--ph-safe); }
.ph-pill.ph-p-progress { background: #e8effe; color: var(--ph-primary); }
.ph-pill.ph-p-reject { background: #fdecec; color: #d64545; }
.ph-empty { text-align: center; color: var(--ph-ink-soft); padding: 40px 0; font-weight: 600; }

/* sell payout estimate box (injected on /exchange) */
#ph-payout {
  position: relative; z-index: 5; max-width: 900px; margin: 14px auto; padding: 16px 18px;
  background: #fff; border: 1px solid var(--ph-line); border-left: 4px solid var(--ph-primary);
  border-radius: 12px; box-shadow: var(--ph-shadow); font-family: var(--ph-font);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
}
#ph-payout .ph-po-t { font-weight: 800; color: var(--ph-ink-soft); font-size: 13px; }
#ph-payout .ph-po-row { display: flex; align-items: baseline; gap: 8px; }
#ph-payout .ph-po-row b { font-size: 15px; color: var(--ph-ink); }
#ph-payout .ph-po-total { margin-left: auto; font-weight: 900; font-size: 20px; color: var(--ph-primary); }
#ph-payout .ph-po-total small { font-size: 13px; color: var(--ph-ink-soft); font-weight: 700; margin-right: 4px; }
