/* ===== Global Polestar-checkbox ===== */
:root{
  --cb-size: 20px;
  --cb-border: 2px;
  --cb-border-color: #6b6f73;
  --cb-bg: #fff;
  --cb-checked-bg: #FF7500;
  --cb-tick: #101820;
  /* --pagebg-top: 280px; */
  --pagebg-height: 780px;
}

@font-face {
  font-family: 'PolestarUnica';
  src: url('../assets/fonts/PolestarUnica77TT-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


body{
  position: relative;
  font-family: 'Polestarunica', Arial, sans-serif !important;
}

/* .col { min-width: 300px; }     /* som du hade – håller 2 kolumner */

 .col { min-width: initial; }
.controls-row { display: flex; flex-wrap: wrap;}
.controls-row > .col,
.controls-row > .col-auto { flex: 0 0 50%; max-width: 50%; }
@media (max-width: 991.98px) {
  .controls-row > .col,
  .controls-row > .col-auto { flex-basis: 100%; max-width: 100%; }
}


body::before{
  content:"";
}

#header,#page,#footer {
  position:relative; z-index:1;
}

#page {
  background:transparent !important;
}

#header {
  background:transparent !important;
  border: none !important;
}

/* Polestar specific styles */

/*______ Header och meny styling ______*/
#mainmenu {
  background-color: #ffffff;
  color: #000000;
  background: transparent;
}

#content {
  background: transparent !important;
  border: none !important;
  padding: 10px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  width: 860px !important;

  margin-left: auto !important;
  margin-right: auto !important;
}

li.active {
  background: transparent;
}

#mainmenu ul li a {
  color: #000000;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;

  -webkit-transition: color 200ms cubic-bezier(0,0,1,1),
                      opacity 150ms cubic-bezier(0.65,0,0,1);
  transition: color 200ms cubic-bezier(0,0,1,1),
              opacity 150ms cubic-bezier(0.65,0,0,1);
}

/* Aktiv menyknapp */
#mainmenu ul li.active a {
  color: #000000 !important;
  font-weight: 700;       /* fet stil */
  border: none;           /* ingen underline/border */
  background: transparent;
}

/* Hover på ej aktiva */
#mainmenu ul li:not(.active) a:hover {
  background: transparent;
  color: #2f3c49;         /* mörkare grå vid hover */
  text-decoration: underline;
}

#mainmenu ul li a { opacity: 0.85; }             /* bas */
#mainmenu ul li:not(.active) a:hover,
#mainmenu ul li:not(.active) a:focus { opacity: 1; }

/*______ Input fälten  ______*/


input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
  border: none;
  border-bottom: 2px solid #6c757d;
  background: transparent;
  font-size: 14px;
  color: #000;
  padding: 1px 0;
  width: 230px;
  box-sizing: border-box;
  border-radius: 0 !important;
}


/*______ Radio knapparna här nere ______*/
.form-check-input[type="radio"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 20px;
  height: 20px;
  border: 2px solid #6b6f73 !important;
  border-radius: 50%;
  background: #fff;
  position: relative;

  /* slå av Bootstrap-blått */
  background-image: none !important;
  box-shadow: none;
  outline: none;
  background: transparent !important
}

/* Orange cirkel*/
.form-check-input[type="radio"]::after,
input[type="radio"]::after {
  content: "";
  position: absolute;
  inset: 2px;                  /* tjockleken på den vita ringen */
  border-radius: 50%;
  background: transparent;
}

/* när vald: fyll kärnan orange */
.form-check-input[type="radio"]:checked::after,
input[type="radio"]:checked::after {
  background: #FF7500;
}

input[type="radio"]:focus {
  outline: none;
  box-shadow: none;
}


/* Range slider */

/* Webkit (Chrome, Edge, Safari) */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FF7500;   /* orange cirkel */
  cursor: pointer;
  border: none;
}

/* Firefox */
input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FF7500;
  cursor: pointer;
  border: none;
}

/* IE/Edge (äldre) */
input[type=range]::-ms-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FF7500;
  cursor: pointer;
  border: none;
}

/* Ta bort blått fokus på range-slidern */
input[type=range]:focus {
  outline: none;
}

input[type=range]:focus::-webkit-slider-thumb {
  background: #FF7500;   /* behåll orange även vid fokus */
  box-shadow: none;      /* ta bort blå skugga */
}

input[type=range]:active::-webkit-slider-thumb {
  background: #FF7500;   /* behåll orange även när man drar */
  box-shadow: none;
}

/* Firefox */
input[type=range]:focus::-moz-range-thumb,
input[type=range]:active::-moz-range-thumb {
  background: #FF7500;
  box-shadow: none;
}

/* Edge/IE gamla */
input[type=range]:focus::-ms-thumb,
input[type=range]:active::-ms-thumb {
  background: #FF7500;
  box-shadow: none;
}

