.st-flag {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
  vertical-align: -3px;
  object-fit: cover;
}

.st-flags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.st-flags legend,
.st-seg legend {
  margin-bottom: 8px;
  color: #1e2733;
  font-size: 14px;
  font-weight: 700;
}

.st-flag-pick {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #d3dce4;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.st-flag-pick input,
.st-seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.st-flag-pick img {
  flex: 0 0 28px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.st-flag-pick:has(input:checked) {
  border-color: #52b5b2;
  box-shadow: 0 0 0 3px rgba(82, 181, 178, .22);
  background: #f2fbfa;
}

.st-flag-pick:has(input:focus-visible),
.st-seg label:has(input:focus-visible) span {
  outline: 2px solid #2f8f8c;
  outline-offset: 2px;
}

.st-seg {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.st-seg legend {
  width: 100%;
}

.st-seg label {
  position: relative;
}

.st-seg span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #d3dce4;
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.st-seg input:checked + span {
  border-color: #52b5b2;
  background: #e6f5f4;
  color: #1f6f6c;
}

.st-id {
  overflow: hidden;
  border: 1px solid #d3dce4;
  border-radius: 16px;
  background: #fff;
}

.st-id-top {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: linear-gradient(120deg, #1e2733, #23414a);
  color: #fff;
}

.st-id-female .st-id-top {
  background: linear-gradient(120deg, #3b2342, #5a2f55);
}

.st-id-avatar {
  display: grid;
  flex: 0 0 64px;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 3px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: #52b5b2;
  font-size: 24px;
  font-weight: 800;
}

.st-id-female .st-id-avatar {
  background: #d4679b;
}

.st-id-name {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.st-id-native {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  opacity: .9;
}

.st-id-meta {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  opacity: .9;
}

.st-id-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.st-id-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #eef2f5;
}

.st-id-row:nth-child(odd) {
  border-right: 1px solid #eef2f5;
}

.st-id-label {
  grid-column: 1 / -1;
  color: #66778a;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.st-id-value {
  color: #1e2733;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.st-id-row .st-chip {
  padding: 4px 8px;
}

.st-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.st-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.st-cc {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a1f71, #2e3fbf);
  color: #fff;
  box-shadow: 0 6px 16px rgba(30, 39, 51, .18);
}

.st-cc-mastercard { background: linear-gradient(135deg, #252525, #5b5b5b); }
.st-cc-amex { background: linear-gradient(135deg, #016fd0, #4aa3e8); }
.st-cc-discover { background: linear-gradient(135deg, #e55c20, #f39a3a); }
.st-cc-jcb { background: linear-gradient(135deg, #0b6b3a, #1fa463); }
.st-cc-diners { background: linear-gradient(135deg, #0a3b66, #3c7bb3); }
.st-cc-unionpay { background: linear-gradient(135deg, #a8132a, #d8394f); }
.st-cc-maestro { background: linear-gradient(135deg, #3a3a8c, #6767c9); }

.st-cc-brand {
  justify-self: end;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .5px;
}

.st-cc-chip {
  width: 38px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e9d48a, #b8962e);
}

.st-cc-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 19px;
  letter-spacing: 1.5px;
}

.st-cc-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  opacity: .9;
}

.st-cc .st-chip {
  justify-self: start;
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.st-cc-small {
  max-width: 340px;
  margin: 16px;
}

.st-phone td,
.st-phone th {
  white-space: nowrap;
}

.st-yes {
  color: #1f7a4d;
  font-weight: 700;
}

.st-no {
  color: #b42318;
  font-weight: 700;
}

.st-voip {
  color: #8a4b00;
  font-weight: 700;
}

.st-privacy-note {
  margin-bottom: 14px;
}

.st-legal {
  margin-top: 14px;
  color: #66778a;
  font-size: 13px;
}

@media (max-width: 600px) {
  .st-flags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-id-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .st-id-row:nth-child(odd) {
    border-right: 0;
  }

  .st-phone {
    display: block;
    overflow-x: auto;
  }
}
