.place-sale-v2,
.place-sale-v2 * {
  box-sizing: border-box;
}

.place-sale-v2 {
  --ps2-blue: #013290;
  --ps2-blue-light: #104493;
  --ps2-red: #e83b3f;
  --ps2-surface: #f2f4f8;
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
  background: #fff;
  color: #000;
  font-family: "Montserrat", Arial, sans-serif;
}

.place-sale-v2 :where(h1, h2, h3, p, ul) {
  margin: 0;
  padding: 0;
  color: inherit;
  font-family: inherit;
  text-transform: none;
}

.place-sale-v2 :where(img) {
  display: block;
  max-width: 100%;
}

.ps2-container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 48px;
}

.ps2-card {
  overflow: hidden;
  border-radius: 16px;
  background: #fefefe;
  box-shadow: 0 2px 10px 2px rgba(1, 50, 144, 0.2);
}

.ps2-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border: 0;
  border-radius: 12px;
  background: var(--ps2-blue);
  color: #fff;
  font: 600 16px/1.25 "Montserrat", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.ps2-button:hover {
  background: #104493;
  color: #fff;
  box-shadow: 0 5px 14px rgba(1, 50, 144, .24);
  transform: translateY(-1px);
}

.ps2-section-head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ps2-section-head h2,
.ps2-integrations > h2,
.ps2-invitation > h2 {
  color: var(--ps2-blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.22;
}

.ps2-section-head p {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

/* Hero */
.ps2-hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  padding: 25px;
  border-radius: 20px;
  background: var(--ps2-blue);
  color: #fff;
}

.ps2-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 537px;
  flex-direction: column;
  gap: 25px;
}

.ps2-hero__copy {
  display: flex;
  height: 260px;
  flex-direction: column;
  gap: 30px;
  padding: 10px 0;
}

.ps2-hero__copy h1 {
  width: 473px;
  margin: 0 !important;
  color: #fff;
  font-size: 50px;
  font-weight: 700;
  line-height: .9;
  letter-spacing: -1px;
  text-transform: none !important;
}

.ps2-hero__copy p {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.04;
}

.ps2-hero__copy strong {
  color: #fff !important;
  font-weight: 600;
}

.ps2-hero__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.ps2-feature {
  display: flex;
  min-height: 95px;
  align-items: center;
  gap: 10px;
  padding: 15px 10px;
  border-radius: 20px;
  background: #fff;
  color: #000;
}

.ps2-feature img {
  width: 65px;
  height: 65px;
  padding: 3px 7px;
  object-fit: contain;
}

.ps2-feature span {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.28;
}

.ps2-hero__image {
  position: absolute;
  z-index: 1;
  top: 34px;
  left: 579px;
  width: 644px;
  height: 472px;
  max-width: none;
  object-fit: contain;
}

/* Scale */
.ps2-scale {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 47px;
  padding: 24px;
  background: #f6f9fd;
}

.ps2-scale__map {
  position: absolute;
  z-index: 1;
  top: -41px;
  right: 24px;
  width: 369px;
  height: 246px;
  object-fit: contain;
  opacity: .7;
}

.ps2-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ps2-stat {
  display: flex;
  height: 143px;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 12px 1px rgba(0, 0, 0, .12);
}

.ps2-stat__icon {
  display: flex;
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: currentColor;
}

.ps2-stat__icon img {
  width: 61%;
  height: 61%;
  object-fit: contain;
}

.ps2-stat > div {
  padding-top: 5px;
}

