/* Shop Core: customer profile, address book, rewards, security, OTP login. */
.shop-profile, .shop-profile-edit, .shop-addresses, .shop-rewards, .shop-security, .shop-public-profile, .shop-otp-login, .shop-auth {
	--sp-brand: var(--shop-core-brand, #00704a);
	--sp-brand-dark: var(--wp--preset--color--brand-dark, #00573a);
	--sp-brand-soft: var(--shop-core-brand-soft, #e3f2eb);
	--sp-accent: var(--wp--preset--color--accent, #ffb400);
	--sp-sale: var(--shop-core-sale, #b4311f);
	--sp-ink: var(--shop-core-ink, #1c2329);
	--sp-muted: var(--shop-core-muted, #5b6670);
	--sp-line: #eef0f2;
	--sp-field: #d3d9de;
	--sp-card: var(--shop-core-surface, #fff);
	--sp-warn: #8a5a00;
	color: var(--sp-ink);
	font-size: 14px;
	line-height: 1.5;
}
.shop-profile *, .shop-profile-edit *, .shop-addresses *, .shop-rewards *, .shop-security *, .shop-public-profile *, .shop-otp-login *, .shop-auth * { box-sizing: border-box; }

/* ---------- Shared building blocks ---------- */
.shop-profile [hidden], .shop-profile-edit [hidden], .shop-addresses [hidden], .shop-rewards [hidden], .shop-security [hidden], .shop-otp-login [hidden], .shop-auth [hidden] { display: none !important; }
.shop-profile__card { background: var(--sp-card); border-radius: 14px; padding: 14px; margin: 0 0 10px; min-width: 0; }
.shop-profile__card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.shop-profile__card-head h2, .shop-profile__card-head h3, .shop-profile__h { margin: 0 0 8px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.shop-profile__card-head .shop-profile__h, .shop-profile__card-head h2 { margin: 0; }
.shop-profile__muted { margin: 0 0 8px; font-size: 12.5px; color: var(--sp-muted); }
.shop-page-title { margin: 0 0 12px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.shop-page-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.shop-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--sp-brand-dark); background: var(--sp-brand-soft); padding: 1px 8px; border-radius: 10px; }
.shop-profile__points-note { font-size: 12px; color: var(--sp-warn); font-weight: 600; }

.shop-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--sp-brand); background: var(--sp-brand); color: #fff; font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.shop-btn:hover { background: var(--sp-brand-dark); border-color: var(--sp-brand-dark); color: #fff; }
.shop-btn:focus-visible, .shop-chip:focus-visible, .shop-link-btn:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 2px; }
.shop-btn--small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.shop-btn--ghost { background: #fff; color: var(--sp-ink); border-color: var(--sp-field); font-weight: 600; }
.shop-btn--ghost:hover { background: #f6f7f8; color: var(--sp-ink); border-color: #b9c2ca; }
.shop-btn--outline { background: #fff; color: var(--sp-brand); }
.shop-btn--outline:hover { background: var(--sp-brand-soft); color: var(--sp-brand-dark); }
.shop-btn--danger { background: #fff; color: var(--sp-sale); border-color: #e3b7b0; }
.shop-btn--danger:hover { background: #fdf1ef; color: var(--sp-sale); border-color: var(--sp-sale); }
.shop-btn--block { display: flex; width: 100%; min-height: 48px; font-size: 15px; }
.shop-btn--icon { width: 36px; min-height: 36px; padding: 0; background: #fff; border-color: var(--sp-field); color: #6b7680; margin-left: auto; }
.shop-btn--icon:hover { color: var(--sp-sale); background: #fff; border-color: var(--sp-sale); }
.shop-btn[disabled] { opacity: .55; cursor: not-allowed; }
.shop-link-btn { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--sp-brand); cursor: pointer; text-decoration: underline; }
.shop-link-btn--danger { color: var(--sp-sale); }

.shop-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1.5px solid var(--sp-field); background: #fff; color: var(--sp-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.shop-chip[aria-pressed="true"], .shop-chip--radio:has(input:checked) { border-color: var(--sp-brand); background: var(--sp-brand-soft); color: var(--sp-brand-dark); }
.shop-chip--radio, .shop-field label.shop-chip--radio { position: relative; padding: 0 14px; font-weight: 600; }
.shop-chip--radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.shop-chip--radio:has(input:focus-visible) { outline: 3px solid var(--sp-accent); outline-offset: 2px; }

/* Meters */
.shop-profile__meter { height: 8px; border-radius: 4px; background: var(--sp-brand-soft); overflow: hidden; margin: 6px 0 10px; }
.shop-profile__meter span { display: block; height: 100%; background: var(--sp-brand); border-radius: 4px; }
.shop-profile__meter--gold { background: #f1f3f5; }
.shop-profile__meter--gold span { background: var(--sp-accent); }

/* Forms */
.shop-form .shop-field, .shop-field { margin: 0 0 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; border: 0; padding: 0; }
.shop-field label, .shop-field legend, .shop-field__label { font-size: 13px; font-weight: 600; padding: 0; }
.shop-field legend { margin-bottom: 6px; }
.shop-field__opt { font-weight: 400; color: var(--sp-muted); }
.shop-field__hint { font-size: 12px; color: var(--sp-muted); margin: 0; overflow-wrap: anywhere; }
.shop-field__hint.is-ok { color: var(--sp-brand-dark); }
.shop-field__hint.is-error, .shop-field__error { color: var(--sp-sale); font-size: 12.5px; margin: 4px 0 0; }
.shop-field__static { font-size: 15px; font-weight: 600; }
.shop-field input[type="text"], .shop-field input[type="email"], .shop-field input[type="tel"], .shop-field input[type="date"], .shop-field input[type="password"], .shop-field select, .shop-field textarea,
.shop-otp input, .shop-verify input[type="email"] {
	width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--sp-field); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--sp-ink);
}
.shop-field textarea { min-height: 70px; }
.shop-field input:focus, .shop-field select:focus, .shop-field textarea:focus, .shop-otp input:focus { outline: 2px solid var(--sp-brand); outline-offset: 0; border-color: var(--sp-brand); }
.shop-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shop-check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 0 0 14px; min-height: 44px; }
.shop-check input { width: 20px; height: 20px; accent-color: var(--sp-brand); }
.shop-form__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.shop-handle { display: flex; align-items: center; gap: 8px; border: 1px solid var(--sp-field); border-radius: 10px; padding: 0 6px 0 12px; background: #fff; }
.shop-handle:focus-within { outline: 2px solid var(--sp-brand); border-color: var(--sp-brand); }
.shop-handle.is-ok { border-color: var(--sp-brand); }
.shop-handle.is-error { border-color: var(--sp-sale); }
.shop-handle__at { color: var(--sp-muted); font-weight: 700; }
.shop-handle input { border: 0 !important; outline: 0 !important; padding-left: 0 !important; min-width: 0; flex: 1; }

.shop-verify { border-radius: 10px; }
.shop-verify__row { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.shop-verify__value { font-size: 15px; font-weight: 600; }
.shop-verify__msg { margin: 4px 0 0; font-size: 12.5px; }
.shop-verify.is-ok .shop-verify__msg { color: var(--sp-brand-dark); }
.shop-verify.is-pending .shop-verify__msg { color: var(--sp-warn); }
.shop-otp { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.shop-otp__row { display: flex; gap: 8px; align-items: center; }
.shop-otp__row input { flex: 1; min-width: 0; }
.shop-otp__cc { font-weight: 700; color: var(--sp-muted); }
.shop-otp__code { letter-spacing: .4em; text-align: center; font-size: 20px !important; font-weight: 700; }

/* Switches */
.shop-switch { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--sp-line); position: relative; cursor: pointer; }
.shop-switch:last-of-type { border-bottom: 0; }
.shop-switch__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.shop-switch__text b { font-size: 14px; font-weight: 600; }
.shop-switch__text span { font-size: 12px; color: var(--sp-muted); }
.shop-switch input { position: absolute; opacity: 0; width: 46px; height: 28px; right: 0; margin: 0; cursor: pointer; }
.shop-switch__track { flex: none; width: 46px; height: 28px; border-radius: 14px; background: #c5cdd4; position: relative; transition: background .15s; }
.shop-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.shop-switch input:checked + .shop-switch__track { background: var(--sp-brand); }
.shop-switch input:checked + .shop-switch__track::after { left: 21px; }
.shop-switch input:focus-visible + .shop-switch__track { outline: 3px solid var(--sp-accent); outline-offset: 2px; }
.shop-switch.is-locked { opacity: .65; cursor: default; }

/* Rows */
.shop-rows { list-style: none; margin: 0; padding: 0; }
.shop-rows > li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--sp-line); }
.shop-rows > li:last-child { border-bottom: 0; }
.shop-rows__icon { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #eef0f2; color: #33404a; display: flex; align-items: center; justify-content: center; }
.shop-rows__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.shop-rows__text b { font-size: 14px; font-weight: 600; }
.shop-rows__text span { font-size: 12px; color: var(--sp-muted); }
.shop-rows__text .is-ok { color: var(--sp-brand-dark); }
.shop-rows__text .is-warn { color: var(--sp-warn); }
.shop-rows__block { display: block !important; }
.shop-rows form { margin: 0; }

/* ---------- Overview (P1) ---------- */
.shop-profile__hero { background: var(--sp-brand); color: #fff; padding: 8px 14px 60px; border-radius: 14px; position: relative; overflow: hidden; }
.shop-profile__ring { position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; border-radius: 50%; border: 28px solid rgba(255,255,255,.07); pointer-events: none; }
.shop-profile__bar { display: flex; justify-content: space-between; align-items: center; min-height: 44px; position: relative; }
.shop-profile__bar-title { margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.shop-profile__icon-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 50%; margin-right: -10px; }
.shop-profile__icon-btn:hover, .shop-profile__icon-btn:focus-visible { background: rgba(255,255,255,.12); color: #fff; }
.shop-profile__who { display: flex; align-items: center; gap: 14px; margin-top: 8px; position: relative; }
.shop-profile__avatar-wrap { position: relative; flex: none; }
.shop-profile__avatar { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--sp-accent); object-fit: cover; display: block; background: #fff; }
.shop-profile__avatar--letter { display: flex; align-items: center; justify-content: center; color: var(--sp-brand); font-size: 30px; font-weight: 700; }
.shop-profile__photo-btn { position: absolute; right: -4px; bottom: -4px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--sp-brand); background: #fff; color: var(--sp-brand); display: flex; align-items: center; justify-content: center; }
.shop-profile__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shop-profile__name { font-size: 20px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.shop-profile__phone, .shop-profile__since { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: #d9f2e7; }
.shop-profile__since { font-size: 12px; }
.shop-profile__verified { display: inline-flex; align-items: center; gap: 3px; background: #fff; color: var(--sp-brand); font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 8px; }
.shop-profile__verified .shop-core-icon { stroke-width: 3.5; }
.shop-profile__card--lift { margin: -44px 12px 10px; position: relative; box-shadow: 0 2px 10px rgba(16,24,32,.08); }
.shop-profile__level { display: flex; align-items: center; gap: 8px; }
.shop-profile__level-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.shop-profile__level-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.shop-profile__level-text b { font-size: 15px; }
.shop-profile__level-text span { font-size: 12px; color: var(--sp-muted); }
.shop-profile__link { font-size: 13px; font-weight: 700; color: var(--sp-brand); text-decoration: none; white-space: nowrap; padding: 10px 0; }
.shop-profile__progress-labels { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--sp-muted); margin-top: 10px; }
.shop-profile__stats { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); text-align: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--sp-line); }
.shop-profile__stat { display: flex; flex-direction: column; padding: 4px 0; color: var(--sp-ink); text-decoration: none; border-radius: 8px; }
.shop-profile__stat:hover { background: #f6f7f8; color: var(--sp-ink); }
.shop-profile__stat b { font-size: 17px; }
.shop-profile__stat span { font-size: 11.5px; color: var(--sp-muted); }
.shop-level--silver { background: #eef0f2; color: #5b6670; }
.shop-level--gold { background: #fff4d6; color: #8a5a00; }
.shop-level--platinum { background: #e7eef9; color: #1f4e8c; }

.shop-profile__todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.shop-profile__todo a { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--sp-ink); text-decoration: none; font-size: 13.5px; }
.shop-profile__tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c5cdd4; background: #fff; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.shop-profile__tick .shop-core-icon { stroke-width: 4; }
.shop-profile__todo-label { flex: 1; }
.shop-profile__todo .is-done .shop-profile__tick { border-color: var(--sp-brand); background: var(--sp-brand); }
.shop-profile__todo .is-done .shop-profile__todo-label { color: #6b7680; text-decoration: line-through; }
.shop-profile__status { margin: 6px 0 0; font-size: 12px; color: var(--sp-brand-dark); min-height: 1em; }

.shop-profile__menu { padding: 0; }
.shop-profile__menu a { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 14px; color: var(--sp-ink); text-decoration: none; border-bottom: 1px solid var(--sp-line); }
.shop-profile__menu a:last-child { border-bottom: 0; }
.shop-profile__menu a:hover { background: #fafbfb; color: var(--sp-ink); }
.shop-profile__menu-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.shop-profile__menu-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.shop-profile__menu-text b { font-size: 14.5px; font-weight: 600; }
.shop-profile__menu-text span { font-size: 12px; color: var(--sp-muted); }
.shop-profile__chev { color: #8a949c; font-size: 20px; }
.shop-tone--green { background: #e3f2eb; color: #00704a; }
.shop-tone--blue { background: #e7eef9; color: #1f4e8c; }
.shop-tone--orange { background: #fff0e3; color: #9a4a0b; }
.shop-tone--slate { background: #eaf0f4; color: #2f4a5e; }
.shop-tone--pink { background: #fbe7ef; color: #9b2c5e; }
.shop-tone--yellow { background: #fff4d6; color: #8a5a00; }
.shop-tone--grey { background: #eef0f2; color: #33404a; }
.shop-profile__logout { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 14px 0 0; border-radius: 24px; border: 1.5px solid #e3b7b0; background: #fff; color: var(--sp-sale); font-size: 15px; font-weight: 700; text-decoration: none; }
.shop-profile__logout:hover { background: #fdf1ef; color: var(--sp-sale); }

/* ---------- Personal info (P2) ---------- */
.shop-photo { display: flex; align-items: center; gap: 14px; }
.shop-photo__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--sp-brand-soft); }
.shop-photo__img--letter { display: flex; align-items: center; justify-content: center; background: var(--sp-brand-soft); color: var(--sp-brand); font-size: 28px; font-weight: 700; }
.shop-photo__body { min-width: 0; }
.shop-photo__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-photo__actions label { cursor: pointer; }
.shop-photo__actions label:focus-within { outline: 3px solid var(--sp-accent); outline-offset: 2px; }

/* ---------- Address book (P3) ---------- */
.shop-address { background: var(--sp-card); border-radius: 12px; border: 1.5px solid var(--sp-card); padding: 14px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.shop-address.is-default { border-color: var(--sp-brand); }
.shop-address__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-address__tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 10px; background: #e7eef9; color: #1f4e8c; }
.shop-address__tag--office { background: #fff0e3; color: #9a4a0b; }
.shop-address__tag--other { background: #fbe7ef; color: #9b2c5e; }
.shop-address__zone { margin-left: auto; font-size: 12px; color: var(--sp-muted); }
.shop-address__body { margin: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.shop-address__actions { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--sp-line); padding-top: 10px; margin: 0; }
.shop-add-new { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; border: 1.5px dashed var(--sp-brand); border-radius: 12px; background: #f2faf6; color: var(--sp-brand); font-size: 15px; font-weight: 700; text-decoration: none; margin-bottom: 10px; }
.shop-add-new:hover { background: var(--sp-brand-soft); color: var(--sp-brand-dark); }
.shop-address-form { scroll-margin-top: 90px; }
.shop-address-form [data-shop-label-other] { margin-top: 8px; }
.shop-address-picker { margin: 0 0 14px; padding: 12px; border: 1px solid var(--shop-core-line, #e3e7eb); border-radius: 12px; background: #fff; }
.shop-address-picker__title { margin: 0 0 8px; font-weight: 700; }
.shop-address-picker__manage { display: inline-block; margin-top: 8px; font-size: 13px; }

/* ---------- Rewards (P4) ---------- */
.shop-rewards__wallet { background: var(--sp-brand); color: #fff; border-radius: 14px; padding: 16px; margin-bottom: 10px; }
.shop-rewards__label { margin: 0; font-size: 13px; color: #d9f2e7; }
.shop-rewards__balance { margin: 2px 0 4px; font-size: 34px; font-weight: 700; line-height: 1.1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.shop-rewards__balance span { font-size: 14px; font-weight: 600; color: var(--sp-accent); }
.shop-rewards__fine { margin: 0 0 12px; font-size: 12px; color: #d9f2e7; }
.shop-rewards__redeem { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.shop-rewards__tier { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; padding: 6px; border: 0; border-radius: 10px; background: var(--sp-accent); color: var(--sp-ink); font: inherit; cursor: pointer; }
.shop-rewards__tier b { font-size: 13.5px; }
.shop-rewards__tier span { font-size: 11.5px; }
.shop-rewards__tier[disabled] { background: rgba(0,0,0,.18); color: #b5d6c6; cursor: not-allowed; }
.shop-rewards__tier:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.shop-vouchers { list-style: none; margin: 0; padding: 0; }
.shop-vouchers li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 10px 12px; border: 1.5px dashed var(--sp-accent); border-radius: 10px; background: #fffbf0; margin-bottom: 8px; }
.shop-vouchers b { font-size: 16px; }
.shop-vouchers__code { font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: .05em; }
.shop-vouchers .shop-profile__muted { flex-basis: 100%; margin: 0; }
.shop-levels { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shop-levels__item { position: relative; border: 1.5px solid #e3e7eb; border-radius: 12px; padding: 18px 10px 10px; background: #fff !important; color: var(--sp-ink) !important; min-width: 0; }
.shop-levels__item.is-current { border-color: var(--sp-accent); background: #fffbf0 !important; }
.shop-levels__here { position: absolute; top: -10px; left: 8px; font-size: 10.5px; font-weight: 700; background: var(--sp-accent); color: var(--sp-ink); padding: 1px 8px; border-radius: 8px; }
.shop-levels__name { display: block; font-size: 15px; }
.shop-level--silver .shop-levels__name { color: #5b6670; }
.shop-level--gold .shop-levels__name { color: #8a5a00; }
.shop-level--platinum .shop-levels__name { color: #1f4e8c; }
.shop-levels__req { display: block; font-size: 11.5px; color: var(--sp-muted); margin-bottom: 6px; }
.shop-levels ul { margin: 0; padding-left: 14px; font-size: 12px; }
.shop-earn { list-style: none; margin: 0; padding: 0; }
.shop-earn li { display: flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--sp-line); }
.shop-earn li:last-child { border-bottom: 0; }
.shop-earn__icon { width: 32px; height: 32px; border-radius: 8px; background: var(--sp-brand-soft); color: var(--sp-brand); display: flex; align-items: center; justify-content: center; flex: none; }
.shop-earn__label { flex: 1; font-size: 13.5px; }
.shop-earn__pts { color: var(--sp-brand-dark); }
.shop-referral__code { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1.5px dashed var(--sp-brand); border-radius: 10px; padding: 8px 8px 8px 14px; background: #f2faf6; margin-bottom: 10px; }
.shop-referral__code span { font-family: ui-monospace, monospace; font-size: 18px; font-weight: 700; letter-spacing: .08em; overflow-wrap: anywhere; }
.shop-referral__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center; }
.shop-referral__stats span { display: flex; flex-direction: column; font-size: 12px; color: var(--sp-muted); }
.shop-referral__stats b { font-size: 18px; color: var(--sp-ink); }
.shop-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--sp-line); margin: -4px 0 8px; }
.shop-tabs button { flex: 1; min-height: 44px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--sp-muted); border-bottom: 2px solid transparent; cursor: pointer; }
.shop-tabs button[aria-selected="true"] { color: var(--sp-brand); font-weight: 700; border-bottom-color: var(--sp-brand); }
.shop-history__list { list-style: none; margin: 0; padding: 0; }
.shop-history__list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--sp-line); }
.shop-history__list li:last-child { border-bottom: 0; }
.shop-history__list li > span { display: flex; flex-direction: column; min-width: 0; }
.shop-history__list li > span b { font-size: 13.5px; font-weight: 600; }
.shop-history__list li > span .shop-profile__muted { margin: 0; }
.shop-history__list .is-plus { color: var(--sp-brand-dark); }
.shop-history__list .is-minus { color: var(--sp-sale); }

/* ---------- Security (P5) ---------- */
.shop-password summary { list-style: none; display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; }
.shop-password summary::-webkit-details-marker { display: none; }
.shop-password[open] summary .shop-btn { visibility: hidden; }
.shop-password form { padding: 12px 0 4px; }
.shop-danger { margin-top: 8px; border-top: 1px solid var(--sp-line); padding-top: 8px; }
.shop-danger summary { color: var(--sp-sale); font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.shop-danger[open] summary { margin-bottom: 4px; }

/* ---------- Public profile ---------- */
.shop-public-profile { max-width: 720px; margin: 0 auto; }
.shop-public-profile__head { display: flex; gap: 14px; align-items: center; }
.shop-public-profile__name { margin: 0; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.shop-public-profile__tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 0; }
.shop-public-profile__tags .shop-badge { background: inherit; }
.shop-public-profile__tags .shop-profile__muted { margin: 0; }
.shop-public-profile__reviews { list-style: none; margin: 0; padding: 0; }
.shop-public-profile__reviews li { padding: 10px 0; border-bottom: 1px solid var(--sp-line); }
.shop-public-profile__reviews li:last-child { border-bottom: 0; }
.shop-public-profile__reviews p { margin: 4px 0 0; }
.shop-public-profile__stars { color: var(--sp-accent); margin-left: 6px; letter-spacing: 1px; }
.shop-public-profile__wish { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.shop-public-profile__wish a { display: flex; flex-direction: column; gap: 4px; color: var(--sp-ink); text-decoration: none; font-size: 13px; }
.shop-public-profile__wish img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #f1f3f5; }

/* ---------- OTP login ---------- */
.shop-otp-login { max-width: 460px; margin: 0 auto 16px; padding: 18px; border: 1px solid var(--shop-core-line, #e3e7eb); }
.shop-otp-login__title { margin: 0 0 4px; font-size: 20px; }
.shop-otp-login .shop-otp__row { border: 1px solid var(--sp-field); border-radius: 10px; padding-left: 12px; background: #fff; }
.shop-otp-login .shop-otp__row:focus-within { outline: 2px solid var(--sp-brand); border-color: var(--sp-brand); }
.shop-otp-login .shop-otp__row input { border: 0; outline: 0 !important; padding-left: 4px; }
.shop-otp-login__fine { font-size: 12px; color: var(--sp-muted); margin: 12px 0 0; }
.shop-otp-login__or { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 12.5px; color: var(--sp-muted); }
.shop-otp-login__or::before, .shop-otp-login__or::after { content: ""; flex: 1; height: 1px; background: var(--sp-line); }

/* ---------- Account frame ---------- */
.shop-account-back { display: none; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; color: var(--shop-core-brand, #00704a); text-decoration: none; margin-bottom: 4px; }
.shop-account-back span { font-size: 22px; line-height: 1; }

@media (max-width: 781px) {
	.shop-account-back { display: inline-flex; }
	.shop-levels { grid-template-columns: 1fr; }
	.shop-levels__item { padding-top: 14px; }
}
@media (max-width: 380px) {
	.shop-field-row { grid-template-columns: 1fr; gap: 0; }
	.shop-rewards__redeem { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.shop-switch__track, .shop-switch__track::after { transition: none; }
}

/* ---------- Log in / sign up page ---------- */
.shop-auth { max-width: 440px; margin: 0 auto; }
.shop-auth__card { background: var(--sp-card); border: 1px solid var(--sp-line); border-radius: 16px; padding: 22px 18px 18px; box-shadow: 0 8px 28px rgba(16, 24, 32, .06); }
.shop-auth__head { text-align: center; margin-bottom: 14px; }
.shop-auth__badge { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sp-brand-soft); color: var(--sp-brand); margin-bottom: 8px; }
.shop-auth__badge svg { width: 26px; height: 26px; }
.shop-auth .shop-auth__title { margin: 0; font-size: 21px; line-height: 1.3; }
.shop-auth__sub { margin: 4px 0 0; color: var(--sp-muted); font-size: 13.5px; }
.shop-auth__tabs { margin: 0 0 16px; }
.shop-auth .shop-otp-login { max-width: none; margin: 0 0 14px; padding: 0; border: 0; box-shadow: none; background: none; }
.shop-auth .shop-otp-login__title { display: none; }
.shop-auth .shop-otp-login > .shop-profile__muted { margin-top: 0; }
.woocommerce .shop-auth form.shop-auth__form, .shop-auth form.shop-auth__form { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; max-width: none; }
.shop-auth .form-row { margin: 0 0 12px; padding: 0; }
.shop-auth .form-row label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 5px; }
.shop-auth .form-row .required { color: var(--sp-sale); text-decoration: none; }
.woocommerce .shop-auth .form-row input.input-text, .shop-auth .input-text { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--sp-field); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--sp-ink); }
.woocommerce .shop-auth .form-row input.input-text:focus, .shop-auth .input-text:focus { outline: 2px solid var(--sp-brand); outline-offset: 0; border-color: var(--sp-brand); }
.shop-auth .password-input { display: block; position: relative; }
.shop-auth .show-password-input { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.shop-auth__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 2px 0 14px; font-size: 13px; }
.shop-auth__row label { display: inline-flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; }
.shop-auth__row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--sp-brand); margin: 0; }
.shop-auth__forgot, .shop-auth__switch a { color: var(--sp-brand); font-weight: 600; text-decoration: none; }
.shop-auth__forgot:hover, .shop-auth__switch a:hover { text-decoration: underline; }
.shop-auth__switch { text-align: center; margin: 14px 0 0; font-size: 13.5px; color: var(--sp-muted); }
.shop-auth__note, .shop-auth .woocommerce-privacy-policy-text { font-size: 12.5px; color: var(--sp-muted); margin: 0 0 12px; }
.shop-auth .woocommerce-privacy-policy-text p { margin: 0; }
.shop-auth__perks { list-style: none; margin: 0 0 16px; padding: 12px; display: grid; gap: 8px; background: var(--sp-brand-soft); border-radius: 12px; }
.shop-auth__perks li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; margin: 0; }
.shop-auth__perks svg { flex: none; color: var(--sp-brand); margin-top: 1px; }
.shop-auth__trust { list-style: none; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 14px 0 0; padding: 0; font-size: 12.5px; color: var(--sp-muted); }
.shop-auth__trust li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.shop-auth__trust svg { width: 16px; height: 16px; }
@media (min-width: 600px) { .shop-auth__card { padding: 28px 28px 22px; } }
.shop-auth__check { display: grid; gap: 2px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #fff8e6; border: 1px solid #f3d28a; font-size: 13.5px; }
.shop-auth__check strong { font-size: 15px; }
.shop-auth__hint { display: block; margin-top: 4px; color: var(--sp-muted); font-size: 12.5px; }
