* {
  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: 90px 100px 80px 100px;
}

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

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

.logo {
  position: absolute;
  top: 20px;
  left: 20px;
  min-height: 35px;
}

.logo img {
  height: 30px;
}

.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: 400px;
  overflow-y: auto;
}

/* Providers */

.provider-logo {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  width: 15%;
  min-width: 46.5px;
  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;
  }

  .logo {
    position: inherit;
    min-height: 35px;
  }

  .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 {
  font-size: inherit;
}

.button,
.button-secondary {
  display: -webkit-box;
  cursor: pointer;
  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-weight: 800;
}

input {
  width: 100%;
  height: 40px;
  padding: 5px 0 13px;
  border: none;
  border-bottom: solid 0.1rem #e7ebf4;
}

/* Prevent iOS auto zoom */
@media (max-width: 768px) {
  input {
    font-size: 16px;
  }
}

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 {
  height: 40px;
  margin-top: 7px;
  padding: 0 15px;
  border-radius: 5px;
}

/* 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;
}

/*************** CONNECTIONS ****************/

.connections-container {
  max-height: calc(100vh - 244px);
}

.connections-container.with-error {
  max-height: calc(100vh - 400px);
}

@media (max-width: 768px) {
  .connections-container {
    max-height: calc(100vh - 134px);
  }

  .connections-container.with-error {
    max-height: calc(100vh - 230px);
  }
}

/*************** ACCOUNTS ****************/

.accounts-container {
  max-height: calc(100vh - 204px);
}

.accounts-container.with-add-channel-button {
  max-height: calc(100vh - 270px);
}

@media (max-width: 768px) {
  .accounts-container {
    max-height: calc(100vh - 114px);
  }

  .accounts-container.with-add-channel-button {
    max-height: calc(100vh - 180px);
  }
}

