.sypw-wrap {
  margin: 1em 0;
  padding: 1em;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
}

.sypw-toggle-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sypw-toggle-button[aria-expanded="true"] {
  background-color: #e8e8e8;
  border-color: #999;
}

.sypw-custom-field {
  overflow: hidden;
  animation: sypw-fade-in 0.25s ease forwards;
}

@keyframes sypw-fade-in {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 200px;
  }
}

.sypw-custom-field label {
  display: block;
  margin-bottom: 0.25em;
  font-weight: 600;
}

.sypw-custom-field input[type="number"] {
  width: 100%;
  max-width: 200px;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sypw-custom-field input[type="number"]:focus {
  border-color: #007cba;
  box-shadow: 0 0 0 1px #007cba;
  outline: none;
}

.sypw-custom-field input[type="number"].sypw-input-error {
  border-color: #d63638;
  box-shadow: 0 0 0 1px #d63638;
}

.sypw-min-price-label {
  display: block;
  margin-top: 0.25em;
  color: #666;
  font-size: 0.85em;
}

.sypw-live-price {
  display: block;
  margin-top: 0.5em;
  font-weight: 600;
  color: #2c3338;
  min-height: 1.4em;
}

.sypw-error {
  display: block;
  margin-top: 0.25em;
  color: #d63638;
  font-size: 0.85em;
  min-height: 1.2em;
}

@media (max-width: 768px) {
  .sypw-wrap {
    padding: 0.75em;
  }

  .sypw-custom-field input[type="number"] {
    max-width: 100%;
  }
}
