/* 「我的」页登录和会员中心的样式（页面程序 assets/me-account.js；由 mu-plugins/onespa-member-me.php 跟脚本一起加载，排在 shell.css 后面，
 * 自己带缓存键，换版不用动主题版本号）。开关 onespa_me_login_enabled 关着时不加载，页面照 shell.css 的老样子。
 * shell.css 里「我的」页那一段老样式（osw-me-login、osw-me-profile、osw-me-voucher 等）这里不再用；共用的几个类在这里按新设计盖一遍。
 * 11-17 全站统一设计（设计稿 官网登录/设计稿-全站统一-20261117/）：次要文字 #8A5A50、卡片底 #FFF8F2、标签底 #FFE8DA、
 * 页面标题 24 衬线、小节标题 20 衬线品牌中色、按钮和输入框 10px、卡片 14px、标签 6px。链接不用绿色，绿色只留给「赠送」。 */
.osw-me-has-login .osw-me { --sh-text-2: #8A5A50; --sh-card: #FFF8F2; --sh-tag: #FFE8DA; }
.osw-me-has-login .osw-me-h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 按单号查单：登录开着时先收着，点「不登录，按订单号查一张单」才出；登录以后不出 */
.osw-me-lookup { display: flex; flex-direction: column; gap: 16px; }
.osw-me-has-login .osw-me-lookup { display: none; }
.osw-me-has-login.osw-me-lookup-open:not(.osw-me-in) .osw-me-lookup { display: flex; }
/* 确认信、付款成功页带着码来的那一张单（assets/shell.js 放到登录框上面，标 data-osw-vk）：登录着的会员页不出，名下的单本来就列着 */
.osw-me-has-login.osw-me-in [data-osw-vk] { display: none; }
.osw-me-has-login .osw-me-help { color: var(--sh-brand-mid); text-decoration: underline; text-underline-offset: 3px; }
.osw-me-has-login.osw-me-noshell .osw-me-body { padding-top: 20px; }
.osw-me-account > div { display: flex; flex-direction: column; gap: 24px; }
.osw-me-check { min-height: 44px; display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 22px; color: var(--sh-text); }
.osw-me-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--sh-brand); }
.osw-me-pending { gap: 4px; }
.osw-me-req { padding: 12px 16px 16px; border: 0; border-top: 1px solid var(--sh-line); border-radius: 0; background: #FFFFFF; }
.osw-me-account .osw-btn-solid, .osw-me-account .osw-btn-line { width: 100%; }
.osw-me-account .osw-me-acts > button { width: auto; }
.osw-me-account .osw-btn-line[disabled] { background: var(--sh-card); color: var(--sh-text-2); cursor: default; }

/* 登录两步、编辑资料共用：标题、说明、表单 */
.osw-mc-login, .osw-mc-edit { display: flex; flex-direction: column; gap: 20px; }
.osw-mc-head { display: flex; flex-direction: column; gap: 6px; }
.osw-mc-title { margin: 0; font-family: 'Noto Serif SC', serif; font-size: 24px; line-height: 32px; font-weight: 700; color: var(--sh-text); }
.osw-mc-sub { margin: 0; font-size: 14px; line-height: 22px; color: var(--sh-text-2); }
.osw-mc-form { display: flex; flex-direction: column; gap: 12px; }
.osw-mc-form input[type="tel"] { font-size: 18px; }
.osw-mc-form input::placeholder { color: #B79E94; }
.osw-field input.osw-mc-code { height: 56px; font-size: 24px; letter-spacing: .3em; text-align: center; }
.osw-field input.osw-mc-code::placeholder { font-size: 16px; letter-spacing: 0; }
.osw-mc-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--sh-text-2); }
.osw-mc-or::before, .osw-mc-or::after { content: ''; flex: 1; height: 1px; background: var(--sh-line); }
.osw-mc-google, .osw-mc-retry { display: flex; flex-direction: column; gap: 8px; }
.osw-me-google { min-height: 44px; }
/* Google 先放一个它自己画的占位按钮，它的按钮框（iframe）画好、量好大小（这时它给 iframe 加上外边距）以后，隔两帧才撤掉占位；
   页面那一刻没在画（手机第一次打开、内置浏览器在后台）就两个按钮叠着出（11-20 晚 Air 装后核，手机宽第一次开 /cn/me/）。量好的那一刻就藏占位，不等那两帧。 */
