.ai-size-powered-by {
  color: white;
  text-decoration: none !important;
  outline: unset !important;
  outline-offset: unset !important;
  font-size: 16px;
  box-shadow: unset !important;
}

.ai-size-watermark {
  grid-column: span 2;
  text-align: center;
  width: 100%;
  background-color: #683894;
  padding: 3px 10px;
  position: absolute;
  bottom: 0;
  left: 0;
  min-height: 35px;
}

.ai-size-watermark-size-guide {
  text-align: center;
  min-width: 100%;
  background-color: #683894;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 3px 10px;
}
.ai-size-powered-by span {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #E966B3;
  font-weight: 600;
}


.ai-size-perm-hidden {
  display: none !important;
}

.ai-size-button-container {
  display: flex;
  gap: 1rem;
}

.ai-size-button {
  color: #707eae;
  cursor: pointer;
  border: 1px solid #f4f7fe;
  padding: 7px 18px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 24px;
}

.ai-size-button.ai-size-result-btn {
  /* border: 1px solid; */
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  color: #707eae;
}

.ai-size-button .ai-size-button-logo {
  font-weight: 800;
}

.ai-size-button:hover {
  opacity: 0.7;
}
.ai-size-guide-button:hover{
  opacity: 0.7;
}
.skip-button:hover{
  opacity: 0.7;
}
.next-button:hover{
  opacity: 0.7;
}
.continue-shopping-button:hover{
  opacity: 0.7;
}
.continue-shopping-button{
  cursor: pointer;
}
.ai-size-guide-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: unset;
  cursor: pointer !important;
  border-style: solid;
  border: 0px;
}

.ai-size-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 30px;
}

