/*!
 * Copyright 2018-2024 adorsys GmbH & Co KG
 *
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Affero General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or (at
 * your option) any later version. This program is distributed in the hope that
 * it will be useful, but WITHOUT ANY WARRANTY; without even the implied
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see https://www.gnu.org/licenses/.
 *
 * This project is also available under a separate commercial license. You can
 * contact us at sales@adorsys.com.
 */

/* You can add global styles to this file, and also import other style files */
@import './assets/themes/variables';
@import 'bootstrap/scss/bootstrap';
@import './assets/themes/mobile';
@import 'material-icons/iconfont/material-icons.css';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-size: var(--textFontSize);
  font-weight: var(--textFontWeight);
  font-family: var(--fontFamily);
  color: var(--bodyFontColor);
  background: var(--bodyBG);

  @media screen and (max-width: 768px) {
    font-size: var(--textFontSize768px);
  }
  @media screen and (max-width: 1024px) {
    font-size: var(--textFontSize1024px);
  }
}

.logo {
  width: 80px;
  height: auto;
}

.header {
  &__title {
    font-size: 2rem;
    margin: 2rem 0;
  }
}

.card-title {
  font-size: 2rem;
}

.navbar-brand {
  padding: 0;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
}

a {
  color: var(--anchorFontColor);

  &.active,
  &:hover {
    color: var(--anchorFontColorHover);
  }

  &.text-primary:hover,
  &.text-primary:focus {
    color: var(--anchorFontColorHover) !important;
  }
}

select:not([multiple]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  background-position: 95% 50%;
  background-repeat: no-repeat;
  vertical-align: top;
  background-image: var(--arrow-url);
  background-size: 0.7em;
  padding: 0.2em 2.5em 0.2em 0.2em;
}

.text-dark {
  font-size: 1rem;
}

.text-light-dark {
  color: $COLOR_LIGHT_DARK;
}

.card {
  border: none;
  padding: 1.25rem;

  .card__subtitle {
    font-size: 1.2rem;
    color: #a0a0a0 !important;
    text-align: center;
  }

  &--large {
    padding: 2rem 2rem;
  }

  .card-img-top {
    width: 420px;
    margin: auto;
  }

  .card-body {
    padding: 0;

    .form-group {
      height: var(--form-group-height);
      margin: var(--margin-form-group);

      .form-control {
        padding: 0.25rem 0.75rem;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
      }
    }
    .form-check-label {
      margin-left: 30px;
      margin-bottom: 20px;
    }
  }

  .card-footer {
    padding-left: 0;
    padding-right: 0;
  }

  a {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #a0a0a0;
  }
}
.card-mw {
  max-width: 650px;
}

.mrb-7 {
  margin-bottom: 7rem;
}

.mrb-5 {
  margin-bottom: 5rem;
}

.mrt {
  margin-top: var(--subtitle-mrb);
}
.mrt-1-5 {
  margin-top: 1.5rem;
}

.pd-0 {
  padding: 0;
}

.no-bg-color {
  background-color: $COLOR_WHITE;
  border: none;
}

.row {
  margin-bottom: 2rem;
}

@media (max-width: 767px) {
  .bg-sm-light {
    background-color: $COLOR_LIGHT_GREY-10;
  }
}

#fixed {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
}

.sticky-top {
  z-index: 1000;
}

.confirm-payment-cancellation-block {
  position: fixed;

  @media (max-width: 767px) {
    position: relative;
  }
}

.confirm-payment-block {
  position: fixed;

  @media (max-width: 767px) {
    position: relative;
  }
}

h1 {
  font-size: var(--h1FontSize);
  font-weight: var(--h1FontWeight);
  color: var(--colorPrimary);
}

h2 {
  font-size: var(--h2FontSize);
  font-weight: var(--h2FontWeight);
}

h3 {
  font-size: var(--h3FontSize);
  font-weight: var(--h3FontWeight);
}

