:root {
  --grey:#f2f5f5;
  --black: #1f2226;
  --white: #ffffff;
  --primary: #1e7ea3;
  --primary-contrast: #fff;
  --secondary: #cf995d;

  --green: #3fab75;
  --red: #c13e3e;
  --red-light: #eaccc7;
  --blue: #488de3;
  --pre-text-color: #000;
}

/*------------------------------------*\
	General
\*------------------------------------*/

body{
	font-family: 'Inter', Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.9;
	color: var(--black);
	background-color: #eff1f3;
}

h1{ font-size: 2rem; font-weight: 700;}
h2{ font-size: 1.3rem; font-weight: 700; border-bottom: 1px solid #D2DBE2; padding-bottom: .6rem;}
h2.blank{ border-bottom: 0; }
h3{ font-size: 1rem; font-weight: 500; padding-bottom: .6rem;}

.fw-500{font-weight: 500 !important;}

underline{text-decoration: underline;}

.font-weight-medium{font-weight: 500;}

img{max-width: 100%;}

a, a:hover{color: inherit; text-decoration: none; -webkit-transition: all .15s ease-in-out; -o-transition: all .15s ease-in-out; transition: all .15s ease-in-out;}
a, a:hover, a:active, a:focus, button:focus, button:active{color: inherit; text-decoration: none; outline: 0 !important; -webkit-box-shadow:none !important; box-shadow:none !important; outline: 0 !important;}

.bg-primary{background-color: var(--primary) !important;}
.bg-secondary{background-color: var(--secondary) !important;}
.bg-grey{background-color: var(--grey) !important;}
.bg-white{background-color: #fff !important;}

.color-white{color: var(--white) !important;}
.color-black{color: var(--black) !important;}
.color-primary{color: var(--primary) !important;}
.color-primary-contrast{color: var(--primary-contrast) !important;}
.color-grey{color: var(--grey) !important;}
.color-red-light{color: var(--red-light) !important;}

.spacer.spacer-1{display: block; height: 5rem;}
.spacer.spacer-2{display: block; height: 7rem;}
.spacer.spacer-3{display: block; height: 12rem;}

.font-size-sm{font-size: .9rem; font-size: 15px;}
.font-size-lg{font-size: 1.5rem; }
.font-size-xl{font-size: 2rem; }

button{
  background: none;
  border: 0;
}
.btn{
  font-weight: 500;
  /* padding: 1.1rem 2rem; */
  --bs-btn-padding-x: 2rem;
  --bs-btn-padding-y: 1.1rem;
}
.btn-sm{
  --bs-btn-padding-x: .8rem;
  --bs-btn-padding-y: .8rem;
}
.btn-primary, .btn-primary:active, .btn-primary:focus{
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-color: var(--primary-contrast);
  --bs-btn-hover-color: var(--primary-contrast);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-color:var(--primary-contrast);
  --bs-btn-active-bg:var(--primary);
  --bs-btn-active-border-color: var(--primary);
}
a.btn:focus{
  color: var(--bs-btn-color);
}
.btn-primary:hover, .btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle{

  /* background-color: #37709c;
  border-color: #37709c; */
  box-shadow: none;
  opacity: .9;
}
.btn-text,.btn-text:focus,.btn-text:active{
  color: var(--primary);
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}
.btn-text:hover{
  color: var(--light-blue);
}

.btn-border{
  --bs-btn-border-color: var(--primary);
  --bs-btn-color: var(--primary);
  --bs-btn-hover-color: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-color:var(--primary);
  --bs-btn-active-border-color: var(--primary);
}



.btn[disabled]{
  /* background-color: #37709c !important;
  border-color: #37709c !important; */
  opacity: .5;
}
.box-shadow{
  box-shadow: 5px 5px 40px rgba(0,0,0,.05);
}
.border-radius{
  border-radius: 1.5rem;
}
.border-radius-start{
  border-top-left-radius: 1.5rem;
  border-bottom-left-radius: 1.5rem;
}
.border-radius-end{
  border-top-right-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
}
.border-radius-top{
  border-top-right-radius: 1.5rem;
  border-top-left-radius: 1.5rem;
}
.border-radius-bottom{
  border-bottom-right-radius: 1.5rem;
  border-bottom-left-radius: 1.5rem;
}

.border-radius-top-right{
  border-top-right-radius: 1.5rem;
}

.pre-text{
  color: var(--pre-text-color);
}

.nav-item.dropdown > ul.dropdown-menu{
  border-color: #fff;
    box-shadow: 5px 5px 40px rgb(0 0 0 / 5%);
	left: inherit;
	right: 0;
}

.nav-item.dropdown > ul.dropdown-menu:after {
	content: '';
	position: absolute;
	top: 0;
	right: 4%;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-bottom-color: #fff;
	border-top: 0;
	margin-left: -10px;
	margin-top: -10px;
}

.dropdown-item.active, .dropdown-item:active {

    background-color: var(--primary);
}


.navbar-nav .nav-link.active, .navbar-nav .show>.nav-link {
    text-decoration: underline;
}

.navbar-toggler{
  padding: 0.5rem;
  font-size: 1.7rem;
  border: 0;
  color: var(--primary) !important;
}

.form-control, .form-select{
  /* border-color: var(--grey) !important; */
  border-color: #b7b7b7 !important;
  background-color: var(--grey) !important;
  height: calc(1.5em + 2.4rem);
  padding: 1rem 1.25rem;
  border-radius: .3rem;
  box-shadow: none !important;
  color: var(--black);
}
.navbar-nav > li.dropdown > a{
	color: var(--primary);
}
.navbar-nav > li.dropdown > a > i{
	font-size: 1.7rem;
    vertical-align: middle;
}
.navbar-nav > li.dropdown > a:after{display: none;}

textarea.form-control{height: inherit;}


.form-floating>.form-control, .form-floating>.form-control-plaintext, .form-floating>.form-select {
    padding: 1rem 1.25rem;
    height: calc(1.5em + 2.4rem);
}
.form-floating>label{
  padding: 1rem 1.25rem;
}

.form-label{
  font-size: .9rem;
  margin-bottom: 0;
}

.input-group .form-floating .form-control{
  border-left-color: var(--grey) !important;
}
.input-group .input-group-text{
  border-color: #b7b7b7 !important;
  border-right-color: var(--grey) !important;
}

.input-group > .form-control,
.input-group .form-floating > label,
.input-group .form-floating > input{
  padding-left: .3rem;
}

.form-floating>.form-control-plaintext~label, .form-floating>.form-control:focus~label, .form-floating>.form-control:not(:placeholder-shown)~label, .form-floating>.form-select~label {
    transform: scale(.85) translateY(-0.6rem) translateX(0.15rem);
}

.input-group-text{
  border-color: var(--grey) !important;
  background-color: var(--grey) !important;
}

div.loader{
  background-image: url(../img/load.svg);
  height: 50px;
  width: 50px;
  background-size: cover;
  margin: 0 auto;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  border-color: var(--grey);
  -webkit-text-fill-color: var(--black);
  -webkit-box-shadow: 0 0 0px var(--grey) #000 inset;
  transition: background-color 5000s ease-in-out 0s;
}
.form-control.form-icon{padding-left: 1rem;}

label > small{
  display: block;
  margin-top: .2rem;
}

.form-check {
  padding-left: 2em;
}
.form-check > .form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-left: -2em;
}

.form-check.form-switch {
  padding-left: 4em;
}
.form-check.form-switch > .form-check-input {
  width: 3em;
  height: 1.8em;
  margin-left: -4em;
}

.form-check > .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.form-check > label{
  line-height: 1.5;
}

.form-check.form-switch > label{
  opacity: 1 !important;
}

div.checkbox.switcher span{cursor:pointer;}
div.checkbox.switcher label, div.radio.switcher label {
  padding: 0;
}
div.checkbox.switcher label *, div.radio.switcher label * {
  vertical-align: middle;
}
div.checkbox.switcher label input, div.radio.switcher label input {
  display: none;
}
div.checkbox.switcher label input + span, div.radio.switcher label input + span {
  position: relative;
  display: inline-block;
  margin-right: 10px;
  width: 56px;
  height: 28px;
  background: #b7b7b7;
  border: 1px solid #eee;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  padding: 1px;
}
div.checkbox.switcher label input[disabled] + span, div.radio.switcher label input[disabled] + span {
  cursor: not-allowed;
  background-color:var(--grey);
  border-color: var(--grey);
}
div.checkbox.switcher label input + span small, div.radio.switcher label input + span small {
  position: absolute;
  display: block;
  width: calc(50% - 2px);
  height: calc(100% - 2px);
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
  left: 0;
  /* margin: 1px; */
  border: 1px solid #b7b7b7;
}
div.checkbox.switcher label input:checked + span, div.radio.switcher label input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
}
div.checkbox.switcher label input:checked + span small, div.radio.switcher label input:checked + span small {
  left: 50%;
}

