.hsp-root .hsp-trigger {
  font: inherit;
  cursor: pointer;
  background: none;
  color: inherit;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0;
}
.hsp-dialog .hsp-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hsp-dialog .hsp-icon {
  width: 55px;
  height: 35px;
  object-fit: contain;
}
.hsp-dialog {
  --hsp-purple: #565add;
  box-sizing: border-box;
  width: 608px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: #fafaf7;
  color: #000;
  padding: 24px;
  direction: rtl;
  text-align: right;
  font-family: inherit;
  box-shadow: none;
}
.hsp-dialog::backdrop {
  background: #0008;
}
.hsp-dialog * {
  box-sizing: border-box;
  font-family: inherit;
}
.hsp-dialog [hidden] {
  display: none !important;
}
.hsp-dialog button,
.hsp-dialog input {
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
}
.hsp-dialog button {
  cursor: pointer;
}
.hsp-dialog .hsp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 35px;
  margin: 0 0 16px;
}
.hsp-dialog .hsp-title {
  font-size: 18px;
  line-height: 35px;
  font-weight: 600;
  margin: 0;
  color: #000;
}
.hsp-dialog .hsp-close {
  position: relative;
  width: 24px;
  height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
}
.hsp-dialog .hsp-close:before,
.hsp-dialog .hsp-close:after {
  content: "";
  position: absolute;
  background: #4d4d46;
  width: 25px;
  height: 4px;
  border-radius: 2px;
  left: 0;
  top: 12px;
  transform: rotate(45deg);
}
.hsp-dialog .hsp-close:after {
  transform: rotate(-45deg);
}
.hsp-dialog p {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
}
.hsp-dialog .hsp-primary {
  display: block;
  margin: 16px 0 0 auto;
  min-width: 65px;
  height: 40px;
  background: var(--hsp-purple);
  border: 0;
  border-radius: 16px;
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
}
.hsp-dialog .hsp-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 0;
}
.hsp-dialog .hsp-choice {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 33px;
  font-size: 16px;
  line-height: 33px;
  font-weight: 600;
  cursor: pointer;
}
.hsp-dialog .hsp-choice input {
  appearance: none;
  -webkit-appearance: none;
  width: 33px;
  height: 33px;
  border: 0;
  border-radius: 50%;
  background: #ececec;
  margin: 0;
  flex-shrink: 0;
}
.hsp-dialog .hsp-choice input:checked {
  background: var(--hsp-purple);
}
.hsp-dialog .hsp-choice em {
  color: var(--hsp-purple);
  font-style: normal;
}

