*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
  font-family: "Raleway", sans-serif;
}
#offers{
  display: none;
}
#items {
  display: none;
  margin-bottom: 80px;
}
.container {
  position: relative;
  margin: auto;
  background-color: #F3F3F3;
  min-height: 100vh;
}
.wrapper {
  flex-direction: column;
  align-items: center;
  float: left;
}
.header {
  height: 70px;
  position: relative;
  box-shadow: 0 2px 4px 0 rgba(41, 41, 41, 0.08);
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #FFFFFF;
  justify-content: space-between;
}
.header span {
  cursor: pointer;
}
.header span img {
  height: 35px;
}
.arrow-left {
  display: none;
}
.title{
  display: flex;
  align-items: center;
}
.header p {
  color: var(--tg-theme-section-header-text-color);
  font-family: "Roboto", sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%; /* 32px */
  letter-spacing: -0.8px;
}
.content{
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  justify-content: center;
}
#category{
   display: none;
  /*position: relative;
  top: 0;
  left: 0;
  z-index: 9;
  position: fixed;
  max-width: 390px;
  background-color: #FFFFFF;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between; */
}
.main-title  {
  position: relative;
  box-shadow: 0 2px 4px 0 rgba(41, 41, 41, 0.08);
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #FFFFFF;
}
.main-title p {
  color: #000;
  font-family: "Roboto", sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  /* 32px */
  letter-spacing: -0.8px;
}
ul {
  list-style: none;
}
ul.main-menu {
  padding: 0 20px;
}
ul.main-menu li  {
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%; /* 24px */
  letter-spacing: -1.2px;
}
ul.main-menu li:last-of-type {
  border: none;
}
.custom-checkbox {
  display: block;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 22px;
  width: 22px;
  border: 1px solid var(--tg-theme-button-color);
  border-radius: 5px;
}
.custom-checkbox:hover input ~ .checkmark {
  background-color: rgba(243, 243, 243, 1);
}
.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--tg-theme-button-color);
}
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}
.custom-checkbox .checkmark:after {
  left: 8px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
.main-btn {
  border: none;
  border-radius: 4px;
  background-color: #2FAEB4;
  color: #FFFFFF;
  font-family: "Raleway", sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  line-height: 100%; /* 20px */
  letter-spacing: -1px;
  width: 100%;
  padding: 16px 32px;
  cursor: pointer;
}
ul.selected-categories {
  display: none;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  flex-wrap: wrap;
}
ul.selected-categories li {
  margin: 10px 5px;
}
#pagination {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#pagination div {
  cursor: pointer;
  margin: 0 5px;
  padding: 5px 10px;
  background-color: #f0f0f0;
  color: black;
  text-decoration: none;
}

