@import './fonts/fonts.css';

.hcpsw-card {
  padding: 20px 16px 35px 16px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
  box-sizing: border-box;
  justify-content: space-evenly;
  align-items: flex-end;
}

.hcpsw-card--inline {
  width: auto;
  background: inherit;
  max-width: 100vw;
}

.hcpsw-card--floating {
  width: 400px;
  max-width: calc(100vw - 50px);
  padding: 25px 20px 35px 20px;
  background-color: rgba(250, 250, 250, 1);
  border-width: 1px;
  border-style: solid;
  border-color: rgba(215, 215, 215, 1);
  box-shadow: 0px 0px 16px rgb(0 0 0 / 16%);
  border-radius: 4px;
}

.hcpsw-address {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 2 2 auto;
}

.hcpsw-address__header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px;
  line-height: 24px;
}

.hcpsw-address__body {
  display: grid;
}

.hcpsw-search-title {
  display: inline-flex;
  gap: 10px;
}

.hcpsw-checkbox {
  position: relative;
  display: flex;
  gap: 4px;
  align-items: center;
}

.hcpsw-checkbox::after {
  text-overflow: inherit;
}

.hcpsw-checkbox__input {
  cursor: pointer;
  transform: scale(1.5);
  outline: none;
}

.hcpsw-checkbox__label {
  cursor: pointer;
  margin-left: 4px;
}

.hcpsw-checkbox__label::before {
  position: absolute;
  inset: 0px;
  content: '';
  pointer-events: none;
}

.hcpsw-search {
  box-shadow: none;
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  border: 1px solid rgb(31, 31, 31);
  border-radius: 2px;
  background: rgb(255, 255, 255);
  cursor: text;
  height: 32px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
}

.hcpsw-search__input {
  margin: 0px 5px 0px 10px;
}

.hcpsw-input {
  box-shadow: none;
  border: none;
  background: none transparent;
  width: 100%;
  text-overflow: ellipsis;
  outline: 0px;
}

.hcpsw-input__error {
  margin: 0px;
  padding-top: 35px;
  display: flex;
  align-items: center;
  position: absolute;
}

.hcpsw-icon {
  -webkit-font-smoothing: antialiased;
  font-style: normal;
  display: flex;
  align-items: center;
}

.hcpsw-icon__search-box {
  padding-right: 8px;
}

.hcpsw-input::placeholder {
  font-family: Apis;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  color: rgb(31, 31, 31);
  opacity: 1;
}

.hcpsw-error {
  color: rgb(164, 38, 44);
}

