/* =========================
   Base typography + colors
========================= */

.ws-portal h2,
.ws-portal h3,
.ws-profile h2,
.ws-profile h3{
  color:#2C241E;
  line-height:1;
  letter-spacing:-0.03em;
  font-weight:400;
  margin: 0 0 15px;
  font-size: 40px;
        font-family: "Fraunces", serif;
  font-style: italic;
  font-optical-sizing: none;
}

/* Secondary text */
.ws-portal .ws-subtle,
.ws-portal .ws-meta,
.ws-portal .ws-label,
.ws-profile .ws-subtle,
.ws-profile .ws-meta,
.ws-profile .ws-label{
  color:#8a8075;
}

/* =========================
   Center login/register card
========================= */

.ws-profile{
      font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  min-height: 70vh;   
  min-height: 70svh;    
  padding: 30px 0 120px 0;
}


.ws-portal {
      font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  min-height: 70vh;   
  min-height: 70svh;    
  height: auto; 
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 30px 20px 120px 20px;
}

.ws-portal .ws-portal__view{
  width: 100%;
  max-width: 550px;
}

/* =========================
   Card styling
========================= */
.ws-portal .ws-card,
.ws-profile .ws-card{
  background:#D1D4BC;
  border:1px solid #9EA48B;
  border-radius:25px;
  padding: 80px 40px;

  box-shadow:
    0 18px 40px rgba(44, 36, 30, 0.10),
    0 4px 10px rgba(44, 36, 30, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

/* =========================
   Segmented switch (Register)
========================= */
.ws-portal .ws-card .ws-segswitch{
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;

  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(158,164,139,0.70);

  margin: 0 auto 18px;
  box-shadow: none;
}

.ws-portal .ws-card .ws-segswitch__btn{
  appearance:none;
  border:0;
  background: transparent;
  cursor:pointer;
  min-width: 140px;
  flex: 0 0 auto;

  padding: 10px 14px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #2C241E;

  box-shadow: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ws-portal .ws-card .ws-segswitch__btn:hover{
  background: rgba(90, 100, 74, 0.10);
}

.ws-portal .ws-card .ws-segswitch__btn.is-active{
  background: #5A644A;
  color: #fff;

  box-shadow:
    0 10px 22px rgba(44,36,30,0.10),
    0 1px 0 rgba(255,255,255,0.22) inset;
}

.ws-portal .ws-card .ws-segswitch__btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(90, 100, 74, 0.18);
}

/* =========================
   Alerts
========================= */
.ws-portal .ws-alert,
.ws-profile .ws-alert{
  padding: 12px 12px;
  border-radius: 14px;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.3;
}

.ws-portal .ws-alert--error,
.ws-profile .ws-alert--error{
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #2C241E;

}

.ws-portal .ws-alert--ok,
.ws-profile .ws-alert--ok{
    background: rgba(255,255,255,0.55);
  border: 1px solid rgba(158,164,139,0.70);
  color: #2C241E;
}

/* =========================
   Form basics (FIX spacing)
========================= */
.ws-portal .ws-card .ws-form,
.ws-profile .ws-card .ws-form{
  display:flex;
  flex-direction:column;
  gap: 20px;                 
}

/* Wrapper så label er tæt på input */
.ws-portal .ws-card .ws-field,
.ws-profile .ws-card .ws-field{
  display:flex;
  flex-direction:column;
  gap: 8px;     
}

/* Labels */
.ws-portal .ws-card .ws-form .ws-label,
.ws-profile .ws-card .ws-form .ws-label{
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
  color:#2C241E;
  font-weight: 600;
}

/* Required * */
.ws-portal .ws-card .ws-label .ws-required{
  color: #A23A3A;
  font-weight: 500;
}

/* Inputs */
.ws-portal .ws-card .ws-form input[type="text"],
.ws-portal .ws-card .ws-form input[type="email"],
.ws-portal .ws-card .ws-form input[type="password"],
.ws-portal .ws-card .ws-form input[type="tel"],
.ws-portal .ws-card .ws-form input[type="number"],
.ws-profile .ws-card .ws-form input[type="text"],
.ws-profile .ws-card .ws-form input[type="email"],
.ws-profile .ws-card .ws-form input[type="password"],
.ws-profile .ws-card .ws-form input[type="tel"],
.ws-profile .ws-card .ws-form input[type="number"]{
  width:100%;
  border-radius: 16px;
  border: none;
  outline: none;
  background: #fff;
  color:#2C241E;
  line-height: 1;
  padding: 14px 14px;

  box-shadow: none;
  margin: 0;
  min-height: 0;
  font-size: 16px;
}

.ws-portal .ws-card .ws-form input::placeholder,
.ws-profile .ws-card .ws-form input::placeholder{
  color:#8a8075;
  opacity: 0.9;
}

.ws-portal .ws-card .ws-form input:focus,
.ws-profile .ws-card .ws-form input:focus{
  border-color: #5A644A;
  box-shadow: 0 0 0 3px rgba(90, 100, 74, 0.18);
}

/* Two-column rows */
.ws-portal .ws-card .ws-row,
.ws-profile .ws-card .ws-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 10px;
  row-gap: 15px;
  margin: 0;                 /* ✅ ingen ekstra luft under row */
}



/* =========================
   Icon inputs (login fields)
========================= */
.ws-portal .ws-card .ws-input{
  display:flex;
  align-items:center;
  gap: 8px;
  border: none;
  border-radius: 16px;
  background:#fff;
  padding: 0 12px;
  box-shadow: none;
}

.ws-portal .ws-card .ws-input .ws-input__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#8a8075;
  flex: 0 0 auto;
}