.ps2-stat strong {
  display: block;
  margin-bottom: 10px;
  color: currentColor;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.ps2-stat p {
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.ps2-stat--blue { color: var(--ps2-blue-light); }
.ps2-stat--red { color: var(--ps2-red); }
.ps2-stat--blue .ps2-stat__icon { background: #104493 !important; }
.ps2-stat--red .ps2-stat__icon { background: #e83b3f !important; }
.ps2-stat--blue strong { color: #104493 !important; }
.ps2-stat--red strong { color: #e83b3f !important; }
.ps2-stat:nth-child(2) strong,
.ps2-stat:nth-child(4) strong { font-size: 26px; text-transform: uppercase; }

.ps2-audience {
  position: relative;
  z-index: 2;
  display: flex;
  height: 114px;
  align-items: center;
  gap: 20px;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 12px 1px rgba(0, 0, 0, .12);
}

.ps2-audience__icon {
  display: flex;
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #002295;
}

.ps2-audience__icon img {
  width: 58%;
}

.ps2-audience h3 {
  margin-bottom: 8px;
  color: var(--ps2-blue-light);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.ps2-audience p {
  max-width: 960px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
}

.ps2-demographics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: -10px;
}

.ps2-demographic {
  display: flex;
  height: 245px;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  padding: 20px 20px 10px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 12px 1px rgba(0, 0, 0, .12);
}

.ps2-demographic h3 {
  width: 100%;
  color: #104493;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase !important;
}

.ps2-demographic__body {
  display: flex;
  width: 100%;
  flex: 1;
  align-items: flex-start;
  gap: 15px;
}

.ps2-demographic__chart {
  width: 160px;
  height: 160px;
  flex: 0 0 160px;
  object-fit: contain;
}

.ps2-demographic__legend {
  display: flex;
  height: 186px;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

.ps2-demographic__legend--center {
  justify-content: center;
  gap: 15px;
}

.ps2-legend-item {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 15px;
}

.ps2-legend-item i {
  display: block;
  width: 20px;
  height: 20px;
  margin-top: 6px;
  flex: 0 0 20px;
  border-radius: 50%;
  background: currentColor;
}

.ps2-legend-item span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ps2-legend-item strong {
  color: currentColor !important;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
}

.ps2-legend-item b {
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.ps2-legend-item--blue { color: #104493; }
.ps2-legend-item--red { color: #e83b3f; }
.ps2-legend-item--gray { color: #848484; }

.place-sale-v2 .ps2-demographic .ps2-legend-item--blue > i {
  background: #104493 !important;
}

.place-sale-v2 .ps2-demographic .ps2-legend-item--blue strong {
  color: #104493 !important;
}

.place-sale-v2 .ps2-demographic .ps2-legend-item--red > i {
  background: #e83b3f !important;
}

.place-sale-v2 .ps2-demographic .ps2-legend-item--red strong {
  color: #e83b3f !important;
}

.place-sale-v2 .ps2-demographic .ps2-legend-item--gray > i {
  background: #848484 !important;
}

.place-sale-v2 .ps2-demographic .ps2-legend-item--gray strong {
  color: #848484 !important;
}

/* Simple */
.ps2-simple {
  position: relative;
  min-height: 599px;
  margin-top: 47px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--ps2-blue);
  color: #fff;
}

.ps2-simple::before,
.ps2-simple::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: #0746a8;
}

.ps2-simple::before {
  right: -182px;
  bottom: -403px;
  width: 816px;
  height: 806px;
}

.ps2-simple::after {
  right: 20px;
  bottom: -360px;
  width: 603px;
  height: 621px;
  background: #0a57c7;
}

.ps2-simple__copy {
  position: absolute;
  z-index: 3;
  top: 60px;
  left: 48px;
  display: flex;
  width: 535px;
  height: 479px;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0;
}

.ps2-simple__copy > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ps2-simple__copy h2 {
  color: #fff;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
}

.ps2-simple__copy p {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.ps2-simple__copy .ps2-simple__hint {
  font-size: 20px;
  font-weight: 400;
}

.ps2-simple__visual {
  position: absolute;
  z-index: 2;
  top: 38px;
  left: 699px;
  width: 422px;
  height: 854px;
}

.ps2-simple__screen {
  position: absolute;
  inset: 2.3% 5.4%;
  width: 89.2%;
  height: 95.4%;
  border-radius: 20px;
  object-fit: cover;
}

.ps2-simple__phone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ps2-simple__button {
  position: absolute;
  z-index: 4;
  top: 471px;
  left: 672px;
  width: 476px;
  min-height: 68px;
  border-radius: 17px;
  background: #1f1f1d;
  box-shadow: 0 4px 11.5px rgba(31, 31, 31, .5);
}

/* Platform */
.ps2-platform {
  position: relative;
  min-height: 500px;
  margin-top: 47px;
  padding: 24px;
}

.ps2-platform__art {
  position: absolute;
  right: -88px;
  bottom: 0;
  width: 614px;
  height: 409px;
  max-width: none;
  object-fit: contain;
}

.ps2-platform__features {
  position: relative;
  z-index: 2;
  display: grid;
  width: 715px;
  margin-top: 30px;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.ps2-platform-feature {
  display: flex;
  height: 66px;
  align-items: center;
  gap: 20px;
  padding: 8px 10px;
  border-radius: 20px;
  background: #f4f7fd;
  box-shadow: 0 2px 4px rgba(1, 50, 144, .25);
}

.ps2-platform-feature img {
  width: 55px;
  height: 50px;
  padding: 2px;
  object-fit: contain;
}

.ps2-platform-feature span {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

/* Integration options */
.ps2-integrations {
  margin-top: 47px;
  padding-top: 20px;
}

.ps2-integrations > h2 {
  margin: 0 0 25px;
  font-size: 40px;
}

.ps2-integrations__track {
  display: flex;
  width: 100%;
  gap: 15px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.ps2-integrations__track::-webkit-scrollbar { display: none; }

.ps2-integrations__track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.ps2-integration-card {
  position: relative;
  display: flex;
  width: 269px;
  flex: 0 0 auto;
  height: 500px;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: #f4f7fd;
  box-shadow: 0 4px 12px 1px rgba(0, 0, 0, .12);
  scroll-snap-align: start;
}

.ps2-integration-card:nth-child(3),
.ps2-integration-card:nth-child(4) { width: 283px; }
.ps2-integration-card:nth-child(5) { width: 396px; }

.ps2-integration-card__number {
  position: absolute;
  top: -50px;
  left: 14px;
  color: #d6def3;
  font-size: 230px;
  font-weight: 700;
  line-height: 1.22;
}

.ps2-integration-card__copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-self: stretch;
  width: calc(100% - 32px);
  margin: 60px 16px 0;
  flex-direction: column;
  gap: 10px;
}

.ps2-integration-card:not(.ps2-integration-card--referral) .ps2-integration-card__copy {
  height: 101px;
  min-height: 101px;
  flex: none;
}

.ps2-integration-card__copy h3 {
  color: #104493;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase !important;
}

.ps2-integration-card__copy p {
  color: #000;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
}

.ps2-integration-card__visual {
  position: relative;
  width: 249px;
  height: auto;
  margin-top: 15px;
  flex: none;
  max-width: none;
  pointer-events: none;
}

.ps2-integration-card--referral .ps2-integration-card__copy {
  width: 376px;
}

.ps2-integration-card--referral .ps2-integration-card__copy h3 {
  width: 260px;
  line-height: 1.05;
}

.ps2-integration-card--referral .ps2-integration-card__copy p {
  width: 245px;
}

.ps2-integration-card__visual--referral {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 396px;
  margin: 0;
}

.ps2-integration-card__visual--referral-mobile {
  display: none;
}

/* Presentation */
.ps2-presentation {
  position: relative;
  min-height: 366px;
  margin-top: 47px;
  padding: 40px 48px;
}

.ps2-presentation__copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: 766px;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.ps2-presentation__copy .ps2-button {
  margin-top: 10px;
}

.ps2-presentation h2 {
  color: var(--ps2-blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.ps2-presentation p {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.ps2-presentation > img {
  position: absolute;
  top: 43px;
  left: 740px;
  width: 442px;
  height: 295px;
  object-fit: contain;
}

/* Invitation */
.ps2-invitation {
  margin-top: 47px;
}

.ps2-invitation > h2 {
  margin-bottom: 40px;
  font-size: 40px;
}

.ps2-invitation__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ps2-invite-card {
  min-height: 288px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ps2-surface);
}

.ps2-invite-card--steps {
  padding: 24px;
}

.ps2-invite-card h3 {
  color: #000;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.ps2-invite-card ul {
  display: flex;
  margin-top: 24px;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.ps2-invite-card li {
  position: relative;
  min-height: 48px;
  padding: 2px 0 0 64px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.ps2-invite-card li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #0d43a0 url("/assets/site/pz_img/place-sale-v2/check-step.svg") center/54.1667% 50% no-repeat;
  content: "";
}

.ps2-invite-card--free {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px 45px 24px 57px;
}

.ps2-invite-card--free h3 {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ps2-invite-card--free h3 img {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
}

.ps2-invite-card--free p {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.ps2-invite-title--mobile,
.ps2-invite-subtitle {
  display: none;
}

/* Keep the redesigned content light even when the site's header/footer use a dark theme. */
html.theme-dark .place-sale-v2,
body.theme-dark .place-sale-v2 {
  background: #fff;
  color: #000;
}

/* Partner request popup.
 * The promo modal normally gets its fluid rem scale and button skin from
 * promo/css/globals.css. That global file cannot be loaded here because it
 * also rescales the whole site, so reproduce only the #customs dependencies.
 */
#customs .popup__button {
  min-height: clamp(55px, 5.73vw, 110px);
  border: 0;
  background: transparent url("/promo/assets/images/button.png") center / 100% 100% no-repeat;
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  pointer-events: auto;
}

#customs .popup__button-content {
  padding: 0;
  color: #fff;
  font-size: clamp(14px, .94vw, 18px);
  line-height: 1.14;
  text-shadow: 0 1px 0 #c36d7d;
}

#customs .popup__button:disabled {
  opacity: .58;
  filter: grayscale(.18);
}

#customs .popup__button:not(:disabled):hover {
  filter: saturate(1.7);
}

@media (min-width: 901px) {
  #customs.popup__wrap {
    overflow-y: auto;
  }

  #customs .popup__inner,
  #customs .popup__block {
    max-width: clamp(614px, 63.96vw, 1228px);
  }

  #customs .popup__block {
    padding: clamp(80px, 8.33vw, 160px) clamp(76px, 7.92vw, 152px) clamp(50px, 5.17vw, 99px);
  }

  #customs .popup__inner::after {
    top: clamp(79px, 8.23vw, 158px);
    right: clamp(-16px, -.83vw, -8px);
    width: clamp(260px, 26.04vw, 500px);
  }

  #customs .popup__title {
    width: clamp(277px, 28.85vw, 554px);
    margin-bottom: clamp(20px, 2.08vw, 40px);
    padding-top: clamp(16px, 1.67vw, 32px);
    padding-bottom: clamp(4px, .42vw, 8px);
    font-size: clamp(30px, 3.13vw, 60px);
  }

  #customs .popup-subTitle {
    margin-bottom: clamp(25px, 2.6vw, 50px);
    padding-left: clamp(12px, 1.25vw, 24px);
    font-size: clamp(10px, .83vw, 16px);
  }

  #customs .popup-form {
    max-width: clamp(225px, 23.44vw, 450px);
  }

  #customs .popup__field {
    height: clamp(41px, 4.27vw, 82px);
    padding: clamp(10px, 1vw, 19px) clamp(10px, 1vw, 19px) clamp(7px, .75vw, 14px) clamp(44px, 4.58vw, 88px);
    border-width: clamp(1px, .1vw, 2px);
  }

  #customs .popup__field::before {
    left: clamp(18px, 1.88vw, 36px);
    width: clamp(11px, 1.1vw, 21px);
    height: clamp(11px, 1.1vw, 21px);
    transform: translate(-50%, -50%);
  }

  #customs .popup__field::after {
    left: clamp(36px, 3.75vw, 72px);
    top: clamp(4px, .42vw, 8px);
    bottom: clamp(4px, .42vw, 8px);
  }

  #customs .popup__field input {
    font-size: clamp(12px, 1.25vw, 24px);
  }

  #customs .popup__field.name input::placeholder {
    font-size: clamp(10px, 1.04vw, 20px);
  }

  #customs .popup__policy {
    width: clamp(208px, 21.67vw, 416px);
    font-size: clamp(9px, .58vw, 11px);
  }

  #customs .popup__policy-box {
    width: clamp(18px, 1.88vw, 36px);
    height: clamp(18px, 1.88vw, 36px);
    flex-basis: clamp(18px, 1.88vw, 36px);
  }

  #customs .popup__button-content {
    transform: translateY(clamp(-15px, -.75vw, -6px));
  }

  #customs .close-button {
    width: clamp(15px, 1.56vw, 30px);
    height: clamp(15px, 1.56vw, 30px);
  }
}

