/*
 * App Global CSS
 * ----------------------------------------------------------------------------
 * Put style rules here that you want to apply globally. These styles are for
 * the entire app and not just one component. Additionally, this file can be
 * used as an entry point to import other CSS/Sass files to be included in the
 * output CSS.
 * For more information on global stylesheets, visit the documentation:
 * https://ionicframework.com/docs/layout/global-stylesheets
 */

/* Core CSS required for Ionic components to work properly */
@import "~@ionic/angular/css/core.css";

/* Basic CSS for apps built with Ionic */
@import "~@ionic/angular/css/normalize.css";
@import "~@ionic/angular/css/structure.css";
@import "~@ionic/angular/css/typography.css";
@import "~@ionic/angular/css/display.css";

/* Optional CSS utils that can be commented out */
@import "~@ionic/angular/css/padding.css";
@import "~@ionic/angular/css/float-elements.css";
@import "~@ionic/angular/css/text-alignment.css";
@import "~@ionic/angular/css/text-transformation.css";
@import "~@ionic/angular/css/flex-utils.css";

@import "../src/app/pages/sant/sant-information/sant-information.page.scss";
@import "../src/app/pages/shravak/passive-user-education/passive-user-education.page.scss";
@import "../src/app/pages/shravak/passive-user-profile-image/passive-user-profile-image.page.scss";
@import "../src/app/pages/shravak/passive-user-information/passive-user-information.page.scss";
@import "../src/app/pages/sant/about-diksha/about-diksha.page.scss";
@import "../src/app/pages/sant/about-sansarik-jeevan/about-sansarik-jeevan.page.scss";
@import "../src/app/pages/sant/sant-profile-image/sant-profile-image.page.scss";
@import "../src/app/pages/sant/search-sant/search-sant.page.scss";
@import "../src/app/pages/sant/vihar-info/vihar-info.page.scss";
@import "../src/app/pages/sant/chaturmas-info/chaturmas-info.page.scss";
@import "../src/app/pages/sant/add-chaturmas/add-chaturmas.page.scss";
@import "../src/app/pages/auth/otp/otp.page.scss";
@import "../src/app/pages/common/menu/menu.page.scss";
@import "../src/app/pages/common/create-account/create-account.page.scss";
@import "../src/app/pages/shravak/shravak-view-profile/shravak-view-profile.page.scss";
@import "../src/app/pages/shravak/shravak-edit-profile/shravak-edit-profile.page.scss";
@import "../src/app/pages/shravak/shravak-about/shravak-about.page.scss";
@import "../src/app/pages/sant/create-new-sant/create-new-sant.page.scss";
@import "../src/app/pages/shravak/shravak-other-profile/shravak-other-profile.page.scss";
@import "../src/app/pages/post/post-feed/post-feed.page.scss";
@import "../src/app/pages/post/post-type/post-type.page.scss";
@import "../src/app/pages/post/add-location/add-location.page.scss";
@import "../src/app/pages/common/global-search/global-search.page.scss";
@import "../src/app/pages/shravak/shravak-edit-location/shravak-edit-location.page.scss";
@import "../src/app/pages/shravak/shravak-edit-contact-info/shravak-edit-contact-info.page.scss";
@import "../src/app/pages/shravak/shravak-edit-family-members/shravak-edit-family-members.page.scss";
@import "../src/app/pages/shravak/shravak-edit-work/shravak-edit-work.page.scss";
@import "../src/app/pages/shravak/shravak-edit-education/shravak-edit-education.page.scss";
@import "../src/app/pages/shravak/shravak-other-about/shravak-other-about.page.scss";
@import "../src/app/pages/messages/message/message.page.scss";
@import "../src/app/pages/messages/message-chat/message-chat.page.scss";
@import "../src/app/pages/common/notification/notification.page.scss";
@import "../src/app/pages/shravak/friend-request/friend-request.page.scss";
@import "../src/app/pages/sangh/sangh-information/sangh-information.page.scss";
@import "../src/app/pages/sangh/sangh-address/sangh-address.page.scss";
@import "../src/app/pages/sangh/sangh-profile-image/sangh-profile-image.page.scss";
@import "../src/app/pages/sangh/invite-members/invite-members.page.scss";
@import "../src/app/pages/sangh/sangh-profile/sangh-profile.page.scss";
@import "../src/app/pages/sant/vihar-modal/vihar-modal.page.scss";
@import "../src/app/pages/sangh/sangh-members-admin-view/sangh-members-admin-view.page.scss";
@import "../src/app/pages/sangh/sangh-search-member/sangh-search-member.page.scss";
@import "../src/app/pages/sangh/sangh-role-select/sangh-role-select.page.scss";
@import "../src/app/pages/sangh/sangh-edit-profile/sangh-edit-profile.page.scss";
@import "../src/app/pages/post/tagged-user/tagged-user.page.scss";
@import "../src/app/pages/post/post-detail/post-detail.page.scss";
@import "../src/app/pages/sangh/create-new-sangh/create-new-sangh.page.scss";
@import "../src/app/pages/sangh/view-all-sangh/view-all-sangh.page.scss";
@import "../src/app/pages/sangh/add-committee-member/add-committee-member.page.scss";
@import "../src/app/pages/sangh/invitations/invitations.page.scss";
@import "../src/app/pages/sangh/about-sangh/about-sangh.page.scss";
@import "../src/app/pages/common/visibility-policy/visibility-policy.page.scss";
@import "../src/app/pages/common/terms-policy/terms-policy.page.scss";
@import "../src/app/pages/sant/thana-list/thana-list.page.scss";
@import "../src/app/pages/sant/add-thana/add-thana.page.scss";
@import "../src/app/pages/shravak/friend-list/friend-list.page.scss";
@import "../src/app/pages/shravak/friends-suggestions-view-all/friends-suggestions-view-all.page.scss";
@import "../src/app/pages/shravak/search-friend/search-friend.page.scss";
@import "swiper/scss";
@import "@ionic/angular/css/ionic-swiper";
@import "swiper/scss/pagination";
@import "swiper/scss/zoom";

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy/Gilroy-Bold.eot");
  src: url("assets/fonts/Gilroy/Gilroy-Bold.eot?#iefix") format("embedded-opentype"),
    url("assets/fonts/Gilroy/Gilroy-Bold.woff2") format("woff2"),
    url("assets/fonts/Gilroy/Gilroy-Bold.woff") format("woff"),
    url("assets/fonts/Gilroy/Gilroy-Bold.ttf") format("truetype"),
    url("assets/fonts/Gilroy/Gilroy-Bold.svg#Gilroy-Bold") format("svg");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy/Gilroy-SemiBold.eot");
  src: url("assets/fonts/Gilroy/Gilroy-SemiBold.eot?#iefix") format("embedded-opentype"),
    url("assets/fonts/Gilroy/Gilroy-SemiBold.woff2") format("woff2"),
    url("assets/fonts/Gilroy/Gilroy-SemiBold.woff") format("woff"),
    url("assets/fonts/Gilroy/Gilroy-SemiBold.ttf") format("truetype"),
    url("assets/fonts/Gilroy/Gilroy-SemiBold.svg#Gilroy-SemiBold") format("svg");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy/Gilroy-ExtraBold.eot");
  src: url("assets/fonts/Gilroy/Gilroy-ExtraBold.eot?#iefix") format("embedded-opentype"),
    url("assets/fonts/Gilroy/Gilroy-ExtraBold.woff2") format("woff2"),
    url("assets/fonts/Gilroy/Gilroy-ExtraBold.woff") format("woff"),
    url("assets/fonts/Gilroy/Gilroy-ExtraBold.ttf") format("truetype"),
    url("assets/fonts/Gilroy/Gilroy-ExtraBold.svg#Gilroy-ExtraBold") format("svg");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy/Gilroy-Black.eot");
  src: url("assets/fonts/Gilroy/Gilroy-Black.eot?#iefix") format("embedded-opentype"),
    url("assets/fonts/Gilroy/Gilroy-Black.woff2") format("woff2"),
    url("assets/fonts/Gilroy/Gilroy-Black.woff") format("woff"),
    url("assets/fonts/Gilroy/Gilroy-Black.ttf") format("truetype"),
    url("assets/fonts/Gilroy/Gilroy-Black.svg#Gilroy-Black") format("svg");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy/Gilroy-Light.eot");
  src: url("assets/fonts/Gilroy/Gilroy-Light.eot?#iefix") format("embedded-opentype"),
    url("assets/fonts/Gilroy/Gilroy-Light.woff2") format("woff2"),
    url("assets/fonts/Gilroy/Gilroy-Light.woff") format("woff"),
    url("assets/fonts/Gilroy/Gilroy-Light.ttf") format("truetype"),
    url("assets/fonts/Gilroy/Gilroy-Light.svg#Gilroy-Light") format("svg");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy/Gilroy-Heavy.eot");
  src: url("assets/fonts/Gilroy/Gilroy-Heavy.eot?#iefix") format("embedded-opentype"),
    url("assets/fonts/Gilroy/Gilroy-Heavy.woff2") format("woff2"),
    url("assets/fonts/Gilroy/Gilroy-Heavy.woff") format("woff"),
    url("assets/fonts/Gilroy/Gilroy-Heavy.ttf") format("truetype"),
    url("assets/fonts/Gilroy/Gilroy-Heavy.svg#Gilroy-Heavy") format("svg");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy/Gilroy-Regular.eot");
  src: url("assets/fonts/Gilroy/Gilroy-Regular.eot?#iefix") format("embedded-opentype"),
    url("assets/fonts/Gilroy/Gilroy-Regular.woff2") format("woff2"),
    url("assets/fonts/Gilroy/Gilroy-Regular.woff") format("woff"),
    url("assets/fonts/Gilroy/Gilroy-Regular.ttf") format("truetype"),
    url("assets/fonts/Gilroy/Gilroy-Regular.svg#Gilroy-Regular") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy/Gilroy-Medium.eot");
  src: url("assets/fonts/Gilroy/Gilroy-Medium.eot?#iefix") format("embedded-opentype"),
    url("assets/fonts/Gilroy/Gilroy-Medium.woff2") format("woff2"),
    url("assets/fonts/Gilroy/Gilroy-Medium.woff") format("woff"),
    url("assets/fonts/Gilroy/Gilroy-Medium.ttf") format("truetype"),
    url("assets/fonts/Gilroy/Gilroy-Medium.svg#Gilroy-Medium") format("svg");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy/Gilroy-Thin.eot");
  src: url("assets/fonts/Gilroy/Gilroy-Thin.eot?#iefix") format("embedded-opentype"),
    url("assets/fonts/Gilroy/Gilroy-Thin.woff2") format("woff2"),
    url("assets/fonts/Gilroy/Gilroy-Thin.woff") format("woff"),
    url("assets/fonts/Gilroy/Gilroy-Thin.ttf") format("truetype"),
    url("assets/fonts/Gilroy/Gilroy-Thin.svg#Gilroy-Thin") format("svg");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy/Gilroy-UltraLight.eot");
  src: url("assets/fonts/Gilroy/Gilroy-UltraLight.eot?#iefix") format("embedded-opentype"),
    url("assets/fonts/Gilroy/Gilroy-UltraLight.woff2") format("woff2"),
    url("assets/fonts/Gilroy/Gilroy-UltraLight.woff") format("woff"),
    url("assets/fonts/Gilroy/Gilroy-UltraLight.ttf") format("truetype"),
    url("assets/fonts/Gilroy/Gilroy-UltraLight.svg#Gilroy-UltraLight") format("svg");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