.form-control::-webkit-input-placeholder { color: var(--black); }
.form-control:-ms-input-placeholder { color: var(--black); }
.form-control::placeholder { color: var(--black); }

.alert{
  background-color: var(--white);
  border-color: var(--white);
  color: var(--red);
  padding-left: 2rem;
}
.alert:before{
  content: "";
  width: 1rem;
  background-color: var(--red);
  display: inline-block;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}
.alert.alert-success{color: var(--green);}
.alert.alert-success:before{background-color: var(--green);}

.alert.alert-info{color: var(--blue);}
.alert.alert-info:before{background-color: var(--blue);}

.nav-buttons-right{
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  flex-direction: row;
}

#flags a{ display: block; }
#flags > a{padding: 0.68rem;}
#flags img{
  width: 40px;
  border-radius: 5px;
  display: block;
}
#flags ul{
  position: absolute;
  padding: 0;
  margin: 0;
  list-style: none;
  height: 0;
  overflow: hidden;
  transition: height .5s ease;
}
#flags.active ul{height: auto;}
#flags ul a{

  padding-left: 0.6rem;
   padding-right: 0.6rem;
}
#flags.active ul a{
  opacity: .7;
  transition: opacity .35s ease;

}
#flags.active ul a:hover{opacity: 1;}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translate3d(0, -20%, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

