/* Product item  */
.product-item {
  display: flex;
  flex-direction: column;
  padding: 24px 21px;
  border-radius: 8px;
  border: 1px solid var(--color-grey);
  cursor: pointer;
  position: relative;
}

@media (min-width: 768px) {
  .product-item {
    min-height: 372px;
  }
}

.product-item::before {
  content: '';
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-grey);
  border-radius: 50%;
  position: absolute;
  top: 25px;
  right: 21px;
}

.product.active .product-item::before,
.profile .product-item::before {
  display: none;
}

.profile .product-item:has(input[type="radio"]:checked) {
  border: 1px solid var(--color-grey);
}

.products__wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .products__wrap {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
  }
}

.product-item.single {
  padding: 18px 12px 14px 12px;
}

.product-item input[type="radio"] {
  padding: 0;
  margin: 0;
  height: 0;
  visibility: hidden;
}

.product-item:has(input[type="radio"]:checked) {
  border: 2px solid var(--color-red);
  padding: 23px 20px;
}

.product-item:has(input[type="radio"]:checked) .title {
  color: var(--color-red);
}

.product-item:has(input[type="radio"]:checked)::before {
  border-color: var(--color-red);
  background-image: url(../images/checkbox-checked.png);
  background-size: 100%;
  background-repeat: no-repeat;
  /* Fix text moving when changing active product */
  top: 24px;
  right: 20px;
}

/* .user-product .product-item::before,
.user-product .product-item:has(input[type="radio"]:checked)::before {
  display: none;
} */

.product-item .title {
  color: var(--color-grey);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  margin: 0;
}

.product-item .title .title-tag {
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.135px;
  text-transform: uppercase;
  padding: 2px 4px;
  margin-left: 7px;
  position: relative;
  top: -1px;
  display: inline-block;
  border-radius: 4px;
  background-color: var(--color-lightgreen);
  color: var(--color-darkgreen);
}

.product-item .title .title-tag--active {
  background-color: var(--color-lightblue);
  color: var(--color-darkblue);
}

.product-item .info-icon {
  width: 16px;
  display: inline-block;
}

.tooltip-content {
  display: none;
  position: absolute;
  background-color: rgba(112, 112, 112, 0.95);
  color: var(--color-white);
  font-size: 14px;
  line-height: 16px;
  padding: 8px;
  border-radius: 4px;
  z-index: 1;
}

@media (min-width: 1200px) {
  .tooltip-content {
    right: 0;
    width: 376px;
  }
}

.tooltip-icon:hover .tooltip-content {
  display: block;
}

.product-item .product__price {
  margin-top: 16px;
  color: var(--color-grey);
}

.product-item p {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  font-size: 16px;
}

.product-item .additional-text__wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 32px;
  margin-top: 4px;
}

.product-item .additional-text {
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.165px;
  color: var(--color-red);
  background: rgba(153, 0, 0, 0.1);
  border-radius: 4px;
  padding: 2px 4px;

  padding-top: 4px;

  text-transform: uppercase;
}

label.active .product-item .additional-text,
label[for="no_product"] .product-item .additional-text {
  background: #F1F1F1;
  color: var(--color-grey);
}

.product-item .info {
  position: relative;
}

.product-item .info .strong {
  font-weight: 700;
}

.product-item .info ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-item .info ul li {
  color: var(--color-grey);
  font-size: 14px;
  line-height: 18px;

  display: flex;
  gap: 10px;
}

@media (min-width: 768px) {
  .product-item .info ul li {
    max-width: 200px;
  }
}

.product-item .info ul li.disabled {
  opacity: 0.5;
  text-decoration: line-through;
}

.product-item .info ul li::before {
  content: '';
  background-image: url(../images/check-grey.png);
  background-size: 100%;
  background-repeat: no-repeat;
  min-width: 24px;
  height: 24px;
  display: block;
}

/* Profile */
/* Static products wrap for profile */
.profile .products__wrap {
  justify-content: start;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .profile .products__wrap {
    gap: 20px;
    margin-top: 42px;
    margin-bottom: 40px;
  }
}

.profile .products__wrap .product-item {
  cursor: default;

  padding: 18px 21px;
  width: 315px;
}

@media (min-width: 768px) {
  .profile .products__wrap .product-item {
    width: 300px;
    min-height: 355px;
    padding: 17px 19px;
  }
}

.profile .products__wrap .product-item::before {
  display: none;
}

.profile .products__wrap .product-item:has(input[type="radio"]:checked) {
  border-color: var(--color-grey);
  border-width: 1px;
  padding: 17px 19px;
}

.profile .products__wrap .product-item:has(input[type="radio"]:checked) .title {
  color: var(--color-grey);
}

.profile .products__wrap .product.active .product-item {
  border-color: var(--color-red);
}

.profile .products__wrap .product.active {
  order: -1 !important;
}

.profile .products__wrap .product .iban-product {
  display: none;
}

.profile .products__wrap .product.active .product-item .title {
  color: var(--color-red);
}

.profile .products__wrap .product.active .product-item {
  border-color: var(--color-red);
}

.profile .products__wrap .product-item .info-icon {
  top: 0;
}

.profile .product .tooltip-content {
	right: unset;
}

/* Newsletter products */
.products--newsletter label[for="video_comments"] .product-item {
	background-image: url(../images/video-comment.png);
    background-repeat: no-repeat;
    background-size: 100%;
    padding-top: 110px;
}

.products--newsletter label[for="video_comments"].active .product-item {
	background-image: url(../images/video-comment-active.png);
}

@media (min-width: 768px) {
	.profile .products--newsletter .product .product-item {
		min-height: 237px;
	}
}

.profile .products--newsletter .product .product-item .title {
    color: var(--color-black);
}