h1 {
  font-size: var(--ion-font-size-24);
}

h2 {
  font-size: var(--ion-font-size-20);
}

h3 {
  font-size: var(--ion-font-size-18);
}

h4 {
  font-size: var(--ion-font-size-14);
}

h5 {
  font-size: var(--ion-font-size-14);
}

.ml-2 {
  margin-left: 2px !important;
}

.ml-8 {
  margin-left: 8px !important;
}

.mb-5 {
  margin-bottom: 5px !important;
}

.mb-3 {
  margin-bottom: 3px !important;
}

.mb-10 {
  margin-bottom: var(--ion-margin-10) !important;
}

.mb-20 {
  margin-bottom: var(--ion-margin-20) !important;
}

.mt-10 {
  margin-top: var(--ion-margin-10) !important;
}

.p-10 {
  padding: 10px;
}

.d-flex {
  display: flex;
}

.w-100 {
  width: 100%;
}

.success-toast {
  --background: var(--ion-color-success);
  --color: var(--ion-color-white);
}

.error-toast {
  --background: var(--ion-color-danger);
  --color: var(--ion-color-white);
}

.blink_me {
  animation: blinker 1.5s linear infinite;
}

.ionic-selectable-icon {
  display: none;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

ion-button {
  height: 45px;
}

ion-button::part(native) {
  --background: var(--ion-color);
  font-size: var(--ion-font-size-12);
  text-transform: capitalize;
  border-radius: 5px;
  box-shadow: none;
  letter-spacing: 1px;
}

.global-form {
  font-size: var(--ion-font-size-14);
  width: 100%;

  &.shravak-edit-profile-form,
  &.shravak-edit-work-form,
  &.shravak-edit-contact-info {
    width: calc(100% - 30px);
  }

  .sc-ion-input-md-h:not(.legacy-input) {
    min-height: 40px;
  }

  &.shravak-edit-location {
    width: calc(100% - 32px);
  }


  div {

    .sc-ion-input-md-h:not(.legacy-input),
    .sc-ion-input-ios-h:not(.legacy-input) {
      min-height: 40px;
    }


    &.country-dropdown {
      --min-height: auto;

      &.mobile-no {
        margin-bottom: var(--ion-margin-0);
      }

      ionic-selectable {
        width: 100px;
        margin-right: 10px;
        margin-bottom: var(--ion-margin-0);
        padding-left: 6px;
        padding-right: 15px;

        &.custom-arrow {
          &::after {
            top: 22px;
            right: 8px;
          }
        }
      }
    }

    &.select-dharm {
      margin-top: var(--ion-margin-20);

      ion-select {
        .select-wrapper {
          display: initial !important;
        }
      }
    }

    .custom-select {
      --border-width: 0;
      border-width: 0;
      font-size: 14px;
      border-radius: 5px;
      min-height: 40px;
      overflow: hidden;
      border: 1px solid var(--ion-content-color);
      border-radius: 0.25rem;
      height: 2.5rem;

      &::part(icon) {
        display: none;
      }

      &::part(container) {
        padding-left: var(--ion-padding-10);
      }

    }

    ionic-selectable {
      align-items: center;
      border: 1px solid var(--ion-content-color);
      border-radius: 0.25rem;
      height: 2.5rem;
      position: relative;
      font-size: var(--ion-font-size-14) !important;
      background: transparent;
      max-width: 100%;
      padding-left: var(--ion-padding-10);
    }

    &.mobile-no-position {
      position: relative;


      .mobile-number {
        position: absolute;
        top: 0;
        width: calc(100% - 112px);
        right: 0px;
      }
    }

    label {
      font-size: var(--ion-font-size-14);
      font-weight: 600;
      display: flex;


      .suffix {
        color: var(--ion-content-color);
        font-size: 12px;
        padding-left: 3px;
      }
    }

    // --- For OTP Page
    .opt-verification-label {
      font-weight: normal;
    }

    ion-input {
      border: 1px solid var(--ion-content-color);
      border-radius: 0.25rem;
      --highlight-color-focused: none;
      --highlight-color-valid: none;
      text-align: left;
      font-weight: normal;
      --padding-start: var(--ion-padding-10);

      label {
        font-weight: normal;
      }

    }

    .date-padding {
      padding-left: var(--ion-padding-10) !important;
      height: 40px;
      display: flex;
      align-items: center;
    }

    .disable-label {
      pointer-events: none !important;
      opacity: 0.4 !important;
    }

    .normal-label {
      font-weight: normal;
    }

    ion-button {
      position: absolute;
      right: 7px;
      top: 19px;
      margin: var(--ion-margin-0);
      height: 30px;
      z-index: 99;
    }

    input {
      :focus {
        outline: none;
      }
    }

    ion-textarea {
      border: 1px solid var(--ion-content-color);
      padding: var(--ion-padding-10) !important;
      border-radius: .25rem;
      --highlight-color-focused: none;
      --highlight-color-valid: none;

      label>.native-wrapper>textarea {
        padding: var(--ion-padding-0) !important;
      }

      .textarea-wrapper.sc-ion-textarea-ios textarea.sc-ion-textarea-ios,
      .textarea-wrapper.sc-ion-textarea-md textarea.sc-ion-textarea-md {
        font-weight: 400;
      }
    }

    &.filter-btn {
      padding: var(--ion-padding-0) !important;

      ion-button {
        position: initial;
      }
    }

  }

  .passing-year {
    ion-input {
      height: 40px;
      padding-top: var(--ion-padding-10) !important;
    }
  }

  .university-graduated-to {
    div {
      display: flex;

      label {
        padding-top: var(--ion-padding-10);
      }

      ion-input {
        height: 40px;
        padding-left: var(--ion-padding-10) !important;
      }
    }
  }

  ion-card {
    ion-card-header {
      ion-card-title {
        ion-select {
          &.privacy-label {
            width: auto;
            padding-right: 25px;
          }
        }
      }
    }

    ion-card-header ion-card-title,
    ion-card-content {
      .custom-select {
        --border-width: 0;
        border-width: 0;
        font-size: 14px;
        border-radius: 5px;
        min-height: 40px;
        overflow: hidden;
        border-radius: 0.25rem;
        height: 2.5rem;

        &::part(icon) {
          display: none;
        }
      }



      ionic-selectable {
        border-radius: 0.25rem;
        height: 2.5rem;
        position: relative;
        font-size: var(--ion-font-size-14) !important;
        background: transparent;
        max-width: 100%;
        padding-left: var(--ion-padding-10);

        .ionic-selectable-inner {
          .ionic-selectable-value {
            padding-top: var(--ion-padding-10);
          }
        }
      }

      ion-radio-group {
        ion-item {
          font-size: var(--ion-font-size-14);
        }
      }

      ion-input {
        --padding-start: var(--ion-padding-15);
      }
    }

    ion-card-header ion-card-title .custom-select {
      height: initial !important;
      min-height: unset;

    }
  }

  ion-text {
    border: 1px solid var(--ion-content-color);
    border-radius: 0.25rem;
    height: 2.5rem;
    font-size: var(--ion-font-size-14) !important;
    background: transparent;
    display: inherit;
    padding: var(--ion-padding-10) var(--ion-padding-0) var(--ion-padding-0) var(--ion-padding-10);
  }

  &.shravak-edit-work-form {
    ion-card {
      ion-card-content {
        ion-item {
          ion-input {
            margin-top: 5px;

            label {
              position: absolute;
              top: 0;
            }
          }

          ion-checkbox {
            width: 100%;
          }
        }
      }
    }
  }
}

app-shravak-edit-education,
app-passive-user-education,
app-about-sansarik-jeevan,
app-sangh-edit-profile {
  .global-form div label {
    font-weight: normal;
  }
}

.custom-arrow {
  position: relative;

  &::after {
    position: absolute;
    content: "";
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    box-sizing: border-box;
    height: 6px;
    width: 6px;
    border-color: var(--ion-content-color);
    border-width: 0px 1px 1px 0px;
    transition: border-width 150ms ease-in-out;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--ion-content-color);
  }
}

