.text-black {
  color: black;
  font-weight: bold;
}

.select2-container {
  width: 100% !important;
  min-width: 0 !important;
}

.nav-logo img {
  width: 4rem;
}

.page-title-wrapper {
  /* min-width required for child to overflow with ellipsis */
  min-width: 0;
}

.page-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hori-timeline .events {
  overflow-y: hidden;
  white-space: nowrap;
  margin: 0;
  /* border-top: 3px solid #e9ecef; */
}

.hori-timeline .events .event-list {
  display: inline-block;
  width: 24%;
  min-width: 10rem;
  position: relative;
  text-align: center;
  padding-top: 2rem;
  margin-right: 0;
}

.hori-timeline .events .event-list:before {
  content: "";
  position: absolute;
  height: 2rem;
  border-right: 2px dashed #dee2e6;
  top: 0;
}

.hori-timeline .events .event-list .event-list-img {
  display: block;
  margin: auto;
  height: 12rem;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  cursor: pointer;
}

.hori-timeline .events .list-inline-item {
  padding: 2rem 0.5rem 1rem 1rem;
}

.hori-timeline .events .list-inline-item:last-child {
  padding: 2rem 1rem 1rem 0.5rem;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.video-wrapper {
  position: relative;
}

.video-controls {}

.card video {
  border-radius: 0.35rem;
  max-width: 100%;
  max-height: calc(100vh - 7.375rem);
  transition: 1s filter linear;
}

.blur {
  transition: 0.3s filter linear;
  filter: blur(2px);
}

.center-child {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: grid;
  grid-template-columns: 1fr min-content;
}

.video-overlay hr {
  border-color: white;
}

/* Countdown Timer Animation Start */
.countdown-timer {
  position: absolute;
  align-self: center;
  justify-self: center;
  z-index: 1;
  background: -webkit-linear-gradient(left, #4e73df 50%, #eee 50%);
  border-radius: 100%;
  height: calc(var(--size) * 1px - -2px);
  width: calc(var(--size) * 1px - -2px);
  -webkit-animation: timer-animation calc(var(--duration) * 1s) steps(1000, start) 1;
  -webkit-mask: radial-gradient(transparent 49%, #000 50%);
  mask: radial-gradient(transparent 50%, #000 50%);
}

.countdown-mask {
  border-radius: 100% 0 0 100% / 50% 0 0 50%;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 50%;
  -webkit-animation: mask-animation calc(var(--duration) * 1s) steps(500, start) 1 both;
  -webkit-transform-origin: 100% 50%;
}

.countdown-wrap {
  overflow: hidden;
  /* hide scrollbars */
  margin: 0 auto;
}

.countdown-move {
  z-index: 1;
  color: white;
  position: relative;
  /* animation: old-countdown-animation calc(var(--duration) * 1s) linear both; */
  animation: countdown-animation calc(var(--duration) * 1s) steps(var(--duration), end) both;
}

.countdown-wrap,
.countdown-move>div {
  width: calc(var(--size) * 1px);
  height: calc(var(--size) * 1px);
  display: flex;
  justify-content: center;
  border-radius: 100%;
  overflow: hidden;
}

.countdown-move>div>div {
  opacity: 1;
  font-size: calc(var(--size) * 0.3px);
  font-family: impact, sans-serif;
  box-sizing: border-box;
  align-self: center;
  animation: pulse-animation 1s calc(var(--duration) + 1);
}

#restTimer {
  position: absolute;
  top: calc(50% - var(--size) / 2 * 1px);
  left: 0;
  right: 0;
}

@keyframes timer-animation {
  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes timer-animation {
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes mask-animation {
  0% {
    background: #eee;
    transform: rotate(0deg);
  }

  50% {
    background: #eee;
    transform: rotate(-180deg);
  }

  50.01% {
    background: #4e73df;
    transform: rotate(0deg);
  }

  100% {
    background: #4e73df;
    transform: rotate(-180deg);
  }
}

@-webkit-keyframes mask-animation {
  0% {
    background: #eee;
    -webkit-transform: rotate(0deg);
  }

  50% {
    background: #eee;
    -webkit-transform: rotate(-180deg);
  }

  50.01% {
    background: #4e73df;
    -webkit-transform: rotate(0deg);
  }

  100% {
    background: #4e73df;
    -webkit-transform: rotate(-180deg);
  }
}

@keyframes pulse-animation {
  0% {
    font-size: calc(var(--size) * 0.3px);
  }

  25% {
    font-size: calc(var(--size) * 0.4px);
  }

  75% {
    font-size: calc(var(--size) * 0.3px);
  }
}

@-webkit-keyframes pulse-animation {
  0% {
    font-size: calc(var(--size) * 0.3px);
  }

  25% {
    font-size: calc(var(--size) * 0.4px);
  }

  75% {
    font-size: calc(var(--size) * 0.3px);
  }
}

@keyframes countdown-animation {
  0% {
    bottom: 0;
  }

  100% {
    bottom: calc(var(--duration) * 100%);
  }
}

@-webkit-keyframes countdown-animation {
  0% {
    bottom: 0;
  }

  100% {
    bottom: calc(var(--duration) * 100%);
  }
}

@keyframes old-countdown-animation {

  /* WE ADD PAUSES BETWEEN EACH SLIDE */
  0% {
    bottom: 0;
  }

  5% {
    bottom: 0;
  }

  10% {
    bottom: 100%;
  }

  15% {
    bottom: 100%;
  }

  20% {
    bottom: 200%;
  }

  25% {
    bottom: 200%;
  }

  30% {
    bottom: 300%;
  }

  35% {
    bottom: 300%;
  }

  40% {
    bottom: 400%;
  }

  45% {
    bottom: 400%;
  }

  50% {
    bottom: 500%;
  }

  55% {
    bottom: 500%;
  }

  60% {
    bottom: 600%;
  }

  65% {
    bottom: 600%;
  }

  70% {
    bottom: 700%;
  }

  75% {
    bottom: 700%;
  }

  80% {
    bottom: 800%;
  }

  85% {
    bottom: 800%;
  }

  90% {
    bottom: 900%;
  }

  95% {
    bottom: 900%;
  }

  100% {
    bottom: 1000%;
  }
}

.pause-all-animations * {
  -webkit-animation-play-state: paused !important;
  animation-play-state: paused !important;
}

/* Countdown Timer Animation End */

.chips-wrapper {
  position: fixed;
  top: 56px;
  width: 600px;
  z-index: 2000;
  background-color: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  flex: none;
}

.chips-wrapper.left-arrow {
  position: absolute;
  left: 0;
  height: 100%;
  z-index: 2020;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.chip {
  margin: 0 0.5rem 1rem 0;
  height: 32px;
  min-width: 12px;
  border-radius: 16px;
  box-sizing: border-box;
  outline: none;
  overflow: hidden;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position: relative;
  flex-direction: row;
  align-items: center;
  display: inline-flex;
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #030303;
  padding: 0 12px;
  transition: background-color 0.5s cubic-bezier(0.05, 0, 0, 1);
}

.chip:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.chip.selected {
  background-color: white;
  color: #030303;
}

.jsign-wrapper {
  border: 1px solid #d1d3e2;
  border-radius: 0.35rem;
  min-height: 8rem;
}

.jsign-container {
  border-bottom: 1px solid #d1d3e2;
  min-height: inherit;
}

.form-date-wrapper {
  flex-grow: 1;
  align-items: center;
  display: flex;
  justify-content: center;
  border: 1px solid #d1d3e2;
  border-radius: 0.35rem;
  font-weight: bold;
  font-size: x-large;
  min-height: 8rem;
}

.errorlist {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 80%;
  color: #dc3545;
  font-weight: bolder;
}

* {
  font-size: 1rem;
  font-weight: 800
}

/* Select2 Style Overrides Start */

.select2-container--default .select2-selection--single {
  display: block !important;
  width: 100% !important;
  height: calc(1.5em + 0.75rem + 2px) !important;
  padding: 0.375rem 0.75rem !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #6e707e !important;
  background-color: #fff !important;
  background-clip: padding-box !important;
  border: 1px solid #d1d3e2 !important;
  border-radius: 0.35rem !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  top: 75% !important;
}

.select2-dropdown {
  margin-top: -5px;
  border: 1px solid #d1d3e2 !important;
  border-top: none !important;
  border-radius: 0.35rem !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  outline: none !important;
  border: 1px solid #d1d3e2 !important;
  border-radius: 0.35rem !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

/* Select2 Style Overrides End */

::-webkit-scrollbar {
  width: 1em;
  height: 1rem;
}

::-webkit-scrollbar-track {
  background-color: transparent;
  border-left: 0;
}

::-webkit-scrollbar-thumb {
  background-color: #D5D5D5;
  border-radius: 0.5rem;
  background-clip: content-box;
  border: 4px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #CFCFCF;
}

.body-colour {
  background: #007bff;
  background: linear-gradient(to right, #0062E6, #33AEFF);
}

.pricing .card {
  border: none;
  border-radius: 1rem;
  transition: all 0.2s;
  box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1);
}

.pricing hr {
  margin: 1.5rem 0;
}

.pricing .card-title {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  letter-spacing: .1rem;
  font-weight: bold;
}

.pricing .card-price {
  font-size: 3rem;
  margin: 0;
}

.pricing .card-price .period {
  font-size: 0.8rem;
}

.pricing ul li {
  margin-bottom: 1rem;
}

.pricing .text-muted {
  opacity: 0.7;
}

.pricing .btn {
  font-size: 80%;
  border-radius: 5rem;
  letter-spacing: .1rem;
  font-weight: bold;
  padding: 1rem;
  opacity: 0.7;
  transition: all 0.2s;
}

/* Hover Effects on Card */

@media (min-width: 992px) {
  .pricing .card:hover {
    margin-top: -.25rem;
    margin-bottom: .25rem;
    box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.3);
  }

  .pricing .card:hover .btn {
    opacity: 1;
  }
}

@media (max-width: 576px) {
  .video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  .nav-logo img {
    width: 5rem;
  }

  .sidebar.toggled .nav-logo img {
    width: 4rem;
  }
}

@media (min-width: 992px) {}

@media (min-width: 1200px) {}

@media (min-width: 1140px) {
  /* .hori-timeline .events .event-list {
      display: inline-block;
      width: 24%;
  }
  .hori-timeline .events .event-list .event-date {
      top: -12px;
  } */
}

.dark-blue-bg {
  background-color: #303642 !important;
  border-color: #303642 !important;
}

.light-blue-bg {
  background-color: #007bff !important;
  border-color: #007bff !important;
}

.light-blue-bg-tick {
  color: #007bff !important;
  background-color: #9cc8f7 !important;
  border-color: #9cc8f7 !important;
}

.grey-bg {
  background-color: #B6B6B6 !important;
  border-color: #B6B6B6 !important;
}

.dynamic-select-wrapper {
  position: relative;
  width: 100%;
}

.dynamic-select {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.dynamic-select-trigger {
  display: block;
  width: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.dynamic-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 2;
  box-sizing: border-box;
  max-height: 200px;
  /* Optional: limit height */
  overflow-y: auto;
  /* Optional: enable scrolling if too many options */
}

.dynamic-option {
  padding: 10px;
  cursor: pointer;
  box-sizing: border-box;
  display: block;
  /* Ensure each option takes the full width */
  width: 100%;
  /* Ensure each option takes the full width */
}

.dynamic-option:hover {
  background: #f0f0f0;
}

.dynamic-select.open .dynamic-options {
  display: block;
}

.diary-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.date-scroller {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px;
  width: 100%;
  scroll-behavior: smooth;
}

.date-item {
  padding: 10px 15px;
  margin-right: 10px;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
}

.date-item:hover {
  background-color: #0056b3;
}

.nutrition-summary {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 20px;
  background-color: #1c1c1e;
  color: white;
  border-radius: 10px;
}

.summary-item {
  flex: 1;
  text-align: center;
}

.summary-values {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  color: white;
}

.value {
  padding: 0 5px;
  font-size: 18px;
}

.remaining {
  font-weight: bold;
  font-size: 20px;
}

.selected-date {
  background-color: green;
}

.date-picker-container {
  margin-top: 10px;
}

#calendarPicker {
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* semi-transparent background */
  z-index: 1000;
  /* on top of other content */
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  border: 8px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 8px solid #ffffff;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Shop Product Styles */
.shop-product-card {
  height: 100%;
  overflow: hidden;
}

.shop-product-card .carousel {
  width: 100%;
}

.shop-product-card .carousel-inner {
  width: 100%;
}

.shop-product-card .carousel-item {
  width: 100%;
}

.shop-product-image {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* Ensure carousel controls are visible on all image sizes */
.shop-product-card .carousel-control-prev,
.shop-product-card .carousel-control-next {
  width: 15%;
  opacity: 0.7;
}

.shop-product-card .carousel-control-prev:hover,
.shop-product-card .carousel-control-next:hover {
  opacity: 1;
}

/* Mobile optimizations for shop */
@media (max-width: 575.98px) {
  .shop-product-card .card-body {
    padding: 1rem;
  }

  .shop-product-card .card-title {
    font-size: 1.1rem;
  }

  .shop-product-card h4 {
    font-size: 1.2rem;
  }

  .shop-product-card h4 small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
  }
}
