/* Elphine Retreat – My Account UI
   Scoped to the account screen; header/footer and other pages stay untouched. */

:root{
  --elphine-cream:#f7f2ea;
  --elphine-cream-2:#efe7dc;
  --elphine-brown:#3b281a;
  --elphine-plum:#572448;
  --elphine-gold:#c79c55;
  --elphine-gold-soft:#ead7b7;
  --elphine-text:#28261f;
  --elphine-muted:#766f65;
  --elphine-white:#fffdfa;
  --elphine-border:#e3d9cd;
  --elphine-green:#56764f;
  --elphine-red:#8a4b3c;
  --elphine-serif:Georgia,"Times New Roman",serif;
  --elphine-shadow:0 18px 45px rgba(59,40,26,.08);
}

/* Full-bleed cream canvas (body class is added by the plugin on this page only),
   so the boxed theme container no longer leaves white gutters. */
body.elphine-account-screen{background:var(--elphine-cream) !important;}

.elphine-account-page,
.elphine-account-page *{box-sizing:border-box;}

.elphine-account-page{
  width:100%;
  margin:0;
  padding:56px 0 96px;
  background:var(--elphine-cream);
  color:var(--elphine-text);
}

.elphine-account-hero,
.elphine-account-motopress{width:100%;margin-inline:auto;}

/* ---------- Hero ---------- */
.elphine-account-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:32px;
  margin:0 0 40px;
}
.elphine-account-hero-copy{min-width:0;}

.elphine-account-kicker,
.elphine-account-motopress .mphb-account-content::before{
  color:var(--elphine-gold);
  font-size:11px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:4px;
  text-transform:uppercase;
}

.elphine-account-page .elphine-account-hero h1{
  margin:14px 0 12px;
  color:var(--elphine-brown);
  font-family:var(--elphine-serif);
  font-size:clamp(36px,4.2vw,56px);
  font-weight:400;
  line-height:1.05;
  letter-spacing:-1.2px;
}
.elphine-account-page .elphine-account-hero p{
  max-width:620px;
  margin:0;
  color:var(--elphine-muted);
  font-size:16px;
  line-height:1.75;
}