ion-header {
  box-shadow: none !important;

  &.header-md::after {
    display: none;
  }

  ion-toolbar {
    --background: var(--ion-color);
    --min-height: 68px;
    border-radius: 0 0 15px 15px;
    position: relative;
    padding-top: calc(env(safe-area-inset-top) - 10px) !important;

    &.ios {
      --min-height: 58px;
    }

    ion-title {
      padding: var(--ion-padding-0) var(--ion-padding-15);
      text-align: left;
      color: var(--ion-color-white);

      &.back-btn {
        padding-left: 45px;
      }
    }

    ion-icon {
      margin-right: var(--ion-margin-15);
      color: #fff;
      position: relative;
      z-index: 99;
    }

    ion-back-button {
      color: #fff;
    }

    &.sant {
      --background: var(--ion-color-sant);
    }

    &.sangh {
      --background: var(--ion-color-sangh);
    }

    &.hospital {
      --background: var(--ion-color-hospital);
    }

    ion-badge {
      position: absolute;
      top: 12px;
      width: 18px;
      padding: 0 !important;
      right: 9px;
      left: auto;
      height: 18px;
      border-radius: 100%;
      font-size: 10px;
      font-weight: 400;
      z-index: 2;
      background: red;
    }
  }
}

.required-label {
  color: var(--ion-color-danger);
}