.hcpsw-font {
  font-family: Apis;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

.hcpsw-font--small {
  font-size: 12px;
}

.hcpsw-font--big {
  font-size: 16px;
}

.hcpsw-card__button {
  min-width: 150px;
  padding-top: 10px;
  flex: 1 1;
}

.hcpsw-card__select {
  min-width: 200px;
  padding-top: 10px;
  flex: 1 1;
}

.hcpsw-button {
  cursor: pointer;
  border-radius: 2px;
  min-width: 80px;
  height: 32px;
  width: 100%;
}

.hcpsw-button--primary {
  border: 1px solid rgb(0, 90, 210);
  background-color: rgb(0, 90, 210);
  color: rgb(255, 255, 255);
}

.hcpsw-button--primary:hover {
  background-color: rgb(12, 38, 117);
  border: 1px solid rgb(12, 38, 117);
}

.hcpsw-button--primary:active {
  background-color: rgb(33, 60, 139);
  border: 1px solid rgb(33, 60, 139);
}

.hcpsw-button__label {
  padding: 0px 16px;
  user-select: none;
}

.hcpsw-select {
  cursor: pointer;
  border-radius: 2px;
  border: 1px solid rgb(138, 136, 134);
  background-color: rgb(255, 255, 255);
  min-width: 80px;
  height: 32px;
  width: 100%;
  padding: 0px 5px 0px 16px;
}

.hcpsw-select:hover {
  background-color: rgb(243, 242, 241);
  color: rgb(100, 100, 100);
}

.hcpsw-select:active {
  background-color: rgb(237, 235, 233);
  color: rgb(100, 100, 100);
}

.hcpsw-label--small-padding {
  padding: 0px 5px;
}

.hcpsw-floating-container {
  position: fixed;
  z-index: 99999;
  right: 25px;
  bottom: 25px;
}

.hcpsw-close-button {
  cursor: pointer;
  position: absolute;
  right: 8px;
  top: 8px;
  opacity: 0.5;
}

.hcpsw-close-button:hover {
  opacity: 1;
}

.hcpsw-floating-button {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0px 16px;
  user-select: none;
  border-radius: 25px;
  box-shadow: 0px 0px 16px rgb(0 0 0 / 16%);
  min-width: 140px;
  height: 50px;
}

.hcpsw-info-tooltip-wrapper {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.hcpsw-info-tooltip {
  width: 200px;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0px 0px 16px rgb(0 0 0 / 16%);
  padding: 20px;
  text-align: left;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  transition: opacity 0.3s;
  margin-left: -100px;
  margin-bottom: 10px;
}

.hcpsw-info-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 10%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  z-index: 1;
  border-color: #ffffff transparent transparent transparent;
  box-shadow: 0px 0px 16px rgb(0 0 0 / 16%);
}

.hcpsw-info-tooltip__header {
  margin: 0px 0px 5px 0px;
}

.hcpsw-popup-container {
  background-color: #ffffff;
  min-width: 100px;
  min-height: 100px;
  padding: 20px 24px;
  box-sizing: border-box;
  border-radius: 2px;
  box-shadow: rgb(0 0 0 / 13%) 0px 6.4px 14.4px 0px,
    rgb(0 0 0 / 11%) 0px 1.2px 3.6px 0px;
  outline: transparent;
  width: 100%;
  z-index: 99;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

@media only screen and (max-width: 767px) {
  .hcpsw-popup-container {
    height: 100%;
  }
}

.hcpsw-specialities {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex: 1;
  max-height: calc(100vh - 40px);
}

.hcpsw-select__label {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hcpsw-groups__label {
  font-family: Apis;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  font-weight: 600;
  color: rgb(51, 51, 51);
  box-sizing: border-box;
  box-shadow: none;
  margin: 0px;
  display: block;
  padding: 5px 0px;
  overflow-wrap: break-word;
}

.hcpsw-group-button {
  box-sizing: border-box;
  display: inline-block;
  cursor: pointer;
  border-radius: 2px;
  border: 1px solid rgb(138, 136, 134);
  background-color: rgb(255, 255, 255);
  min-width: 80px;
  padding: 0px 16px;
  height: 32px;
  width: 100%;
  color: rgb(51, 51, 51);
  user-select: none;
}

@media only screen and (min-width: 767px) {
  .hcpsw-group-button {
    min-width: 80px;
  }
}

.hcpsw-specialities__list {
  border-top: 1px solid rgb(243, 242, 241);
  margin-top: 12px;
  padding-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
  overflow: auto;
}

.hcpsw-group-button:hover {
  background-color: rgb(243, 242, 241);
  color: rgb(100, 100, 100);
}

.hcpsw-group-button:active {
  background-color: rgb(237, 235, 233);
  color: rgb(100, 100, 100);
}

.hcpsw-group-button--checked,
.hcpsw-group-button--checked:hover {
  border: 1px solid rgb(0, 90, 210);
  background-color: rgb(33, 60, 139);
}

.hcpsw-group-button--checked .hcpsw-group-button__label,
.hcpsw-group-button--checked:hover .hcpsw-group-button__label {
  color: rgb(255, 255, 255);
}

.hcpsw-groups__buttons-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1em;
}

.hcpsw-popup-footer {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.hcpsw-popup-footer__button {
  width: 80px;
}

.hcpsw-address-finder {
  position: relative;
}

.hcpsw-address-finder .pac-container {
  position: absolute !important;
  left: 0px !important;
  top: 32px !important;
}

.hcpsw-card--floating
  .hcpsw-address-finder[data-autocomplite-above='true']
  .pac-container {
  bottom: 36px;
  top: unset !important;
}