/*------------------------------------*\
	Tables
\*------------------------------------*/
.table td, .table th {
    border: 0;
}
.table thead th{
  border-bottom: 0;
}
.table-striped tbody tr:nth-of-type(odd){
  background-color: var(--grey);
}
.table > tbody > tr > *{
  border-bottom: 1px solid var(--grey);
}


.table tbody td.actions{
  width: 50px;
  text-align: center;
  padding: 0;
  font-size: 1.4rem;
  vertical-align: middle;
}
.table tbody td.actions > a{
  padding: 0 1rem;
  display: block;
  transition: all .35s ease;
  transform: translateX(-10px);
}
.table tbody tr:hover td.actions > a{
  transform: translateX(0);
  color: var(--primary);
}
.table#order-list tbody tr,
.table#reclaim-list tbody tr[data-id]{
  cursor: pointer;
  transition: border-color .25s ease;
}
.table#order-list tbody tr:hover > td,
.table#reclaim-list tbody tr:hover > td{color: var(--primary)}
.table#order-list tbody tr.odd,
.table#reclaim-list tbody tr.odd{
  background-color: var(--grey);
}




/*------------------------------------*\
	Modals
\*------------------------------------*/
.modal .modal-content{
  border-radius: 1.5rem;
  border: 0;
  box-shadow: 5px 5px 40px rgba(0,0,0,.05);
}
.modal-header, .modal-body, .modal-footer{
  border: 0;
}
.close{
  color: var(--primary);
  opacity: 1;
}
.close:hover{
  color: var(--light-blue);
}


/*------------------------------------*\
	Popovers
\*------------------------------------*/
.popover{
  box-shadow: 0px 0px 20px rgb(30 76 112 / 0.21);
  padding: 2rem;
  border: 0 !important;
  border-radius: 3rem;
  background: var(--secondary);
  max-width: 450px;
  z-index: 5;
}
.popover.error{
    padding: 1rem 1.5rem;
    background: var(--red);
}
.bs-popover-auto.error[data-popper-placement^=top]>.popover-arrow::after{
  border-top-color: var(--red);
}
.popover.error .popover-header{
  font-size: 1rem;
}

.bs-popover-top > .arrow{
  bottom: calc(-1rem - 1px);
  height: 1rem;
}
.bs-popover-bottom > .arrow{
  top: calc(-1rem - 1px);
  height: 1rem;
}
.bs-popover-top > .arrow:after{
  border-width: 1rem 1rem 0;
  border-top-color: var(--secondary);
}
.bs-popover-bottom > .arrow:after{
  border-width:0 1rem 1rem 1rem;
  border-bottom-color: var(--secondary);
}
.popover .arrow:before{display: none;}
.popover-header,.popover-body{
  color: #fff;
  padding: 0;
  background: none;
  border: 0;
}
.popover-header::before{display: none !important;}
.popover-header{
  font-size: 1.46rem;
  font-weight: 500;
}
.popover ul{
  padding-left: 1.5rem;
  margin-top: .5rem;
  margin-bottom: 0;
}