ion-item {
  --inner-border-width: 0;
  --inner-padding-end: 0;
  padding: var(--ion-padding-0) var(--ion-padding-15);
  --border-width: 0;
  --border-style: none;
  margin-bottom: var(--ion-margin-20);
  --background: none;

  ion-label {
    margin-top: 0;
    font-size: var(--ion-font-size-14) !important;

    &.label-stacked.sc-ion-label-md-h {
      transform: translate(0) scale(1);
      color: #000 !important;
    }
  }

  label {
    font-size: var(--ion-font-size-14) !important;

    &.show-lbl {
      font-size: var(--ion-font-size-15) !important;
    }
  }

  input {
    height: 2.5rem;
    padding: var(--ion-padding-10) !important;
    background: transparent;
  }

  .sc-ion-input-md-h:not(.legacy-input),
  .sc-ion-input-ios-h:not(.legacy-input) {
    min-height: initial;
  }

  ion-input,
  ion-text {
    border: 1px solid var(--ion-content-color);
    border-radius: 0.25rem;
    height: 2.5rem;
    font-size: var(--ion-font-size-14) !important;
    background: transparent;

    input[type="text"],
    input[type="number"] {
      padding: var(--ion-padding-10) !important;
      font-size: var(--ion-font-size-14) !important;
      background: transparent;
    }
  }

  ion-select,
  ion-textarea {
    border: 1px solid var(--ion-content-color);
    border-radius: 0.25rem;
    height: 2.5rem;
    margin-bottom: var(--ion-margin-20);
    padding: var(--ion-padding-10) var(--ion-padding-15) !important;
    font-size: var(--ion-font-size-14) !important;
    margin-top: 0 !important;
    background: transparent;

    textarea {
      --padding-inline-end: 0;
      --padding-top: 0;
      --padding-bottom: 0;
      background: transparent;
    }

    &::part(icon) {
      transform: translate3d(0, 0, 0);
    }
  }

  ionic-selectable {
    border: 1px solid var(--ion-content-color);
    border-radius: 0.25rem;
    height: 2.5rem;
    margin-bottom: var(--ion-margin-20);
    font-size: var(--ion-font-size-14) !important;
    background: transparent;
  }

  ion-text {
    width: 100%;
    display: flex;
    align-items: center;
    padding-left: 5px;
    font-size: 12px;
    background: transparent;
  }

  ion-popover {
    --offset-x: 0;
  }

  &::part(native) {
    padding: var(--ion-padding-0);
  }

  &.item-has-focus {
    border: none;
    --highlight-background: none;
    --show-full-highlight: 0;
  }
}

