/* MISCHEL account refresh, additive to the existing shop styles. Local preview only. */
html.mischel-account-route #main > :not(#mischel-account-page){display:none!important}
html.mischel-account-route body{background:#f8f5f0}
#mischel-account-page{display:block;max-width:1260px;margin:0 auto;padding:54px clamp(18px,4vw,58px) 86px;box-sizing:border-box;min-height:68vh}
#mischel-account-page[hidden]{display:none!important}
.mischel-account-page-intro{margin:0 0 27px;border-bottom:1px solid #e4dacc;padding:0 0 28px}
.mischel-account-page-intro h1{font-family:Georgia,serif;font-size:clamp(35px,4vw,52px);font-weight:400;line-height:1.15;color:#322920;margin:.22em 0 .16em}
.mischel-account-page-intro p:last-child{margin:0;color:#76685a}
#mischel-account-page #mischel-test-customer-dashboard{display:block;margin:0;padding:0;border:0;background:transparent}
#mischel-account-page #mischel-test-customer-dashboard[hidden]{display:none!important}
#mischel-account-guard{max-width:540px;border:1px solid #e2d5c0;background:#fffcf8;padding:30px}
#mischel-account-guard[hidden]{display:none!important}
#mischel-account-page .mischel-account-local-notice{padding:14px 18px;margin:0 0 26px;background:#efe8de;border-left:3px solid #ae894b;color:#6b5440;font-size:12px;line-height:1.6}
#mischel-account-page .mischel-account-header{background:#fffdf9;border:1px solid #e8dfd2;border-radius:4px;padding:20px 25px;margin:0 0 26px;display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:16px;align-items:center}
.mischel-personal-badge{width:54px;height:54px;display:grid;place-items:center;border-radius:50%;background:#f0e4d0;color:#8e6a35;font:28px Georgia,serif;border:1px solid #dec6a1}
#mischel-account-page .test-customer-summary{display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}
#mischel-account-page .test-customer-summary strong{font:normal 24px Georgia,serif;color:#2f281f}
#mischel-account-page .test-customer-summary span{font-size:13px;color:#6b6159}
#mischel-account-page .test-customer-summary small{font-size:11px;color:#82673e}
#mischel-account-page .mischel-account-header .shop-quiet{align-self:center}
#mischel-account-page .mischel-account-layout{grid-template-columns:minmax(195px,245px) minmax(0,1fr);gap:28px;align-items:start}
#mischel-account-page .mischel-account-nav{padding:7px 0;border:1px solid #e3d8c9;border-radius:3px;background:#fffdf9;gap:0}
#mischel-account-page .mischel-account-nav button{display:flex;align-items:center;gap:12px;width:100%;border:0;border-left:3px solid transparent;box-shadow:none;background:transparent;padding:15px 14px;font-size:14px;min-height:52px;font-weight:400;transition:background .15s,color .15s}
#mischel-account-page .mischel-account-nav button+button{border-top:1px solid #f2ede6}
#mischel-account-page .mischel-account-nav button[aria-selected="true"]{background:#f5ecdf;color:#523b20;border-left-color:#b28d53;box-shadow:none;font-weight:600}
#mischel-account-page .mischel-account-nav button:hover:not([aria-selected="true"]){background:#faf4eb;color:#795a32}
#mischel-account-page .mischel-account-nav button::before{content:'◇';width:21px;flex:0 0 21px;text-align:center;font-size:20px;font-family:Georgia,serif;font-weight:400;color:#9f804e}
#mischel-account-page [data-account-tab="profile"]::before{content:'♙'}
#mischel-account-page [data-account-tab="orders"]::before{content:'▤'}
#mischel-account-page [data-account-tab="messages"]::before{content:'✉'}
#mischel-account-page [data-account-tab="reviews"]::before{content:'☆'}
#mischel-account-page [data-account-tab="password"]::before{content:'⚙'}
#mischel-account-page .mischel-account-content{background:#fffdf9;border:1px solid #e5dbcc;border-radius:3px;padding:clamp(20px,3vw,35px);min-height:440px}
#mischel-account-page .mischel-account-content h4{font-family:Georgia,serif;font-weight:400;color:#342a20;font-size:25px;margin:4px 0 21px}
#mischel-account-page #test-customer-profile h4:not(:first-child){border-top:1px solid #eee5d8;padding-top:24px;margin-top:28px}
#mischel-account-page .mischel-account-password-fields{max-width:580px;gap:19px;margin:28px 0}
#mischel-account-page .mischel-account-password-fields input{background:#fffcf7}
#mischel-account-page .mischel-account-content .button{background:#302921;color:#fff}
#mischel-account-page .mischel-account-content .button:hover{background:#51402e}
#mischel-account-page .test-customer-order{background:#faf7f1;border:1px solid #e3d5c1;border-radius:4px;padding:18px;margin:12px 0}
.mischel-ordered-product{display:flex;align-items:center;gap:16px;margin:16px 0;border-bottom:1px solid #eae1d5;padding-bottom:14px}
.mischel-ordered-thumb{width:80px;height:80px;flex:0 0 80px;border-radius:4px;display:grid;place-items:center;background:#f2ebe1;color:#92754b;font:25px Georgia,serif;overflow:hidden}
.mischel-ordered-thumb img{width:100%;height:100%;object-fit:contain}
.mischel-ordered-product a,.mischel-ordered-product span{display:block;font-weight:600;color:#38291a;text-decoration:none}
.mischel-ordered-product a:hover{text-decoration:underline;color:#9e7842}
.mischel-ordered-product small{display:block;margin-top:6px;color:#79695b}
.mischel-welcome-toast{position:fixed;bottom:32px;left:50%;transform:translateX(-50%);background:#33291e;color:#fff;padding:13px 25px;border:1px solid #ae8d54;box-shadow:0 6px 26px #0002;z-index:9999;pointer-events:none}
/* Header menu: no rectangle or bulky button */
.mischel-usernav #account-register-open{display:flex;align-items:center;gap:8px;padding:7px 4px!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;color:#332b24!important;font:500 14px/1.4 Arial,sans-serif!important;min-height:40px;max-width:160px}
.mischel-usernav #account-register-open:hover,.mischel-usernav #account-register-open:focus-visible{color:#a78245!important}
.mischel-header-person-icon{display:inline-block;width:19px;height:19px;flex:0 0 19px;background:currentColor;mask:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="black" stroke-width="1.8" viewBox="0 0 24 24"%3E%3Ccircle cx="12" cy="8" r="3.5"/%3E%3Cpath d="M4 21v-2.5c0-3.5 3-6 8-6s8 2.5 8 6V21"/%3E%3C/svg%3E') center/contain no-repeat}
.mischel-header-name{max-width:102px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mischel-header-chevron{font:20px/1 Georgia,serif;transform:translateY(-2px);color:#9e7848}
.mischel-usernav-menu{border-radius:7px;padding:9px;box-shadow:0 15px 32px #24180e30}
.mischel-usernav-menu button{border-radius:4px}
/* Compact login form; registration remains the existing full form. */
#shop-checkout-dialog.mischel-login-compact{width:min(92vw,470px)!important;max-width:470px!important;padding:34px 28px!important}
#shop-checkout-dialog.mischel-login-compact>.eyebrow,#shop-checkout-dialog.mischel-login-compact>#checkout-dialog-title{display:none!important}
#shop-checkout-dialog.mischel-login-compact>.shop-demo-notice{font-size:11px;line-height:1.5;padding:12px 13px;margin:36px 0 12px}
#shop-checkout-dialog.mischel-login-compact #checkout-mode-legend,#shop-checkout-dialog.mischel-login-compact .checkout-account-options,#shop-checkout-dialog.mischel-login-compact #checkout-account-note{display:none!important}
#shop-checkout-dialog.mischel-login-compact #checkout-mode-section{border:none;padding:0;margin:0}
#shop-checkout-dialog.mischel-login-compact #checkout-login-panel{padding:0!important;margin:0!important;border:none!important;background:transparent!important}
#shop-checkout-dialog.mischel-login-compact #checkout-login-title{font-size:clamp(25px,4vw,32px);font-weight:400;margin:10px 0 15px}
#shop-checkout-dialog.mischel-login-compact #checkout-login-panel .form-row{display:flex;flex-direction:column;gap:9px}
#shop-checkout-dialog.mischel-login-compact #checkout-login-panel .form-row>label,#shop-checkout-dialog.mischel-login-compact #checkout-login-panel .form-row>.checkout-password-entry{width:100%!important;max-width:100%;min-width:0}
#shop-checkout-dialog.mischel-login-compact #checkout-login-panel input{width:100%;box-sizing:border-box}
#shop-checkout-dialog.mischel-login-compact #checkout-login-panel .checkout-account-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px}
#shop-checkout-dialog.mischel-login-compact #checkout-login-panel .checkout-account-actions .button{width:100%;text-align:center}
#shop-checkout-dialog.mischel-login-compact #checkout-login-panel .checkout-go-guest{display:none}
#shop-checkout-dialog.mischel-login-compact .mischel-remember-option{display:flex;align-items:center;gap:9px;margin:18px 0 12px;font-size:13px}
#shop-checkout-dialog.mischel-login-compact .mischel-remember-option input{width:auto!important;accent-color:#a88245}
#shop-checkout-dialog.mischel-login-compact .mischel-remember-option small{font-size:11px;color:#7a6a56}
.mischel-remember-option{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:15px 0;color:#4e4032;font-size:13px}
.mischel-remember-option input{accent-color:#a9844d;width:auto!important}
@media(max-width:850px){
 #mischel-account-page .mischel-account-layout{grid-template-columns:185px minmax(0,1fr);gap:14px}
 #mischel-account-page .mischel-account-content{padding:18px}
}
@media(max-width:680px){
 #mischel-account-page{padding:26px 13px 50px}
 #mischel-account-page .mischel-account-header{grid-template-columns:44px 1fr;gap:12px;padding:15px}
 .mischel-personal-badge{width:42px;height:42px;font-size:21px}
 #mischel-account-page .mischel-account-header .shop-quiet{grid-column:2;justify-self:start}
 #mischel-account-page .mischel-account-layout{display:block}
 #mischel-account-page .mischel-account-nav{display:flex;flex-wrap:nowrap;gap:4px;overflow:auto;margin:0 0 16px;padding:5px}
 #mischel-account-page .mischel-account-nav button{min-width:max-content;width:auto;padding:10px;min-height:42px;font-size:12px;white-space:nowrap;border-left:0;border-bottom:3px solid transparent}
 #mischel-account-page .mischel-account-nav button[aria-selected="true"]{border-left:0;border-bottom-color:#b28d53}
 #mischel-account-page .mischel-account-nav button::before{width:auto;flex:0 0 auto}
 #mischel-account-page .mischel-account-content{min-height:320px}
 .mischel-ordered-thumb{width:60px;height:60px;flex-basis:60px}
 #shop-checkout-dialog.mischel-login-compact{padding:22px 17px!important}
}


/* ================================================================
   MISCHEL: unified, gently floating action buttons across storefront,
   checkout, client account, and local administration.
   Visual CSS only. No changes to event handlers or persisted data.
   ================================================================ */
:root { --mischel-btn-radius: 11px; --mischel-btn-shadow: 0 3px 9px rgba(51,39,25,.13); }

/* Keep the semantic look of primary actions without full-width blocks. */
:is(button.button,a.button,button.secondary,.test-profile-actions button,
    .checkout-account-secondary,.shop-quiet,.pd-quiet,
    .mischel-usernav-menu button,.footer-admin-bar .footer-editors button,
    .business-tabs button,.admin-auth-actions button,
    .shop-dialog-actions button,.mischel-account-actions button,
    #mischel-account-page .mischel-account-nav button,
    #mischel-account-page .mischel-account-content button,
    #shop-checkout-dialog .checkout-account-actions button,
    #shop-checkout-dialog .checkout-submit button,
    #catalog-admin :is(.catalog-browse-actions,.catalog-admin-switch,.catalog-form-actions,.catalog-duplicate-actions) button,
    #sets-admin button.button,#promo-admin button.button,#stats-admin button.button,
    #admin button.button) {
  border-radius: var(--mischel-btn-radius) !important;
  transition: transform .16s ease, background-color .16s ease,
              color .16s ease, box-shadow .16s ease,
              border-color .16s ease;
}

:is(button.button,a.button,button.secondary,.test-profile-actions button,
    .checkout-account-secondary,.footer-admin-bar .footer-editors button,
    .business-tabs button,.admin-auth-actions button,
    .shop-dialog-actions button,
    #shop-checkout-dialog .checkout-account-actions button.button,
    #shop-checkout-dialog .checkout-submit button.button,
    #catalog-admin :is(.catalog-browse-actions,.catalog-admin-switch,.catalog-form-actions,.catalog-duplicate-actions) button,
    #sets-admin button.button,#promo-admin button.button,#stats-admin button.button,
    #admin button.button) {
  box-shadow: var(--mischel-btn-shadow);
}

:is(button.button,a.button,button.secondary,.test-profile-actions button,
    .checkout-account-secondary,.footer-admin-bar .footer-editors button,
    .business-tabs button,.admin-auth-actions button,
    .shop-dialog-actions button,
    #mischel-account-page .mischel-account-nav button,
    #mischel-account-page .mischel-account-content button.button,
    #catalog-admin :is(.catalog-browse-actions,.catalog-admin-switch,.catalog-form-actions,.catalog-duplicate-actions) button):not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(51,39,25,.18);
}
:is(button.button,a.button,button.secondary,.test-profile-actions button,
    .checkout-account-secondary,.footer-admin-bar .footer-editors button,
    .business-tabs button,.admin-auth-actions button,
    .shop-dialog-actions button,
    #mischel-account-page .mischel-account-nav button,
    #mischel-account-page .mischel-account-content button.button,
    #catalog-admin :is(.catalog-browse-actions,.catalog-admin-switch,.catalog-form-actions,.catalog-duplicate-actions) button):active {
  transform: translateY(0);
}
:is(button.button,a.button,button.secondary,.test-profile-actions button,
    .checkout-account-secondary,.footer-admin-bar .footer-editors button,
    .business-tabs button,.admin-auth-actions button,
    .shop-dialog-actions button):disabled {
  opacity:.55; box-shadow:none; cursor:not-allowed;
}

/* Account: separate floating navigation buttons, not a continuous frame. */
#mischel-account-page .mischel-account-nav {
  position: sticky; top: 20px; align-self:start;
  border:0!important; background:transparent!important;
  border-radius:0; padding:0!important; gap:11px!important;
  box-shadow:none!important;
}
#mischel-account-page .mischel-account-nav button,
#mischel-account-page .mischel-account-nav button+button {
  border:1px solid #e5d7c4!important;
  border-left:3px solid transparent!important;
  background:#fffdf9!important; color:#382c20;
  border-radius:12px!important;
  box-shadow: 0 3px 11px rgba(65,48,29,.09)!important;
  margin:0!important;
}
#mischel-account-page .mischel-account-nav button:hover {
  background:#fcf7ee!important;
  box-shadow:0 7px 17px rgba(65,48,29,.14)!important;
}
#mischel-account-page .mischel-account-nav button[aria-selected="true"] {
  border-left-color:#ad8545!important;
  border-color:#d9c4a3!important;
  background:#f3e7d3!important;
  box-shadow:0 5px 15px rgba(80,54,20,.14)!important;
  font-weight:600;
}
#mischel-account-page .mischel-account-header {
  border:0; border-radius:14px;
  box-shadow:0 4px 18px rgba(65,48,29,.09);
}
#mischel-account-page .mischel-account-content {
  border:0; border-radius:14px;
  box-shadow:0 4px 19px rgba(65,48,29,.07);
}
#mischel-account-page .mischel-account-content .button {
  width:auto!important; min-width:155px;
  min-height:43px; padding:11px 19px!important;
  justify-content:center!important;
  box-shadow:var(--mischel-btn-shadow);
}
/* Secondary account controls should remain visually lighter. */
#mischel-account-page :is(.shop-quiet,button.secondary) {
  border:1px solid #d9c4a4;
  background:#fffaf2;
  padding:10px 17px;
  border-radius:10px!important;
  text-decoration:none;
  box-shadow:0 2px 8px rgba(65,48,29,.08);
}
#mischel-account-page :is(.shop-quiet,button.secondary):hover {
  background:#f3e5d0;
  transform:translateY(-1px);
}

/* Compact sign-in: moderate, centered rounded button, not a full-width bar. */
#shop-checkout-dialog.mischel-login-compact #checkout-login-panel .checkout-account-actions {
  align-items:center!important; justify-content:center!important;
  gap:12px!important;
}
#shop-checkout-dialog.mischel-login-compact #checkout-login-panel #checkout-login-demo {
  width:auto!important; max-width:100%!important;
  min-width:172px; min-height:45px;
  padding:12px 25px!important;
  border-radius:11px!important;
  justify-content:center!important;
  align-self:center!important;
  box-shadow:0 4px 13px rgba(48,42,36,.20);
}
#shop-checkout-dialog.mischel-login-compact #checkout-login-panel .checkout-account-actions .shop-quiet {
  align-self:center!important;
  width:auto!important;
  text-align:center;
}

/* Prevent the golden up-arrow from obscuring text in the narrow login dialog.
   Longer checkout/registration dialogs keep their navigation arrow. */
#shop-checkout-dialog.mischel-login-compact > #mischel-checkout-up {
  display:none!important;
}
#shop-checkout-dialog.mischel-login-compact #checkout-login-panel {
  padding-bottom:24px!important;
}

/* Keep small close, photo, search, and quantity controls compact and usable. */
:is(.icon,.close,.lightbox-arrow,.lightbox-control,
    .pd-photo-nav,.mischel-header-person-icon,
    .qty-control button,#mischel-checkout-up,#back-to-top) {
  transition: background-color .16s ease, color .16s ease, opacity .16s ease;
}

@media (max-width:680px) {
 #mischel-account-page .mischel-account-nav {
   position:static;display:flex;gap:9px!important;overflow-x:auto;
   padding:3px 0 11px!important;
 }
 #mischel-account-page .mischel-account-nav button,
 #mischel-account-page .mischel-account-nav button+button {
   border-left:1px solid #e5d7c4!important;
   border-bottom:3px solid transparent!important;
 }
 #mischel-account-page .mischel-account-nav button[aria-selected="true"] {
   border-bottom-color:#ad8545!important;
 }
 #shop-checkout-dialog.mischel-login-compact #checkout-login-panel #checkout-login-demo {
   min-width:155px;
 }
}
@media (prefers-reduced-motion:reduce) {
 :is(button.button,a.button,button.secondary,.test-profile-actions button,
     .checkout-account-secondary,.footer-admin-bar .footer-editors button,
     #mischel-account-page .mischel-account-nav button,
     #mischel-account-page .mischel-account-content button.button) {
   transition:none!important;transform:none!important;
 }
}

/* Customer order actions: separate repeat purchase and history-hide controls. */
#mischel-account-page .mischel-customer-order-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0 4px}
#mischel-account-page .mischel-customer-order-actions button{padding:10px 14px;min-height:38px;max-width:100%;font-size:12px}
#mischel-account-page .mischel-order-remove{color:#654c40;border:1px solid #ddcfc2;background:transparent}
#mischel-account-page .mischel-order-action-status{margin:7px 0 0;font-size:12px;color:#765d47;line-height:1.5}
@media(max-width:490px){#mischel-account-page .mischel-customer-order-actions{align-items:stretch;flex-direction:column}
#mischel-account-page .mischel-customer-order-actions button{width:100%}}

#mischel-account-page [data-account-tab="notifications"]::before{content:'♧'}
