:root {
  --shmp-accent: #07575b;
  --shmp-secondary: #4d8f2f;
  --shmp-highlight: #e3a323;
  --shmp-navy: #143c61;
  --shmp-text: #38515a;
  --shmp-soft: #f2faf7;
  --shmp-white: #ffffff;
  --shmp-border: #c8e1da;
  --shmp-light-border: #dcece7;
}

.shmp-root,
.shmp-root *,
.shmp-root *::before,
.shmp-root *::after {
  box-sizing: border-box !important;
}

.shmp-root {
  position: fixed;
  inset: 0;
  z-index: 999998;
  width: 0;
  height: 0;
  font-family: "Nunito Sans", Arial, sans-serif !important;
  pointer-events: none;
}

.shmp-root p,
.shmp-root a,
.shmp-root button,
.shmp-root span,
.shmp-root strong,
.shmp-root small,
.shmp-root div {
  font-family: "Nunito Sans", Arial, sans-serif !important;
}

.shmp-root h2,
.shmp-root h3 {
  font-family: "DM Serif Display", Georgia, serif !important;
  font-weight: 400 !important;
}

body.shmp-open {
  overflow: hidden !important;
}

.shmp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999998;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 45, 48, .62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
}

.shmp-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 999999;
  width: min(760px, calc(100vw - 32px));
  max-width: 100%;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  color: var(--shmp-text);
  background: var(--shmp-white);
  border: 1px solid var(--shmp-border);
  border-radius: 15px;
  box-shadow: 0 24px 70px rgba(4, 36, 39, .28);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.shmp-modal--results {
  width: min(940px, calc(100vw - 28px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--shmp-border) transparent;
}

.shmp-modal--results::-webkit-scrollbar {
  width: 8px;
}

.shmp-modal--results::-webkit-scrollbar-thumb {
  background: var(--shmp-border);
  border-radius: 99px;
}

.shmp-modal__content {
  width: 100%;
  min-width: 0;
}

.shmp-close {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 5;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--shmp-accent);
  background: var(--shmp-white);
  border: 1px solid var(--shmp-border);
  border-radius: 8px;
  cursor: pointer;
}

.shmp-close span {
  position: absolute;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  border-radius: 99px;
}

.shmp-close span:first-child {
  transform: rotate(45deg);
}

.shmp-close span:last-child {
  transform: rotate(-45deg);
}

.shmp-close:hover,
.shmp-close:focus {
  color: var(--shmp-white);
  background: var(--shmp-accent);
  border-color: var(--shmp-accent);
  outline: none;
}

.shmp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  color: var(--shmp-accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.shmp-kicker > span {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--shmp-highlight);
  border-radius: 50%;
}

.shmp-intro,
.shmp-question,
.shmp-loading,
.shmp-empty {
  padding: 34px 35px 31px;
}

.shmp-intro {
  min-height: 390px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  background: var(--shmp-soft);
}

.shmp-intro h2,
.shmp-question h2,
.shmp-loading h2,
.shmp-empty h2,
.shmp-results__header h2 {
  margin: 0;
  color: var(--shmp-accent);
  font-size: clamp(31px, 4vw, 43px);
  line-height: 1.07;
  letter-spacing: -.45px;
}

.shmp-subtitle,
.shmp-loading p,
.shmp-empty p,
.shmp-results__header p {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--shmp-text);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.62;
}

.shmp-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 20px;
}

.shmp-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  color: var(--shmp-navy);
  background: var(--shmp-white);
  border: 1px solid var(--shmp-border);
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
}

.shmp-intro__actions,
.shmp-question__actions,
.shmp-empty__actions,
.shmp-results__actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.shmp-btn,
.shmp-text-btn {
  appearance: none;
  -webkit-appearance: none;
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
}

.shmp-btn--primary {
  color: var(--shmp-white) !important;
  background: var(--shmp-accent);
  border: 1px solid var(--shmp-accent);
}

.shmp-btn--primary:hover,
.shmp-btn--primary:focus {
  color: var(--shmp-white) !important;
  background: #078b87;
  border-color: #078b87;
  outline: none;
}

.shmp-btn--secondary {
  color: var(--shmp-accent) !important;
  background: var(--shmp-white);
  border: 1px solid var(--shmp-border);
}

.shmp-btn--secondary:hover,
.shmp-btn--secondary:focus {
  color: var(--shmp-accent) !important;
  background: var(--shmp-soft);
  border-color: var(--shmp-accent);
  outline: none;
}

.shmp-btn:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.shmp-text-btn {
  min-height: 37px;
  padding-right: 10px;
  padding-left: 10px;
  color: var(--shmp-text);
  background: transparent;
  border: 0;
}

