.sfodb-wrap {
  max-width: 740px;
  margin: 0 auto;
}

.sfodb-alert {
  padding: 10px 12px;
  border-radius: 4px;
  margin: 0 0 14px;
  border: 1px solid #eee;
  font-size: 14px;
}

.sfodb-alert-success {
  border-color: #cdeed6;
  background: #f1fbf4;
}

.sfodb-alert-error {
  border-color: #f3c7c7;
  background: #fff3f3;
}

.sfodb-form label {
  display: block;
  font-weight: 600;
  margin: 0 0 6px;
  font-size: 14px;
}

.sfodb-req {
  color: #c00;
}

.sfodb-field {
  margin: 0 0 14px;
}

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

@media (min-width: 720px) {
  .sfodb-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.sfodb-form input[type="text"],
.sfodb-form input[type="email"],
.sfodb-form select,
.sfodb-form textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid #ff7d01;
  padding: 10px 10px;
  font-size: 14px;
  background: #fff;
  outline: none;
}

.sfodb-form input[type="text"]:focus,
.sfodb-form input[type="email"]:focus,
.sfodb-form select:focus,
.sfodb-form textarea:focus {
  box-shadow: 0 0 0 2px rgba(255, 125, 1, 0.15);
}

.sfodb-error {
  color: #b00020;
  font-size: 13px;
  margin-top: 6px;
}

.sfodb-items-ui {
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 10px;
  background: #fafafa;
}

.sfodb-addrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.sfodb-btn-add {
  border: 1px solid #ff7d01;
  background: #ff7d01;
  color: #fff;
  border-radius: 4px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
}

.sfodb-btn-add:hover,
.sfodb-btn-add:focus {
  background: #ff7d01;
  color: #fff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 125, 1, 0.15);
}

.sfodb-selected {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 10px;
  min-height: 48px;
}

.sfodb-empty {
  color: #666;
  font-size: 13px;
}

.sfodb-item-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}

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

.sfodb-item-left {
  min-width: 0;
  flex: 1 1 auto;
}

.sfodb-item-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}

.sfodb-item-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.sfodb-qty {
  width: 80px;
}

.sfodb-remove {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid #ff7d01;
  background: #ff7d01;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.sfodb-remove:hover,
.sfodb-remove:focus {
  background: #ff7d01;
  color: #fff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 125, 1, 0.15);
}

.sfodb-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sfodb-submit {
  width: 100%;
  flex: 1 1 220px;
  border: none;
  background-color: #ff7d01;
  border-radius: 4px;
  color: #fff;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.sfodb-submit:hover,
.sfodb-submit:focus {
  background-color: #ff7d01;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 125, 1, 0.2);
}

.sfodb-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden !important;
}
