:root {
  --color-sorrel: #431f0f;
  --color-yellow: #ffca05;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray: #dcdcdc;
  --color-red: #ff0000;
  --color-gray-black: #a6a4a4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  color: var(--color-sorrel) !important;

  h1,
  h2,
  h3,
  h3,
  h5,
  h6 {
    color: var(--color-sorrel) !important;
  }
}
.ctm-ul {
  ul {
    padding-left: 1rem !important;
  }
}
.app-layout {
  position: fixed;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}
.layout-page {
  flex: 1 1 auto;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: var(--color-yellow);
}

/* Css Footer Page */
.main-footer {
  width: 100%;
  padding: 15px 5px 10px 5px;
  color: var(--color-sorrel);
  background-color: var(--color-white);
  box-shadow: 0 -5px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
}
.footer-menu {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  align-content: center;

  a {
    text-decoration: none;
  }
}
.footer-menu .footer-menu-link {
  display: flex;
  gap: 5px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;

  .icon-card,
  .icon-gift,
  .icon-privilege,
  .link-label {
    opacity: 0.4;
    color: var(--color-sorrel);
  }
}

.footer-menu-link.router-link-exact-active {
  .icon-card,
  .icon-gift,
  .icon-privilege,
  .link-label {
    opacity: 1;
  }
}
.icon-size {
  width: 35px;
  height: 35px;
}

.icon-card {
  margin-top: 10px;
  margin-bottom: 2px;
  height: 23px;
  background: url("/img/Mnm/footer-menu/member-in-active-1.png");
  background-repeat: no-repeat;
  background-size: contain;
}
.footer-menu-link.router-link-exact-active .icon-card {
  background: url("/img/Mnm/footer-menu/member-active-1.png");
  background-repeat: no-repeat;
  background-size: contain;
}
.icon-gift {
  background: url("/img/Mnm/footer-menu/redeem-in-active.png");
  background-repeat: no-repeat;
  background-size: contain;
}
.footer-menu-link.router-link-exact-active .icon-gift {
  background: url("/img/Mnm/footer-menu/redeem-active.png");
  background-repeat: no-repeat;
  background-size: contain;
}
.icon-privilege {
  background: url("/img/Mnm/footer-menu/privilege-in-active.png");
  background-repeat: no-repeat;
  background-size: contain;
}
.footer-menu-link.router-link-exact-active .icon-privilege {
  background: url("/img/Mnm/footer-menu/privilege-active.png");
  background-repeat: no-repeat;
  background-size: contain;
}
/* End Css Footer Page */

/* Css Loading Page */
.overlay-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-white);
  margin: 0;
  z-index: 9999;
}
.loading-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  display: flex;
  align-items: end;
  gap: 5px;
}
.bounceball {
  position: relative;
  display: inline-block;
  height: 37px;
  width: 15px;
}
.bounceball:before {
  position: absolute;
  content: "";
  display: block;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--color-sorrel);
  transform-origin: 50%;
  -webkit-animation: bounce 500ms alternate infinite ease;
  animation: bounce 500ms alternate infinite ease;
}
.text {
  color: var(--color-sorrel);
  display: inline-block;
  margin-left: 10px;
  font-size: 20px;
}

@-webkit-keyframes bounce {
  0% {
    top: 30px;
    height: 5px;
    border-radius: 60px 60px 20px 20px;
    transform: scaleX(2);
  }
  35% {
    height: 15px;
    border-radius: 50%;
    transform: scaleX(1);
  }
  100% {
    top: 0;
  }
}

@keyframes bounce {
  0% {
    top: 30px;
    height: 5px;
    border-radius: 60px 60px 20px 20px;
    transform: scaleX(2);
  }
  35% {
    height: 15px;
    border-radius: 50%;
    transform: scaleX(1);
  }
  100% {
    top: 0;
  }
}
/* End Css Loading Page */

.btn {
  width: 70%;
  padding: 5px;
  margin: 10px;
}
.button-yellow {
  color: var(--color-sorrel) !important;
  background: var(--color-yellow) !important;
}