.shmp-text-btn:hover,
.shmp-text-btn:focus {
  color: var(--shmp-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.shmp-progress {
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: var(--shmp-light-border);
}

.shmp-progress span {
  display: block;
  height: 100%;
  background: var(--shmp-accent);
  border-radius: 0 99px 99px 0;
}

.shmp-question {
  min-height: 465px;
  display: flex;
  flex-direction: column;
  background: var(--shmp-white);
}

.shmp-question__meta {
  margin: 0 0 7px;
  color: var(--shmp-secondary);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.shmp-question h2 {
  max-width: 650px;
  padding-right: 32px;
  font-size: clamp(28px, 3.8vw, 38px);
}

.shmp-answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
}

.shmp-answer {
  position: relative;
  min-width: 0;
  min-height: 74px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 12px 42px 12px 13px;
  color: var(--shmp-navy);
  background: var(--shmp-soft);
  border: 1px solid var(--shmp-border);
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
}

.shmp-answer:hover,
.shmp-answer:focus {
  background: var(--shmp-white);
  border-color: var(--shmp-accent);
  outline: none;
}

.shmp-answer__title {
  display: block;
  color: var(--shmp-navy);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
}

.shmp-answer__hint {
  display: block;
  margin-top: 4px;
  color: var(--shmp-text);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.35;
}

.shmp-answer__arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--shmp-white);
  background: var(--shmp-accent);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-50%);
}

.shmp-question__actions {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
}

.shmp-loading {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: var(--shmp-soft);
}

.shmp-spinner {
  width: 46px;
  height: 46px;
  margin-bottom: 17px;
  border: 4px solid var(--shmp-border);
  border-top-color: var(--shmp-accent);
  border-radius: 50%;
  animation: shmp-spin .8s linear infinite;
}

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

.shmp-empty {
  min-height: 340px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  background: var(--shmp-soft);
}

.shmp-empty__actions {
  margin-top: 19px;
}

.shmp-results {
  min-width: 0;
  background: var(--shmp-white);
}

.shmp-results__header {
  padding: 27px 30px 23px;
  background: var(--shmp-soft);
  border-bottom: 1px solid var(--shmp-border);
}

.shmp-results__header h2 {
  max-width: 760px;
  padding-right: 36px;
  font-size: clamp(30px, 4vw, 44px);
}

.shmp-results__header p {
  max-width: 760px;
}

.shmp-results__section {
  padding: 22px 30px 0;
}

.shmp-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}

.shmp-section-heading > div > span {
  display: block;
  margin-bottom: 3px;
  color: var(--shmp-secondary);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.shmp-section-heading h3 {
  margin: 0;
  color: var(--shmp-accent);
  font-size: 23px;
  line-height: 1.15;
}

.shmp-section-heading > small {
  flex: 0 0 auto;
  color: var(--shmp-text);
  font-size: 10.5px;
  font-weight: 700;
}

.shmp-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shmp-product {
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 11px;
  padding: 10px;
  color: var(--shmp-navy) !important;
  background: var(--shmp-white);
  border: 1px solid var(--shmp-border);
  border-radius: 10px;
  text-decoration: none !important;
}

.shmp-product:hover,
.shmp-product:focus {
  color: var(--shmp-navy) !important;
  background: var(--shmp-soft);
  border-color: var(--shmp-accent);
  outline: none;
}

.shmp-product__image {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--shmp-white);
  border: 1px solid var(--shmp-light-border);
  border-radius: 8px;
}

.shmp-product__image img {
  display: block;
  width: 92%;
  height: 92%;
  object-fit: contain;
  object-position: center;
}

.shmp-product__content {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.shmp-product__badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 5px;
  padding: 4px 7px;
  color: var(--shmp-accent);
  background: var(--shmp-soft);
  border: 1px solid var(--shmp-border);
  border-radius: 5px;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .45px;
  text-transform: uppercase;
}

.shmp-product strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--shmp-navy);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shmp-product__price {
  display: block;
  margin-top: 4px;
  color: var(--shmp-secondary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.shmp-product small {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--shmp-text);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shmp-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.shmp-guide {
  min-width: 0;
  display: block;
  padding: 13px;
  color: var(--shmp-navy) !important;
  background: var(--shmp-soft);
  border: 1px solid var(--shmp-border);
  border-radius: 9px;
  text-decoration: none !important;
}

.shmp-guide:hover,
.shmp-guide:focus {
  color: var(--shmp-navy) !important;
  background: var(--shmp-white);
  border-color: var(--shmp-accent);
  outline: none;
}

.shmp-guide__label {
  display: block;
  margin-bottom: 5px;
  color: var(--shmp-secondary);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .65px;
  text-transform: uppercase;
}

.shmp-guide strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--shmp-navy);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shmp-guide__excerpt {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--shmp-text);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shmp-guide small {
  display: block;
  margin-top: 7px;
  color: var(--shmp-accent);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.35;
}

.shmp-results__actions {
  justify-content: flex-end;
  padding: 22px 30px 27px;
}

.shmp-floating {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 999997;
  min-height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  color: var(--shmp-white);
  background: #07575b;
  border: 1px solid #07575b;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(5, 48, 51, .22);
  cursor: pointer;
  pointer-events: auto;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.shmp-floating.is-visible {
  display: inline-flex;
}

.shmp-floating:hover,
.shmp-floating:focus {
  color: var(--shmp-white);
  background: #078b87;
  border-color: #078b87;
  outline: none;
}

.shmp-floating__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  color: var(--shmp-highlight);
}

.shmp-floating__icon svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}

