/* Mobile-first base styles */
/* * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
} */
.gbqBodyWrapper,
.gbqQuizBodyContainer {
  grid-gap: 10px;
  grid-template-rows: min-content;
}

.gbqPageBody {
  height: 100%;
  /* padding: 5px 5%; */
}

.gbqQuestionSideImage {
  position: relative;
  height: 400px;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.gbqPoweredByDiv {
  cursor: pointer;
  text-align: end;
  background-color: #000;
  color: #fff;
  border-radius: 4px;
  padding: 2px 6px;
}

.gbqPageItemContainer {
  background-color: #f7f7f7;
  /* Change as per your design */
  /* border-radius: 5px; */
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gbqPageItemContentHTML {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.gbqQuestionPageContent {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-self: center;
  gap: 20px;
}

.gbqPageItemTitle,
.gbqPageItemSubtitle {
  display: block;
  color: rgb(31, 31, 31);
  white-space: break-spaces;
}

.gbqPageItemTitle {
  font-size: 18px;
  /* Adjust as needed */
  font-weight: bold;
  line-height: 1.2em;
  white-space: break-spaces;
}

.gbqPageItemSubtitle {
  font-size: 16px;
  line-height: 1.2em;
  white-space: break-spaces;
}

.gbqTextInputField {
  appearance: none;
  background-color: transparent;
  border: none;
  outline: none;
  border-bottom: 2px solid black;
  outline: none;
  width: 300px;
  overflow-wrap: break-word;
  overflow: hidden;
  transition: box-shadow 0.1s ease-out 0s;
  box-shadow: rgba(60, 60, 60, 0.3) 0px 1px;
  padding: 0;
  /* line-height: 38px; */
  /* resize: none; */
  font-family: inherit;
  font-size: 15px;
}

.gbqDateInputField {
  appearance: none;
  padding: 20px;
  border: none;
  outline: none;
}

/* .gbqTextInputField:active, .gbqTextInputField:hover, .gbqTextInputField:focus{
  background: none;
  border: none;
  outline: none;
} */

.gbqOptionsWrapper {
  display: grid;
  gap: 16px;
  width: 100%;
  /* justify-content: center; */
}

.gbqOptionContainer {
  display: flex;
  gap: 16px;
  align-items: center;
  background-color: rgba(19, 19, 19, 0.1);
  /* box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.4); */
  color: rgb(19, 19, 19);
  width: 100%;
  height: 100%;
  max-width: 100%;
  /* max-height: 35px; */
  padding: 6px 20px;
  border-radius: 4px;
  transition-duration: 0.1s;
  transition-property: background-color, color, border-color, opacity,
    box-shadow;
  transition-timing-function: ease-out;
  word-break: break-word;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.gbqOptionContainer:hover {
  cursor: pointer;
  opacity: 0.8;
  transform: translateY(-2px);
}

.gbqOptionLabel {
  display: block;
  flex: 1;
  font-size: 16px;
  /* white-space: nowrap; */
  /* text-overflow: ellipsis; */
}

.gbqOptionImageWrapper {
  display: grid;
  gap: 16px;
}

.gbqFooterNavigationsButtons {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(auto, 168px));
  gap: 16px;
  margin-top: 14px;
}

.gbqFooterButtonsWrapper {
  width: 100%;
}

.gbqActionButtonsWrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gbqFooterSubmitButton,
.gbqFooterOkButton,
.gbqFooterSkipButton,
.gbqContentSectionButton {
  cursor: pointer;
  width: 100%;
  height: 100%;
  max-height: fit-content;
  min-width: 220px;
  max-width: 350px;
  padding: 6px 20px;
  font-size: 14px;
  line-height: 1.2em;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  color: #ffffff;
  background-color: #d4d4d4;
  border-radius: 6px;
  transition-duration: 0.1s;
  transition-timing-function: ease-out;
  justify-self: center;
}

.gbqContentSectionButton {
  min-width: unset;
  max-width: unset;
  width: min-content;
}

.gbqFooterSkipButton {
  text-decoration: underline;
}

@keyframes blink {
  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.gbqBlinkAnimation {
  animation: blink 0.45s 1;
  /* Run the blink animation twice */
}

.gbqFooterSubmitButton:active,
.gbqFooterOkButton:active,
.gbqContentSectionButton:active,
.gbqFooterSkipButton:active {
  background-color: #505050;
}

.gbqFooterBackButton,
.gbqFooterNextButton {
  padding: 8px 12px;
  display: grid;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  background: #000000;
  border-radius: 4px;
}

.gbqOptionImageContainer {
  height: 120px;
  width: 120px;
  place-self: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.gbqOptionImageOptionContainer .gbqTickMarkSvgDiv {
  text-align: end;
  padding: 0 5px;
}

.gbqOptionImageContainer:hover {
  box-shadow: 0px 0px 6px 3px rgba(0, 0, 0, 0.25);
}

.gbqOptionImage {
  cursor: pointer;
  overflow: hidden;
  /* To ensure the content fits within the box */
  object-fit: contain;
  background-color: transparent;
  width: 100%;
  height: 100%;
  /* padding: 5px; */
}

.gbqOptionImageOverLay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  border-radius: 4px;
}

.gbqOptionImageLabel {
  width: 100%;
  text-align: center;
  padding: 8px;
  font-size: 14px;
}

.gbqTextOptionsContainer {
  display: grid;
  gap: 20px;
}

.gbqDisabled {
  pointer-events: none;
  opacity: 0.5;
}

.gbqOptionStackedOption {
  /* padding: 8px 16px; */
  display: grid;
  justify-content: center;
}

/* .gbqSelectedOptionStackedOption {
  box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.4);
} */

.gbqFooterBackButton:hover {
  background-color: rgba(0, 0, 0, 0.1) !important;
}

.gbqFooterNextButton:hover {
  opacity: 0.7;
}

.gbqFooterSkipButton:hover {
  background-color: rgba(0, 0, 0, 0.1) !important;
}

.gbqFooterOkButton:hover {
  opacity: 0.7;
}

.gbqLoadingScreen {
  user-select: none;
  z-index: 1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  justify-content: center;
  place-content: center;
  place-items: center;
}

.gbqLoadingImg {
  top: 0;
  left: 0;
  width: 20vw;
  height: auto;
  z-index: 1;
}

.gbqLoadingText {
  font-size: 8px;
}

/* Static Products Rec Block */
.gbqSPRBWrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}

.gbqSPRBTitle {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.2em;
  white-space: break-spaces;
}

.gbqSPRBDescription {
  font-size: 14px;
  color: #666;
  line-height: 1.2em;
  margin-bottom: 12px;
  white-space: break-spaces;
}

.gbqSPRBProductsContainer {
  width: 100%;
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  gap: 14px;
}

/* Not in use anymore - start */
/* Custom Checkbox Styles */
.gbqCheckboxWrapper {
  position: relative;
  padding-left: 36px;
  /* Space for custom checkbox */
  cursor: pointer;
  display: flex;
  align-items: center;
  /* Vertically align checkbox and label */
  user-select: none;
}

/* Hide the browser's default checkbox */
.gbqCheckboxWrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.gbqCheckboxWrapper .gbqCustomCheckmark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  /* Center the checkbox vertically */
  height: 24px;
  /* Size of custom checkbox */
  width: 24px;
  background-color: #fff;
  /* White background */
  border: 2px solid #ccc;
  /* Optional: adds a border to the checkbox */
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

/* Hide the existing checkmark styles */
.gbqCustomCheckmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the rectangle dot when checked */
.gbqCheckboxWrapper input:checked ~ .gbqCustomCheckmark:after {
  display: block;
  left: 50%;
  /* Center horizontally */
  top: 50%;
  /* Center vertically */
  transform: translate(-50%, -50%);
  /* Adjust position for centering */
  width: 12px;
  /* Width of the rectangle dot */
  height: 12px;
  /* Height of the rectangle dot */
  background-color: #817f7f;
  /* Color of the rectangle dot */
  border-radius: 2px;
  /* Optional: for slightly rounded corners */
}

/* Not in use anymore - end */
.gbqCheckboxDiv {
  display: block !important;
  /* background: #fff; */
  border-radius: 4px;
  /* border: 5px solid #fff; */
  padding: 8px;
}

.gbqOptionImageSelected {
  /* border: 2px solid #323131; */
}

.gbqImageOptionsContainer {
  display: grid;
}

.gbqOptionImageOptionContainer {
  display: grid;
  grid-gap: 5px;
  padding: 5px 0px;
  justify-content: center;
  grid-template-rows: 120px;
  align-items: start;
}

.gbqContentScreenWrapper {
  height: min-content;
  width: 100%;
  display: grid;
  grid-auto-flow: row;
  grid-gap: 10px;
  justify-content: center;
}

.gbqEmailError,
.gbqAnswerInvalidError {
  color: #9b4f4f;
}

.gbqProgressBarWrapper {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-self: center;
  gap: 14px;
}

.gbqProgressBarContainer {
  width: 100%;
  background-color: #ddd;
  margin-bottom: 20px;
  justify-self: center;
  display: flex;
  gap: 20px;
  border-radius: 6px;
}

.gbqProgressBar {
  display: block !important;
  width: 0%;
  height: 10px;
  border-radius: 6px;
}

.gbqProgressLabel {
  font-size: 14px;
  line-height: 1.2em;
  color: #000;
  white-space: nowrap;
}

.gbqHorizontalOptionsContainer {
  justify-content: center;
}

.gbqHorizontalOptionContainer {
  /* padding: unset; */
  justify-content: center;
  text-align: center;
}

.gbqHorizontalOptionContainer .gbqTickMarkSvgDiv {
  padding: 0 4px;
}

.gbqHorizontalOptionLabel {
  width: unset;
  /* padding: 0 20px; */
}

.gbqCircleImageContainer {
  overflow: hidden;
  border-radius: 50%;
  padding: unset;
}

.gbqCircleImage {
  height: 100%;
  padding: unset;
}

.gbqContentSectionText {
  color: #000000;
  line-height: 1.2em;
}

.gbqContentPageItemTitle {
  font-size: 28px;
  line-height: 1.2em;
  margin-bottom: 0.75rem;
  white-space: break-spaces;
}

.gbqContentPageItemSubtitle {
  font-size: 16px;
  line-height: 1.2em;
  white-space: break-spaces;
}

/* Media queries for tablet view */
@media (min-width: 768px) {
  .gbqBodyWrapper,
  .gbqQuizBodyContainer {
    min-height: 500px;
  }

  .gbqFooterBackButton,
  .gbqFooterNextButton {
    padding: 8px 12px;
  }

  .gbqPageItemTitle {
    font-size: 24px;
  }

  .gbqPageItemSubtitle {
    font-size: 18px;
  }

  .gbqOptionContainer {
    min-height: 40px;
  }

  .gbqOptionLabel {
    font-size: 18px;
    /* width: 120px; */
  }

  .gbqOptionImageLabel {
    font-size: 16px;
  }

  .gbqLoadingText {
    font-size: 12px;
  }

  .gbqFooterSubmitButton,
  .gbqFooterOkButton,
  .gbqFooterSkipButton,
  .gbqContentSectionButton {
    font-size: 16px;
    padding: 8px 12px;
  }

  .gbqImageOptionsContainer {
    gap: 20px;
  }

  .gbqFooterButtonsWrapper {
    left: 15px;
    bottom: 15px;
  }

  .gbqQuestionSideImage {
    height: 100%;
  }

  .gbqOptionImageContainer {
    height: 160px;
    width: 160px;
  }

  .gbqOptionImageOptionContainer {
    grid-template-rows: 160px;
  }

  .gbqPageItemContentHTML {
    padding: 24px 36px;
  }

  .gbqTextInputField {
    width: 400px;
    font-size: 20px;
  }

  .gbqContentPageItemTitle {
    font-size: 32px;
  }
}

/* Media queries for desktop view */
@media (min-width: 1024px) {
  .gbqFooterNavigationsButtons {
    grid-template-columns: repeat(2, minmax(110px, 168px));
  }

  .gbqFooterSubmitButton,
  .gbqFooterOkButton,
  .gbqFooterSkipButton,
  .gbqContentSectionButton {
    font-size: 16px;
    padding: 10px 20px;
  }

  .gbqPageItemSubtitle {
    font-size: 20px;
  }

  .gbqPageItemTitle {
    font-size: 28px;
  }

  .gbqOptionLabel {
    font-size: 20px;
  }

  .gbqOptionImageLabel {
    font-size: 18px;
    width: 180px;
    /* height: 100px; */
  }

  .gbqImageOptionsContainer {
    /* grid-template-columns: unset; */
    /* grid-auto-flow: column; */
    /* grid-template-columns: repeat(3,1fr); */
  }

  .gbqLoadingText {
    font-size: 14px;
  }

  .gbqLoadingImg {
    width: 12vw;
  }

  .gbqContentScreenWrapper {
    justify-content: unset;
  }

  .gbqContentPageItemTitle {
    font-size: 44px;
  }

  .gbqContentPageItemSubtitle {
    font-size: 20px;
  }
}

.gbqOutcomePageWrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}

.gbqOutcomeSideImgContainer {
  justify-self: center;
}

.gbqOutcomeSideImg {
  width: 300px;
  height: 300px;
  object-fit: contain;
}

.gbqOutcomePageContentContainer {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.gbqOutcomePageTitle {
  font-size: 48px;
  line-height: 1.2em;
  font-weight: bold;
  margin-bottom: 0.75rem;
  white-space: break-spaces;
}

.gbqOutcomePageSubtitle {
  font-size: 16px;
  line-height: 1.2em;
  /* text-align: center; */
  white-space: break-spaces;
}

/* Tablet view */
@media (min-width: 768px) {
  .gbqOutcomePageTitle {
    font-size: 56px;
  }

  .gbqOutcomePageSubtitle {
    font-size: 20px;
  }

  .gbqOutcomeSideImg {
    width: 600px;
    height: 600px;
  }

  .gbqOutcomePageContentContainer {
    text-align: unset;
  }
}

/* Desktop view */
@media (min-width: 1024px) {
}

/* Mobile-first base styles */
.gbqResultsPageWrapper,
.gbqSurveyResultsPageWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 500px;
  gap: 16px;
  /* Even number for spacing between cards */
  padding: 16px;
  /* Even number for padding */
}

.gbqResultsPageOutcomeContainer {
  display: grid;
  justify-content: center;
  align-items: center;
}

.gbqResultsTitle,
.gbqResultsPageOutcomeTitle,
.gbqSurveyResultsTitle {
  font-size: 18px;
  /* Even number for font size */
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.75rem;
  white-space: break-spaces;
}

.gbqResultsPageOutcomeImg {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.gbqResultsSubTitle,
.gbqSurveyResultsSubTitle {
  font-size: 14px;
  /* Even number for font size */
  text-align: center;
  white-space: break-spaces;
}

.gbqProductsItemsContainer {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-self: center;
  gap: 14px;
}

.gbqProductItem {
  width: 100%;
  max-width: 300px;
  padding: 7px;

  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid #c4c4c4;
  overflow: hidden;
}

.gbqProductImageContainer {
  height: 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gbqProductImageContainerImg {
  flex: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
  max-height: 240px;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
  background-color: #c3c3c3;
}

.gbqPrevImage,
.gbqNextImage {
  margin-left: 5px;
  position: absolute;
  top: 50%;
  width: 2px;
  padding: 16px;
  margin-top: -22px;
  color: #777676;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  margin-left: 5px;
  font-size: 16px;
  cursor: pointer !important;
}

.gbqNextImage {
  right: 3%;
}

.gbqFade {
  animation-name: gbbFade;
  animation-duration: 1.5s;
}

.gbqProductTextContainer {
  flex: 1;
  cursor: pointer;
  width: 100%;
  padding: 2px;

  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  text-align: left;
}

.gbqProductItemTitle {
  font-size: 16px;
  /* Even number for font size */
  font-weight: 600;
  color: #1c1c1c;
}

.gbqVariantSelect {
  width: 100%;
  padding: 5px;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid #c4c4c4;
  border-radius: 6px;
}

.gbqProductActionContainer {
  flex: 1;
  width: 100%;
  padding: 2px;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gbqProductItemPrice {
  font-size: 14px;
  /* Even number for font size */
  font-weight: 600;
  color: #555;
}

.gbqProductItemCompareAtPrice {
  text-decoration: line-through;
  color: #999;
  font-size: 12px;
}

.gbqProductAddButton,
.gbqProductGoToCartButton {
  -webkit-tap-highlight-color: transparent;
  padding: 10px;
  width: 100%;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  border: none;
  user-select: none;
}

.gbqProductAddButton:hover,
.gbqProductGoToCartButton:hover {
  background-color: #444;
  opacity: 0.8;
}

/* Tablet view */
@media (min-width: 768px) {
  .gbqProductsItemsContainer {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* Even number for spacing between cards */
  }

  .gbqProductImageContainerImg {
    max-height: 260px;
  }

  .gbqProductTextContainer {
    font-size: 14px;
  }

  .gbqResultsTitle,
  .gbqResultsPageOutcomeTitle,
  .gbqSurveyResultsTitle {
    font-size: 24px;
  }

  .gbqResultsSubTitle,
  .gbqSurveyResultsSubTitle {
    font-size: 18px;
  }
}

/* Desktop view */
@media (min-width: 1024px) {
  .gbqProductsItemsContainer {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    /* Even number for spacing between cards */
  }

  .gbqProductItemPrice {
    font-size: 16px;
    /* Even number for font size */
  }

  .gbqProductTextContainer {
    font-size: 16px;
  }
}
