#profileView { max-width: 960px; padding-top: 24px; padding-bottom: 40px; }
.member-card, .member-panel { padding: 24px; border: 1px solid #e8e7e0; border-radius: 18px; background: white; box-shadow: 0 3px 12px #3a442c05; }
.member-identity { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; }
.member-avatar { display: grid; place-items: center; width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%; background: #f6edda; }
.member-person { min-width: 0; flex: 1; display: grid; justify-items: start; gap: 7px; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.member-person strong { max-width: 100%; font-size: 19px; overflow-wrap: anywhere; color: #294f42; }
.member-person small { display: flex; align-items: center; color: #5d6d57; font-size: 12px; }
.member-person svg { width: 12px; height: 12px; }
.member-login { flex-shrink: 0; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--orange-dark); color: white; font-size: 12px; font-weight: 800; cursor: pointer; }
.member-block { padding-top: 20px; border-top: 1px solid #eeeee7; }
.member-block + .member-block { margin-top: 20px; }
.member-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.member-heading h2 { position: relative; margin: 0; padding-left: 10px; color: #344c40; font-size: 15px; line-height: 1.5; }
.member-heading h2::before { position: absolute; content: ""; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: #cb8c57; }
.member-heading > button { display: inline-flex; align-items: center; gap: 3px; padding: 5px 9px; border: 0; border-radius: 20px; background: #f3f6ee; color: #517158; font-size: 12px; cursor: pointer; }
.member-heading > button svg { width: 12px; height: 12px; }
.member-order-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.member-order-shortcuts > button { min-width: 0; display: grid; justify-items: center; align-content: center; gap: 9px; min-height: 95px; padding: 12px 4px; border: 0; border-radius: 12px; background: #f7f8f4; color: #5b685c; font-size: 12px; cursor: pointer; }
.member-icon { position: relative; width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; border-radius: 12px; background: white; color: #cb7c44; }
.member-icon svg { width: 23px; height: 23px; }
.member-icon.tone-1 { color: #6b9ba8; }.member-icon.tone-2 { color: #90a57c; }.member-icon.tone-3 { color: #9c89ad; }
.member-icon b { position: absolute; top: -5px; right: -6px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--orange-dark); color: white; font-size: 12px; }
.member-services { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.member-services > button { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 14px 16px; border: 0; border-radius: 12px; background: #f7f8f4; color: #62715e; text-align: left; font-size: 12px; cursor: pointer; }
.member-services > button > svg, .member-services > button > small { margin-left: auto; width: 15px; flex-shrink: 0; }
.member-services .member-coupon-entry { background: #faf2e1; grid-column: 1 / -1; }
.member-coupon-entry > span:nth-child(2) { display: grid; gap: 4px; }
.member-coupon-entry strong { font-size: 13px; color: #80623d; }.member-coupon-entry small { font-size: 12px; color: #805126; }
.member-card button:hover { filter: brightness(.98); }
.member-panel { margin-top: 18px; scroll-margin-top: calc(var(--header-height) + 16px); }
.member-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; padding-bottom: 13px; border-bottom: 1px solid #efeee6; }
.member-tabs button { padding: 8px 12px; border: 0; border-radius: 8px; background: #f7f8f4; color: #5d6d57; font-size: 12px; cursor: pointer; }
.member-tabs button.active { background: #eaf2e8; color: #37694f; font-weight: 800; }
.member-empty { display: grid; justify-items: center; gap: 12px; padding: 34px 14px; text-align: center; color: #5d6d57; }
.member-empty > svg { width: 42px; height: 42px; color: #b7c6ab; }.member-empty strong { font-size: 14px; }.member-empty p { max-width: 360px; margin: 0; font-size: 12px; line-height: 1.8; color: #5d6d57; }
.member-order { padding: 18px; border: 1px solid #e7ebdf; border-radius: 14px; margin-bottom: 14px; }
.member-order-top, .member-order-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: #5d6d57; }
.member-order-top strong { color: #59816b; font-size: 12px; }.member-order-top span { overflow-wrap: anywhere; }
.member-order-item { display: flex; gap: 12px; align-items: center; margin: 18px 0; }
.member-order-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 9px; }.member-order-item > div { flex: 1; min-width: 0; display: grid; gap: 7px; }
.member-order-item strong { font-size: 13px; color: #405443; overflow-wrap: anywhere; }.member-order-item small { font-size: 12px; color: #5d6d57; }.member-order-item > span { font-size: 12px; white-space: nowrap; color: #657659; }
.member-order-bottom { border-top: 1px solid #eff0e7; padding-top: 13px; flex-wrap: wrap; }.member-order-bottom strong { color: var(--orange-dark); font-size: 14px; }
.member-order-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.member-order-actions:empty { display: none; }.member-order-actions button, .member-address footer button { padding: 7px 11px; border: 1px solid #cbd8c2; border-radius: 8px; background: white; color: #527452; font-size: 12px; cursor: pointer; }
.member-order-note { margin: 13px 0 0; padding: 11px; background: #f8f7ef; border-radius: 8px; font-size: 12px; line-height: 1.8; color: #5d6d57; overflow-wrap: anywhere; }
.member-aftersale-link { display:flex; width:100%; align-items:center; justify-content:space-between; gap:12px; border:1px solid #e1e8dc; text-align:left; cursor:pointer; min-height:52px; }
.member-aftersale-link > span:first-child { display:grid; gap:3px; min-width:0; }
.member-aftersale-link strong { color:#315d49; }
.member-aftersale-link > span:last-child { display:flex; align-items:center; gap:4px; flex-shrink:0; color:#315d49; font-weight:600; }
.member-aftersale-link svg { width:15px; height:15px; }
.member-aftersale-link:hover { background:#eef3e8; }
.member-aftersale-link:focus-visible { outline:2px solid #315d49; outline-offset:3px; }
.member-panel-note { margin: 0 0 16px; color: #5d6d57; font-size: 12px; line-height: 1.8; }
.support-welcome { display: flex; align-items: center; gap: 12px; padding: 17px; margin-bottom: 14px; border-radius: 13px; background: #f1f5ec; color: #51734f; }
.support-welcome strong { font-size: 14px; }.support-welcome p { margin: 6px 0 0; font-size: 12px; color: #5d6d57; }
.support-faq { margin: 26px 0; }.support-faq h3 { color: #607d52; font-size: 13px; }.support-faq details { border-bottom: 1px solid #e8eddf; }.support-faq summary { padding: 14px 0; font-size: 12px; color: #6a805d; cursor: pointer; }.support-faq p { color: #5d6d57; font-size: 12px; line-height: 1.9; margin: 0 0 15px; }
.support-record-heading { padding-top: 12px; }.support-record { position: relative; display: block; width: 100%; border: 1px solid #e3e9da; border-radius: 12px; padding: 16px 35px 16px 16px; margin-bottom: 10px; background: #fff; text-align: left; cursor: pointer; }.support-record > div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }.support-record strong { font-size: 13px; color: #567549; }.support-status { padding: 4px 7px; border-radius: 99px; background: #f8efdf; color: #805126; font-size: 12px; }.support-status.replied { background: #eaf3e5; color: #48613c; }.support-status.closed { background: #f3f4ef; color: #5d6d57; }.support-record > p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #5d6d57; }.support-record > small { font-size: 12px; color: #5d6d57; }.support-record > svg { position: absolute; width: 15px; height: 15px; right: 12px; top: calc(50% - 7px); color: #9dad90; }
.support-messages { max-height: 320px; overflow-y: auto; padding-right: 5px; margin-bottom: 18px; overscroll-behavior: contain; }.support-message { padding: 13px; margin: 0 22px 12px 0; border-radius: 12px; background: #f3f6ed; }.support-message.customer { margin: 0 0 12px 22px; background: #faf3e5; }.support-message strong { font-size: 12px; color: #48613c; }.support-message p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.8; color: #5d6d57; }.support-message small { font-size: 12px; color: #5d6d57; }
.member-ticket { display: flex; gap: 18px; align-items: center; padding: 20px; border: 1px solid #ead7b8; border-radius: 14px; margin-bottom: 12px; background: #fdf8ee; }
.member-ticket > div { display: grid; min-width: 68px; padding-right: 17px; border-right: 1px dashed #dbc69f; color: var(--orange-dark); }.member-ticket > div small { font-size: 12px; }.member-ticket > div strong { font-size: 32px; }
.member-ticket > section { min-width: 0; flex: 1; }.member-ticket h3 { margin: 0 0 8px; font-size: 14px; color: #8a724b; }.member-ticket p { margin: 0 0 7px; font-size: 12px; line-height: 1.7; color: #805126; }.member-ticket section small { font-size: 12px; color: #805126; }
.member-ticket > button { flex-shrink: 0; padding: 8px 12px; border: 0; border-radius: 99px; background: var(--orange-dark); color: white; font-size: 12px; cursor: pointer; }.member-ticket.inactive { filter: grayscale(1); opacity: .7; }
.member-panel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }.member-panel-toolbar p { margin: 0; color: #5d6d57; font-size: 12px; line-height: 1.8; }
.member-primary, .member-secondary { min-height: 40px; padding: 10px 16px; border: 0; border-radius: 9px; background: #36664f; color: white; font-size: 12px; font-weight: 700; cursor: pointer; }.member-secondary { border: 1px solid #d3ddc9; background: white; color: #527452; margin-right: 8px; margin-bottom: 8px; }.member-primary { flex-shrink: 0; }.member-primary:disabled { opacity: .5; cursor: wait; }
.member-address { padding: 18px; border: 1px solid #e3e9da; border-radius: 12px; margin-bottom: 12px; }.member-address > div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 11px; color: #496544; font-size: 13px; }.member-address b { padding: 3px 6px; border-radius: 4px; background: #f4ecd9; color: #805126; font-size: 12px; }.member-address > small { color: #5d6d57; font-size: 12px; }.member-address p { color: #5d6d57; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }.member-address footer { display: flex; flex-wrap: wrap; gap: 8px; }
.member-products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.member-products button { min-width: 0; padding: 0 0 13px; border: 1px solid #e8eadf; border-radius: 12px; background: white; overflow: hidden; text-align: left; cursor: pointer; }.member-products img { width: 100%; aspect-ratio: 1; object-fit: cover; }.member-products strong { display: block; margin: 12px 12px 8px; font-size: 12px; line-height: 1.6; color: #4c6144; }.member-products span { margin: 0 12px; font-size: 14px; font-weight: 800; color: var(--orange-dark); }
dialog.member-dialog { width: min(490px,calc(100% - 28px)); padding: 30px 24px 24px; border-radius: 18px; color: #4c6144; } .member-dialog h2 { margin: 0 35px 20px 0; font-size: 21px; line-height: 1.5; }.member-dialog p { line-height: 1.8; font-size: 12px; }.member-dialog form > .member-primary { width: 100%; margin-top: 10px; }
.member-field { display: grid; gap: 7px; margin-bottom: 16px; font-size: 12px; color: #6a7d5b; }.member-field input, .member-field select, .member-field textarea { width: 100%; min-width: 0; min-height: 43px; padding: 10px 12px; border: 1px solid #dce3d2; border-radius: 8px; background: white; font-size: 13px; color: #405443; }.member-field textarea { resize: vertical; }.member-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }.member-checkbox { display: flex; align-items: center; gap: 7px; font-size: 12px; margin-bottom: 15px; }.member-checkbox input { accent-color: #36664f; }.member-auth-toggle { width: 100%; padding: 18px 0 0; border: 0; background: transparent; color: #805126; font-size: 12px; cursor: pointer; }.member-form-error { margin: 12px 0 0; color: #a83f24; font-size: 12px; }
@media (max-width: 640px) {
  #profileView { padding-top: 16px; }.member-card, .member-panel { padding: 18px 14px; border-radius: 14px; }.member-identity { gap: 10px; padding-bottom: 19px; }.member-avatar { width: 46px; height: 46px; }.member-avatar img { width: 35px; height: 35px; }.member-person strong { font-size: 17px; }.member-login { padding: 8px 11px; font-size: 12px; }.member-block { padding-top: 16px; }.member-block + .member-block { margin-top: 17px; }.member-order-shortcuts { gap: 6px; }.member-order-shortcuts > button { font-size: 12px; min-height: 84px; border-radius: 9px; }.member-icon { width: 35px; height: 35px; border-radius: 10px; }.member-icon svg { width: 21px; height: 21px; }.member-services { gap: 8px; }.member-services > button { padding: 11px; gap: 9px; font-size: 12px; }.member-heading h2 { font-size: 14px; }.member-tabs { gap: 4px; }.member-tabs button { padding: 8px; font-size: 12px; }.member-panel { margin-top: 14px; }.member-order { padding: 13px; }.member-order-item { gap: 9px; }.member-order-item img { width: 52px; height: 52px; }.member-order-item strong { font-size: 12px; }.member-ticket { gap: 12px; padding: 14px 12px; flex-wrap: wrap; }.member-ticket > div { min-width: 58px; padding-right: 12px; }.member-ticket > div strong { font-size: 29px; }.member-ticket > section { flex-basis: 140px; }.member-ticket > button { margin-left: auto; }.member-ticket h3 { font-size: 13px; }.member-products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.member-products strong { margin-inline: 9px; font-size: 12px; }.member-products span { margin-inline: 9px; }.member-panel-toolbar { gap: 10px; }.member-panel-toolbar .member-primary { padding-inline: 12px; }.member-form-grid { grid-template-columns: 1fr; }dialog.member-dialog { padding: 28px 18px 20px; }
}

/* Match storefront controls and keep form text legible on phones. */
.member-login, .member-heading > button, .member-tabs button,
.member-ticket > button, .member-order-actions button, .member-address footer button,
.member-primary, .member-secondary, .member-auth-toggle { min-height: 44px; }
.member-field { color: #5d6d57; }
.member-order-top strong { color: #37694f; }
.member-field input, .member-field select, .member-field textarea { font-size: 16px; }
.member-field :is(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