@media (max-width: 760px) {
  .shmp-modal {
    width: min(94vw, 620px);
    max-height: calc(100vh - 20px);
    border-radius: 13px;
  }

  .shmp-modal--results {
    width: min(94vw, 680px);
  }

  .shmp-intro,
  .shmp-question,
  .shmp-loading,
  .shmp-empty {
    padding: 27px 22px 24px;
  }

  .shmp-intro {
    min-height: 360px;
  }

  .shmp-question {
    min-height: 430px;
  }

  .shmp-answers {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 15px;
  }

  .shmp-answer {
    min-height: 58px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .shmp-answer__hint {
    font-size: 10px;
  }

  .shmp-products,
  .shmp-guides {
    grid-template-columns: 1fr;
  }

  .shmp-results__header,
  .shmp-results__section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .shmp-results__actions {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 560px) {
  .shmp-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 14px);
  }

  .shmp-close {
    top: 8px;
    right: 8px;
    width: 31px;
    height: 31px;
  }

  .shmp-intro,
  .shmp-question,
  .shmp-loading,
  .shmp-empty {
    padding: 22px 15px 19px;
  }

  .shmp-intro {
    min-height: 330px;
  }

  .shmp-intro h2,
  .shmp-loading h2,
  .shmp-empty h2 {
    font-size: 29px;
  }

  .shmp-question {
    min-height: 405px;
  }

  .shmp-question h2 {
    padding-right: 27px;
    font-size: 27px;
  }

  .shmp-subtitle,
  .shmp-loading p,
  .shmp-empty p,
  .shmp-results__header p {
    font-size: 13px;
    line-height: 1.55;
  }

  .shmp-badges {
    gap: 5px;
    margin: 14px 0 17px;
  }

  .shmp-badges span {
    min-height: 27px;
    padding: 5px 8px;
    font-size: 9.5px;
  }

  .shmp-answer {
    min-height: 55px;
    padding: 8px 39px 8px 11px;
  }

  .shmp-answer__title {
    font-size: 12px;
  }

  .shmp-answer__arrow {
    right: 10px;
    width: 23px;
    height: 23px;
  }

  .shmp-question__actions {
    padding-top: 12px;
  }

  .shmp-btn,
  .shmp-text-btn {
    min-height: 37px;
    padding: 8px 12px;
    font-size: 11.5px;
  }

  .shmp-results__header {
    padding: 22px 15px 18px;
  }

  .shmp-results__header h2 {
    padding-right: 29px;
    font-size: 30px;
  }

  .shmp-results__section {
    padding: 18px 15px 0;
  }

  .shmp-section-heading h3 {
    font-size: 21px;
  }

  .shmp-product {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 102px;
    gap: 9px;
    padding: 9px;
  }

  .shmp-product__image {
    width: 76px;
    height: 76px;
  }

  .shmp-results__actions {
    padding: 18px 15px 22px;
  }

  .shmp-floating {
    right: auto;
    left: 50%;
    bottom: 17px;
    max-width: calc(100vw - 24px);
    min-height: 40px;
    padding: 8px 14px;
    transform: translateX(-50%);
  }
}

@media (max-width: 380px) {
  .shmp-modal {
    width: calc(100vw - 12px);
  }

  .shmp-intro,
  .shmp-question,
  .shmp-loading,
  .shmp-empty {
    padding-right: 12px;
    padding-left: 12px;
  }

  .shmp-intro h2,
  .shmp-loading h2,
  .shmp-empty h2 {
    font-size: 27px;
  }

  .shmp-question h2 {
    font-size: 25px;
  }

  .shmp-answer__hint {
    font-size: 9.5px;
  }

  .shmp-product {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .shmp-product__image {
    width: 70px;
    height: 70px;
  }
}

@media (max-height: 650px) and (max-width: 760px) {
  .shmp-modal:not(.shmp-modal--results) {
    max-height: calc(100vh - 8px);
  }

  .shmp-intro,
  .shmp-question,
  .shmp-loading,
  .shmp-empty {
    padding-top: 17px;
    padding-bottom: 14px;
  }

  .shmp-intro {
    min-height: 295px;
  }

  .shmp-question {
    min-height: 360px;
  }

  .shmp-question h2 {
    font-size: 24px;
  }

  .shmp-answers {
    gap: 5px;
    margin-top: 11px;
  }

  .shmp-answer {
    min-height: 48px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .shmp-answer__hint {
    display: none;
  }

  .shmp-question__actions {
    padding-top: 8px;
  }
}