ion-popover {
  --width: 60%;
  --offset-x: 4%;

  ion-label {
    padding-left: var(--ion-padding-15);
  }

  ion-item {
    margin: var(--ion-margin-0);
  }

  ion-select-popover {
    ion-list {
      ion-radio-group {
        ion-item {
          margin: var(--ion-margin-0);
          padding: var(--ion-padding-0);
          --min-height: 30px;
        }
      }
    }
  }

  &.content-dropdown {
    &::part(content) {
      left: auto;
      right: 10px;
      width: 70%;
    }
  }
}

ion-footer {
  background: var(--ion-color-white);
  box-shadow: 2px 2px 7px #ebebeb;

  &.footer-md::before {
    display: none;
  }

  &.sant {
    ion-button {
      &::part(native) {
        --background: var(--ion-color-sant);
      }
    }
  }

  &.sangh {
    ion-button {
      &::part(native) {
        --background: var(--ion-color-sangh);
      }
    }
  }

  ion-tabs {
    ion-tab-bar {
      ion-tab-button {
        ion-label {
          font-size: var(--ion-font-size-12);
          --ripple-color: #b4b4b4;
        }
      }
    }
  }
}

:host(.privacy-label) {
  label {
    float: right;
  }
}

.error {
  color: #f00;
  margin-top: 5px;
  font-size: 0.68rem;
}