.osw-me-google div:has(+ iframe[style*="margin"]) { display: none; }
.osw-mc-retry .osw-btn-line { font-size: 15px; }
.osw-mc-rows { margin-top: 8px; border-top: 1px solid var(--sh-line); display: flex; flex-direction: column; }
.osw-mc-rows > * { min-height: 48px; padding: 0; border: 0; border-bottom: 1px solid var(--sh-line); background: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: inherit; font-size: 15px; color: var(--sh-text); text-align: left; text-decoration: none; cursor: pointer; }
.osw-mc-rows svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--sh-text-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.osw-mc-quiet { min-height: 44px; padding: 0; border: 0; background: none; align-self: flex-start; display: inline-flex; align-items: center; font: inherit; font-size: 13px; color: var(--sh-text-2);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.osw-mc-back { min-height: 44px; margin: -8px 0 -12px -6px; padding: 0 6px 0 0; border: 0; background: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 2px;
  font: inherit; font-size: 14px; color: var(--sh-brand-mid); cursor: pointer; }
.osw-mc-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.osw-mc-facts { border-top: 1px solid var(--sh-line); display: flex; flex-direction: column; }
.osw-mc-fact { padding: 14px 0; border-bottom: 1px solid var(--sh-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 22px; }
.osw-mc-fact.is-col { flex-direction: column; align-items: stretch; gap: 2px; }
.osw-mc-fact.is-col .osw-me-google { margin-top: 8px; }
.osw-mc-fact-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.osw-mc-fact small { font-size: 12px; line-height: 18px; color: var(--sh-text-2); }
.osw-mc-fact .osw-btn-line { width: auto; flex: none; min-height: 44px; padding: 0 16px; font-size: 14px; }
.osw-mc-out { color: var(--sh-text-2); font-size: 15px; }

/* 会员卡（叶伟 11-17 22:08 选 A 深色卡）：银行卡的比例，品牌深棕红，右下角汤泉水纹，会员号当主角；画出来时一道光扫过一次 */
.osw-mc-card { position: relative; aspect-ratio: 358 / 214; min-height: 200px; border-radius: 14px; overflow: hidden; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, #84331F 0%, #6E2A1C 38%, #4A190F 100%); color: #F7E6DA; box-shadow: 0 12px 24px rgba(74, 25, 15, .28); }
.osw-mc-card::after { content: ''; position: absolute; inset: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(233, 199, 178, .38); pointer-events: none; }
.osw-mc-rip { position: absolute; inset: 0; width: 100%; height: 100%; color: #E9C7B2; stroke-width: 1; }
.osw-mc-sheen { position: absolute; top: -20%; bottom: -20%; left: -40%; width: 90px; transform: skewX(-20deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)); animation: osw-mc-sheen 1.4s ease-out .35s 1 both; }
@keyframes osw-mc-sheen { from { left: -40%; } to { left: 130%; } }
.osw-mc-top, .osw-mc-no, .osw-mc-bot { position: relative; }
.osw-mc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.osw-mc-top img { height: 44px; width: auto; display: block; margin: -4px 0 0 -6px; }
.osw-mc-kind { font-size: 12px; line-height: 18px; letter-spacing: .3em; margin-right: -.3em; color: #E9C7B2; white-space: nowrap; }
.osw-mc-no small { display: block; font-size: 11px; line-height: 16px; letter-spacing: .2em; color: #E9C7B2; }
.osw-mc-no b { display: block; font-family: 'Noto Serif SC', serif; font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: .14em; color: #FBEFE6; }
/* 英文不拉那么开（拉开是给汉字用的） */
html:not([lang^="zh"]) .osw-mc-kind { letter-spacing: .06em; margin-right: 0; }
html:not([lang^="zh"]) .osw-mc-no small { letter-spacing: .06em; }
.osw-mc-bot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.osw-mc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'Noto Serif SC', serif; font-size: 18px; line-height: 26px; font-weight: 700; }
.osw-mc-phone { flex: none; font-size: 13px; line-height: 20px; color: #E9C7B2; }
/* 卡下面一行三格 */
.osw-mc-stats { margin-top: -8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--sh-line); border-radius: 14px; background: var(--sh-card); overflow: hidden; }
.osw-mc-stats > * { min-height: 68px; padding: 6px 4px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: inherit; font-size: 13px; line-height: 20px; color: var(--sh-text-2); text-align: center; text-decoration: none; cursor: pointer; }
.osw-mc-stats > * + * { border-left: 1px solid var(--sh-line); }
.osw-mc-stats b { font-family: 'Noto Serif SC', serif; font-size: 22px; line-height: 28px; font-weight: 700; color: var(--sh-brand-mid); }
.osw-mc-stats svg { width: 24px; height: 28px; fill: none; stroke: var(--sh-brand-mid); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* 小节：要到店、可用的券、以前的单 */
.osw-mc-sec { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 76px; }
.osw-mc-sec h2 { margin: 0; font-family: 'Noto Serif SC', serif; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--sh-brand-mid); }
.osw-mc-sec h3 { margin: 4px 0 -4px; font-size: 13px; line-height: 20px; font-weight: 400; color: var(--sh-text-2); }
.osw-mc-tag { flex: none; padding: 2px 8px; border-radius: 6px; font-size: 12px; line-height: 20px; font-weight: 500; background: var(--sh-tag); color: var(--sh-brand-mid); white-space: nowrap; }
.osw-mc-tag.is-off { background: var(--sh-line); color: var(--sh-text); }
.osw-mc-visit { border: 1px solid var(--sh-line); border-radius: 14px; background: var(--sh-card); overflow: hidden; }
.osw-mc-visit-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.osw-mc-visit-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.osw-mc-visit-head strong { font-family: 'Noto Serif SC', serif; font-size: 22px; line-height: 30px; font-weight: 700; color: var(--sh-brand); }
.osw-mc-items { margin: 0 0 -8px; padding: 0; list-style: none; font-size: 15px; line-height: 22px; }
.osw-mc-meta { font-size: 13px; line-height: 20px; color: var(--sh-text-2); }
.osw-mc-hint { margin-top: -4px; font-size: 12px; line-height: 18px; color: var(--sh-text-2); text-align: center; }
.osw-mc-why { padding: 0 16px 12px; }
.osw-mc-acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--sh-line); }
.osw-mc-acts > * { min-height: 48px; padding: 0 6px; border: 0; background: none; display: flex; align-items: center; justify-content: center; font: inherit; font-size: 14px; color: var(--sh-text);
  text-align: center; text-decoration: none; cursor: pointer; }
.osw-mc-acts > * + * { border-left: 1px solid var(--sh-line); }
.osw-mc-voucher { border: 1px solid var(--sh-line); border-radius: 14px; background: var(--sh-card); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.osw-mc-voucher-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.osw-mc-voucher-head strong { min-width: 0; overflow-wrap: anywhere; font-size: 16px; line-height: 24px; letter-spacing: .02em; }
.osw-mc-voucher-text { font-size: 14px; line-height: 22px; }
.osw-mc-voucher .osw-btn-line { min-height: 44px; font-size: 15px; }
.osw-mc-list { border: 1px solid var(--sh-line); border-radius: 14px; background: var(--sh-card); overflow: hidden; }
.osw-mc-list ul { margin: 0; padding: 0; list-style: none; }
.osw-mc-list li { padding: 14px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.osw-mc-list li[hidden] { display: none; }
.osw-mc-list li + li { border-top: 1px solid var(--sh-line); }
.osw-mc-row-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.osw-mc-row-main small { font-size: 13px; line-height: 20px; color: var(--sh-text-2); }
.osw-mc-list > button { width: 100%; min-height: 48px; border: 0; border-top: 1px solid var(--sh-line); background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--sh-brand); cursor: pointer; }
.osw-mc-list > button[hidden] { display: none; }
.osw-mc-foot { display: flex; flex-direction: column; gap: 8px; }
.osw-mc-again { border: 1.5px solid var(--sh-brand-mid); color: var(--sh-brand-mid); }
.osw-mc-wa { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sh-brand-mid); text-decoration: underline; text-underline-offset: 3px; }
.osw-mc-wa svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.osw-me-account :is(button, a, input, textarea):focus-visible { outline: 2px solid var(--sh-brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .osw-mc-sheen { animation: none; display: none; }
}

/* 11-20 晚 Air 装后核（点单页）顺着查到这一页：Hello 父主题 reset.css 的 [type=button]:hover/:focus、button:hover/:focus{color:#fff;background-color:#c36;text-decoration:none}（0,2,0）
   和 a:hover、a:active{color:#336}（0,1,1）比这一页按钮、链接的类选择器高，手机上点一下（停在 hover）或拿到焦点就成粉底白字、深蓝字。
   下面都从 .osw-me 起头（0,3,1 起）写回原来的颜色，不依赖样式表加载顺序（同 osw07.css 0.9.78 的写法）。 */
.osw-me button.osw-btn-solid:focus, .osw-me a.osw-btn-solid:focus { background: var(--sh-brand); color: #FFFFFF; }
.osw-me button.osw-btn-solid:hover, .osw-me a.osw-btn-solid:hover, .osw-me a.osw-btn-solid:active { background: var(--sh-brand-mid); color: #FFFFFF; }
.osw-me button.osw-btn-line:hover, .osw-me button.osw-btn-line:focus, .osw-me a.osw-btn-line:hover, .osw-me a.osw-btn-line:active { background: #FFFFFF; color: var(--sh-text); }
.osw-me .osw-me-account button.osw-btn-line[disabled]:hover { background: var(--sh-card); color: var(--sh-text-2); }
.osw-me a.osw-mc-again:hover, .osw-me a.osw-mc-again:active { color: var(--sh-brand-mid); }
.osw-me button.osw-mc-out:hover, .osw-me button.osw-mc-out:focus { color: var(--sh-text-2); }
.osw-me a.osw-me-help:hover, .osw-me a.osw-me-help:active { color: var(--sh-gift); }
.osw-me-has-login .osw-me a.osw-me-help:hover, .osw-me-has-login .osw-me a.osw-me-help:active { color: var(--sh-brand-mid); }
.osw-me .osw-mc-rows > button:hover, .osw-me .osw-mc-rows > button:focus, .osw-me .osw-mc-rows > a:hover, .osw-me .osw-mc-rows > a:active { background: none; color: var(--sh-text); }
.osw-me .osw-mc-stats > button:hover, .osw-me .osw-mc-stats > button:focus, .osw-me .osw-mc-stats > a:hover, .osw-me .osw-mc-stats > a:active { background: none; color: var(--sh-text-2); }
.osw-me .osw-mc-acts > button:hover, .osw-me .osw-mc-acts > button:focus, .osw-me .osw-mc-acts > a:hover, .osw-me .osw-mc-acts > a:active { background: none; color: var(--sh-text); }
.osw-me button.osw-mc-quiet:hover, .osw-me button.osw-mc-quiet:focus, .osw-me a.osw-mc-quiet:hover, .osw-me a.osw-mc-quiet:active { background: none; color: var(--sh-text-2); text-decoration: underline; }
.osw-me button.osw-mc-back:hover, .osw-me button.osw-mc-back:focus { background: none; color: var(--sh-brand-mid); }
.osw-me a.osw-mc-wa:hover, .osw-me a.osw-mc-wa:active { color: var(--sh-brand-mid); }
.osw-me .osw-mc-list > button:hover, .osw-me .osw-mc-list > button:focus { background: none; color: var(--sh-brand); }

/* 登录那一批（docs/rules/官网登录.md，2026-11-26）：登录页两个页签、手机号前面的国家号、会员中心最上面那一句、资料页一格两个按钮。
   开关都关着时页面上没有这些东西，下面的规则碰不到任何元素。按钮、标签上的字不换行。 */
.osw-mc-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--sh-line); }
.osw-mc-tabs > button { min-height: 44px; margin: 0 0 -1px; padding: 0 8px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; font: inherit; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--sh-text-2); white-space: nowrap; cursor: pointer; }
.osw-mc-tabs > button.is-on { color: var(--sh-text); border-bottom-color: var(--sh-brand); }
.osw-me .osw-mc-tabs > button:hover, .osw-me .osw-mc-tabs > button:focus { background: none; color: var(--sh-text-2); }
.osw-me .osw-mc-tabs > button.is-on:hover, .osw-me .osw-mc-tabs > button.is-on:focus { color: var(--sh-text); }
.osw-mc-tel { display: flex; gap: 8px; }
.osw-mc-tel > input { flex: 1; min-width: 0; }
.osw-mc-cc { position: relative; flex: none; min-width: 76px; height: 48px; padding: 0 30px 0 12px; border: 1px solid var(--sh-line); border-radius: 10px; background: #FFFFFF; display: inline-flex; align-items: center; font-size: 18px; color: var(--sh-text); white-space: nowrap; }
.osw-mc-cc::after { content: ''; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.8px solid var(--sh-text-2); border-bottom: 1.8px solid var(--sh-text-2); transform: rotate(45deg); pointer-events: none; }
.osw-mc-cc > select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; font-size: 16px; cursor: pointer; }
.osw-mc-cc:focus-within { outline: 2px solid var(--sh-brand); outline-offset: 0; border-color: var(--sh-brand); }
.osw-mc-quiet[hidden] { display: none; }
button.osw-mc-quiet { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.osw-mc-notice { padding: 14px 16px; border: 1px solid var(--sh-line); border-radius: 14px; background: var(--sh-card); display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 22px; color: var(--sh-text); }
.osw-mc-notice > b { font-size: 16px; line-height: 24px; }
.osw-mc-notice > p { margin: 0; color: var(--sh-text-2); }
.osw-mc-notice > .osw-btn-solid { margin-top: 4px; white-space: nowrap; }
.osw-ma > .osw-mc-notice { margin: 16px 0 0; }
.osw-ma.lp-me > .osw-mc-notice { margin: 20px 20px 0; background: #FFFFFF; }
.osw-mc-fact-acts { margin-top: 8px; display: flex; gap: 8px; }
.osw-mc-fact.is-col > span { overflow-wrap: anywhere; }
.osw-mc-fact .osw-btn-line { white-space: nowrap; }
.osw-mc-form input[readonly] { background: var(--sh-card); color: var(--sh-text-2); }