/* Chrome, Edge, Safari */
input[type=range]::-webkit-slider-runnable-track {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
}

/* Firefox */
input[type=range]::-moz-range-track {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
}

/* IE/Edge (äldre) */
input[type=range]::-ms-track {
  height: 4px;
  background: #e0e0e0;
  border-color: transparent;
  color: transparent;
  border-radius: 2px;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: transparent !important;
  color: #000000 !important;
  border: none !important;
  border-bottom: 2px solid #6c757d !important;
  border-radius: 1px !important;
  /* max-width: 300px;*/
}

.form-select option {
  background-color: #fff !important;
  color: #000;
}

.form-select:focus {
  outline: none;
  box-shadow: none !important;
  border-color: #000;
  background-color: #ff000000 !important;
  color: #000;
}


#tilleggssektion { position: static; margin-top: 24px; width: auto; }

#addMoment_title .span4{
  font-size: 18px;
  display: flex;
  z-index: 1;
}

#addMoment .div-border {
  /* padding: 16px 10px; */
  background: #ffffff;
  border: none;
  border-radius: 1px;

}


#addMoment .div-border label{
  grid-column: 1 / -1;
  margin-left: 15px;
}


#addMoment .div-border input[type="checkbox"]{
margin-left: 15px;
  grid-column: 1;
}
#addMoment .div-border span{
  grid-column: 2;
  align-self: center;
  margin: 0;
}

/* Lägg detta efter dina nuvarande .controls-row-regler */
#addMoment{
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;           /* vertikal luft mellan rader */
  column-gap: 15px;        /* samma som du redan använder */
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#addMoment .col{
  /* två per rad: 50% minus halva gapet på varje sida */
  flex: 0 0 calc(50% - 10px);
  max-width: calc(50% - 10px);
  padding-left: 0 !important;   /* slår av Bootstrap-gutters i just denna rad */
  padding-right: 0 !important;
}

/* Mobil: fall tillbaka till en kolumn */
@media (max-width: 768px){
  #addMoment .col{
    flex-basis: 100%;
    max-width: 100%;
  }
}


input[type="checkbox"],
.form-check-input[type="checkbox"]{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  width: var(--cb-size);
  height: var(--cb-size);
  display: inline-grid;
  place-content: center;
  vertical-align: middle;
  cursor: pointer;

  background: var(--cb-bg);
  border: var(--cb-border) solid var(--cb-border-color);
  border-radius: 2px;
  position: relative;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}

input[type="checkbox"]::after,
.form-check-input[type="checkbox"]::after{
  content: "";
  width: calc(var(--cb-size) - 10px);
  height: calc(var(--cb-size) - 14px);
  border-bottom: 2px solid var(--cb-tick);
  border-left: 2px solid var(--cb-tick);
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform .12s ease-in-out;
  margin-bottom: 2px;
}

input[type="checkbox"]:checked,
.form-check-input[type="checkbox"]:checked{
  background: var(--cb-checked-bg) !important;
  border-color: #5a5a5a;
}
input[type="checkbox"]:checked::after,
.form-check-input[type="checkbox"]:checked::after{
  transform: rotate(-45deg) scale(1);
}
input[type="checkbox"]:focus-visible,
.form-check-input[type="checkbox"]:focus-visible{
  outline: 2px solid #101820;
  outline-offset: 2px;
}
input[type="checkbox"]:hover,
.form-check-input[type="checkbox"]:hover{
  box-shadow: 0 0 0 2px rgba(16,24,32,.08);
}
input[type="checkbox"]:disabled,
.form-check-input[type="checkbox"]:disabled{
  opacity: .45;
  cursor: not-allowed;
}

input[type="checkbox"].cb-native{
  appearance: auto !important;
  -webkit-appearance: auto !important;
  -moz-appearance: auto !important;
  background: initial !important;
  border: initial !important;
  box-shadow: none !important;
}

/* Knappar */
/* Bas: vit knapp med svart kant (globalt för secondary) */
.btn.btn-secondary {
  background: #fff !important;
  color: #101820 !important;
  border: 1px solid #101820 !important;
  border-radius: 2px;
  box-shadow: none !important;
  padding: 8px 14px;
}

/* Hover/focus (ej aktiv) */
.btn.btn-secondary:hover,
.btn.btn-secondary:focus {
  background: #f5f5f5 !important;
  color: #101820 !important;
  border-color: #101820 !important;
}

/* Aktivt tillstånd: svart fylld + vit text
   (stöd både .active och aria-pressed="true" + :active) */
.btn.btn-secondary.active,
.btn.btn-secondary[aria-pressed="true"],
.btn.btn-secondary:active {
  background: #101820 !important;
  color: #fff !important;
  border-color: #101820 !important;
}

