* {
  box-sizing: inherit;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  box-sizing: border-box;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  font-size: 14px;
}

body {
  margin: 0;
}

body.fixed {
  position: fixed;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

body,
* {
  box-sizing: border-box;
}
html,
body,
#root {
  height: 100%;
}

/*************** LAYOUTS ****************/

/* root > layout > main-container > header|children.layout-item >> page > step-form > content|content-navigation */

#root {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.layout {
  height: 680px;
  width: 560px;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 3px 12px 0 rgba(5, 46, 80, 0.07);
  display: flex;
  flex-direction: column;
  padding: 80px 110px;
}

.main-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: flex-start;
  height: 100%;
}

.header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .title {
  display: flex;
  align-items: center;
}

.header .back-button {
  cursor: pointer;
}

.footer {
  margin-top: 10px;
  padding: 12px 0;
  width: 560px;
}

.top-cancel-button {
  display: none;
}

.layout-item {
  width: 100%;
  height: 100%;
  padding: 0;
}

.page {
  height: 100%;
}

.step-form,
.content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.content-scrollable {
  max-height: 450px;
  overflow-y: auto;
}

/* Providers */

.provider-logo {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  width: 15%;
  height: 27px;
}

/* MOBILE */
@media (max-width: 768px) {
  .content-scrollable {
    max-height: 100%;
    overflow-y: inherit;
  }
  .layout {
    width: 100%;
    height: 100%;
    padding: 10px;
    box-shadow: none;
    border-radius: 0;
  }
  .footer {
    display: none;
  }
  .top-cancel-button {
    display: block;
    position: absolute;
    right: 10px;
    top: 15px;
  }
}

/*************** MODAL ****************/

#modal-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
}

/*************** ELEMENTS ****************/

h1 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.text {
  font-size: 18px;
}

.button,
.button-secondary {
  display: -webkit-box;
  width: auto;
  height: 40px;
  -webkit-box-orient: horizontal;
  padding: 0 15px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  line-height: 1;
  text-decoration: none;
  border: 1px solid;
  border-radius: 5px;
  flex-wrap: nowrap;
  transition-duration: 0.2s;
}

.button.disabled {
  cursor: default;
  opacity: 0.2;
}

label {
  font-size: 14px;
  font-weight: 800;
}

input {
  width: 100%;
  height: 50px;
  font-size: 16px;
  padding: 10px 0;
  border: none;
  border-bottom: solid 0.1rem #e7ebf4;
}
input:focus {
  outline: none;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

::placeholder {
  color: #9090a7;
}

/*************** PROVIDERS ****************/

/* search */
.search-container {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  margin: 20px 0;
  background-color: transparent;
  border-radius: 0;
  border: none !important;
  padding: 0;
}

.input-container,
.search-container input {
  flex: 1;
  display: flex;
  border: 0;
  line-height: 4rem;
}

.search-container .input-container {
  background-color: transparent;
}

.search-container .input-container input {
  background-color: #f5f5f7;
  height: 40px;
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 0 15px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.38;
}

/* provider list */

.fullist {
  margin: 0;
}

.providers ul {
  margin-left: 0;
}

.providers ul > li {
  border-bottom: 1px solid #f5f5f7;
  max-width: none;
  padding-right: 10px;
}

.providers ul > li.initial {
  font-weight: 900;
  border: none;
  margin-top: 5rem;
}

.providers ul > li.initial:first-child {
  margin: 0;
}

/* subprovider list */

.group ul {
  display: block;
}

.group h2 {
  font-size: 4rem;
  font-weight: 900;
  text-align: left;
  margin: 0 0 0 15px;
}

.color-icon,
.submit-button-icon {
  fill: currentColor;
}
svg,
svg * {
  color: inherit;
}

/***************************************************/

#terms {
  width: 100%;
  height: 100%;
}

.cgu-content > div {
  height: 100%;
}

/*********************** MODALS ****************************/

#modal-terms-content {
  height: 100%;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

#modal-terms-content iframe {
  display: block;
}

/* WITH BORDER */
.layout.without_border {
  height: 100%;
  box-shadow: none;
}
.without_border .layout-item {
  padding: 0;
}
.without_border .content-scrollable {
  max-height: none;
  overflow-y: inherit;
}