.hsp-dialog .hsp-choice-page .hsp-primary {
  margin-top: 20px;
}
.hsp-dialog .hsp-inputs {
  display: flex;
  gap: 48px;
  margin-top: 16px;
}
.hsp-dialog .hsp-inputs label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 33px;
}
.hsp-dialog .hsp-inputs input {
  width: 100px;
  height: 51px;
  border: 0;
  background: #ececec;
  border-radius: 16px;
  padding: 8px;
  text-align: center;
  font-size: 16px;
  color: #000;
  box-shadow: none;
  outline-offset: 3px;
}
.hsp-dialog .hsp-result {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
}
.hsp-dialog .hsp-error {
  color: #a12222;
  margin-top: 12px;
  font-size: 14px;
  line-height: 24px;
}
.hsp-dialog .hsp-scroll {
  overflow-x: auto;
  margin-top: 16px;
}
.hsp-dialog table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  margin: 0;
  table-layout: auto;
  border: 0;
}
.hsp-dialog th,
.hsp-dialog td {
  min-width: 80px;
  height: 40px;
  text-align: center;
  padding: 8px 10px;
  border: 0;
  font-size: 14px;
  line-height: 24px;
  white-space: nowrap;
  color: #000;
}
.hsp-dialog thead {
  background: #ececec;
}
.hsp-dialog tbody tr:nth-child(even) {
  background: #ececec;
}
.hsp-dialog th {
  font-weight: 600;
}
.hsp-dialog .hsp-guide {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
}
.hsp-dialog .hsp-guide-text {
  flex: 1;
}
.hsp-dialog .hsp-guide h3 {
  font-size: 16px;
  line-height: 24px;
  margin: 0 0 8px;
  font-weight: 600;
  color: #000;
}
.hsp-dialog .hsp-guide p {
  white-space: pre-line;
}
.hsp-dialog .hsp-guide img {
  width: 149px;
  max-height: 220px;
  object-fit: contain;
}
.hsp-dialog :focus-visible {
  outline: 2px solid var(--hsp-purple);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .hsp-dialog {
    padding: 20px;
  }
  .hsp-dialog .hsp-choice {
    font-size: 15px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .hsp-dialog .hsp-choice input {
    width: 28px;
    height: 28px;
  }

  .hsp-dialog .hsp-inputs {
    gap: 20px;
    flex-wrap: wrap;
  }
  .hsp-dialog .hsp-inputs label {
    font-size: 18px;
  }
  .hsp-dialog .hsp-guide {
    flex-wrap: wrap;
  }
  .hsp-dialog .hsp-guide img {
    margin: auto;
  }
  .hsp-dialog .hsp-guide-text {
    flex-basis: 100%;
  }
}
/* Isolate interactive states from WooCommerce/theme button rules. */
dialog.hsp-dialog .hsp-close,
dialog.hsp-dialog .hsp-close:is(:hover, :focus, :active, :focus-visible) {
  appearance: none;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  color: #4d4d46;
  min-width: 36px;
  width: 36px;
  height: 36px;
  border-radius: 0;
}
dialog.hsp-dialog .hsp-close::before,
dialog.hsp-dialog .hsp-close::after {
  left: 6px;
  top: 16px;
}
dialog.hsp-dialog .hsp-primary,
dialog.hsp-dialog .hsp-primary:is(:hover, :focus, :active, :focus-visible) {
  background: #565add !important;
  background-image: none !important;
  color: #fff !important;
  font-weight: 500 !important;
  box-shadow: none;
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  height: auto;
}
dialog.hsp-dialog .hsp-primary:hover {
  background: #464bc4 !important;
}
.hsp-dialog .hsp-choice {
  gap: 12px;
  min-height: 44px;
  margin: 0;
  font-weight: 500;
  line-height: 1.8;
}
.hsp-dialog .hsp-choice input {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
  border: 2px solid #b8bac7 !important;
  background: #fff !important;
  box-shadow: none !important;
}
.hsp-dialog .hsp-choice input:checked {
  border-color: #565add !important;
  background: radial-gradient(circle, #565add 0 5px, #fff 6px) !important;
}
.hsp-dialog .hsp-choice input::before,
.hsp-dialog .hsp-choice input::after {
  content: none !important;
}
.hsp-dialog .hsp-mobile-table {
  display: none;
}
.hsp-root .hsp-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.elementor-widget-honarposh-size-guide .hsp-root .hsp-trigger {
  border: 0;
  text-decoration: none;
}
body:has(.elementor-widget-honarposh-size-guide .hsp-data) .hsp-auto {
  display: none;
}
.hsp-root .hsp-trigger-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .hsp-dialog {
    padding: 20px;
    max-width: calc(100vw - 24px);
    border-radius: 20px;
  }
  .hsp-dialog .hsp-scroll {
    display: none;
  }
  .hsp-dialog .hsp-mobile-table {
    display: table;
    table-layout: fixed;
    width: 100%;
    margin-top: 16px;
  }
  .hsp-dialog .hsp-mobile-table th,
  .hsp-dialog .hsp-mobile-table td {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 10px 6px;
    font-size: 13px;
  }
  .hsp-dialog .hsp-mobile-table.hsp-many-columns,
  .hsp-dialog .hsp-many-columns tbody {
    display: block;
  }
  .hsp-dialog .hsp-many-columns thead {
    display: none;
  }
  .hsp-dialog .hsp-many-columns tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #e2e3e9;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: transparent;
  }
  .hsp-dialog .hsp-many-columns tbody th {
    grid-column: 1/-1;
    background: #ececec;
  }
  .hsp-dialog .hsp-many-columns td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: #555;
  }
  .hsp-dialog .hsp-inputs {
    gap: 16px;
  }
  .hsp-dialog .hsp-inputs label {
    font-size: 15px;
    gap: 8px;
  }
  .hsp-dialog .hsp-inputs input {
    width: 88px;
    height: 44px;
    font-size: 16px;
    border-radius: 12px;
  }
}
