.product-selector-shortcode-wrapper{
  position: relative;
}
.product-selector-shortcode-wrapper .product-selector-loader {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.65);
}
.product-selector-shortcode-wrapper .product-selector-loader.active {
  display: block;
  z-index: 9999;
}
.product-selector-shortcode-wrapper .product-selector-loader span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.product-selector-shortcode-wrapper .product-selector-loader span::after {
    content: "";
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 4px solid rgba(0, 0, 0, 0.15);
    border-top-color: #da291c;
    border-radius: 50%;
    animation: ps-spin 0.8s linear infinite;
}

@keyframes ps-spin {
  to {
    transform: rotate(360deg);
  }
}
.product-selector-shortcode-wrapper .ps-step {
  max-height: 0;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* active step */
.product-selector-shortcode-wrapper .ps-step.is-active {
  max-height: 2000px;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.product-selector-shortcode-wrapper.is-back .ps-step {
  transform: translateX(-24px);
}
.product-selector-shortcode-wrapper.is-back .ps-step.is-active {
  transform: translateX(0);
}

.product-selector-shortcode-wrapper h2.ps-question {
  text-align: center;
  font-weight: 700;
}

.product-selector-shortcode-wrapper .ps-notice.ps-error {
  background: #fdecea;
  color: #8a1c1c;
  border: 1px solid #f5c2c7;
  padding: 10px 12px;
  margin: 10px 0 15px;
  border-radius: 4px;
}
.product-selector-shortcode-wrapper .ps-options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.product-selector-shortcode-wrapper .ps-option {
  border: 1px solid #585858;
  border-radius: 5px;
  width: 100%;
}
.product-selector-shortcode-wrapper .ps-option label {
  cursor: pointer;
}
.product-selector-shortcode-wrapper .ps-option input {
  opacity: 0;
  width: 0;
  height: 0;
  display: none;
}
.product-selector-shortcode-wrapper .ps-option span {
  padding: 1rem 3rem 1rem 3rem;
  position: relative;
  display: block;
}
.product-selector-shortcode-wrapper .ps-option span::before {
  content: "";
  height: 24px;
  width: 24px;
  border: 1px solid #585858;
  display: inline-block;
  position: absolute;
  left: 1rem;
  top: 15px;
  background-color: #fff !important;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%
}
.product-selector-shortcode-wrapper .ps-option label:hover span,
.product-selector-shortcode-wrapper .ps-option input:checked + span {
  background: #004f2a;
  color: #FFFFFF;
}
.product-selector-shortcode-wrapper .ps-option input:checked + span::before {
  /* add checkmark */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
}
.product-selector-shortcode-wrapper .ps-navigation-buttons {
  text-align: center;
  margin: 15px 0;
}
.product-selector-shortcode-wrapper .ps-btn {
  padding: 12px 20px;
  border-radius: 6px;
  border: 2px solid;
  min-width: 145px;
  color: white;
  margin-right: 15px;
  background: #008446;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  text-decoration: none !important;
}
.product-selector-shortcode-wrapper .ps-btn:hover {
  background: white;
  color: #434445;
}
.product-selector-shortcode-wrapper .ps-navigation-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.product-selector-shortcode-wrapper .ps-results .ps-results-actions {
  text-align: right;
}
.product-selector-shortcode-wrapper .ps-results-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product-selector-shortcode-wrapper .ps-results-inner .ps-result-item {
  position: relative;
}
.product-selector-shortcode-wrapper .ps-results-inner .ps-result-item h3 {
  text-align: center;
  font-weight: 500;
  font-size: 17px;
  text-transform: capitalize;
  padding-bottom: 0;
  line-height: 1.5;
  margin-bottom: 13px;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ps-result-title a {
  text-decoration: none!important;
}
.ps-result-title a:hover {
  color: #008446
}
.product-selector-shortcode-wrapper .ps-results-inner .ps-result-item img {
  max-width: 100%;
  height: auto;
  padding: 15px 0;
  margin: 0 auto;
  box-shadow: 0 0 20px #aeaeae;
  border-radius: 5px;
}
.product-selector-shortcode-wrapper
  .ps-results-inner
  .ps-result-item
  .ps-flavours {
  text-align: center;
  margin-top: 15px;
  min-height: 32px;
}

.product-selector-shortcode-wrapper
  .ps-results-inner
  .ps-result-item
  .ps-flavour-dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
  margin-right: 5px;
}

.product-selector-shortcode-wrapper
  .ps-results-inner
  .ps-result-item
  .ps-buy-btn-wrapper {
  text-align: center;
  margin-top: 15px;
}

@media only screen and (min-width: 768px) {
  .product-selector-shortcode-wrapper .ps-option {
    flex-basis: 48%;
    max-width: 48%;
  }
}

.ps-callout-ribbon {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: capitalize;
  display: none;
}

.ribbon {
  color: #fff;
}
.ribbon {
  --f: .5em; /* control the folded part*/
  --r: .8em; /* control the ribbon shape */
  position: absolute;
  top: 45px;
  left: -6px;
  padding-inline: 1.25em;
  line-height: 1.8;
  background: #008446;
  border-top: var(--f) solid #0005;
  border-right: var(--r) solid #0000;
  clip-path: 
    polygon(0 100%,0 var(--f),var(--f) 0,
      var(--f) var(--f),100% var(--f),
      calc(100% - var(--r)) calc(50% + var(--f)/2),100% 100%);
}


@media only screen and (max-width: 480px) {
	.product-selector-shortcode-wrapper .ps-results-inner {
		grid-template-columns: repeat(1, 1fr);
	}

  .product-selector-shortcode-wrapper .ps-navigation-buttons {
    margin: 0
  }

  .product-selector-shortcode-wrapper .ps-results-inner .ps-result-item h3 {
    min-height: unset;
  }

  .product-selector-shortcode-wrapper .ps-options,
  .product-selector-shortcode-wrapper .ps-results-inner .ps-result-item {
    margin-bottom: 30px;
  }

  .product-selector-shortcode-wrapper .ps-results-inner .ps-result-item:last-child {
    margin-bottom: 0;
  }

}