@media (max-width: 640px) {
  #customs.popup__wrap {
    overflow-y: auto;
    padding: 8px 0;
  }

  #customs .popup__inner {
    width: calc(100% - 16px);
  }

  #customs .popup__block {
    padding: clamp(70px, 21.88vw, 140px) 16px clamp(67px, 20.94vw, 134px);
  }

  #customs .popup__title {
    margin-bottom: clamp(24px, 7.5vw, 48px);
    padding-top: clamp(21px, 6.56vw, 42px);
    font-size: clamp(25px, 7.81vw, 50px);
  }

  #customs .popup-subTitle {
    margin-bottom: clamp(16px, 5vw, 32px);
    font-size: clamp(12px, 3.13vw, 20px);
  }

  #customs .popup__field {
    height: clamp(45px, 14.06vw, 90px);
    padding: 10px 10px 8px clamp(44px, 13.75vw, 88px);
  }

  #customs .popup__field input {
    font-size: clamp(14px, 3.75vw, 24px);
  }

  #customs .popup__policy {
    width: min(100%, 260px);
    font-size: 10px;
  }
}

/* Keep the compact request form readable in both a mobile browser and WebView. */
@media (max-width: 900px) {
  #customs .popup__field {
    padding-right: 12px;
    padding-left: clamp(68px, 17.5vw, 84px);
  }

  #customs .popup__field::before {
    left: clamp(24px, 6.5vw, 31px);
    width: clamp(20px, 5.5vw, 26px);
    height: clamp(20px, 5.5vw, 26px);
    transform: translateY(-50%);
  }

  #customs .popup__field::after {
    left: clamp(52px, 13.5vw, 65px);
    top: 9px;
    bottom: 9px;
  }

  #customs .popup__field input {
    min-width: 0;
    font-size: clamp(12px, 3.2vw, 16px);
    line-height: 1.25;
  }

  #customs .popup__field input::placeholder,
  #customs .popup__field.name input::placeholder {
    font-size: clamp(10px, 2.85vw, 14px);
    line-height: 1.2;
  }

  #customs .popup__button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(64px, 17.5vw, 76px);
    height: auto;
    padding: 0 !important;
    background-size: 100% 100%;
  }

  #customs .popup__button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: inherit;
    padding: 0 16px;
    font-size: clamp(14px, 3.6vw, 17px);
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    /* button.png has a transparent 10px strip at the bottom of its 110px canvas */
    transform: translateY(-8px);
  }

  #customs .popup__policy {
    gap: 8px;
  }

  #customs .popup__policy-box {
    width: clamp(18px, 5.1vw, 22px);
    height: clamp(18px, 5.1vw, 22px);
    flex: 0 0 clamp(18px, 5.1vw, 22px);
    border-radius: 5px;
  }

  #customs .popup__policy-box::after {
    border-right-width: 2px;
    border-bottom-width: 2px;
  }
}