#pagination div:hover {
  background-color: #007bff;
  color: white;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.spinner {
  opacity: 1;
  position: fixed;
  width: 50px;
  height: 50px;
  top: 50%;
  left: 50%;
  border-top: 10px solid rgba(243, 243, 243, 1);
  border-bottom: 10px solid rgba(243, 243, 243, 1);
  border-left: 10px solid var(--tg-theme-section-header-text-color);
  border-right: 10px solid var(--tg-theme-section-header-text-color);
  border-radius: 100%;
  z-index: 1000;
  animation: spin 0.5s linear infinite;
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  -ms-border-radius: 100%;
  -o-border-radius: 100%;
  -webkit-animation: spin 0.5s linear infinite;
}
span.select-category {
  border: 1px solid #5DB9FF;
  background-color: #EBF6FF;
  padding: 5px 10px;
  color: #15476D;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 100;
  line-height: 100%; /* 14px */
  letter-spacing: -0.7px;
  white-space: nowrap;
}
.lot-block {
  background-color: #FFFFFF;
  width: calc(100vw - 20px);
  max-width: 400px;
  cursor: pointer;
  padding: 10px 20px;
  margin: 16px 0px;
  
}
.lot-block:hover {
    box-shadow: 0 4px 8px 0 rgba(41, 41, 41, 0.16);
}
.lot-block .lot-desc {
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%; /* 16px */
  padding: 10px 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.lot-block .lot-wrapper {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  padding: 10px 0 6px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.20);
  border-bottom: 1px solid rgba(0, 0, 0, 0.20);
}
.shadow{
  position: absolute;
  width: 70px;
  height: 70px;
  background-color: rgb(0 0 0 / 25%);
  top: 0;
  border-radius: 4px;
}
.lot-block .lot-wrapper img {
  width: 70px;
  height: 70px;
  border-radius: 4px;
  object-fit: cover;
}
.lot-block .lot-wrapper img.selected {
  border: 2px solid #2FAEB4;
}
.lot-block .lot-wrapper img:nth-child(4)::after {
  content: ""
}
.lot-block .lot-wrapper .image-wrapper {
  position: relative;
}
.lot-block .lot-wrapper .image-wrapper .additionally {
  color: #FFFFFF;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  font-variant: small-caps;
  letter-spacing: -0.8px;
  position: absolute;
  top: 50%;
  right: 30%;
  transform: translate(-50%, -50%);
}
.main-lot {
  width: 390px;
  position: relative;
  padding: 10px;
  background-color: #FFFFFF;
  margin-top: 20px;
  box-shadow: 0 4px 8px 0 rgba(41, 41, 41, 0.08);
  border-radius: 10px;
}
.main-lot .main-lot-wrapper,
.lot-item .lot-item-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 7px;
}
.main-lot .image-wrapper img,
.lot-item .lot-item-header img{
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.main-lot .lot-info,
.lot-item .lot-info {
  position: relative;
  width: 100%;
}
.main-lot .lot-info p,
.lot-item .lot-info p {
  color: #000;
  font-family: "Raleway", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%; /* 20px */
  letter-spacing: -1px;
  margin-bottom: 5px;
}
/* .main-lot .lot-info::after,
.lot-item .lot-info::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  height: 1px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.20);
} */
.main-lot .lot-title {
  color: #000;
  font-family: "Raleway", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%; /* 20px */
  letter-spacing: -1px;
}
.main-lot .select-category {
  margin-top: 5px;
}
.main-lot .main-btn {
  padding: 8px 16px;
}
.lot-item {
  background-color: #FFFFFF;
  margin: 10px;
  padding: 10px;
}
.lot-item .lot-info .price-range-block {
  display: flex;
  display: none;
  align-items: center;
}

.lot-item .lot-info .price-range {
  color: #000;
  font-family: "Raleway", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%; /* 20px */
  font-variant: small-caps;
  /*letter-spacing: -1px;*/
}
.lot-item .lot-info .price-range-block .arrow-down {
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.open {
    transform: rotate(180deg);
}
.items-block{
display: none;
}

.items-block .open {
  display: block;
}
.lot-item .items-block > p {
  color: #000;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  line-height: 100%; /* 14px */
  letter-spacing: -0.7px;
}
.lot-item .items-block ul li {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.20);
  padding: 6px;
  margin: 4px 0;
}
.lot-item .items-block ul li .item-title {
  color: #35A7FF;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%; /* 14px */
  letter-spacing: -0.7px;
}
.lot-item .items-block ul li .item-price {
  color: #2A87CE;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 600;
  line-height: 100%; /* 16px */
  letter-spacing: -0.8px;
}
.button-checkbox {
  width: 100%;
  text-align: center;
  display: inline-block;
  cursor: pointer;
  padding: 10px 20px;
  background-color: #ffffff;
  border: 1px solid var(--tg-theme-button-color);
  color: var(--tg-theme-button-color);
  transition: all 0.3s;
}

.button-checkbox input[type="checkbox"] {
  display: none;
}

.button-checkbox .checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: white;
  border: 1px solid #ccc;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 3px;
}

.button-checkbox:hover {
 /* border: 1px solid #2FAEB4;
  color: #2FAEB4;*/
}
.lot-item .border-btn {
  border-radius: 4px;
  border: 1px solid #28CFD7;
  background-color: #FFFFFF;
  color: #28CFD7;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  line-height: 100%; /* 14px */
  letter-spacing: -0.7px;
  width: 100%;
  margin-top: 7px;
  padding: 8px 16px;
  cursor: pointer;
}
.lot-item .description p {
  color: #000;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  line-height: 100%; /* 14px */
  letter-spacing: -0.7px;
  margin-bottom: 4px;
}
.footer {
  width: 100vw;
  position: fixed;
  bottom: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 10px 10px 0px 0px;
  padding: 15px;
  margin-top: 7px;
}
.footer .total-items {
  white-space: nowrap;
  font-family: "Raleway", sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 100;
  line-height: 100%; /* 20px */
  letter-spacing: -1px;
}
.accept .count {
  color: var(--tg-theme-section-header-text-color);
}
.cancel .count {
  color: #D64751;
}
.footer .count {
  font-family: "Raleway", sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -1px;
}
.footer .main-btn {
  padding: 12px 24px;
  width: 149px;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  line-height: 100%; /* 16px */
  letter-spacing: -0.8px;
}
.popup {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.popup .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.20);
}
.popup .image-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 8px 0 rgba(41, 41, 41, 0.08);
}
.popup .image-wrapper img {
  border: 10px solid #FFFFFF;
  border-radius: 10px;
}
.popup .image-wrapper .close-circle {
  position: absolute;
  top: -10px;
  right: -10px;
  cursor: pointer;
}