.mnm-logo {
  max-width: 65%;
  width: 100%;
  margin: 0rem auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.icon-down {
  display: block;
  width: 100%;
  -moz-padding-start: calc(0.75rem - 3px);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  appearance: none;
}

.custom-checkbox {
  .form-check-input[type="checkbox"] {
    border-radius: 100%;
  }
  .form-check-input:checked {
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
  }
}
.ctm-button-upload {
  width: 100%;
  display: inline-block;
  background-color: #555;
  color: white;
  padding: 25px 30px;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
}
.ctm-preview-image {
  position: relative;
  display: inline-block;

  img {
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
}
.ctm-button-remove {
  position: absolute;
  top: -5px;
  right: -10px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 5px 8px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.ctm-card-detail {
  padding: 22px;
  color: var(--color-sorrel);
  background-color: var(--color-white);
  border-radius: 1.5rem;
  box-shadow: 0 -5px 50px rgba(0, 0, 0, 0.2);
}

.ctm-icon-edit {
  display: block;
  width: 18px;
  height: 18px;
  background-image: url("/img/Mnm/icon/edit.png");
  background-size: contain;
  background-repeat: no-repeat;
}
.text-ellipsis-start {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
}
.ctm-bar-code svg {
  width: 100%;
  height: 100%;
  max-width: 180px;
}
.ctm-font-span {
  font-size: 14px;
}

.thumbnail {
  width: 100%;
  height: 100%;
  max-width: 105px;
  max-height: 105px;
}
.thumbnail img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--color-gray);
}
.ellipsis-2-lines {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1;
}
.icon-gift-black {
  display: block;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background-image: url("/img/Mnm/footer-menu/redeem-active.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.ctm-btn {
  width: auto;
  margin: 0px;
  padding: 0px 3px;
  color: var(--color-white) !important;
  background-color: var(--color-sorrel) !important;
  font-weight: bold;
  box-shadow: 0 -5px 50px rgba(0, 0, 0, 0.2);
  border: none !important;
}
.ctm-btn-disabled {
  width: auto;
  margin: 0px;
  padding: 0px 3px;
  color: #0f0f0f !important;
  background: var(--color-gray-black) !important;
  box-shadow: 0 -5px 50px rgba(0, 0, 0, 0.2);
  border: none !important;
}
.ctm-position-modal {
  width: 90% !important;
  margin: 7% auto;
  border-radius: 1.25rem !important;
}

/* Css Tabs */
.ctm-tads {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0px 15px;

  .tabs .nav {
    background-color: var(--color-gray);
    border-radius: 50px;
    text-align: center;
    max-width: 430px;
    width: 100%;
    margin: 0 auto;

    .nav-item {
      width: 50%;
    }
    .nav-link {
      width: 100%;
      text-align: center;
      color: var(--color-gray-black);
      padding: 12px 0;
      border-radius: 50px;
    }
    .nav-link.active {
      background: var(--color-sorrel);
      border-radius: 50px;
      color: var(--color-white);
      border: 1px solid var(--color-gray);
    }
  }
}
/* Emd Css Tabs */

.ctm-back {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: absolute;
}
.ctm-back img {
  width: 22px;
  margin: 6px;
}
.ctm-edit-information {
  margin-top: 3rem !important;
  padding-bottom: 1rem;
  text-align: center;
  display: flex;
  justify-content: center;
}
.ctm-edit-information img {
  width: 30px;
  height: 30px;
  margin-right: 5px;
}
.color-text-edit {
  color: #431f0f;
}
.ctm-sidebar .b-sidebar-body {
  padding: 25px 24px 5rem;
  position: relative;
  color: #431f0f;
}

.form-switch .form-check-input {
  width: 42px !important;
}
.form-switch .form-check-input:checked {
  background-color: var(--color-yellow);
  border-color: var(--color-yellow);
}

.ctm-radios div {
  display: inline-block;
}

.ctm-radios input[type="radio"] {
  display: none;
}

.ctm-radios input[type="radio"] + label {
  color: #333;
  font-family: Arial, sans-serif;
}

.ctm-radios input[type="radio"] + label span {
  display: inline-block;
  width: 25px;
  height: 25px;
  margin: -1px 4px 0 0;
  vertical-align: middle;
  cursor: pointer;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  text-align: center;
  line-height: 24px;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray);
}

.ctm-radios input[type="radio"] + label span img {
  opacity: 0;
  transition: all 0.3s ease;
  width: 14px;
  margin-bottom: 5px;
}

.ctm-radios input[type="radio"]:checked + label span {
  background-color: var(--color-yellow);
}

.ctm-radios input[type="radio"]:checked + label span img {
  opacity: 1;
}

.img-grayscale {
  filter: grayscale(100%);
  transition: filter 0.5s ease-in-out;
}

@media screen and (min-width: 413px) {
  .ctm-font-span {
    font-size: 16px;
  }
}