/* Partner request form inside the mobile application WebView. */
html.ps2-app-modal-open,
body.ps2-app-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.place-sale-v2--app .ps2-app-form-modal {
  z-index: 20000;
  outline: none;
  overscroll-behavior: contain;
}

.place-sale-v2--app .ps2-app-form-modal[aria-hidden="true"] {
  pointer-events: none;
}

.place-sale-v2--app .ps2-app-form-modal[aria-hidden="false"] {
  pointer-events: auto;
}

.place-sale-v2--app .ps2-app-form-modal .close-button {
  margin: 0;
  padding: 0;
  border: 0;
  background-color: transparent;
}

.place-sale-v2--app .ps2-app-form__message {
  display: none;
  width: 100%;
  margin: 2px 0 4px;
  color: #c52f45;
  font: 500 11px/1.3 "Montserrat", Arial, sans-serif;
  text-align: center;
}

.place-sale-v2--app .ps2-app-form__message.is-visible {
  display: block;
}

.place-sale-v2--app .ps2-app-form__message.is-success {
  color: #008c75;
}

.place-sale-v2--app #customs .popup__field.is-invalid,
.place-sale-v2--app #customs .popup__policy.is-invalid .popup__policy-box {
  border-color: rgba(197, 47, 69, .72);
  animation: ps2-app-form-shake .28s ease-in-out;
}

