/* v501 — soft shopper identity. The search field keeps its existing geometry. */
.discover-intelligent-search{position:relative;}
.discover-shopper-account-trigger{flex:0 0 auto;}
.discover-shopper-account-trigger .discover-shopper-profile-glyph{
  display:grid!important;place-items:center;width:34px!important;height:34px!important;
  border-radius:50%;color:#fff!important;-webkit-text-fill-color:#fff!important;
  background:#00876a!important;font:800 12px/1 var(--font-ui,"Source Sans 3",Arial,sans-serif)!important;
  letter-spacing:.02em;overflow:hidden;
}
.discover-shopper-profile-glyph svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.discover-shopper-account-trigger.is-authenticated .discover-shopper-profile-glyph{background:#006349!important;}
.discover-shopper-account-trigger:hover .discover-shopper-profile-glyph,
.discover-shopper-account-trigger:focus-visible .discover-shopper-profile-glyph{box-shadow:0 0 0 4px color-mix(in srgb,#006349 16%,transparent);}

.shopper-soft-account-panel{
  position:absolute;z-index:220;top:calc(100% + 12px);right:var(--orchid-container-gutter,40px);width:min(390px,calc(100vw - 32px));
  max-height:min(620px,calc(100dvh - 170px));overflow:auto;overscroll-behavior:contain;
  box-sizing:border-box;border:1px solid var(--line,#d7d7d2);border-radius:18px;
  background:var(--surface-panel,#fff);color:var(--text-primary,#111);
  box-shadow:0 22px 65px rgba(0,0,0,.18);font-family:var(--font-ui,"Source Sans 3",Arial,sans-serif);
}
.shopper-soft-account-panel[hidden]{display:none!important;}
.shopper-soft-account-panel *{box-sizing:border-box;}
.shopper-soft-account__header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 20px 12px;}
.shopper-soft-account__header h2{margin:0;font:600 25px/1.08 var(--font-display,Georgia,serif);letter-spacing:-.02em;}
.shopper-soft-account__header p{margin:6px 0 0;color:var(--text-secondary,#60605c);font-size:13px;line-height:1.4;}
.shopper-soft-account__close{width:32px;height:32px;display:grid;place-items:center;flex:0 0 auto;padding:0;border:0;background:transparent;color:inherit;font-size:25px;line-height:1;cursor:pointer;}
.shopper-soft-account__modes{display:grid;grid-template-columns:1fr 1fr;margin:0 20px 16px;border-bottom:1px solid var(--line,#ddd);}
.shopper-soft-account__modes button{min-height:42px;border:0;border-bottom:2px solid transparent;background:transparent;color:inherit;font:700 13px/1 var(--font-ui,"Source Sans 3",Arial,sans-serif);cursor:pointer;}
.shopper-soft-account__modes button.is-active{border-bottom-color:#006349;color:#006349;}
.shopper-soft-account__form{display:grid;gap:13px;padding:0 20px 20px;}
.shopper-soft-account__form label{display:grid;gap:6px;color:var(--text-secondary,#5d5d59);font-size:12px;font-weight:700;}
.shopper-soft-account__form input{width:100%;min-height:46px;padding:0 13px;border:1px solid var(--line,#ccc);border-radius:10px;background:transparent;color:inherit;font:500 15px/1 var(--font-ui,"Source Sans 3",Arial,sans-serif);outline:none;}
.shopper-soft-account__form input:focus{border-color:#006349;box-shadow:0 0 0 3px color-mix(in srgb,#006349 12%,transparent);}
.shopper-soft-account__submit{min-height:46px;border:1px solid #006349;border-radius:10px;background:#006349;color:#fff;font:800 13px/1 var(--font-ui,"Source Sans 3",Arial,sans-serif);cursor:pointer;}
.shopper-soft-account__submit:disabled{opacity:.6;cursor:wait;}
.shopper-soft-account__terms{margin:0;color:var(--text-secondary,#6a6a66);font-size:11px;line-height:1.45;}
.shopper-soft-account__status{min-height:17px;margin:0;color:var(--text-secondary,#61615d);font-size:12px;line-height:1.4;}
.shopper-soft-account__status.is-error{color:#a51d1d;}
.shopper-soft-account__status.is-success{color:#006349;}

.shopper-soft-account__identity{display:flex;align-items:center;gap:12px;padding:20px;border-bottom:1px solid var(--line,#deded9);}
.shopper-soft-account__avatar{display:grid;place-items:center;width:46px;height:46px;flex:0 0 auto;border-radius:50%;background:#006349;color:#fff;font-weight:800;}
.shopper-soft-account__identity strong,.shopper-soft-account__identity span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.shopper-soft-account__identity span{margin-top:3px;color:var(--text-secondary,#666);font-size:12px;}
.shopper-soft-account__menu{display:grid;padding:8px;}
.shopper-soft-account__menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:inherit;text-align:left;font:650 14px/1.2 var(--font-ui,"Source Sans 3",Arial,sans-serif);cursor:pointer;}
.shopper-soft-account__menu button:hover,.shopper-soft-account__menu button:focus-visible{background:color-mix(in srgb,currentColor 6%,transparent);outline:none;}
.shopper-soft-account__menu button::after{content:"›";font-size:19px;font-weight:400;color:var(--text-secondary,#777);}
.shopper-soft-account__menu button[data-shopper-account-action="signout"]{margin-top:5px;border-top:1px solid var(--line,#ddd);border-radius:0;color:#a51d1d;}
.shopper-soft-account__menu button[data-shopper-account-action="signout"]::after{content:"";}
.shopper-soft-account__detail{padding:4px 20px 20px;}
.shopper-soft-account__back{margin:0 0 14px;padding:0;border:0;background:transparent;color:#006349;font:750 13px/1.2 var(--font-ui,"Source Sans 3",Arial,sans-serif);cursor:pointer;}
.shopper-soft-account__detail h3{margin:0 0 12px;font:600 22px/1.15 var(--font-display,Georgia,serif);}
.shopper-soft-account__items{display:grid;gap:8px;margin:0;padding:0;list-style:none;}
.shopper-soft-account__items li{display:grid;gap:3px;padding:11px 0;border-bottom:1px solid var(--line,#e3e3df);font-size:13px;}
.shopper-soft-account__items small,.shopper-soft-account__empty{color:var(--text-secondary,#666);font-size:12px;line-height:1.45;}
.shopper-soft-account__privacy{padding:12px;border-radius:10px;background:color-mix(in srgb,#006349 7%,transparent);font-size:12px;line-height:1.5;}

html[data-orchid-theme="dark"] .shopper-soft-account-panel,
body.dark-mode .shopper-soft-account-panel{--surface-panel:#111;--text-primary:#f7f7f3;--text-secondary:#aaa;--line:#333;background:#111;color:#f7f7f3;}

@media(max-width:600px){
  .shopper-soft-account-panel{position:absolute;top:calc(100% + 8px);right:var(--orchid-container-gutter,16px);left:var(--orchid-container-gutter,16px);width:auto;max-height:min(68svh,560px);border-radius:16px;}
  .shopper-soft-account__header{padding:17px 16px 11px;}
  .shopper-soft-account__modes{margin-inline:16px;}
  .shopper-soft-account__form{padding-inline:16px;}
  .discover-shopper-account-trigger .discover-shopper-profile-glyph{width:32px!important;height:32px!important;}
}