/* Make the input inside icon wrapper "inherit" wrapper styles */
.ws-portal .ws-card .ws-input input[type="email"],
.ws-portal .ws-card .ws-input input[type="password"],
.ws-portal .ws-card .ws-input input[type="text"]{
  border: 0;
  box-shadow: none;
  padding: 14px 0;
  border-radius: 0;
  background: transparent;
  width: 100%;
  line-height: 1;
}

/* focus ring on wrapper */
.ws-portal .ws-card .ws-input:focus-within{
  border-color: #5A644A;
  box-shadow: 0 0 0 3px rgba(90, 100, 74, 0.18);
}

/* =========================
   Buttons
========================= */
.ws-portal .ws-card .ws-btn,
.ws-profile .ws-card .ws-btn,
.ws-portal .ws-card button.ws-btn,
.ws-profile .ws-card button.ws-btn,
.ws-portal .ws-card a.ws-btn,
.ws-profile .ws-card a.ws-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 18px;
  border-radius: 50px;
  border: 0;
  cursor:pointer;
  font-weight: 400;
        font-family: "Fraunces", serif;
  font-style: italic;
  font-optical-sizing: none;
  letter-spacing: -0.03em;
  background:#5A644A;
  color:#fff;
  line-height: 1;
  text-decoration:none;
    font-size: 22px;
  box-shadow: none;
  text-transform: none;
}

.ws-portal .ws-card .ws-btn:hover,
.ws-profile .ws-card .ws-btn:hover{
  background:#5A644A;
  color:#fff;
}

/* Ghost buttons */
.ws-profile .ws-card .ws-btn--ghost,
.ws-portal .ws-card .ws-btn--ghost{
  background:#5A644A;
  color:#FFF;
  border:1px solid #9EA48B;
  font-size:20px !important;
    padding: 14px 35px !important;
}

.ws-profile .ws-card .ws-btn--ghost:hover,
.ws-portal .ws-card .ws-btn--ghost:hover{
  background:#5A644A;
  color:#FFF;
}

/* Danger button */
.ws-profile .ws-card .ws-btn--danger,
.ws-portal .ws-card .ws-btn--danger{
  background: #b91c1c;
  color:#fff;
}

.ws-profile .ws-card .ws-btn--danger:hover,
.ws-portal .ws-card .ws-btn--danger:hover{
  background: #b91c1c;
  color:#fff;
}

.ws-portal .ws-card .ws-form > .ws-btn{
  margin-top: 20px;
}


/* =========================
   Links + helper text
========================= */
.ws-portal .ws-card .ws-link,
.ws-profile .ws-card .ws-link{
  color:#2C241E;
  text-decoration:none;
}

.ws-portal .ws-card .ws-link:hover,
.ws-profile .ws-card .ws-link:hover{
  text-decoration: underline;
}

.ws-portal .ws-card .ws-link--strong,
.ws-profile .ws-card .ws-link--strong{
  font-weight:600;
}

.ws-portal .ws-card .ws-subtle,
.ws-profile .ws-card .ws-subtle{
  margin: 0;
  line-height: 1.4;
}

.ws-portal .ws-card .ws-subtle--top{
  margin: 0 0 40px 0;
  color:#2C241E;
  font-weight:300;
  font-size: 16px;
}

.ws-portal .ws-card .ws-meta,
.ws-profile .ws-card .ws-meta{
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.3;
}


/* Legal text under register button */
.ws-portal .ws-card .ws-meta--legal{
  color: #5A644A;
  text-align: center;
  margin-top: -10px;
}

.ws-portal .ws-card .ws-meta--legal a{
  color: #2C241E;       /* samme som overskrifter */
  font-weight: 500;
  text-decoration: underline;
}

.ws-portal .ws-card .ws-meta--legal a:hover{
  color: #2C241E;
  text-decoration: underline;
}


/* =========================
   Password eye toggle
========================= */
.ws-portal .ws-card .ws-input.ws-input--password input{
  flex: 1;
  min-width: 0;
}

.ws-portal .ws-card .ws-input--password .ws-pass-toggle{
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a8075;
  box-shadow: none;
  outline: none;
  border-radius: 10px;
}

.ws-portal .ws-card .ws-input--password .ws-pass-toggle:focus,
.ws-portal .ws-card .ws-input--password .ws-pass-toggle:active{
  outline: none;
  box-shadow: none;
}

.ws-portal .ws-card .ws-input--password .ws-pass-toggle:focus-visible{
  box-shadow: 0 0 0 3px rgba(90, 100, 74, 0.18);
}

