.fyw-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
}

.fyw-loading.hidden {
  display: none;
}

.fyw-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e0e0;
  border-top-color: #60CFF6;
  border-radius: 50%;
  animation: fyw-spin 0.8s linear infinite;
}

@keyframes fyw-spin {
  to {
    transform: rotate(360deg);
  }
}

.container {
  background: white;
  width: calc(100vw - 2rem) !important;
  min-height: calc(100vh - 113px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0 10rem 0;
  line-height: 1.5;
}

.quiz-header {
  margin: 0 auto 1rem auto;
  text-align: center;
  width: 100%;
  max-width: 1200px;
}

.progress-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #60CFF6;
  width: 0%;
  transition: width 0.3s ease;
}

.question-title {
  font-family: "Oswald", "Roboto", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 1.5rem;
  color: #000000;
  text-transform: uppercase;
}

.question-subtitle {
  font-size: 14px;
  color: #666666;
  margin-top: 0.5rem;
}

.options {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  justify-content: center;
}

.option {
  width: calc(50% - 4px);
  max-width: 250px;
  min-height: 150px;
  padding: 1rem;
  border: 1px solid #cccccc;
  border-radius: 20px;
  background: white;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
  color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.option.selected {
  border-color: #60CFF6;
  background: #f0f9ff;
}

@media (min-width: 992px) {
  .option:hover {
    border-color: #60CFF6;
    background: #f0f9ff;
  }
}

.option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
}

.option span {
  font-size: 14px;
  color: #666666;
  text-transform: initial;
}

.option img {
  width: 60px;
}

.buttons {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.6);
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5 !important;
  color: #000000;
  text-transform: uppercase;
}

.btn-prev {
  background: #ffffff;
  border: 1px solid #cccccc;
  flex: 1;
}

@media (min-width: 992px) {
  .btn-prev:hover {
    background: #d0d0d0;
  }
}

.btn-next {
  background: #60CFF6;
  flex: 2.5;
}

@media (min-width: 992px) {
  .btn-next:hover {
    background: #40b8e8;
  }
}

.btn-next:disabled {
  background: #cccccc;
  cursor: not-allowed;
  color: #777777
}

/* 結果頁面 */
.results {
  display: none;
}

.results.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.results h1 {
  font-size: 1.75rem;
  margin-bottom: 0;
  text-transform: uppercase;
  text-align: center;
}

.result-list,
.accessory-list {
  width: 100%;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  justify-content: flex-start;
  overflow-x: auto;
}

@media (min-width: 992px) {

  .result-list,
  .accessory-list {
    justify-content: center;
  }
}