.ai-size-popup.active {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.ai-size-popup-content {
  /* background-color: #fff; */
  border-radius: 30px;
  overflow: hidden;
  width: 100%;
  max-width: 944px;
  min-height: 500px;
  display: grid;
  grid-template-columns: 40% 60%;
  max-height: 535px;
}

.ai-size-popup-content:has(.ai-size-watermark) {
  padding-bottom: 35px;
  position: relative;
}

.ai-size-popup-left {
  overflow: hidden;
}
.ai-size-popup-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.ai-size-popup-right {
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.ai-size-popup-title {
  font-size: 16px;
  margin: 0;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.ai-size-popup-body {
  margin-bottom: 30px;
}

.step-title {
  font-size: 26px;
  font-weight: 700;
  line-height: normal;
  margin: 0 0 20px;
}

.details-container {
  border-radius: 5px;
  margin-bottom: 20px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f4f7fe;
}

.details-title {
  font-size: 16px;
  line-height: normal;
  font-weight: 500;
  width: 104px;
  min-width: 104px;
  text-align: center;
  padding: 13px 15px;
  border-radius: 5px;
  background-color: #fff;
  margin: 0 10px 0 0;
}

.weight-toggle,
.height-toggle {
  display: flex;
  flex-direction: column;
  width: 30px;
  min-width: 30px;
  gap: 6px;
  font-size: 14px;
  line-height: normal;
  cursor: pointer;
}

.toggle {
  color: #707eae;
  display: inline-block;
}

.toggle.active {
  color: #2b3674;
  font-weight: 500;
}

.details-input,
.height-inputs {
  flex: 1;
  display: flex;
  gap: 10px;
}

.details-input div,
.height-inputs div {
  flex: 1;
}

.details-input input,
.height-inputs input {
  width: 100%;
  border-radius: 5px;
  border: 1px solid #707eae33;
  padding: 9px 10px;
  background-color: transparent;
  outline: 0;
  box-shadow: unset;
  font-size: 14px;
  line-height: 24px;
}

.ai-size-popup-footer {
  margin-top: auto;
  text-align: right;
}

.next-button {
  color: #fff;
  background: #683894;
  border-color: #683894;
  border-radius: 7px;
  padding: 9px 15px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  cursor: pointer;
  max-width: 112px;
  width: 100%;
  box-shadow: unset;
  transition: all 0.3s linear;
}

.next-button:not(:disabled):hover {
  background-color: #fff;
  color: #683894;
}

.next-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.back-button-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.back-button {
  background-color: unset;
  border: unset;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 0;
}
.back-button img {
  width: 7px;
}

.back-button span {
  font-size: 15px;
  font-weight: 500;
  line-height: normal;
}

.navigation-dots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.navigation-dots .navigation-dot {
  width: 30px;
  height: 5px;
  border-radius: 100px;
  background-color: #e1e9fc;
  display: inline-block;
}

.navigation-dots .navigation-dot.active {
  background-color: #683894;
}

.shoulder-label-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.fit-label-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.shoulder-label,
.stomach-label,
.fit-preference-label,
.hips-label,
.seat-label {
  border: 1px solid #707eae33;
  border-radius: 5px;
  padding: 20px 10px 6px;
  cursor: pointer;
}

.body-shape-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 85px;
  margin-bottom: 20px;
}

.body-shape-svg img {
  max-width: 100%;
  object-fit: contain;
  height: auto;
  max-height: 100%;
}

.body-shape-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: #f4f7fe;
  border-radius: 5px;
  cursor: pointer;
}

.body-shape-label div {
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: #707eae;
}

.body-shape-label img {
  width: 9px;
  height: 9px;
  margin-top: 3px;
}

.ai-size-answer {
  margin-top: 20px;
}

.ai-size-answer-header {
  margin-top: 30px;
}

.ai-size-answer-header .ai-size-answer-heading {
  font-size: 26px;
  font-weight: 700;
  line-height: normal;
  color: #2b3674;
}

.ai-size-answer-subheading {
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  color: #707eae;
}

.ai-size-answer .ai-size-result-container {
  background: #f4f7fe;
  border-radius: 5px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.ai-size-result-product-title {
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: #707eae;
}

.ai-size-result {
  font-size: 30px;
  font-weight: 700;
  line-height: normal;
  color: #2b3674;
}

.ai-size-terms {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
}

.ai-size-terms svg {
  width: 24px;
  height: 24px;
}

.ai-size-terms span {
  font-size: 16px;
  font-weight: 500;
  line-height: 42px;
  color: #707eae;
}

.result-step-navigation-container {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
}

.start-over-button {
  font-size: 15px;
  font-weight: 500;
  line-height: 42px;
  color: #707eae;
  background: unset;
  border: 0;
  outline: 0;
  padding: 0;
  cursor: pointer;
}

.continue-shopping-button {
  background: #683894;
  padding: 12px 20px;
  border-radius: 7px;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  outline: 0;
  color: #ffffff;
  border: 0;
}

.age-container {
  justify-content: flex-start;
}

.age-container .details-input {
  margin-top: 0;
}

.navigation-buttons-container {
  display: flex;
  justify-content: space-between !important;
  align-items: center;
}

.navigation-buttons-container.flex-end {
  justify-content: flex-end;
}

.navigation-buttons-container.flex-start {
  justify-content: flex-start;
}

.ai-size-dots::after {
  content: "";
  display: inline-block;
  width: 1em;
  text-align: left;
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

  0%,
  20% {
    content: "";
  }

  40% {
    content: ".";
  }

  60% {
    content: "..";
  }

  80%,
  100% {
    content: "...";
  }
}

body.ai-size-fixed {
  overflow: hidden;
}

@media screen and (max-width: 991px) {
  .ai-size-popup-right {
    padding: 30px 20px;
  }

  .step-title {
    font-size: 22px;
  }

  .details-title {
    width: 80px;
    min-width: 80px;
    padding: 12px;
  }

  .next-button {
    font-size: 16px;
    line-height: 22px;
    padding: 8px 15px;
  }

  .ai-size-answer-header {
    margin-top: 20px;
  }

  .ai-size-answer-header .ai-size-answer-heading {
    font-size: 22px;
  }

  .ai-size-answer {
    margin-top: 20px;
  }

  .ai-size-answer .ai-size-result-container {
    padding: 20px;
    gap: 30px;
  }

  .ai-size-result {
    font-size: 24px;
  }
}

@media screen and (max-width: 768px) {
  .ai-size-popup {
    padding: 15px;
  }

  .ai-size-popup-content {
    grid-template-columns: 100%;
    max-width: 600px;
    border-radius: 15px;
    min-height: 450px;
  }

  .ai-size-popup-left {
    display: none;
  }

  .ai-size-popup-title {
    font-size: 14px;
  }

  .step-title {
    font-size: 20px;
  }

  .details-title {
    font-size: 14px;
    width: 70px;
    min-width: 70px;
    padding: 10px 10px;
    margin-right: 5px;
  }

  .ai-size-answer-header {
    margin-top: 10px;
  }

  .ai-size-answer-header .ai-size-answer-heading {
    font-size: 20px;
  }

  .ai-size-result {
    font-size: 22px;
  }

  .ai-size-answer-subheading {
    font-size: 14px;
    line-height: normal;
  }

  .ai-size-answer .ai-size-result-container {
    padding: 15px;
  }

  .ai-size-terms svg {
    width: 20px;
    height: 20px;
  }

  .ai-size-terms span {
    font-size: 14px;
  }

  .navigation-dots {
    gap: 6px;
  }

  .navigation-dots .navigation-dot {
    width: 20px;
    height: 4px;
  }

  .shoulder-label,
  .stomach-label,
    .fit-preference-label,
    .hips-label,
    .seat-label {
    padding: 12px 10px 6px;
  }

  .ai-size-button.ai-size-result-btn {
    font-size: 16px;
  }

  .details-container {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .shoulder-label-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .details-input div,
  .height-inputs div {
    flex-direction: column;
  }
}

.ai-size-guide {
  position: relative;
  background-color: #fff;
  border-radius: 30px;
  overflow: hidden;
  width: 100%;
  max-width: 944px;
  min-height: 500px;
  max-height: 90vh;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.ai-size-guide-heading {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  display: block;
}

.ai-size-guide-container {
  max-height: 80%;
  overflow: hidden;
  display: flex;
}

.ai-size-guide-images {
  text-align: center;
  width: 100%;
}

.ai-size-guide img {
  max-width: 100%;
  object-fit: contain;
  max-height: 100%;
}

.ai-size-guide .close {
  top: 20px;
  right: 20px;
  display: flex;
}

.ai-size-guide .close svg circle {
  fill: #000000;
}

.ai-size-guide-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.ai-size-guide-toggle-container .toggle {
  display: flex;
  align-items: center;
  background-color: #f4f4f4;
}

.ai-size-guide-toggle-container .toggle-item {
  width: 80px;
  text-align: center;
  padding: 5px 15px;
  font-size: 16px;
  display: block;
  border-right: 1px solid #d6d6d6;
  color: #000;
  cursor: pointer;
}

.ai-size-guide-toggle-container .toggle-item.selected {
  background-color: #000;
  color: #fff;
}

.ai-size-guide-toggle-container .toggle-item:last-child {
  border-right: 0;
}
.ai-size-guide-content {
  flex: 1;
  overflow: auto;
}
@media screen and (max-width: 991px) {
  .ai-size-guide {
    border-radius: 15px;
    padding: 15px;
  }

  .ai-size-guide-heading {
    font-size: 22px;
  }
  .ai-size-guide .close {
    top: 20px;
    right: 20px;
  }

  .ai-size-guide-toggle-container {
    gap: 30px;
    margin-bottom: 30px;
  }

  .ai-size-guide-toggle-container .toggle-item {
    width: 70px;
    padding: 5px 10px;
    font-size: 14px;
  }
}

.ai-size-hidden {
  display: none;
}

.ai-table-wrapper {
  overflow-x: auto;
  margin-top: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}

.ai-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ai-table thead {
  background-color: #f5f6fa;
}

.ai-header {
  padding: 14px 16px;
  font-weight: 600;
  text-align: center;
  color: #222;
  font-size: 15px;
  border-bottom: 1px solid #ddd;
}

.ai-cell {
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  color: #444;
  border-bottom: 1px solid #ddd;
}

.ai-size {
  font-weight: 600;
}

.ai-table tbody tr:hover {
  background-color: #eef2f7;
}
.ai-size-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 0;
  max-height: 300px;
  overflow: auto;
}

.ai-size-brand-option {
  border: 1px solid #8F9ED433;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  background-color: #EFF1F4;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.ai-size-brand-option input:checked+img,
.ai-size-brand-option:hover {
  border-color: #8F9ED4;
}
.ai-size-brand-option img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 100%;
}

.ai-size-step-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ai-size-step-image img {
  max-width: 220px;
  border-radius: 12px;
}

.ai-size-step-form {
  flex: 1;
}

.ai-size-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.brand-size-option {
  position: relative;
  display: block;
  cursor: pointer;
  overflow: hidden;
}

.brand-size-option input {
  display: none;
}

.brand-size-option span {
  background-color: #f1effa;
  border-radius: 8px;
  padding: 20px 0;
  font-weight: 600;
  color: #4b2675;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 18px;
  text-align: center;
  display: inline-block;
  width: 100%;
  height: 100%;
  border: 1px solid #8F9ED433;
}


.brand-size-option span {
  display: inline-block;
  width: 100%;
  height: 100%;
}

.ai-size-next-button {
  background-color: #6c63ff;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}
.skip-button {
  color: #fff;
  background: #683894;
  border-color: #683894;
  border-radius: 7px;
  padding: 9px 15px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  cursor: pointer;
  max-width: 112px;
  width: 100%;
  box-shadow: unset;
  transition: all 0.3s linear;
}

.skip-button:not(:disabled):hover {
  background-color: #fff;
  color: #683894;
}

.skip-button:disabled {
  opacity: 0.4;
  cursor: default;
}
@media screen and (max-width: 991px) {
  .skip-button {
    font-size: 16px;
    line-height: 22px;
    padding: 8px 15px;
  }
}
/* .skip-button {
  background-color: #6c63ff;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
} */

@media screen and (max-width: 768px) {
  .ai-size-brand-grid {
      grid-template-columns: repeat(2, 1fr);
  }
    .brand-size-option span {
      padding: 10px 0;
    }
}

.ai-size-guide-content,
.ai-size-brand-grid{
  padding-right: 10px;
}
.ai-size-guide-content::-webkit-scrollbar,
.ai-size-brand-grid::-webkit-scrollbar {
  width: 5px !important;
  height: 5px !important;
}

.ai-size-guide-content::-webkit-scrollbar-track,
.ai-size-brand-grid::-webkit-scrollbar-track {
  background: #ddd;
  border-radius: 8px;
}
.ai-size-guide-content::-webkit-scrollbar-thumb,
.ai-size-brand-grid::-webkit-scrollbar-thumb {
  background: #683894;
  border-radius: 8px;
}
.ai-size-guide:has(.ai-size-watermark-size-guide) {
  padding-bottom: 60px;
}
.ai-size-calculating-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.ai-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e0e0e0;
  border-top: 3px solid #683894; /* purple or your brand color */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
.ai-size-height-toggle-checkbox{
  display: block;
}
.ai-size-weight-toggle-checkbox{
  display: block;
}
