/*
 * © Loyal Shops 2024 | All Rights Reserved
 */

.styled-checkbox {
  opacity: 0;
  position: absolute;
}

.styled-checkbox + label {
  cursor: pointer;
  padding: 0;
  position: relative;
}

.styled-checkbox + label::before {
  background: white;
    border-radius:8px;
  content: "";
  display: inline-block;
  height: 25px;
  margin-right: 10px;
  vertical-align: text-top;
  width: 25px;
}

.styled-checkbox:hover + label::before {
  background: var(--primary-light);
}

.styled-checkbox:focus + label::before {
  box-shadow: 0 0 0 3px rgb(0 0 0 / 12%);
}

.styled-checkbox:checked + label::before {
  background: var(--primary-light);
}

.styled-checkbox:disabled + label {
  color: var(--primaryFontColor);
  cursor: auto;
}

.styled-checkbox:disabled + label::before {
  background: var(--greyLight-6);
  box-shadow: none;
}

.styled-checkbox:checked + label::after {
  background: var(--white);
  box-shadow: 2px 0 0 var(--white), 4px 0 0 var(--white), 4px -4px 0 var(--white), 4px -6px 0 var(--white), 4px -8px 0 var(--white), 4px -10px 0 var(--white);
  content: "";
  height: 4px;
  left: 6px;
  position: absolute;
  top: 10px;
  transform: rotate(45deg);
  width: 4px;
}

.custom-radio [type="radio"]:checked,
.custom-radio [type="radio"]:not(:checked) {
  left: -9999px;
  position: absolute;
}

.custom-radio [type="radio"]:checked + label,
.custom-radio [type="radio"]:not(:checked) + label {
  color: var(--headerFontColor);
  cursor: pointer;
  display: inline-block;
  padding-left: 30px;
  position: relative;
}

.custom-radio [type="radio"]:checked + label::before,
.custom-radio [type="radio"]:not(:checked) + label::before {
  background: var(--white);
  border: 1px solid var(--greyLight-6);
  border-radius: 100%;
  content: "";
  height: 22px;
  left: 0;
  position: absolute;
  top: 0;
  width: 22px;
}

.custom-radio [type="radio"]:checked + label::after,
.custom-radio [type="radio"]:not(:checked) + label::after {
  background: var(--primary-light);
  border-radius: 100%;
  content: "";
  height: 18px;
  left: 2px;
  position: absolute;
  top: 2px;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
  width: 18px;
}

.custom-radio [type="radio"]:not(:checked) + label::after {
  opacity: 0;
  transform: scale(0);
}

.custom-radio [type="radio"]:checked + label::after {
  opacity: 1;
  transform: scale(1);
}

.search-wrapper,
.text-clear {
  padding: 10px;
  position: relative;
}

.search-wrapper {
  display: block;
  margin: 0 170px 0 10px;
  white-space: nowrap;
}

.text-clear {
  background-color: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  outline: 0;
  vertical-align: middle;
}

.text-clear::after {
  background: var(--white);
  border-radius: 50%;
  bottom: 0;
  color: var(--greyLight-2);
  content: "\271A";
  cursor: pointer;
  display: block;
  font-size: 18px;
  font-weight: normal;
  height: 15px;
  line-height: 16px;
  margin: auto;
  padding: 5px;
  position: absolute;
  right: 32px;
  text-align: center;
  top: -4px;
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  -webkit-transition: 300ms all;
  width: 15px;
  z-index: 1;
}

.text-clear:hover::after {
  color: var(--medium-red);
  -webkit-transition: 300ms all;
}

.search-box:not(:valid) ~ .text-clear {
  display: none;
}