.page-merchant {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.merchant-notice {
  padding: 14px 16px 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--red);
}

.merchant-card {
  margin: 0 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.merchant-section-title {
  padding: 16px 16px 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.merchant-section-title .required {
  color: var(--red);
  margin-right: 2px;
}

.merchant-form {
  padding: 0 16px;
}

.merchant-row {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}

.merchant-row:last-child {
  border-bottom: none;
}

.merchant-label {
  flex-shrink: 0;
  width: 72px;
  font-size: 15px;
  color: var(--text);
}

.merchant-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  text-align: right;
  background: transparent;
}

.merchant-input::placeholder {
  color: #ccc;
}

.merchant-row-contact {
  flex-wrap: wrap;
  padding: 10px 0;
  min-height: auto;
}

.merchant-row-contact .merchant-label {
  align-self: center;
}

.merchant-input-name {
  flex: 1;
  min-width: 80px;
}

.merchant-gender {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.gender-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gender-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gender-dot {
  width: 16px;
  height: 16px;
  border: 1px solid #ddd;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.gender-option input:checked + .gender-dot {
  border-color: var(--red);
}

.gender-option input:checked + .gender-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.merchant-row-address {
  padding: 14px 0;
}

.merchant-input-full {
  width: 100%;
  text-align: right;
}

.btn-merchant-submit {
  display: block;
  width: calc(100% - 32px);
  margin: 20px 16px 16px;
  padding: 14px 0;
  border: none;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-merchant-submit:active {
  opacity: 0.9;
}

.merchant-footer {
  padding: 0 16px 20px;
  font-size: 13px;
  line-height: 1.85;
  color: #666;
}

.merchant-footer a {
  color: var(--text);
  text-decoration: none;
}