.tooltip-inner {
  background-color: #3fab97;
}
.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after{
  border-left-color: var(--secondary);
}
.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after{
  border-right-color: var(--secondary);
}
.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after{
  border-top-color: var(--secondary);
}
.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after{
  border-bottom-color: var(--secondary);
}
/* .bs-tooltip-auto[x-placement^=bottom] .arrow::before, .bs-tooltip-bottom .arrow::before {
    border-top-color: #3fab97 !important;
    border-bottom-color: #3fab97 !important;
} */
/*------------------------------------*\
	Form
\*------------------------------------*/
#rekform [disabled], label.disabled{
  opacity: .7;
  cursor: not-allowed;
}


  /*------------------------------------*\
  	Files
  \*------------------------------------*/

  #files .file{
    position: relative;
    font-size: 13px;
    font-weight: 500;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background: var(--grey);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #f2f5f5;
    border-radius: 5px;
  }

  #files .file .name{
    background: #fff;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    transform: translateY(110%);
    line-height: 1.2;
  }

  #files .file .name > i{

    font-size: 1.4rem;
    margin-right: .4rem;
  }

  #files .file .remove-file{
    font-size: 1.2rem;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #ffffff00;
    transition: background-color .35s ease;
  }
  #files .file .remove-file:hover{
    background: #ffffff96;
  }
  #files .file .remove-file > i{
    font-size: 3rem;
    opacity: 0;
    transition: opacity .35s ease;
  }
  #files .file .remove-file:hover > i{
    opacity: 1;
  }

  /*------------------------------------*\
  	Articles
  \*------------------------------------*/

  #articles .form-control, #articles .form-select{
    /* font-size: 15px; */
    font-size: 14px;
    height: calc(3rem + 2px);
    padding: .7rem .7rem;
  }

  #articles div[data-art]{
    position: relative;
  }
  #articles .remove-article-row{
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    padding: .5rem 1.5rem;
    transform: translateX(64px);
  }
  #articles div[data-art]:not([data-art="1"]):hover .remove-article-row{
    display: block;
  }
  #articles div[data-art]{
    position: relative;
    border-radius: 5px;
    border: 2px solid white;
    transition: border-color .35s ease;
  }
  #articles div[data-art][data-inactive="false"]{
    border-color: var(--primary);
    padding: 4px;
  }
  #articles div[data-art].is-sub{
    padding-left: 3rem;
  }
  #articles div[data-art].is-sub:before{
    content: "\f148";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transform: rotate(90deg);
    position: absolute;
    top: 5px;
    left: 10px;
    line-height: 2;
    font-size: 1.3rem;
  }
  #articles div[data-art][data-inactive="true"].is-sub:before{
    opacity: .5;
  }

  #articles div[data-art] div.checkbox.switcher label{
    margin-bottom: 0.2rem;
  }


  /*------------------------------------*\
  	Response
  \*------------------------------------*/
  .response h3{
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0;
  }

  /*------------------------------------*\
  	Cookie consent
  \*------------------------------------*/
  #cookie-consent{
    --color-green-light: #a6f567;
    width: 500px;
    z-index: 9999;
    border-top-right-radius: 1.5rem;
    box-shadow: 0 0 30px #0000001c;
    font-size: .9em;
    overflow-y: auto;
    max-height: 100vh;
  }

  @media (max-width: 767px){
    #cookie-consent{
      width: 100%;
      border-top-right-radius: 0;
    }
  }











/*------------------------------------*\
	Responsive
\*------------------------------------*/

@media (min-width: 1200px){
  .container, .container-lg, .container-md, .container-sm, .container-xl {
      max-width: 1200px;
  }
  /* #rekform{
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  } */
}
@media (max-width: 1199px){
  #rekform{ padding: 4rem 3rem; }
  #articles div[data-art]{
    border-left: 2px solid var(--primary);
    padding-left: .5rem;
  }
}
@media (max-width: 990px){
  h1{font-size: 2rem;}
  .spacer.spacer-1{height: 4rem;}
  .spacer.spacer-2{height: 6rem;}
  .spacer.spacer-3{height: 8rem;}



  .border-radius-start{
    border-top-right-radius: 1.5rem;
    border-top-left-radius: 1.5rem;
    border-bottom-left-radius: 0;
  }
  .border-radius-end{

    border-bottom-right-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
    border-top-right-radius: 0;
  }


  #articles div[data-art]:not([data-art="1"]) .remove-article-row{
    display: inline-flex !important;
    align-items: center;
    transform: none;
    position: relative;
    margin: 1rem .5rem 1rem;
    padding: 0;
  }
  #articles div[data-art]:not([data-art="1"]) .remove-article-row:after{
    content:"Radera artikel";
    display: block;
    margin-left: 1rem;
    font-size: 1rem;
  }

  .navbar-toggler{z-index: 999;}
  .navbar-brand{max-width: 50%;}


  #rekNavbar{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 5px 5px 40px rgba(0,0,0,.05);
    z-index: 998;
  }

  .nav-item.dropdown > ul.dropdown-menu{
    box-shadow: none;
  }

  .nav-item.dropdown:not(#accountsMenu) > ul.dropdown-menu{
	  display: block;
  }
	.nav-item.dropdown:not(#accountsMenu) > a.dropdown-toggle{
		display: none;
	}

  #accountsMenu > a{
    display: block;
    padding: .25rem 1rem;
  }
  #accountsMenu > ul{
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 1rem;

    border-top: 0;
    border-radius: 0;
  }

	.dropdown-item.active, .dropdown-item:active {
		color: #fff;
		background-color: var(--primary) !important;
	}

  #rekNavbar > ul{
    padding-top: 5rem;
  }

  #rekNavbar .nav-link{
      padding-top: .6rem;
      padding-bottom: .6rem;
  }



  /* #rekform{ padding: 2rem; } */
}