@media (max-width: 900px) {
  .place-sale-v2--app #customs.ps2-has-field-focus .popup__head {
    opacity: 0;
    pointer-events: none;
  }

  .place-sale-v2--app #customs.ps2-has-field-focus .popup-form {
    transform: translateY(calc(-1 * var(--head-space, 0px) + 8px));
  }
}

@keyframes ps2-app-form-shake {
  0%, 100% { transform: translateX(0); }
  33% { transform: translateX(-4px); }
  66% { transform: translateX(4px); }
}

@media (max-width: 640px) {
  .place-sale-v2--app #customs.popup__wrap,
  .place-sale-v2--app #success.popup__wrap {
    max-height: 100dvh;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .place-sale-v2--app #customs .popup__block {
    min-height: min(620px, calc(100dvh - 16px));
  }

  .place-sale-v2--app #customs .popup__button {
    min-height: clamp(64px, 17.5vw, 76px);
  }

  .place-sale-v2--app #customs .popup__button-content {
    transform: translateY(-8px);
  }

  .place-sale-v2--app #success .popup__inner {
    width: min(calc(100% - 40px), 320px);
  }
}

@media (max-width: 900px) {
  #success.popup__wrap {
    align-items: center;
    overflow-y: auto;
    padding: max(20px, env(safe-area-inset-top)) 0 max(20px, env(safe-area-inset-bottom));
  }

  #success .popup__inner.success {
    width: min(calc(100% - 40px), 320px);
    max-width: 320px;
  }

  #success .popup__block.success {
    width: 100%;
    min-height: 0;
    height: min(500px, calc(100dvh - 80px));
    padding: 54px 14px 68px;
    justify-content: center;
    gap: 34px;
  }

  #success .popup__title.success {
    width: 100%;
    margin: 0;
    padding-top: 24px;
    font-size: clamp(27px, 8.2vw, 34px);
    line-height: 1.08;
    text-align: center;
  }

  #success .sent {
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
  }

  #success .sent::before {
    inset: -14px;
    border-width: 5px;
  }

  #success .sent::after {
    border-width: 5px;
  }

  #success .close-button.success {
    top: 7%;
    right: 8%;
    width: 20px;
    height: 20px;
  }
}
