.ypts-wrap {
  width: 100%;
  margin: 24px 0;
}

.ypts-card {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 24px;
  box-sizing: border-box;
}

.ypts-head {
  margin-bottom: 18px;
}

.ypts-badge {
  display: inline-block;
  margin: 0;
  padding: 8px 12px;
  background: #f3f4f6;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.ypts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.ypts-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ypts-field span {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.ypts-field input,
.ypts-field select,
.ypts-autocomplete input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0 14px;
  box-sizing: border-box;
  font-size: 15px;
  color: #111827;
}

.ypts-field input:focus,
.ypts-field select:focus,
.ypts-autocomplete input:focus {
  outline: none;
  border-color: #111827;
}

.ypts-help {
  display: block;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.ypts-autocomplete {
  position: relative;
}

.ypts-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  border: 1px solid #d1d5db;
  background: #fff;
  max-height: 280px;
  overflow-y: auto;
}

.ypts-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.ypts-suggest-item:last-child {
  border-bottom: 0;
}

.ypts-suggest-item:hover {
  background: #f9fafb;
}

.ypts-suggest-item.is-empty {
  color: #6b7280;
  cursor: default;
}

.ypts-suggest-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}


.ypts-button {
  margin-top: 18px;
  width: 100%;
  min-height: 52px;
  border: 0;
  background: #111827;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.ypts-button:hover {
  opacity: 0.92;
}

.ypts-result {
  margin-top: 22px;
  border-top: 1px solid #e5e7eb;
  padding-top: 22px;
}

.ypts-status {
  margin: 0;
  padding: 16px 18px;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.ypts-reason {
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 15px;
  line-height: 1.7;
}

.ypts-amounts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.ypts-amount-box {
  border: 1px solid #e5e7eb;
  background: #fafafa;
  padding: 16px;
  text-align: center;
}

.ypts-amount-box span {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 8px;
}

.ypts-amount-box strong {
  font-size: 22px;
  line-height: 1.4;
  color: #111827;
  word-break: keep-all;
}

.ypts-status.is-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.ypts-status.is-no {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

@media (max-width: 767px) {
  .ypts-card {
    padding: 18px;
  }

  .ypts-amounts {
    grid-template-columns: 1fr;
  }

  .ypts-amount-box strong {
    font-size: 20px;
  }

  .ypts-suggest-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.ypts-amount-box--period span {
  display: none;
}

.ypts-amount-box--period strong {
  font-size: 24px;
}