.ws-portal .ws-card .ws-input--password .ws-pass-toggle:hover{
  color: #5A644A;
}

/* Slash styres via class på wrapper */
.ws-portal .ws-card .ws-input--password.is-revealed .ws-eye-slash{
  display: none;
}

/* =========================
   Remember + Lost password
========================= */
.ws-portal .ws-card .ws-help-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin: 0;                 /* ✅ undgå ekstra spacing */
}

/* Checkbox */
.ws-portal .ws-card .ws-checkbox,
.ws-profile .ws-card .ws-checkbox{
  display:flex;
  gap: 6px;
  align-items:center;
  user-select:none;
  margin: 0;
}

.ws-portal .ws-card .ws-checkbox input[type="checkbox"],
.ws-profile .ws-card .ws-checkbox input[type="checkbox"]{
  width: 14px;
  height: 14px;
  display:block;
  padding:0;
  margin: 0;
  box-shadow: none;
  accent-color: #5A644A;
}

.ws-portal .ws-card .ws-checkbox span{
  color: #5A5C51;
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1;
  font-weight: 500;
}

.ws-portal .ws-card .ws-meta--lost{
  line-height: 1;
  text-align: right;
  margin: 0;
}

.ws-portal .ws-card .ws-meta--lost a{
  font-weight: 500;
  color:#5A5C51;
  letter-spacing: -0.01em;
}
.ws-portal .ws-card .ws-meta--lost a:hover{
  color:#5A5C51;
  text-decoration: underline;
}

.ws-portal .ws-card .ws-subtle--lost{
  margin: 0 0 20px 0;
  color:#5A5C51;
}


.ws-portal .ws-card .ws-meta--back .ws-link--back{
  display: inline-block;
}


.ws-portal .ws-card__head--lost ~ .ws-form .ws-field{
  margin-bottom: -20px;
}


/* kun reset password siden */
.ws-form--reset .ws-field + .ws-field{
  margin-top: 15px;
}


/* =========================
   Register header
========================= */
.ws-portal .ws-card .ws-card__head{
  display:flex;
  align-items: flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ws-portal .ws-card .ws-link--back{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #5A5C51;
  text-decoration: none;
  line-height: 1;
}

.ws-portal .ws-card .ws-link--back:hover{
  text-decoration: underline;
  color: #5A5C51;
}

/* =========================
   Profile layout
========================= */
.ws-profile{
  display:flex;
  flex-direction:column;
  gap: 16px;
}

.ws-profile .ws-profile__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
}



.ws-profile .ws-profile__actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.ws-profile .ws-profile__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}


.ws-profile .ws-hr{
  border:0;
  border-top:1px solid #9EA48B;
  margin: 16px 0;
}

/* Orders list */
.ws-profile .ws-orders{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.ws-profile .ws-order{
  border:1px solid #9EA48B;
  border-radius: 18px;
  padding: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  background: rgba(255,255,255,0.55);
}



.ws-profile .ws-order__title{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
  color:#2C241E;
}

.ws-profile .ws-order__meta{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 14px;
  margin-top: 4px;
  color:#8a8075;
}

.ws-profile .ws-order__actions{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
  align-items:center;
}

.ws-profile .ws-order-action{
  appearance:none;
  border:0;
  background:none;
  box-shadow:none;
  margin:0;
  cursor:pointer;
  text-decoration:underline;
  line-height:1;
  font-family:"Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size:15px;
  font-weight:500;
  padding:0;
}

/* Se ordre */
.ws-profile .ws-order-action--view,
.ws-profile .ws-order-action--view:visited{
  color:#2C241E;
}

/* Returnér ordre */
.ws-profile .ws-order-action--return,
.ws-profile .ws-order-action--return:visited{
  color:#8a8075;
}

/* Genbestil */
.ws-profile .ws-order-action--reorder,
.ws-page .ws-order-action--reorder{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:999px;
  background:#5A644A;
  color:#fff;
  border: none;
  text-decoration:none;
  font-family:"Fraunces", serif;
  font-style:italic;
  font-optical-sizing:none;
  font-size:18px;
  font-weight:400;
  letter-spacing:-0.03em;
}


.ws-profile .ws-order-action--reorder:hover,
.ws-profile .ws-order-action--reorder:focus,
.ws-profile .ws-order-action--reorder:visited,
.ws-page .ws-order-action--reorder:hover,
.ws-page .ws-order-action--reorder:focus,
.ws-page .ws-order-action--reorder:visited{
  background:#5A644A;
  color:#fff;
  text-decoration:none;
}

/* Hover på tekstlinks */
.ws-profile .ws-order-action--view:hover,
.ws-profile .ws-order-action--return:hover{
  text-decoration:underline;
}

/* Fjern mærkelige theme button styles */
.ws-profile .ws-order-action:focus,
.ws-profile .ws-order-action:active,
.ws-profile .ws-order-action:focus-visible{
  box-shadow:none !important;
  outline:none;
}

.ws-profile .ws-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 14px;
  border:1px solid #9EA48B;
  background: rgba(255,255,255,0.55);
  color:#2C241E;
  line-height: 1;
}

