.popup-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--shadow);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.popup-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 480px;
  border-radius: 24px;
  background: var(--white);
  border: 2px solid var(--blue1);
  margin-bottom: 60px;
  padding: 32px;
}
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.popup-close svg {
  width: 1.7em;
  height: 1.7em;
  fill: none;
  stroke: var(--black1);
}
.popup-image {
  width: 120px;
  height: 120px;
  overflow: hidden;
}
.popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.popup-image {
  width: 120px;
  height: 120px;
  overflow: hidden;
}
.popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.popup-title {
  margin: 16px;
  font-size: 32px;
  font-weight: 600;
  text-align: center;
}
.popup-description {
  font-size: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.popup-forms {
  margin: 20px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.popup-forms .fieldSelect {
  display: flex;
  padding: 14px;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 8px;
  color: var(--grey1);
  border: 1px solid var(--grey2);
  background: var(--white);
  outline: none;
  position: relative;
  cursor: pointer;
}
.popup-forms .checkbox {
  flex-direction: row;
  gap: 8px;
  align-items: center;
}
.popup-forms .checkbox .switch {
  fill: var(--grey2);
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  cursor: pointer;
}
.popup-forms .checkbox .switch svg {
  width: 1.5em;
  height: 1.5em;
}
.popup-forms .checkbox:has(input:checked) .switch {
  fill: var(--green1);
  transform: rotate(0);
}
.popup-forms .checkbox input {
  display: none;
}
.popup-forms .fieldOptions {
  position: absolute;
  background: var(--white);
  top: 47px;
  left: 1px;
  width: 258px;
  border: 1px solid var(--grey1);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 120px;
  overflow-x: auto;
  cursor: default;
  z-index: 20;
}
.popup-forms .cardItem {
  display: flex;
  gap: 8px;
  height: 60px;
  align-items: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}
.popup-forms .cardItem:hover {
  background-color: var(--shadow);
}

.popup-forms .tariffItem {
  display: flex;
  gap: 8px;
  height: 28px;
  align-items: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}
.popup-forms .tariffItem:hover {
  background-color: var(--shadow);
}
.popup-forms .fieldPlaceholder {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.popup-forms .fieldPlaceholder[contenteditable] {
  border: 0;
  outline: none;
  cursor: text;
}
.popup-forms .cardItem .type,
.popup-forms .fieldPlaceholder .type {
  width: 40px;
  height: 24px;
}
.popup-forms .cardItem .type.visa,
.popup-forms .fieldPlaceholder .type.visa {
  background-image: url(/src/img/visa.png);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: 100%;
}
.popup-forms .cardItem .type.mastercard,
.popup-forms .fieldPlaceholder .type.mastercard {
  background-image: url(/src/img/mastercard.png);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: 80%;
}
.popup-buttons {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}
.popup-block:not(:has(.popup-forms)) .popup-buttons {
  margin-top: 32px;
}
.popup-btn {
  min-width: 132px;
}
.popup-btn:only-child {
  width: 280px;
}
