/* Hytrans account page (mobile)
   - Central styling is in hytrans.css / hytrans_layout.css.
   - This file only contains account-page specific tweaks.
*/

.ht-account{
  padding: 24px 0 0;
}

.ht-account__title{
  font-family: var(--hyt-font-cond, "Acumin Pro ExtraCondensed", system-ui, sans-serif);
  font-size: 40px;
  line-height: 1.05;
  margin: 18px 0 22px;
  font-weight: 700;
  font-style: italic;
  color: #000;
}

/* Accordion stack */
.ht-acc{
  display:block;
}

/* Accordion item (details) – border around the whole block */
.ht-account .ht-acc details,
.ht-account details{
  border: 1px solid var(--hyt-blue, #14539B);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  margin: 18px 0;
  overflow: hidden;
}

.ht-account .ht-acc summary,
.ht-account summary{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.ht-account summary::-webkit-details-marker{ display:none; }

.ht-account summary > span{
  font-family: var(--hyt-font-cond, "Acumin Pro ExtraCondensed", system-ui, sans-serif);
  font-weight: 600; /* Semibold */
  font-size: 30px;
  line-height: 1;
  color: #000;
}

.ht-acc__icon{
  color: var(--hyt-red, #D50C1A);
  font-size: 23px;
  line-height: 1;
  width: 28px;
  text-align: center;
}

.ht-acc__chev{
  margin-left: auto;
  color: #bdbdbd;
  font-size: 23px;
  line-height: 1;
  transition: transform 140ms ease;
}

.ht-account details[open] .ht-acc__chev{
  transform: rotate(180deg);
}

.ht-acc__body{
  position: relative;
  border-top: 0;
  padding: 20px 18px 22px;
}

/* Row spacing inside panels */
.ht-acc__body .ht-acc__row + .ht-acc__row{
  margin-top: 18px;
}

/* pencil edit */
.ht-acc__edit{
  position:absolute;
  right: 18px;
  top: 16px;
  color: #000;
  text-decoration:none;
}
.ht-acc__edit i{ font-size: 15px; }

/* Key/value rows -> styled like "input" blocks */
.ht-acc__row{
  /* Rows inside an open panel should NOT look like separate input boxes.
     The border belongs to the accordion item itself (details). */
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin: 0;
}

.ht-acc__row + .ht-acc__row{
  /* Rows inside an open panel should NOT look like separate input boxes.
     The border belongs to the accordion item itself (details). */
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin: 0;
}

.ht-acc__label{
  font-family: var(--hyt-font-cond, "Acumin Pro ExtraCondensed", system-ui, sans-serif);
  font-weight: 600; /* Semibold */
  font-size: 30px;
  line-height: 1.05;
  color: #000;
  margin: 0 0 8px;
}

.ht-acc__value{
  font-family: var(--hyt-font-cond, "Acumin Pro ExtraCondensed", system-ui, sans-serif);
  font-weight: 300; /* Light */
  font-size: 30px;
  line-height: 1.05;
  color: #000;
}

/* Company block uses multiple values in one row */
.ht-acc__row .ht-acc__value + .ht-acc__value{
  margin-top: 12px;
}

/* Filled state (optional: add class on the row or value) */
.ht-acc__row.is-filled{
  background: #238B45;
  border-color: #238B45;
}
.ht-acc__row.is-filled .ht-acc__label,
.ht-acc__row.is-filled .ht-acc__value{
  color: #fff;
}

.ht-acc__value.is-filled{
  background: #238B45;
  color:#fff;
  padding: 8px 12px;
  border-radius: 6px;
  display:inline-block;
}



/* CTA (Get in touch) */
.ht-account__cta{
  display:flex;
  justify-content:center;
  margin: 34px 0 10px;
}

.ht-account__cta .ht-btn-outline{
  /* Make it bigger than the base shared button style */
  min-width: 320px;
  padding: 16px 56px;
  border-radius: 14px;
  cursor: pointer;
  appearance: none;
}

@media (max-width: 560px){
  .ht-account__title{ font-size: 38px; }
  .ht-acc summary > span,
  .ht-acc__label,
  .ht-acc__value{ font-size: 28px; }
}


/* Ensure CTA looks like design even when rendered as <a> */
.ht-account__cta .ht-btn-outline{
  font-family: var(--hyt-font-cond, "Acumin Pro ExtraCondensed", system-ui, sans-serif);
  font-weight: 700;
  font-size: 25px;
  line-height: 1;
}

/* -------------------------------------------------------------------------- */
/* Login page tweaks (scoped)                                                 */
/* -------------------------------------------------------------------------- */

.ht-page--login .ht-auth__form--login{
  width: min(860px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Head row: Login title left, Hytrans App button right (like screenshot 2) */
.ht-page--login .ht-auth__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 6px 0;
}

.ht-page--login .ht-auth__title{
  margin: 0;
  text-align: left;
}

/* Hytrans App pill button */
.ht-page--login .ht-auth__appbtn{
  display: inline-flex;
  align-items: center;
  gap: 14px;

  padding: 14px 22px;
  border-radius: 22px;

  background: var(--hyt-blue, #14539B);
  color: #fff;
  text-decoration: none;

  box-shadow: 0 10px 22px rgba(0,0,0,0.18);

  font-family: var(--hyt-font-cond, "Acumin Pro ExtraCondensed", system-ui, sans-serif);
  font-style: normal;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}

.ht-page--login .ht-auth__appbtn-icon{
  width: 40px;
  height: 40px;
  display: block;
}

/* Reduce extra spacing between fields */
.ht-page--login .ht-auth__form--login .ht-field{
  margin: 0;
}

/* Remember me + forgot password in one row */
.ht-page--login .ht-auth__aux{
  margin: 0;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
}

.ht-page--login .ht-auth__remember{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

/* Remember me font (match screenshot 2: no italic, heavier weight) */
.ht-page--login .ht-auth__remember-label{
  font-family: inherit;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
}

.ht-page--login .ht-auth__forgot-link{
  font-family: inherit;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;

  white-space: nowrap;
  text-decoration: underline;
}

/* Login + Create account buttons next to each other */
.ht-page--login .ht-auth__actions{
  display: flex !important;
  align-items: stretch;
  gap: 18px;
  margin-top: 2px;
}

.ht-page--login .ht-auth__actions .ht-auth__btn{
  flex: 1 1 0;
  margin: 0;
  width: 100%;
}

@media (max-width: 520px){
  .ht-page--login .ht-auth__form--login{
    width: min(520px, 92vw);
    gap: 12px;
  }

  .ht-page--login .ht-auth__appbtn{
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 24px;
  }

  .ht-page--login .ht-auth__appbtn-icon{
    width: 34px;
    height: 34px;
  }

  .ht-page--login .ht-auth__actions{
    gap: 12px;
  }
}


/* --- Login page overrides (scoped) -------------------------------- */
.ht-page--login{
  overflow-x: hidden; /* avoid horizontal scrollbar on mobile */
}

/* -------------------------------------------------------------------------- */
/* Final login tweaks (keep at the very end so they win)                       */
/* -------------------------------------------------------------------------- */

/* 1) Remember + Forgot MUST stay on one line.
   Some base "ht-link" styles can force block/centering, so we override hard. */
.ht-page--login .ht-auth__aux{
  display: grid !important;
  /* Keep label at its natural width, let the link take the remaining space */
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 16px;
  row-gap: 0;
  flex-wrap: initial;
}

.ht-page--login .ht-auth__remember{
  min-width: 0;
  white-space: nowrap;
}

.ht-page--login .ht-auth__remember-label{ white-space: nowrap; }

.ht-page--login a.ht-auth__forgot-link,
.ht-page--login .ht-link.ht-auth__forgot-link{
  display: inline !important;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

/* 2) Buttons a bit less tall (but keep equal height) */
.ht-page--login .ht-auth__actions{
  gap: 16px;
}

.ht-page--login .ht-auth__actions .ht-auth__btn{
  min-height: 56px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* 3) Hytrans App button slightly bigger than the previous small version */
.ht-page--login .ht-auth__appbtn{
  padding: 10px 16px;
  border-radius: 18px;
  gap: 12px;
  font-size: 22px;
}

.ht-page--login .ht-auth__appbtn-icon{
  width: 30px;
  height: 30px;
}

@media (max-width: 420px){
  .ht-page--login .ht-auth__appbtn{ font-size: 20px; padding: 9px 14px; }
  .ht-page--login .ht-auth__appbtn-icon{ width: 28px; height: 28px; }
  .ht-page--login .ht-auth__actions .ht-auth__btn{ min-height: 54px; }
}

/* 3) Hytrans App button slightly bigger than before (still compact) */
.ht-page--login .ht-auth__appbtn{
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 22px;
  gap: 10px;
}

.ht-page--login .ht-auth__appbtn-icon{
  width: 30px;
  height: 30px;
}

@media (max-width: 520px){
  .ht-page--login .ht-auth__actions .ht-auth__btn{
    min-height: 56px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .ht-page--login .ht-auth__appbtn{
    padding: 9px 14px;
    font-size: 20px;
    border-radius: 16px;
  }

  .ht-page--login .ht-auth__appbtn-icon{
    width: 28px;
    height: 28px;
  }
}

/* Form width: keep it "smal" like before */
.ht-page--login .ht-auth__form--login{
  width: min(520px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Header row: title left, app button right (aligned with inputs) */
.ht-page--login .ht-auth__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0 0 4px 0;
}

.ht-page--login .ht-auth__title{
  margin: 0;
  text-align: left;
}

/* MyHytrans button: 2x smaller */
.ht-page--login .ht-auth__appbtn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #14539B;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  font-family: var(--hyt-font-cond, "Acumin Pro ExtraCondensed", system-ui, sans-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.ht-page--login .ht-auth__appbtn-icon{
  width: 18px;
  height: 18px;
  display: block;
}

/* Remember + forgot: force single row */
.ht-page--login .ht-auth__aux{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
  width: 100%;
  margin-top: 2px;
}

.ht-page--login .ht-auth__remember,
.ht-page--login .ht-auth__remember-label,
.ht-page--login .ht-auth__forgot-link{
  font-family: var(--hyt-font-cond, "Acumin Pro ExtraCondensed", system-ui, sans-serif);
  font-weight: 700;
  font-style: normal;
  font-size: 18px;
  white-space: nowrap;
}

/* Actions: two equal buttons, together same width as inputs */
.ht-page--login .ht-auth__actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
  margin-top: 6px;
}

.ht-page--login .ht-auth__btn{
  width: 100%;
  height: 64px; /* equal height */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Install modal (login only) */
.ht-page--login .ht-install[hidden]{ display:none !important; }
.ht-page--login .ht-install{
  position: fixed;
  inset: 0;
  z-index: 10000;
}
.ht-page--login .ht-install__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.35);
}
.ht-page--login .ht-install__card{
  position: relative;
  width: min(520px, calc(100% - 32px));
  margin: 18vh auto 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  padding: 14px 14px 12px;
}
.ht-page--login .ht-install__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.ht-page--login .ht-install__brand{
  display:flex;
  align-items:center;
  gap: 10px;
}
.ht-page--login .ht-install__icon{ width: 22px; height: 22px; display:block; }
.ht-page--login .ht-install__title{
  margin:0;
  font-family: var(--hyt-font-cond, "Acumin Pro ExtraCondensed", system-ui, sans-serif);
  font-weight: 800;
  font-size: 22px;
}
.ht-page--login .ht-install__close{
  border:0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  padding: 2px 8px;
}
.ht-page--login .ht-install__body{
  font-family: var(--hyt-font-base, system-ui, sans-serif);
  font-size: 16px;
}
.ht-page--login .ht-install__body p{ margin: 8px 0; }
.ht-page--login .ht-install__body ol{ margin: 8px 0 0 18px; }
.ht-page--login .ht-install__actions{
  display:flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.ht-page--login .ht-install__ok{
  height: 44px;
  padding: 0 16px;
}

/* -------------------------------------------------------------------------- */
/* ULTRA FINAL overrides (must be last)                                        */
/* -------------------------------------------------------------------------- */

/* Keep Remember me + Forgot password on ONE line, regardless of base link CSS */
.ht-page--login .ht-auth__aux{
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: center !important;
  column-gap: 16px !important;
  flex-wrap: nowrap !important;
}

.ht-page--login .ht-auth__remember,
.ht-page--login .ht-auth__remember-label{
  white-space: nowrap !important;
}

.ht-page--login a.ht-auth__forgot-link,
.ht-page--login .ht-link.ht-auth__forgot-link{
  display: inline !important;
  justify-self: end !important;
  text-align: right !important;
  white-space: nowrap !important;
}

/* Buttons: slightly less tall */
.ht-page--login .ht-auth__actions .ht-auth__btn{
  min-height: 56px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* Hytrans App button: slightly bigger (still compact) */
.ht-page--login .ht-auth__appbtn{
  padding: 10px 16px !important;
  font-size: 22px !important;
  border-radius: 18px !important;
  gap: 12px !important;
}
.ht-page--login .ht-auth__appbtn-icon{
  width: 30px !important;
  height: 30px !important;
}

@media (max-width: 420px){
  .ht-page--login .ht-auth__appbtn{ font-size: 20px !important; padding: 9px 14px !important; }
  .ht-page--login .ht-auth__appbtn-icon{ width: 28px !important; height: 28px !important; }
  .ht-page--login .ht-auth__actions .ht-auth__btn{ min-height: 54px !important; }
  .ht-page--login .ht-auth__aux{ column-gap: 12px !important; }
}