ion-content {
  --background: var(--ion-background-content);

  ion-item::part(detail-icon) {
    display: none;
  }

  .search-data {
    padding: 5px 0;
    position: absolute;
    top: 60px;
    width: 100%;
    z-index: 9999;

    ion-list {
      box-shadow: 0px 0px 3px 0px #dbdbdb;
      padding: var(--ion-padding-0);
      max-height: 200px;
      overflow-y: auto;

      ion-item {
        margin: var(--ion-margin-0);
        border-bottom: 1px solid #dbdbdb;

        ion-avatar {
          margin: var(--ion-margin-0) var(--ion-margin-10) var(--ion-margin-0) var(--ion-margin-0);
        }

        ion-label {
          h2 {
            padding: var(--ion-padding-0);
            margin: var(--ion-margin-0);
          }
        }
      }
    }
  }

  ion-card {
    box-shadow: 2px 2px 7px #ebebeb;
    border-radius: 5px;
  }
}

ion-tabs {
  ion-tab-bar {
    ion-tab-button {
      color: #666666;
      font-size: 10px;

      &.active {
        color: #2482a7 !important;
        --ripple-color: #2482a7 !important;
      }

      img {
        margin-bottom: 0px;
      }

      &:last-child {
        img {
          margin-top: 6px;
        }
      }

      ion-label {
        margin-top: 4px;
      }

      &:nth-child(4) {
        position: relative;

        ion-badge {
          position: absolute;
          top: 2px;
          width: 18px;
          padding: 0 !important;
          right: 12px;
          left: auto;
          height: 18px;
          border-radius: 100%;
          font-size: 10px;
          font-weight: 400;
          z-index: 2;
          background: red;
        }
      }
    }

    &.sant {
      ion-tab-button {
        &.active {
          color: #4e9c81 !important;
          --ripple-color: #4e9c81 !important;

          ion-label {
            color: #4e9c81 !important;
            --ripple-color: #4e9c81 !important;
          }
        }
      }
    }

    &.sangh {
      ion-tab-button {
        &.active {
          color: var(--ion-color-sangh) !important;
          --ripple-color: var(--ion-color-sangh) !important;

          ion-label {
            color: var(--ion-color-sangh) !important;
            --ripple-color: var(--ion-color-sangh) !important;
          }
        }
      }
    }
  }
}