/* =========================
   Profile
========================= */

/* ✅ Sørg for at HTML [hidden] ALTID skjuler elementer (JS bruger hidden) */
.ws-profile [hidden]{
  display: none !important;
}

/* tighter card padding for profile UI blocks */
.ws-profile .ws-card.ws-card--tight{
  padding: 30px;
  box-shadow: none !important;
  background: #D1D4BC;
}

.ws-profile .ws-profile__shellGrid{
  display: grid;
  --nav-col: 240px;
  grid-template-columns: var(--nav-col) 1px minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
}

.ws-profile .ws-profile__divider{
  width: 1px;
  background: rgba(158,164,139,0.70);
  align-self: stretch;
}



/* ✅ left nav (MATCHES PHP: .ws-profile__nav) */
.ws-profile .ws-profile__nav{
  display: flex;
  flex-direction:column;
  gap: 0;
  padding: 0;
  align-items: stretch;
}

/* nav items (buttons + logout <a>) */
.ws-profile .ws-profile__navitem{
  appearance:none;
  border: none;
  background: none;
  color:#5A644A;
  border-radius: 999px;
  padding: 13px 16px;
  cursor:pointer;
  text-align:left;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: background-color 160ms ease, box-shadow 160ms ease;
  text-decoration: none;
  display: inline-flex;
  width: auto;
}

.ws-profile .ws-profile__navitem:hover{
  color:#2C241E;
  background: none;
}

.ws-profile .ws-profile__navitem.is-active{
  border: none;
  background: rgba(255,255,255,0.55);
  color:#2C241E;
}

.ws-profile .ws-profile__navitem--danger{
  border-color: none;
  color: rgba(185, 28, 28, 0.6);
  background: none;
  font-weight: 400;
  margin-top:auto;
    padding-top: 73px;
}
.ws-profile .ws-profile__navitem--danger:hover{
  background: none;
  color: rgba(185, 28, 28, 1);
  text-decoration: underline;
}

.ws-profile .ws-profile__content{
  padding: 0;
  min-width: 0;
}



.ws-profile-section{
  background: rgba(255,255,255,0.55) !important;
  padding: 30px 20px !important;
}

.ws-profile .ws-profile-section + .ws-profile-section{
  margin-top: 30px;
}

/* ✅ smaller H3 headings in sections */
.ws-profile .ws-profile-section h3{
  font-size: 19px;
  line-height: 1;
  margin: 0 0 20px 0;
  font-weight: 400;
}

/* profile card head (title + edit) */
.ws-profile .ws-profile-card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ws-profile .ws-profile-card__headActions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* view mode blocks */
.ws-profile .ws-profile-block{
  border:1px solid #9EA48B;
  border-radius: 18px;
  padding: 16px;
}
.ws-profile .ws-profile-block + .ws-profile-block{ margin-top: 12px; }

.ws-profile .ws-kvgrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}


.ws-profile .ws-kv{
  display:flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
}

.ws-profile .ws-kv__k{
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
  color:#8a8075;
  letter-spacing: -0.01em;
}

.ws-profile .ws-kv__v{
  font-size: 15px;
  line-height: 1;
  color: #2C241E;
  font-weight: 500;

  /* inline edit layout */
  display:flex;
  align-items:center;
}

/* inputs (profile) */
.ws-profile .ws-input{
  display:flex;
  align-items:center;
  gap: 8px;
  border: none;
  border-radius: 16px;
  background:#fff;
  padding: 0 12px;
  box-shadow: none;
}
.ws-profile .ws-input input{
  border:0;
  background:transparent;
  width:100%;
  padding: 14px 0;
}
.ws-profile .ws-input:focus-within{
  box-shadow: 0 0 0 3px rgba(90, 100, 74, 0.18);
}
.ws-profile .ws-input--password.is-revealed .ws-eye-slash{ display:none; }

.ws-profile .ws-input--password .ws-pass-toggle{
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a8075;
  box-shadow: none;
  outline: none;
  border-radius: 10px;
}

/* Panels: ensure only active visible */
.ws-profile__panel { display: none; }
.ws-profile__panel.is-active { display: block; }
.ws-profile__panel[hidden]{ display:none !important; }

/* Header color */
.ws-profile h1{
  color:#2C241E;
        font-family: "Fraunces", serif;
  font-style: italic;
  font-optical-sizing: none;
  font-size: 48px;
  letter-spacing: -0.03em;
  line-height:1;
  font-weight: 400;
}

/* Keep cards scoped */
.ws-profile .ws-card{ background: transparent; }

/* ✅ header row in sections (title left, action right top) */
.ws-profile .ws-profile-section__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin:0;
}