/* Fokusring för tillgänglighet */
.btn.btn-secondary:focus-visible {
  outline: 2px solid #101820;
  outline-offset: 2px;
}

/* Disabled */
.btn.btn-secondary:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Primary-knappar → vit med svart kant, svart när aktiv */
.btn.btn-primary{
  background: #fff !important;
  color: #101820 !important;
  border: 1px solid #101820 !important;
  border-radius: 2px;
  box-shadow: none !important;
  padding: 8px 14px;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus{
  background: #f5f5f5 !important;
  color: #101820 !important;
  border-color: #101820 !important;
}

.btn.btn-primary.active,
.btn.btn-primary[aria-pressed="true"],
.btn.btn-primary:active{
  background: #101820 !important;
  color: #fff !important;
  border-color: #101820 !important;
}

.btn.btn-primary:focus-visible{
  outline: 2px solid #101820;
  outline-offset: 2px;
}

.btn.btn-primary:disabled{
  opacity: .5;
  cursor: not-allowed;
}


.col { min-width: 300px; }     /* som du hade – håller 2 kolumner */

@media (min-width: 992px){
  .controls-row > .col,
  .controls-row > .col-auto{
    flex: 0 0 50%;
    max-width: 50%;
  }
}


.controls-row select.form-select{
  width: 230px !important;
  max-width: 230px !important;
  display: inline-block;        /* så den inte fyller kolumnen */
}

.controls-row input.form-control{
  width: 230px;                 /* matchar redan dina inputs */
}


/* Endast Modell-selecten */
#model {
  width: 384px !important;          /* samma som dina inputs */
  max-width: 384px !important;
  display: inline-block; /* så den inte fyller hela .col */

}

#version {
  margin-left: 0;
  width: 384px !important;
  max-width: 384px !important;
  }

.col-5 {
  margin: 0 !important;
  width: 404px !important;
  max-width: 404px !important;
  padding: 0 !important;
  display: inline-block;
  }

.form-panel{
  position: relative;
  z-index: 0;
}

.form-panel::before{
  content:"";
  position:absolute;
  top:0;
  bottom: 0;
  left:50%;
  max-height: 95%;
  width:100vw;
  transform:translateX(-50%);
  background:#f3f3f3;
  z-index:-2;
}

#page, #content{ background: transparent !important; }

#content{
  width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}


footer {
  background: white !important;
  border: none !important;
  text-align: center;
  height: 100px;
  padding: 10px 0 !important;
  font-size: 13px !important;
  color: #6c757d !important;
}

#div-price{
  background: #ffffff;
  border-radius: 2px;
}

#priceSectionBg {
  position: relative;
  z-index: 0;
  margin-top: 24px;
}

#priceSectionBg::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #ffffff;
  z-index: -1;
}

#div-price-list {
  background: #fff;
  border-radius: 2px;
}

html { overflow-x: clip; }

#person-name-holder{
  margin-top:-25px !important;
  font-size:14px !important;
  font-weight:700 !important;
  padding-left:15px !important;
  display:inline-flex;
  align-items:center;
  gap:4px;
}

#person-name:not(:empty)::before{
  content:"";
  display:inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -1px;
  color: #FF7500;

  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M6.146 3.646a.5.5 0 0 1 .708 0l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 1 1-.708-.708L9.793 8 6.146 4.354a.5.5 0 0 1 0-.708z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M6.146 3.646a.5.5 0 0 1 .708 0l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 1 1-.708-.708L9.793 8 6.146 4.354a.5.5 0 0 1 0-.708z'/></svg>") no-repeat center / contain;
}

#updatePrice {
  margin-top: -10px !important;
}

.tbl-hdiv{
margin: -20px 0 -10px;
padding-top: 25px;
padding-bottom: 30px;
background-color: #ffffff !important;
}

#I_Chassinr_t_title { position: relative; }

/* Ikonknappen */
.infoMark{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  cursor: pointer;
  color: #111;                 /* ikonfärg */
}
.infoMark svg{ width: 100%; height: 100%; display: block; }
.infoMark:hover{ color: #FF7500; } /* hoverfärg */

/* Tooltip-bubbla (dold från start) */
.pv-tip{
  position: absolute;
  top: 100%;                   /* precis under raden */
  left: calc(100% + 6px);      /* strax till höger om knappen */
  background: #fff;
  color: #101820;
  border: 1px solid #d0d3d6;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(16,24,32,.12);
  display: none;
  z-index: 10;
}

/* Visa tooltip när vi togglar klassen */
.pv-tip.is-open{ display: inline-block; }


.form-control:disabled {
  background-color: #d6d6d6 !important;
}

.form-select:disabled {
  background-color: #d6d6d6 !important;
}