ion-modal {
  ion-content {
    --background: var(--ion-color-white);

    ion-item {

      ion-select,
      ionic-selectable {
        margin-bottom: var(--ion-margin-0);
      }
    }
  }

  ionic-selectable-modal {
    ion-header {
      ion-toolbar {
        --background: none;
        --min-height: 48px;

        &.toolbar-searchbar {
          padding-top: 0 !important;
        }

        ion-buttons {
          ion-button {
            &::part(native) {
              color: #fff !important;
            }

            color: #fff !important;
          }
        }
      }
    }

    ion-content {
      background: var(--ion-color-white);

      ion-list {
        ion-item {
          --min-height: 25px;

          ion-icon {
            margin: var(--ion-margin-0);

            &.ion-color-primary {
              --ion-color-base: var(--ion-color) !important;
            }
          }
        }
      }
    }

    ion-searchbar {
      padding: 0 15px !important;
      --box-shadow: none !important;

      .searchbar-input-container {
        border: 1px solid var(--ion-content-color);
        border-radius: 0.25rem;
        height: 2.5rem;
        font-size: var(--ion-font-size-14) !important;

        input {
          height: 38px !important;
          --min-height: 38px;
        }
      }
    }

    ion-footer {
      ion-toolbar {
        padding-bottom: 5px !important;
      }
    }
  }

  ion-selectable-modal {
    ion-buttons {
      ion-button {
        --color: #fff !important;
      }
    }
  }
}

ion-app {
  letter-spacing: 1px !important;
}

ion-action-sheet {
  .action-sheet-wrapper {
    .action-sheet-container {
      .action-sheet-group-cancel {
        button {
          display: flex;
          width: calc(100% - 30px);
          margin: var(--ion-margin-0) auto;
          height: 35px;
          border-radius: 5px;

          span {
            justify-content: center;
          }
        }
      }
    }
  }
}

.calendar {
  ion-card-content {
    padding: var(--ion-padding-0) !important;

    ion-input {
      input {
        --padding-end: var(--ion-padding-15);
        --padding-start: 0;
      }
    }
  }
}

.sant {
  ion-item {

    ion-input,
    ion-text {
      border: 1px solid var(--ion-content-color-sant);
    }

    ion-select,
    ion-textarea,
    ionic-selectable {
      border: 1px solid var(--ion-content-color-sant);
      padding: var(--ion-padding-10) !important;
    }
  }
}

ion-radio {
  &::part(container) {
    --ion-color-base: var(--ion-color);
  }

  &::part(mark) {
    --ion-color-base: var(--ion-color);
  }
}

.item-has-focus .label-stacked.sc-ion-label-md-h:not(.ion-color) {
  color: inherit !important;
}

.ion-activated {
  --background-activated: transparent !important;
}