.result-item,
.accessory-item {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 1rem;
  min-width: 320px;
  max-width: 400px;
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {

  .result-item,
  .accessory-item {
    flex: 0 0 33%;
  }
}

.result-item h2,
.accessory-item h2 {
  font-size: 1.5rem;
  color: #000000;
}

.result-item h3,
.accessory-item h3 {
  font-size: 1.2rem;
  color: #666666;
}

.result-item img,
.accessory-item img {
  width: 100%;
}

.result-item:nth-child(1)>div a {
  position: relative;
  display: block;
}

.result-item:nth-child(1)>div a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 70px;
  height: 70px;
  background: url(https://static.garmincdn.com/asia/gdc/img/find-your-watch/icons/tag.svg) no-repeat center center;
  display: block;
  background-size: 100%;
}

.result-price,
.accessory-price {
  font-size: 1rem;
  color: #000000;
  font-weight: bold;
  margin-bottom: 8px;
}

.result-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.result-color-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.result-link {
  width: fit-content;
  padding: 12px 24px;
  background-color: #000000;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
}

.result-meta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.result-battery {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  color: #666666;
}

.result-battery img {
  width: 22px;
  height: 22px;
  /* transform: rotate(90deg);
  margin-right: 3px; */
}

.feature-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-chip {
  border: 1px solid #cccccc;
  background: #ffffff;
  color: #666666;
  padding: 6px 12px;
  margin: 0;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  text-transform: capitalize;
}

.feature-chip::after {
    content: '+';
    display: inline-block;
    border: 1px solid #cccccc;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    margin-left: 3px;
    text-align: center;
    font-size: 1rem;
    line-height: 1;
    vertical-align: text-bottom;
    color: #999999;
}

@media (min-width: 992px) {
  .feature-chip:hover {
    border-color: #60CFF6;
    background: #f4fbff;
  }
}

.result-more-toggle {
  border: none;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-more-toggle::after {
  content: '';
  width: 18px;
  height: 18px;
  display: inline-block;
  background: url(https://static.garmincdn.com/asia/gdc/img/find-your-watch/icon-back.svg) no-repeat center center;
  background-size: cover;
  margin-left: 3px;
  transform: rotate(-90deg);
  transition: transform 0.3s ease;
}

.result-more-toggle[aria-expanded="true"]::after {
  transform: rotate(90deg);
}

.result-more-content {
  display: none;
  margin-top: 0.5rem;
}

.result-more-content.active {
  display: block;
}

.feature-empty {
  font-size: 14px;
  color: #666666;
}

.glossary-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.glossary-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.glossary-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.glossary-modal__dialog {
  position: relative;
  z-index: 1;
  width: calc(100% - 2rem);
  max-width: 600px;
  margin: 0;
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem 1rem 3.5rem 1rem;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 0.5rem;
}

.glossary-modal__close {
  position: sticky;
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #000000;
  padding: 0;
}

.glossary-modal__img {
  width: 100%;
  margin-bottom: 0.5rem;
}

.glossary-modal__img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.glossary-modal__title {
  width: 100%;
  font-size: 1.5rem;
  color: #000000;
  text-align: center;
  text-transform: uppercase;
  font-family: "Oswald", "Roboto", "Noto Sans TC", "Microsoft JhengHei", sans-serif;

}

.glossary-modal__desc {
  width: 100%;
  font-size: 1rem;
  color: #666666;
  line-height: 1.5;
  text-align: center;
}

.accessories-section {
  width: 100%;
  margin-top: 1rem;
  padding-top: 2rem;
}

.accessories-title {
  font-size: 1.75rem;
  text-align: center;
  color: #000000;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-family: "Oswald", "Roboto", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.restart {
  padding: 0;
  background: none;
  margin-top: 1rem;
}

.restart::before {
  content: '';
  width: 14px;
  height: 14px;
  display: inline-block;
  background: url(https://static.garmincdn.com/asia/gdc/img/find-your-watch/icons/back.svg) no-repeat center center;
  background-size: 100%;
  margin-right: 3px;
}

.no_result {
  text-align: center;
  padding: 2rem 1rem;
}

@media (min-width: 992px) {
  .no_result span {
    display: block;
  }
}

/* compare */
.compare-label {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: #666666;
  cursor: pointer;
  margin-top: 0.5rem;
  user-select: none;
}

.compare-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #0374ff;
  flex-shrink: 0;
}

.compare-label input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.compare-tray {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #DCDCDC;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
  z-index: 9000;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.compare-tray__limit {
  font-size: 14px;
  color: #666666;
  white-space: nowrap;
  margin: 0;
}

.compare-tray__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.compare-tray__items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.compare-tray__item {
  max-width: 100px;
  background: #ffffff;
  padding: 0 10px 5px 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.compare-tray__item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.compare-tray__name {
  width: 100%;
  font-size: 12px;
  color: #000000;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compare-tray__remove {
  position: absolute;
  top: 0;
  right: 3px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  background: none;
}

.compare-tray__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  flex-direction: column;
}

.compare-tray__clear {
  font-size: 14px;
  background: none;
  padding: 0;
  cursor: pointer;
  color: #000000;
  text-decoration: underline;
}

.compare-tray__submit {
  width: 100%;
  color: #000000 !important;
  font-size: 1rem;
  background: #60CFF6;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
}

.compare-tray__submit.disabled {
  background: #cccccc;
  pointer-events: none;
}

footer {
  text-align: center;
}

/* store version */
.store .gh__header {
  display: none !important;
}

.store .container {
  width: calc(100vw - 4rem) !important;
  min-height: 100vh;
  padding-top: 4rem;
  /* display: flex;
  flex-direction: column;
  justify-content: center; */
}

.store .question-title,
.store h1,
.store .accessories-title {
  font-size: 2.5rem;
  font-family: "Oswald", "Roboto", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.store button,
.store .option,
.store .result-item h3,
.store .accessory-item h3 {
  font-size: 1.5rem;
  font-family: "Roboto", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.store .quiz-header,
.store .options {
  /* width: 100%; */
  gap: 1rem;
}

.store .buttons {
  padding: 2rem;
}

.store button {
  padding: 28px 24px;
}

.store .options {
  align-items: stretch;
}

.store .option {
  max-width: 300px;
  min-height: 180px;
  height: auto;
  padding: 1rem;
}

.store .result-item h2,
.store .accessory-item h2,
.store .glossary-modal__title,
.store .glossary-modal__close {
  font-size: 2rem;
  /* font-family: "Roboto", "Noto Sans TC", "Microsoft JhengHei", sans-serif; */
}

.store .question-subtitle,
.store .option span,
.store .result-price,
.store .accessory-price,
.store .result-battery,
.store .feature-chip,
.store .result-more-toggle,
.store .glossary-modal__desc {
  font-size: 1rem;
  font-family: "Roboto", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.store .result-link,
.store .compare-label {
  display: none;
}

.store .result-battery img {
  width: 26px;
  height: 26px;
}

.store .result-more-toggle,
.store .glossary-modal__close {
  padding: 0;
}

.store .result-more-toggle::after {
  width: 20px;
  height: 20px;
}

.store .result-img-link,
.store .glossary-modal__desc a {
  pointer-events: none;
}

.store .restart-section {
  position: fixed;
  bottom: 4rem;
  right: 0.5rem;
}

.store .restart-section .restart {
  width: 100px;
  height: 100px;
  background: #60CFF6;
  padding: 1rem;
  border-radius: 50px;
  line-height: 1.3 !important;
}

.store .restart-section .restart::before {
  display: none;
}

.store .lang-switch {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1;
}

.store button.lang-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: white;
  font-size: 1rem;
  color: #666666;
  padding: 0;
  width: 100px;
  height: 50px;
  border: 1px solid #999999;
  border-radius: 25px;
}

.store button.lang-btn.active {
  display: none;
}

.store button.lang-btn img {
  width: 20px;
}

.store .click-hint {
  display: none;
}

.store .click-hint.active {
  width: 20vw;
  margin-top: -1rem;
  margin-left: 20vw;
  display: block;
  -webkit-animation: moveHint 2s ease-in-out infinite;
  animation: moveHint 2s ease-in-out infinite;
}

@-webkit-keyframes moveHint {
  0% {
    margin-left: 20vw;
  }

  50% {
    margin-left: 60vw;
  }

  100% {
    margin-left: 20vw;
  }
}

@keyframes moveHint {
  0% {
    margin-left: 20vw;
  }

  50% {
    margin-left: 60vw;
  }

  100% {
    margin-left: 20vw;
  }
}

@media (min-width: 1080px) {

  .store .question-title,
  .store h1,
  .store .accessories-title {
    font-size: 3.5rem;
  }

  .store button,
  .store .option,
  .store .result-item h3,
  .store .accessory-item h3 {
    font-size: 2.5rem;
  }

  .store .result-item h2,
  .store .accessory-item h2,
  .store .glossary-modal__title,
  .store .glossary-modal__close {
    font-size: 3rem;
  }

  .store .question-subtitle,
  .store .option span,
  .store .result-price,
  .store .accessory-price,
  .store .result-battery,
  .store .feature-chip,
  .store .result-more-toggle,
  .store .glossary-modal__desc {
    font-size: 2rem;
  }

  .store .feature-chip::after {
    width: 32px;
    height: 32px;
    font-size: 2rem;
  }

  .store .option {
    max-width: 440px;
    min-height: 280px;
  }

  .store .option img {
    width: 100px;
  }

  .store .result-list,
  .store .accessory-list {
    justify-content: flex-start;
  }

  .store .result-item,
  .store .accessory-item {
    flex: 0 0 600px;
    max-width: 600px;
  }

  .store .result-item:nth-child(1)>div a::after {
    width: 140px;
    height: 140px;
  }

  .store .result-battery img, .store .result-more-toggle::after {
    width: 40px;
    height: 40px;
  }

  .store .feature-chip-list {
    gap: 1rem;
  }

  .store .feature-chip {
    padding: 12px 24px;
  }

  .store .restart-section .restart {
    width: 150px;
    height: 150px;
    border-radius: 75px;
    font-size: 2rem;
  }

  .store button.lang-btn {
    font-size: 2rem;
    width: 160px;
    height: 80px;
    border-radius: 40px;
  }

  .store button.lang-btn img {
    width: 36px;
  }
}