nav {
  background: var(--headerBG);
  padding: 2rem !important;
  border-top: var(--headerBorderTop);
}

.nav-item {
  &:hover {
    background: var(--menuItemHovered);
  }
}

.page-item.active {
  .page-link {
    background: var(--colorSecondary);
    border-color: var(--colorSecondary);
  }
}

.page-item {
  .page-link {
    background-color: transparent;
  }
}

tr {
  border-bottom: 1px solid #c4ccd3;
  color: var(--tr-color);
}

td {
  padding: 0.5rem 1.25rem;
}

th {
  font-size: 1.125rem !important;
  color: #545b68 !important;
  font-weight: 700 !important;
}

.btn {
  font-size: 1.1rem;
  white-space: nowrap;
  border-radius: var(--buttonBorderRadius);
  height: var(--button-heigh) !important;
  padding: 0 12px;

  &-primary {
    color: var(--buttonTextColor);

    background: var(--buttonBG);
    border: none;

    &:hover {
      background: var(--buttonHovered);
    }

    &:disabled {
      background: var(--buttonBGDisabled);
      opacity: var(--button-opacity);
      color: var(--buttonColorTextDisabled);
    }

    &:focus {
      outline: none;
      background: var(--buttonClicked);
    }

    &:active {
      background-color: inherit;
    }
  }
  &-table-btn {
    color: var(--buttonTextColor);
    background: var(--buttonBG);
    border: none;

    &:hover {
      background: var(--buttonHovered);
      color: var(--buttonTextColor);
    }

    &:disabled {
      opacity: var(--button-opacity);
      background: var(--buttonBGDisabled);
      color: var(--buttonColorTextDisabled);
    }

    &:focus {
      outline: none;
      background: var(--buttonClicked);
    }

    &:active {
      background-color: inherit;
    }
  }

  &-general {
    color: var(--buttonTextColor);

    background: var(--buttonBG);
    border: none;

    &:hover {
      background: var(--buttonHovered);
      color: var(--buttonTextColor);
    }

    &:disabled {
      background: var(--buttonBGDisabled);
      opacity: var(--button-opacity);
      color: var(--buttonColorTextDisabled);
    }

    &:focus {
      outline: none;
      background: var(--buttonClicked);
    }

    &:active {
      background-color: inherit;
    }
  }
}

.dp-error-border {
  border-left: 1px solid var(--colorErrorText) !important;
  border-top: 1px solid var(--colorErrorText) !important;
  border-bottom: 1px solid var(--colorErrorText) !important;
  border-right: 1px solid var(--colorErrorText) !important;
}
.dp-error-text {
  color: var(--colorErrorText);
  font-family: var(--fontFamily);
}

.form-control {
  height: inherit;
  margin-top: 0.5rem;
  background: var(--inputBG);
  outline: none;
  border-left: var(--inputBorderStyleLeft);
  border-top: var(--inputBorderStyleTop);
  border-bottom: var(--inputBorderStyleBottom);
  border-right: var(--inputBorderStyleRight);
  border-radius: var(--inputBorderRadius);
}

.form-control:focus {
  border-left: 1px solid black;
  border-bottom: 1px solid black;
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: var(--h1FontSize768px);
    font-weight: var(--h1FontWeight768px);
  }

  h2 {
    font-size: var(--h2FontSize768px);
    font-weight: var(--h2FontWeight768px);
  }

  h3 {
    font-size: var(--h3FontSize768px);
    font-weight: var(--h3FontWeight768px);
  }
}

@media screen and (max-width: 1024px) {
  h1 {
    font-size: var(--h1FontSize1024px);
    font-weight: var(--h1FontWeight1024px);
  }

  h2 {
    font-size: var(--h2FontSize1024px);
    font-weight: var(--h2FontWeight1024px);
  }

  h3 {
    font-size: var(--h3FontSize1024px);
    font-weight: var(--h3FontWeight1024px);
  }
}

html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Roboto, 'Helvetica Neue', sans-serif;
}