.message-toast {
  &::part(container) {
    word-break: break-all;
  }

  &::part(message) {
    max-height: 80px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.ios {
  .alert-wrapper {
    .alert-head {
      h2 {
        margin: var(--ion-margin-0);
      }
    }

    .alert-message {
      padding-bottom: var(--ion-padding-15) !important;
    }

    .alert-button-group {
      button {
        margin-bottom: var(--ion-margin-0) !important;
        font-weight: normal !important;
      }
    }
  }
}

.pre-fill {
  white-space: pre-wrap;
}


/*----- 12-09-2022 -----*/

app-shravak-view-profile,
app-shravak-other-profile,
app-sangh-profile {
  ion-content {
    .bottom-bg-location {
      ion-card {
        &.detail {
          ion-card-content {
            .img-upload {
              swiper-container {
                swiper-slide {
                  background: #e7f7fe;
                }

                &::part(pagination) {
                  width: 100%;
                  height: 21px;
                  background-color: var(--ion-color);
                  bottom: 6px;
                }

                &::part(bullet) {
                  background-color: var(--ion-background-gray);
                  opacity: 1;
                }

                &::part(bullet-active) {
                  background-color: var(--ion-color-white);
                }
              }
            }
          }
        }
      }
    }
  }
}

.bottom-bg-location {
  ion-card {
    &.detail {
      ion-card-content {
        .img-upload {
          .swiper-wrapper {
            .swiper-slide {
              .slide {
                img {
                  width: auto;
                  height: auto;
                }
              }
            }
          }
        }
      }
    }
  }
}

.bottom-bg-location {
  .shravak {
    ion-card {
      &.detail {
        ion-card-header {
          border-bottom: 2px solid var(--ion-color);
          position: relative;
        }

        ion-card-content {
          .img-upload {
            swiper-container {
              swiper-slide {
                text-align: center;
                background: #e7f7fe;

              }

              &::part(pagination) {
                width: 100%;
                height: 21px;
                background-color: var(--ion-color);
                bottom: 6px;
              }

              &::part(bullet) {
                background-color: var(--ion-background-gray);
                opacity: 1;
              }

              &::part(bullet-active) {
                background-color: var(--ion-color-white);
              }
            }
          }
        }
      }
    }
  }

  .sant {
    ion-card {
      &.detail {
        ion-card-header {
          border-bottom: 2px solid var(--ion-color-sant);
        }

        ion-card-content {
          .img-upload {
            .swiper {
              .swiper-wrapper {
                .swiper-slide {
                  background: #dfeae2;
                }
              }
            }

            &::part(pagination) {
              background-color: var(--ion-color-sant);

            }

            &::part(bullet-active) {
              background-color: var(--ion-color-white);
            }
          }
        }
      }
    }
  }

  .sangh {
    ion-card {
      &.detail {
        ion-card-header {
          border-bottom: 2px solid var(--ion-color-sangh);
          position: relative;
        }

        ion-card-content {
          .img-upload {

            swiper-container {
              swiper-slide {
                text-align: center;
                background: #e7f7fe;
              }

              &::part(pagination) {
                width: 100%;
                height: 21px;
                background-color: var(--ion-color-sangh);
                bottom: 6px;
              }

              &::part(bullet) {
                background-color: var(--ion-background-gray);
                opacity: 1;
              }

              &::part(bullet-active) {
                background-color: var(--ion-color-white);
              }
            }
          }
        }
      }
    }
  }
}

.post-hidden-message {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 15px 15px 50px;

  img {
    margin-bottom: 5px;
  }

  p {
    margin: var(--ion-margin-0) !important;
  }

  ion-button {
    height: 1.875rem;
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    width: 80%;
    margin: 0 auto;

    &::part(native) {
      --background: var(--ion-color);
      background: var(--ion-color);
    }
  }
}

.sangh {
  .post-hidden-message {
    ion-button {
      &::part(native) {
        --background: var(--ion-color-sangh);
        background: var(--ion-color-sangh);
      }
    }
  }
}

.sant {
  .post-hidden-message {
    ion-button {
      &::part(native) {
        --background: var(--ion-color-sant);
        background: var(--ion-color-sant);
      }
    }
  }
}

ion-tab-button {
  &.highlight {
    position: relative;

    &::after {
      position: absolute;
      content: '';
      width: 8px;
      height: 8px;
      border-radius: 100%;
      background: #FF0A0A;
      top: 5px;
      right: 20px;
    }
  }
}

.sent-back-info-icon {
  width: 16px;
  height: 16px;
  color: var(--ion-color-sant);
  background: rgba(78, 156, 130, 0.09);
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: middle;
  padding: 3px;
}

.sent-back-info {
  --max-width: 90%;

  .alert-head {
    padding-top: 0 !important;
  }

  .alert-wrapper {
    width: 100%;
  }

  .sent-back-info-icon {
    width: 30px;
    height: 30px;
  }

  .alert-message {
    text-align: center;

    p {
      font-size: 12px;
      color: #000;
    }
  }

  .alert-button-group {
    justify-content: center;
    margin: 5px 0;

    .alert-button {
      height: 30px;
      background: var(--ion-color-sant);
      color: white;
      font-weight: 600;
      border-radius: 5px;
      margin-right: 0;
      padding: 0 20px;
    }
  }
}

.ripple-container {
  display: flex;
  align-items: center;
}

.ripple-circle {
  border-radius: 100%;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 6px;
  height: 6px;
  margin-right: 10px;

  &::before {
    content: "";
    width: 6px;
    height: 6px;
    position: absolute;
    border-radius: 100%;
  }

  &.shravak {
    background-color: var(--ion-color);

    &::before {
      background-color: rgba(36, 130, 167, .7);
      -webkit-animation: ripple 1.2s ease-in-out;
      animation: ripple 1.2s ease-in-out infinite;
    }

    @keyframes ripple {
      0% {
        border: 1px solid transparent;
      }

      100% {
        border: 6px solid rgba(36, 130, 167, .5);
        opacity: 0;
      }
    }
  }

  &.sant {
    background-color: var(--ion-color-sant);

    &::before {
      background-color: rgba(78, 156, 129, .7);
      -webkit-animation: ripple 1.2s ease-in-out;
      animation: ripple 1.2s ease-in-out infinite;
    }

    @keyframes ripple {
      0% {
        border: 1px solid transparent;
      }

      100% {
        border: 6px solid rgba(78, 156, 129, .5);
        opacity: 0;
      }
    }
  }

  &.sangh {
    background-color: var(--ion-color-sangh);

    &::before {
      background-color: rgba(166, 101, 204, .7);
      -webkit-animation: ripple 1.2s ease-in-out;
      animation: ripple 1.2s ease-in-out infinite;
    }

    @keyframes ripple {
      0% {
        border: 1px solid transparent;
      }

      100% {
        border: 6px solid rgba(166, 101, 204, .5);
        opacity: 0;
      }
    }
  }
}

.mention-user {
  color: var(--ion-color) !important;
}

.mention-sant {
  color: var(--ion-color-sant) !important;
}

.mention-sangh {
  color: var(--ion-color-sangh) !important;
}

.pac-item {
  white-space: pre-line;
}