/* actions helt oppe i højre hjørne */
.ws-profile .ws-profile-section__headActions{
  margin-left: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.ws-profile .ws-profile-section__headActions .ws-btn,
.ws-profile .ws-profile-section__headActions .ws-btn--ghost{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #5A5C51 !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}

.ws-profile .ws-profile-section__headActions .ws-btn:hover{
  text-decoration: underline;
}

.ws-profile .ws-profile-section__headActions .ws-btn:focus-visible{
  outline: none;
  text-decoration: underline;
}

.ws-profile .ws-profile-section__headActions .ws-btn[data-ws-sec-edit]{
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.ws-profile .ws-profile-section__headActions
.ws-btn[data-ws-sec-edit]:not(.is-cancel)::after{
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  flex: 0 0 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zm2.92 2.33H5v-.92l8.06-8.06.92.92L5.92 19.58zM20.71 7.04a1.003 1.003 0 0 0 0-1.42L18.37 3.29a1.003 1.003 0 0 0-1.42 0l-1.83 1.83 3.75 3.75 1.84-1.83z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zm2.92 2.33H5v-.92l8.06-8.06.92.92L5.92 19.58zM20.71 7.04a1.003 1.003 0 0 0 0-1.42L18.37 3.29a1.003 1.003 0 0 0-1.42 0l-1.83 1.83 3.75 3.75 1.84-1.83z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ✅ Panel titles */
.ws-profile .ws-profile__panelTitle{
  margin: 0 0 30px 0;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: #2C241E;
}

/* =========================
   Inline edit fields
========================= */

.ws-profile .ws-kv__input{
  font: inherit;
  color: inherit;
  line-height: inherit;

  border: 1px solid #9EA48B !important;

  padding: 10px !important;
  margin: 0 !important;
  width: 100%;
    outline: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.ws-profile .ws-kv__input:focus,
.ws-profile .ws-kv__input:focus-visible,
.ws-profile .ws-kv__input:active{
  outline: 0 !important;
  box-shadow: none !important;
}

/* ✅ Gem-knap styling (fit to content) */
.ws-profile form [data-ws-inline-save]{
  width: auto !important;
  max-width: none !important;
  display: inline-flex;          /* men bliver skjult af [hidden] når ikke i edit */
  align-items: center;
  justify-content: center;
  padding: 15px 35px !important;
  margin-top: 10px !important;
  flex: 0 0 auto !important;
  align-self: flex-start;
}

.ws-profile .ws-profile-inlineform.is-editing [data-ws-inline-save]{
  display: inline-flex;
}

/* Default: inputs + save hidden (JS tænder dem i edit-mode) */
.ws-profile .ws-kv__input{
  display: none;
}

/* Default: teksten vises */
.ws-profile .ws-kv__text{
  display: inline;
}

/* Når en sektion/form er i edit mode */
.ws-profile .ws-profile-inlineform.is-editing .ws-kv__text{
  display: none;
}
.ws-profile .ws-profile-inlineform.is-editing .ws-kv__input{
  display: block;
}

/* === Profile: match reset password spacing EXACTLY === */
.ws-profile [data-ws-panel="password"] .ws-form--reset .ws-field{
  margin-bottom: -20px; /* cancel the flex gap (same trick as portal reset) */
}

/* ensure button gets same breathing room as portal */
.ws-profile [data-ws-panel="password"] .ws-form--reset > .ws-btn{
  margin-top: 20px;
}

.ws-profile [data-ws-panel="password"] .ws-form--reset .ws-field:nth-of-type(2){
  margin-top: 30px;
}


/* PROFILE: Make input inside .ws-input inherit wrapper styles (no double padding/border) */
.ws-profile .ws-card .ws-form .ws-input input[type="email"],
.ws-profile .ws-card .ws-form .ws-input input[type="password"],
.ws-profile .ws-card .ws-form .ws-input input[type="text"],
.ws-profile .ws-card .ws-form .ws-input input[type="tel"],
.ws-profile .ws-card .ws-form .ws-input input[type="number"]{
  border: 0 !important;
  box-shadow: none !important;
  padding: 14px 0 !important;      /* wrapper has left/right padding */
  border-radius: 0 !important;
  background: transparent !important;
  width: 100% !important;
  line-height: 1 !important;
  outline: none !important;
  margin: 0 !important;
}

/* PROFILE: Focus ring only on wrapper */
.ws-profile .ws-card .ws-form .ws-input input:focus{
  box-shadow: none !important;
  outline: none !important;
}

/* Profile → Skift adgangskode: lettere labels */
.ws-profile [data-ws-panel="password"] .ws-label{
  font-weight: 500 !important;
}



/* =========================
   View order + Return pages (match ws-portal/ws-profile)
   Wrapper: .ws-page
========================= */

.ws-page{
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  min-height: 70vh;
  min-height: 70svh;
  padding: 30px 20px 120px 20px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

.ws-page__view{
  width:100%;
  max-width: 860px;
}

.ws-page h2{
            font-family: "Fraunces", serif;
  font-style: italic;
  font-optical-sizing: none;
  color:#2C241E;
  line-height:1;
  letter-spacing:-0.03em;
  font-weight:400;
  margin: 0 0 15px;
  font-size: 40px;
}


.ws-page h3{
            font-family: "Fraunces", serif;
  font-style: italic;
  font-optical-sizing: none;
  color:#2C241E;
  line-height:1;
  letter-spacing:-0.03em;
  font-weight:400;
  margin: 0 0 15px;
  font-size: 32px;
}


.ws-page .ws-subtle,
.ws-page .ws-meta,
.ws-page .ws-label{
  color:#8a8075;
}

/* Card */
.ws-page .ws-card{
  background:#D1D4BC;
  border:1px solid #9EA48B;
  border-radius:25px;
  padding: 60px 40px;
  box-shadow:
    0 18px 40px rgba(44, 36, 30, 0.10),
    0 4px 10px rgba(44, 36, 30, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

/* Wider card utility */
.ws-page .ws-card--wide{
  padding: 60px 40px;
}

/* Head row */
.ws-page__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.ws-page__title{
  margin: 0 0 10px 0;
}

.ws-page__subtitle{
  margin: 0;
  max-width: 62ch;
}

/* Meta pills */
.ws-page__meta{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.ws-meta-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid #9EA48B;
  background: rgba(255,255,255,0.55);
  color:#2C241E;
  font-size: 14px;
  line-height: 1;
}

/* Divider */
.ws-page .ws-hr{
  border:0;
  border-top:1px solid #9EA48B;
  margin: 22px 0;
}

/* Buttons (same as portal/profile) */
.ws-page .ws-card .ws-btn,
.ws-page .ws-card button.ws-btn,
.ws-page .ws-card a.ws-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 18px;
  border-radius: 50px;
  border: 0;
  cursor:pointer;
  font-weight: 400;
  letter-spacing: -0.02em;
  background:#5A644A;
  color:#fff;
  line-height: 1;
  text-decoration:none;
  font-size: 22px;
  box-shadow: none;
}

.ws-page .ws-card .ws-btn:hover{
  background:#5A644A;
  color:#fff;
}

.ws-page .ws-card .ws-btn--ghost{
  background:#5A644A;
  color:#FFF;
  border:1px solid #9EA48B;
  font-size:16px !important;
}

.ws-page .ws-card .ws-btn--ghost:hover{
      background:#5A644A;
  color:#FFF;
}

/* Forms: match existing spacing */
.ws-page .ws-form{
  display:flex;
  flex-direction:column;
  gap: 20px;
}

.ws-page .ws-field{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.ws-page .ws-label{
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
  color:#2C241E;
  font-weight: 600;
}

/* Inputs + SELECT + TEXTAREA */
.ws-page input[type="text"],
.ws-page input[type="email"],
.ws-page input[type="password"],
.ws-page input[type="tel"],
.ws-page input[type="number"],
.ws-page select,
.ws-page textarea{
  width:100%;
  border-radius: 16px;
  border: none;
  outline: none;
  background: #fff;
  color:#2C241E;
  padding: 14px 14px;
  box-shadow: none;
  margin: 0;
  font-size: 16px;
}

.ws-page textarea{
  line-height: 1.4;
  resize: vertical;
  min-height: 110px;
}

/* nicer select arrow */
.ws-page select{
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.2L6 6.2L11 1.2' fill='none' stroke='%238a8075' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 7px;
}

.ws-page input:focus,
.ws-page select:focus,
.ws-page textarea:focus{
  box-shadow: 0 0 0 3px rgba(90, 100, 74, 0.18);
}

/* Order lines */
.ws-order-lines{
  display:flex;
  flex-direction:column;
}

.ws-order-line{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(44,36,30,0.10);
}

.ws-order-line:last-child{
  border-bottom: 0;
}

.ws-order-line__name{
  color:#2C241E;
  font-weight: 500;
}

.ws-order-line__qty{
  margin-left: 8px;
  font-weight: 400;
}

.ws-order-line__price{
  color:#2C241E;
  font-weight: 500;
  white-space: nowrap;
}

/* Return items */
.ws-return-items{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-top: 10px;
}

.ws-ret-item{
  border:1px solid #9EA48B;
  background: rgba(255,255,255,0.55);
  border-radius: 18px;
  padding: 16px;
}

.ws-ret-item__checkbox{
  align-items:flex-start;
}

.ws-ret-item__labelText{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.ws-ret-item__name{
            font-family: "Fraunces", serif;
  font-style: italic;
  font-optical-sizing: none;
  color:#2C241E;
  font-weight: 400;
  line-height: 1.2;
  font-size: 20px;
}

.ws-ret-item__sub{
  margin: 0;
}

.ws-ret-item__grid{
  display:grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}

/* Accept row + actions */
.ws-return-accept{
  align-items:flex-start;
}

.ws-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 6px;
}

/* Checkbox (reuse your existing look) */
.ws-page .ws-checkbox{
  display:flex;
  gap: 10px;
  align-items:center;
  user-select:none;
  margin: 0;
}

.ws-page .ws-checkbox input[type="checkbox"]{
  width: 14px;
  height: 14px;
  display:block;
  padding:0;
  margin: 0;
  box-shadow: none;
  accent-color: #5A644A;
}






/* Back link style (shared across pages) */
.ws-card .ws-link--back,
.ws-page__head .ws-link--back{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #5A5C51;
  text-decoration: none;
  line-height: 1;
}

.ws-card .ws-link--back:hover,
.ws-page__head .ws-link--back:hover{
  text-decoration: underline;
  color: #5A5C51;
}



.ws-profile .ws-profile__mobilebar{
  display: none; /* kun på <=1024 */
}




/* =========================
   Profile favorites
========================= */

.ws-profile .ws-profile-favorites{
  display:flex;
  flex-direction:column;
  gap:15px;
}

.ws-profile .ws-profile-favorite-card{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:15px;
  border-radius:18px;
  background:rgba(255,255,255,0.55);
  border:1px solid #9EA48B;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ws-profile .ws-profile-favorite-card:hover{
  border-color:#2C241E;
  box-shadow:0 6px 12px rgba(44,36,30,0.05);
}

.ws-profile .ws-profile-favorite-card__main{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  align-items:center;
  gap:15px;
  text-decoration:none;
  color:#2C241E;
}

.ws-profile .ws-profile-favorite-card__img{
  flex:0 0 auto;
  width:42px;
  min-width:42px;
  height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.ws-profile .ws-profile-favorite-card__img img{
  width:auto;
  height:100%;
  max-height:70px;
  max-width:42px;
  object-fit:contain;
  display:block;
}

.ws-profile .ws-profile-favorite-card__content{
  min-width:0;
  flex:1 1 auto;
}

.ws-profile .ws-profile-favorite-card__title{
  font-family:'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size:16px;
  font-style:italic;
  letter-spacing:-0.03em;
  line-height:1.3;
  color:#2C241E;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ws-profile .ws-profile-favorite-cart,
.ws-profile .ws-profile-favorite-cart:visited{
  appearance:none;
  -webkit-appearance:none;
  width:42px;
  height:42px;
  min-width:42px;
  flex:0 0 42px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 !important;
  margin:0 !important;
  border-radius:999px;
  border:none !important;
  background:#5A644A !important;
  color:#fff !important;
  text-decoration:none !important;
  box-shadow:none !important;
  transition:transform .2s ease, opacity .2s ease, background .2s ease;
}

.ws-profile .ws-profile-favorite-cart:hover,
.ws-profile .ws-profile-favorite-cart:visited:hover{
  background:#5A644A !important;
  color:#fff !important;
}

.ws-profile .ws-profile-favorite-cart:focus,
.ws-profile .ws-profile-favorite-cart:active,
.ws-profile .ws-profile-favorite-cart:focus-visible{
  outline:none !important;
  box-shadow:none !important;
}

.ws-profile .ws-profile-favorite-cart .ws-cart-icon{
  width:20px !important;
  height:20px !important;
  min-width:20px;
  flex:0 0 20px;
  display:block;
  color:currentColor;
}

.ws-profile .ws-profile-favorite-cart .ws-cart-icon path{
  fill:currentColor;
}

.ws-profile .ws-profile-favorite-cart.is-disabled{
  background:rgba(201, 97, 72, 0.4) !important;
  color:#fff !important;
  opacity:1;
  pointer-events:none;
  cursor:default;
}

.ws-profile .ws-profile-favorite-cart.loading{
  opacity:.6;
}

.ws-profile .ws-profile-favorites-empty{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:18px;
}

.ws-profile .ws-profile-favorites-empty .ws-subtle{
  margin:0;
}

/* skjul WooCommerce "Se kurv"-link under favoritkort */
.ws-profile .ws-profile-favorite-card .added_to_cart,
.ws-profile .ws-profile-favorite-card .added_to_cart.wc-forward,
.ws-profile .ws-no-added-link + .added_to_cart{
  display:none !important;
}











/* =========================
   Responsive
========================= */





@media (max-width: 1200px){
.ws-profile .ws-profile__shellGrid{
  display: grid;
  --nav-col: 200px;
}
}




@media (max-width:1024px){

  /* divider giver ikke mening når layoutet er 1 kolonne */
  .ws-profile .ws-profile__divider{
    display: none;
  }
  
  
  .ws-profile h1{
  font-size: 42px;
}

  
  
  .ws-profile .ws-profile__navitem{
  color:#2C241E;
  padding:0 0 30px 0;
}
  
  .ws-profile .ws-profile__navitem.is-active{
  background: none;
  color:#2C241E;
}

.ws-profile .ws-profile__navitem--danger{
  color: rgba(185, 28, 28, 0.6);
    padding: 60px 0 0 0;
}

.ws-profile .ws-card.ws-card--tight{
  padding: 40px 20px;
}



  .ws-profile .ws-profile__shellGrid{
    gap: 0;
  }

  /* Default: kun nav */
  .ws-profile:not(.ws-mobile-panel-open) .ws-profile__content{
    display: none;
  }

  /* Når man har åbnet et menupunkt: kun content */
  .ws-profile.ws-mobile-panel-open .ws-profile__nav{
    display: none;
  }
  .ws-profile.ws-mobile-panel-open .ws-profile__content{
    display: block;
  }

  /* Back-bar inde i content */
  .ws-profile .ws-profile__mobilebar{
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px 0;
  }

  .ws-profile .ws-profile__back{
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;

    color: #5A5C51;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;

    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .ws-profile .ws-profile__back:hover{
    text-decoration: underline;
    background: none;
    color: #5A5C51;
  }

}

.ws-order__return{
  display: inline-flex;
  margin-top: 10px;
}




@media (max-width: 1024px){
.ws-portal .ws-card,
.ws-profile .ws-card{
  padding: 60px 30px;
}

.ws-portal h2,
.ws-portal h3,
.ws-profile h2,
.ws-profile h3{
  font-size: 36px;
}

.ws-portal .ws-card .ws-subtle--top{
  margin: 0 0 30px 0;
}


.ws-portal .ws-card .ws-btn,
.ws-profile .ws-card .ws-btn,
.ws-portal .ws-card button.ws-btn,
.ws-profile .ws-card button.ws-btn,
.ws-portal .ws-card a.ws-btn,
.ws-profile .ws-card a.ws-btn{
    font-size: 20px;
}


  
    .ws-profile .ws-profile__shellGrid{
    grid-template-columns: 1fr;
  }

}





@media (max-width: 767px){
    
      .ws-profile .ws-profile-favorites{
    grid-template-columns:1fr;
  }
    
    
    .ws-profile .ws-card .ws-btn--ghost,
.ws-portal .ws-card .ws-btn--ghost{
  font-size:18px !important;
}
    
    
    .ws-portal .ws-card .ws-form,
.ws-profile .ws-card .ws-form{
  gap: 15px;                 
}
    
    .ws-portal .ws-card,
.ws-profile .ws-card{
  padding: 40px 20px;
}
    
    
    .ws-portal h2,
.ws-portal h3,
.ws-profile h2,
.ws-profile h3{
  margin: 0 0 10px;
  font-size: 32px;
}


.ws-portal .ws-card .ws-subtle--top{
  margin: 0 0 30px 0;
  color:#2C241E;
  font-weight:300;
  font-size: 15px;
}



.ws-portal .ws-card .ws-link--back{
  font-size: 14px;
}

    
    
  .ws-profile .ws-profile__layout{
    grid-template-columns: 1fr;
  }
  .ws-profile__content{
    border-left: 0;
  }
  
  
  .ws-portal .ws-card .ws-subtle--lost{

  font-size:15px;
}


.ws-meta-pill{
  padding: 6px 8px;
  font-size: 13px;
}
  
}



@media (max-width: 700px){
  .ws-profile .ws-profile__header{ flex-direction:column; }
}


@media (max-width: 640px){
  .ws-profile .ws-order{ flex-direction:column; align-items:flex-start; }
  
    .ws-profile .ws-kvgrid{ grid-template-columns: 1fr; }
    
    
      .ws-profile .ws-profile-favorite-card{
    gap:10px;
    padding:14px;
  }

  .ws-profile .ws-profile-favorite-cart,
  .ws-profile .ws-profile-favorite-cart:visited{
    width:38px;
    height:38px;
    min-width:38px;
    flex:0 0 38px;
  }

  .ws-profile .ws-profile-favorite-cart .ws-cart-icon{
    width:15px;
  }
    
}




@media (max-width: 520px){
  .ws-portal .ws-card .ws-row,
  .ws-profile .ws-card .ws-row{
    grid-template-columns: 1fr;
  }
}




@media (max-width: 400px){
.ws-portal .ws-card .ws-segswitch__btn{
  min-width: 130px;
}



}




@media (max-width: 370px){
.ws-portal .ws-card .ws-help-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 8px;
  margin: 0;                 /* ✅ undgå ekstra spacing */
}


  
  
  .ws-profile h1{
  font-size: 32px;
}


    .ws-portal h2,
.ws-portal h3,
.ws-profile h2,
.ws-profile h3{
  font-size: 28px;
}


.ws-portal .ws-card .ws-checkbox span{
  font-size: 13px;
}


.ws-portal .ws-card .ws-meta--lost a{
  font-size: 13px;
}

  .ws-portal .ws-card .ws-subtle--lost{

  font-size:14px;
}

.ws-portal .ws-card .ws-segswitch__btn{
  min-width: 120px;
}

}



/* Responsive */
@media (max-width: 1024px){
  .ws-page .ws-card{
    padding: 50px 28px;
  }
  .ws-page h2{
    font-size: 36px;
  }
  
  .ws-page h3{
    font-size: 28px;
  }
  
  .ws-page .ws-card .ws-btn{
    font-size: 18px;
  }
}

@media (max-width: 767px){
  .ws-page .ws-card{
    padding: 40px 20px;
  }
  .ws-page h2{
    font-size: 32px;
    margin: 0 0 10px;
  }
  
 
  .ws-page h3{
    font-size: 24px;
    margin: 0 0 10px;
  }
  
  .ws-ret-item__grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px){
  .ws-page h2{
    font-size: 28px;

  }
  
 
  .ws-page h3{
    font-size: 20px;
  }