.elphine-account-hero-button{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:14px;
  padding:9px 9px 9px 22px;
  border-radius:999px;
  background:var(--elphine-brown);
  color:#fff !important;
  text-decoration:none !important;
  font-size:12px;
  font-weight:700;
  letter-spacing:.8px;
  text-transform:uppercase;
  transition:transform .2s ease;
  box-shadow:var(--elphine-shadow);
}
.elphine-account-hero-button:hover{color:#fff !important;transform:translateY(-2px);}
.elphine-arrow{
  width:38px;height:38px;
  display:grid;place-items:center;
  border-radius:50%;
  background:#fff;color:var(--elphine-brown);
  font-size:18px;
}

/* ---------- Layout: sidebar + content ----------
   MotoPress' wrapper is .mphb_sc_account (underscores). The theme turns it into
   a 20%/80% flex row for logged-in users and MotoPress adds floats + a clearfix;
   all of that is neutralised here in favour of a fixed-width sidebar grid. */
.elphine-account-motopress .mphb_sc_account{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
}
.elphine-account-motopress .mphb_sc_account::after{content:none !important;display:none !important;}

.logged-in .elphine-account-motopress .mphb_sc_account{
  display:grid !important;
  grid-template-columns:290px minmax(0,1fr) !important;
  gap:28px !important;
  align-items:start !important;
}

.elphine-account-motopress .mphb-account-menu,
.elphine-account-motopress .mphb-account-content{
  float:none !important;
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
}

/* ---------- Sidebar ---------- */
.elphine-account-motopress .mphb-account-menu{
  position:sticky;
  top:130px;
  padding:26px 18px 18px !important;
  border-radius:24px !important;
  background:var(--elphine-brown) !important;
  color:#fff;
  box-shadow:var(--elphine-shadow);
}
.admin-bar .elphine-account-motopress .mphb-account-menu{top:162px;}

.elphine-account-motopress .mphb-account-menu ul{
  display:flex !important;
  flex-direction:column !important;
  gap:4px !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  list-style:none !important;
}

.elphine-account-motopress .mphb-account-menu li{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  list-style:none !important;
}
.elphine-account-motopress .mphb-account-menu li::marker{content:none;}

.elphine-account-motopress .mphb-account-menu li > a{
  position:relative;
  display:flex !important;
  align-items:center !important;
  width:100% !important;
  min-height:48px !important;
  margin:0 !important;
  padding:12px 16px 12px 42px !important;
  border:0 !important;
  border-radius:14px !important;
  background:transparent !important;
  color:rgba(255,255,255,.84) !important;
  text-align:left !important;
  text-decoration:none !important;
  white-space:normal !important;
  font-size:14px !important;
  line-height:1.25 !important;
  letter-spacing:.2px;
  transition:background .2s ease, color .2s ease;
}
.elphine-account-motopress .mphb-account-menu li > a::before{
  content:"";
  position:absolute;
  left:18px;
  top:50%;
  width:8px;
  height:8px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:50%;
  transform:translateY(-50%);
}
.elphine-account-motopress .mphb-account-menu li > a:hover{
  background:rgba(255,255,255,.07) !important;
  color:#fff !important;
}
.elphine-account-motopress .mphb-account-menu li.is-active > a{
  background:var(--elphine-plum) !important;
  color:#fff !important;
}
.elphine-account-motopress .mphb-account-menu li.is-active > a::before{
  background:var(--elphine-gold);
  border-color:var(--elphine-gold);
}

/* Logout sits apart at the bottom. */
.elphine-account-motopress .mphb-account-menu li:last-child{
  margin-top:10px !important;
  padding-top:10px !important;
  border-top:1px solid rgba(255,255,255,.12);
}

/* Profile block (injected by JS as the first menu item). */
.elphine-account-motopress .mphb-account-menu li.elphine-account-profile{
  margin:0 0 12px !important;
  padding:0 6px 20px !important;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.elphine-account-profile__avatar{
  width:60px;height:60px;
  display:grid;place-items:center;
  margin-bottom:14px;
  border-radius:50%;
  background:var(--elphine-gold-soft);
  color:var(--elphine-plum);
  font-family:var(--elphine-serif);
  font-size:23px;
}
.elphine-account-profile__name{
  color:#fff;
  font-size:18px;
  font-weight:600;
  line-height:1.3;
  margin-bottom:4px;
  overflow-wrap:anywhere;
}
.elphine-account-profile__email{
  color:rgba(255,255,255,.6);
  font-size:12px;
  line-height:1.5;
  overflow-wrap:anywhere;
}

/* ---------- Content card ---------- */
.elphine-account-motopress .mphb-account-content{
  padding:34px 36px !important;
  border:1px solid var(--elphine-border) !important;
  border-radius:24px !important;
  background:var(--elphine-white) !important;
  box-shadow:var(--elphine-shadow);
  /* Visible, so dropdowns (e.g. Country) are never clipped. */
  overflow:visible !important;
}
.elphine-account-motopress .mphb-account-content::before{
  content:"GUEST AREA";
  display:block;
  margin-bottom:10px;
}

/* Logged out: the login card stays a comfortable width under the hero. */
body:not(.logged-in) .elphine-account-motopress .mphb-account-content{max-width:620px !important;}

/* Generic MotoPress text. :where() keeps specificity low so dashboard rules win. */
.elphine-account-motopress .mphb-account-content :where(p){
  margin-top:0;
  color:var(--elphine-muted);
  font-size:15px;
  line-height:1.8;
}
.elphine-account-motopress .mphb-account-content :where(strong){color:var(--elphine-brown);}
.elphine-account-motopress .mphb-account-content :where(a){
  color:var(--elphine-plum);
  text-underline-offset:4px;
}

/* ---------- Dashboard ---------- */
.elphine-dash{width:100%;min-width:0;}

.elphine-dash__head{margin:0 0 24px;}
.elphine-dash .elphine-dash__title{
  margin:0 0 6px;
  color:var(--elphine-brown);
  font-family:var(--elphine-serif);
  font-size:clamp(26px,2.6vw,34px);
  font-weight:400;
  line-height:1.1;
  letter-spacing:-.6px;
}
.elphine-dash .elphine-dash__intro{
  margin:0;
  color:var(--elphine-muted);
  font-size:15px;
  line-height:1.7;
}

.elphine-dash__grid{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  gap:18px;
}

.elphine-dash__card{
  min-width:0;
  padding:22px;
  border:1px solid var(--elphine-border);
  border-radius:20px;
  background:var(--elphine-cream);
}
.elphine-dash__card--stay{
  grid-row:span 2;
  display:flex;
  flex-direction:column;
}

.elphine-dash__eyebrow{
  margin:0 0 14px;
  color:var(--elphine-gold);
  font-size:11px;
  font-weight:700;
  letter-spacing:3px;
  text-transform:uppercase;
}

/* Status badge; colour follows the real MotoPress status. */
.elphine-badge{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:1px;
  text-transform:uppercase;
  background:var(--elphine-cream-2);
  color:var(--elphine-brown);
  white-space:nowrap;
}
.elphine-badge.is-confirmed{background:#e7f0e3;color:var(--elphine-green);}
.elphine-badge.is-pending{background:#f6ecd6;color:#8a6a1f;}
.elphine-badge.is-cancelled{background:#f6e4de;color:var(--elphine-red);}
.elphine-badge.is-neutral{background:var(--elphine-cream-2);color:var(--elphine-muted);}

/* Next stay */
.elphine-stay{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:18px;
  min-height:0;
}
.elphine-stay__media{
  position:relative;
  flex:1 1 auto;
  min-height:210px;
  border-radius:14px;
  overflow:hidden;
  background:var(--elphine-brown);
}
.elphine-stay__media img{
  position:absolute;
  inset:0;
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  margin:0 !important;
  object-fit:cover;
}
.elphine-stay__media .elphine-badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index:1;
  box-shadow:0 6px 18px rgba(0,0,0,.16);
}
.elphine-stay__media.is-empty::after{
  content:"Elphine Retreat";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:rgba(255,255,255,.7);
  font-family:var(--elphine-serif);
  font-size:20px;
  letter-spacing:1px;
}

.elphine-dash .elphine-stay__title{
  margin:0 0 14px;
  color:var(--elphine-brown);
  font-family:var(--elphine-serif);
  font-size:24px;
  font-weight:400;
  line-height:1.2;
}
.elphine-dash .elphine-stay__title a{color:inherit !important;text-decoration:none !important;}
.elphine-dash .elphine-stay__title a:hover{color:var(--elphine-plum) !important;}

.elphine-dash .elphine-stay__facts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 16px;
  margin:0 0 20px !important;
  padding:0 !important;
  list-style:none !important;
}
.elphine-dash .elphine-stay__facts li{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
  margin:0 !important;
  padding:0 !important;
  list-style:none !important;
}
.elphine-stay__label{
  color:var(--elphine-muted);
  font-size:10px;
  font-weight:700;
  letter-spacing:1.4px;
  text-transform:uppercase;
}
.elphine-stay__value{
  color:var(--elphine-text);
  font-size:15px;
  font-weight:600;
  line-height:1.35;
}

.elphine-stay__empty{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  min-height:260px;
  padding:6px 2px;
}
.elphine-dash .elphine-stay__empty h3{
  margin:0 0 10px;
  color:var(--elphine-brown);
  font-family:var(--elphine-serif);
  font-size:26px;
  font-weight:400;
  line-height:1.15;
}
.elphine-dash .elphine-stay__empty p{
  max-width:34ch;
  margin:0 0 20px;
  color:var(--elphine-muted);
  font-size:15px;
  line-height:1.7;
}

/* Booking snapshot */
.elphine-dash .elphine-snapshot{margin:0 !important;padding:0 !important;}
.elphine-snapshot__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:11px 0;
  border-bottom:1px solid var(--elphine-border);
}
.elphine-snapshot__row:first-child{padding-top:0;}
.elphine-snapshot__row:last-child{border-bottom:0;padding-bottom:0;}
.elphine-dash .elphine-snapshot dt{
  flex:0 0 auto;
  margin:0;
  color:var(--elphine-muted);
  font-size:11px;
  font-weight:700;
  letter-spacing:1.2px;
  text-transform:uppercase;
}
.elphine-dash .elphine-snapshot dd{
  margin:0 !important;
  color:var(--elphine-brown);
  font-size:14px;
  font-weight:600;
  line-height:1.4;
  text-align:right;
  overflow-wrap:anywhere;
}
.elphine-dash .elphine-snapshot dd.elphine-snapshot__total{
  font-family:var(--elphine-serif);
  font-size:22px;
  font-weight:400;
}
.elphine-snapshot__total .mphb-price{color:var(--elphine-plum);}
.elphine-nowrap{white-space:nowrap;}
.elphine-dash .elphine-snapshot__empty{margin:0;color:var(--elphine-muted);font-size:14px;line-height:1.7;}

/* Need help */
.elphine-dash .elphine-help__title{
  margin:0 0 8px;
  color:var(--elphine-brown);
  font-family:var(--elphine-serif);
  font-size:22px;
  font-weight:400;
  line-height:1.2;
}
.elphine-dash .elphine-help__text{
  margin:0 0 18px;
  color:var(--elphine-muted);
  font-size:14px;
  line-height:1.7;
}
.elphine-help__actions{display:flex;flex-wrap:wrap;gap:10px;}

/* Buttons */
.elphine-account-page .elphine-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:12px 22px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  line-height:1;
  letter-spacing:1px;
  text-transform:uppercase;
  text-decoration:none !important;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease, border-color .2s ease;
}
.elphine-account-page .elphine-btn--solid{
  border:1px solid var(--elphine-plum);
  background:var(--elphine-plum);
  color:#fff !important;
}
.elphine-account-page .elphine-btn--solid:hover{
  border-color:var(--elphine-brown);
  background:var(--elphine-brown);
  transform:translateY(-1px);
}
.elphine-account-page .elphine-btn--ghost{
  border:1px solid var(--elphine-border);
  background:transparent;
  color:var(--elphine-brown) !important;
}
.elphine-account-page .elphine-btn--ghost:hover{background:#fff;}
.elphine-stay__body .elphine-btn{align-self:flex-start;}

.elphine-dash .elphine-dash__admin-note{
  margin:16px 0 0;
  padding:12px 14px;
  border-radius:12px;
  background:#f8ece8;
  color:var(--elphine-red);
  font-size:13px;
  line-height:1.6;
}

/* ---------- Tab titles (added by JS on My Bookings / Account Details) ---------- */
.elphine-account-motopress .elphine-tab-title{
  margin:0 0 22px;
  color:var(--elphine-brown);
  font-family:var(--elphine-serif);
  font-size:clamp(26px,2.6vw,34px);
  font-weight:400;
  line-height:1.1;
  letter-spacing:-.6px;
}

/* ---------- Bookings table (real MotoPress data) ---------- */
.elphine-account-motopress table.mphb-account-bookings{
  display:table !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
  border:1px solid var(--elphine-border) !important;
  border-radius:20px !important;
  background:#fff !important;
  overflow:hidden !important;
}
.elphine-account-motopress table.mphb-account-bookings th{
  padding:16px !important;
  background:var(--elphine-cream) !important;
  color:var(--elphine-brown) !important;
  border-bottom:1px solid var(--elphine-border) !important;
  font-size:11px !important;
  letter-spacing:1px;
  text-transform:uppercase;
  text-align:left;
}
.elphine-account-motopress table.mphb-account-bookings td{
  padding:18px 16px !important;
  border-bottom:1px solid #eee8df !important;
  background:#fff !important;
  color:var(--elphine-muted) !important;
  font-size:13px !important;
}
.elphine-account-motopress table.mphb-account-bookings tr:last-child td{border-bottom:0 !important;}
.elphine-account-motopress .booking-actions a{
  display:inline-block;
  padding:9px 14px;
  border-radius:999px;
  background:var(--elphine-plum);
  color:#fff !important;
  text-decoration:none;
  font-size:11px;
  font-weight:700;
}

/* ---------- Account details form (real MotoPress fields + nonce) ---------- */
.elphine-account-motopress form.mphb-account-details-form{width:100%;margin:0;}
.elphine-account-motopress .mphb-account-details{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:18px !important;
  width:100% !important;
  margin:0 0 30px !important;
}
.elphine-account-motopress .mphb-account-details > p{min-width:0 !important;margin:0 !important;}
.elphine-account-motopress .mphb-account-details > p label,
.elphine-account-motopress .mphb-account-change-password label{
  display:inline-block !important;
  margin:0 0 8px !important;
  color:var(--elphine-brown) !important;
  font-size:11px !important;
  font-weight:700 !important;
  letter-spacing:1.2px;
  text-transform:uppercase;
}
/* MotoPress prints the "required" asterisk after the label; keep it on the label line. */
.elphine-account-motopress .mphb-account-details > p abbr{
  margin-left:4px;
  border:0 !important;
  color:var(--elphine-plum);
  font-size:12px;
  text-decoration:none !important;
  cursor:help;
}
.elphine-account-motopress .mphb-account-details > p input,
.elphine-account-motopress .mphb-account-details > p select,
.elphine-account-motopress .mphb-account-change-password input{
  width:100% !important;
  max-width:100% !important;
  min-height:50px !important;
  margin:0 !important;
  padding:12px 15px !important;
  border:1px solid var(--elphine-border) !important;
  border-radius:13px !important;
  background:#fff !important;
  color:var(--elphine-text) !important;
  box-shadow:none !important;
  outline:none !important;
}
/* Inputs go on their own line under the label. Selects are deliberately left out:
   the theme hides them with an inline display:none when it swaps in nice-select. */
.elphine-account-motopress .mphb-account-details > p input,
.elphine-account-motopress .mphb-account-change-password input{display:block !important;}
.elphine-account-motopress .mphb-account-details > p input:focus,
.elphine-account-motopress .mphb-account-details > p select:focus,
.elphine-account-motopress .mphb-account-change-password input:focus{
  border-color:var(--elphine-gold) !important;
  box-shadow:0 0 0 3px rgba(199,156,85,.14) !important;
}
/* Username is read-only in MotoPress; make that visible. */
.elphine-account-motopress .mphb-account-details > p input[readonly]{
  background:#f8f4ef !important;
  color:var(--elphine-muted) !important;
  cursor:not-allowed;
}
/* The theme swaps selects for nice-select dropdowns; match the text inputs. */
.elphine-account-motopress .mphb-account-details .nice-select{
  float:none !important;
  display:flex !important;
  align-items:center !important;
  width:100% !important;
  height:auto !important;
  min-height:50px !important;
  margin:0 !important;
  padding:0 40px 0 15px !important;
  border:1px solid var(--elphine-border) !important;
  border-radius:13px !important;
  background:#fff !important;
  color:var(--elphine-text) !important;
  font-size:14px !important;
  line-height:1.3 !important;
}
.elphine-account-motopress .mphb-account-details .nice-select.open,
.elphine-account-motopress .mphb-account-details .nice-select:focus{
  border-color:var(--elphine-gold) !important;
  box-shadow:0 0 0 3px rgba(199,156,85,.14) !important;
}
.elphine-account-motopress .mphb-account-details .nice-select .list{
  width:100% !important;
  max-height:280px;
  overflow-y:auto;
  border-radius:13px !important;
}
.elphine-account-motopress .mphb-account-change-password{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:18px !important;
  width:100% !important;
  margin:0 !important;
  padding:28px 0 0 !important;
  border-top:1px solid var(--elphine-border) !important;
}
.elphine-account-motopress .mphb-account-change-password > p{margin:0 !important;}
/* MotoPress' own "Change Password" line becomes the section heading. */
.elphine-account-motopress .mphb-account-change-password > p:first-child{grid-column:1 / -1;}
.elphine-account-motopress .mphb-account-change-password > p:first-child strong{
  display:block;
  color:var(--elphine-brown);
  font-family:var(--elphine-serif);
  font-size:26px;
  font-weight:400;
  line-height:1.1;
}
.elphine-account-motopress form.mphb-account-details-form > p:last-child{margin-top:26px !important;}
.elphine-account-motopress form.mphb-account-details-form .button,
.elphine-account-motopress form.mphb-account-details-form button[type="submit"],
.elphine-account-motopress form.mphb-account-details-form input[type="submit"]{
  min-width:170px !important;
  min-height:50px !important;
  padding:13px 24px !important;
  border:0 !important;
  border-radius:999px !important;
  background:var(--elphine-plum) !important;
  color:#fff !important;
  font-weight:700 !important;
  cursor:pointer;
}

/* ---------- Login (logged out) ---------- */
.elphine-account-motopress .mphb-login-form{width:100%;}
.elphine-account-motopress .mphb-login-form form p{margin-bottom:18px;}
.elphine-account-motopress .mphb-login-form label{
  display:block;
  margin-bottom:8px;
  color:var(--elphine-brown);
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
}
.elphine-account-motopress .mphb-login-form input[type="text"],
.elphine-account-motopress .mphb-login-form input[type="password"]{
  width:100%;
  min-height:50px;
  padding:12px 15px;
  border:1px solid var(--elphine-border);
  border-radius:13px;
  background:#fff;
}
.elphine-account-motopress .mphb-login-form input[type="submit"]{
  border:0;
  border-radius:999px;
  background:var(--elphine-plum);
  color:#fff;
  padding:14px 26px;
  font-weight:700;
  cursor:pointer;
}

/* ---------- Notices ---------- */
.elphine-account-motopress .mphb-data-success,
.elphine-account-motopress .mphb-data-incorrect{
  padding:14px 16px !important;
  border-radius:14px !important;
  font-size:13px !important;
}
.elphine-account-motopress .mphb-data-success{background:#edf4ea !important;color:var(--elphine-green) !important;}
.elphine-account-motopress .mphb-data-incorrect{background:#f8ece8 !important;color:var(--elphine-red) !important;}

/* Prevent theme/plugin widths from creating horizontal overflow. */
.elphine-account-motopress,
.elphine-account-motopress form,
.elphine-account-motopress fieldset,
.elphine-account-motopress input,
.elphine-account-motopress select,
.elphine-account-motopress textarea{max-width:100%;}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  .logged-in .elphine-account-motopress .mphb_sc_account{
    grid-template-columns:250px minmax(0,1fr) !important;
    gap:22px !important;
  }
  .elphine-dash__grid{grid-template-columns:1fr;}
  .elphine-dash__card--stay{grid-row:auto;}
  .elphine-account-motopress .mphb-account-change-password{grid-template-columns:1fr !important;}
}

@media (max-width:860px){
  .elphine-account-page{padding:36px 0 72px;}
  .elphine-account-hero{flex-direction:column;align-items:flex-start;gap:22px;margin-bottom:28px;}

  .logged-in .elphine-account-motopress .mphb_sc_account{
    grid-template-columns:1fr !important;
    gap:18px !important;
  }

  /* Compact sidebar: profile row + 2x2 menu. */
  .elphine-account-motopress .mphb-account-menu{position:static;padding:18px !important;border-radius:20px !important;}
  .elphine-account-motopress .mphb-account-menu ul{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }
  .elphine-account-motopress .mphb-account-menu li.elphine-account-profile{
    grid-column:1 / -1;
    display:grid !important;
    grid-template-columns:48px minmax(0,1fr);
    column-gap:14px;
    align-items:center;
    margin:0 0 6px !important;
    padding:0 2px 14px !important;
  }
  .elphine-account-profile__avatar{grid-row:span 2;width:48px;height:48px;margin:0;font-size:19px;}
  .elphine-account-profile__name{font-size:16px;margin:0;}
  .elphine-account-motopress .mphb-account-menu li > a{
    min-height:46px !important;
    padding:11px 12px 11px 32px !important;
    font-size:13px !important;
    background:rgba(255,255,255,.06) !important;
  }
  .elphine-account-motopress .mphb-account-menu li > a::before{left:14px;}
  .elphine-account-motopress .mphb-account-menu li:last-child{margin-top:0 !important;padding-top:0 !important;border-top:0;}

  .elphine-account-motopress .mphb-account-content{padding:26px 22px !important;border-radius:20px !important;}
  .elphine-account-motopress .mphb-account-details{grid-template-columns:1fr !important;}
}

/* MotoPress stacks booking rows below 768px; make each booking a full-width card. */
@media (max-width:767px){
  .elphine-account-motopress table.mphb-account-bookings,
  .elphine-account-motopress table.mphb-account-bookings tbody,
  .elphine-account-motopress table.mphb-account-bookings tr,
  .elphine-account-motopress table.mphb-account-bookings td{
    display:block !important;
    width:100% !important;
  }
  .elphine-account-motopress table.mphb-account-bookings{
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    overflow:visible !important;
  }
  .elphine-account-motopress table.mphb-account-bookings tr{
    margin:0 0 14px !important;
    border:1px solid var(--elphine-border);
    border-radius:16px;
    overflow:hidden;
    background:#fff;
  }
  .elphine-account-motopress table.mphb-account-bookings tr:nth-child(n) td{
    padding:12px 16px !important;
    border-bottom:1px solid #eee8df !important;
    text-align:right;
  }
  .elphine-account-motopress table.mphb-account-bookings tr:nth-child(n) td:last-child{border-bottom:0 !important;}
  .elphine-account-motopress table.mphb-account-bookings td::before{
    margin-right:12px;
    color:var(--elphine-brown);
    font-size:10px;
    letter-spacing:1px;
    text-transform:uppercase;
  }
}

@media (max-width:520px){
  .elphine-account-hero-button{width:100%;justify-content:space-between;}
  .elphine-dash__card{padding:18px;}
  .elphine-snapshot__row{flex-direction:column;align-items:flex-start;gap:5px;}
  .elphine-dash .elphine-snapshot dd{text-align:left;}
}
