.tedori-sim-widget {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  font-size: 15px;
  line-height: 1.7;
}

.tedori-sim-title {
  margin-top: 0;
  font-size: 1.2em;
}

.tedori-sim-lead {
  color: #555;
  margin-bottom: 16px;
}

.tedori-sim-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.tedori-sim-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tedori-sim-field > label {
  font-weight: bold;
}

.tedori-sim-required {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  background: #c0392b;
  color: #fff;
  border-radius: 10px;
  font-size: 0.75em;
  font-weight: normal;
  vertical-align: middle;
}

.tedori-sim-form input[type="number"],
.tedori-sim-form select {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-width: 260px;
  background: #fff;
}

.tedori-sim-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.9em;
  font-weight: normal;
  margin-top: 4px;
}

.tedori-sim-check input {
  margin: 4px 0 0;
  flex-shrink: 0;
}

.tedori-sim-check-main {
  font-size: 1em;
  font-weight: bold;
}

.tedori-sim-hint {
  margin: 2px 0 0;
  color: #888;
  font-size: 0.85em;
}

.tedori-sim-form button {
  padding: 12px 24px;
  background: #b5651d;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1em;
  align-self: flex-start;
}

.tedori-sim-form button:hover {
  background: #9a5418;
}

.tedori-sim-result {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

.tedori-sim-total {
  text-align: center;
  padding: 12px 0 16px;
  border-bottom: 1px dashed #ccc;
  margin-bottom: 14px;
}

.tedori-sim-total-label {
  color: #555;
  margin: 0 0 4px;
}

.tedori-sim-total-price {
  font-size: 1.8em;
  font-weight: bold;
  color: #2d6249;
  margin: 0;
}

.tedori-sim-total-price small {
  font-size: 0.55em;
  font-weight: normal;
  color: #666;
}

.tedori-sim-breakdown {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.tedori-sim-breakdown th,
.tedori-sim-breakdown td {
  padding: 8px 6px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.tedori-sim-breakdown td {
  text-align: right;
  white-space: nowrap;
}

.tedori-sim-breakdown .tedori-sim-minus td,
.tedori-sim-breakdown .tedori-sim-minus th {
  color: #c0392b;
}

.tedori-sim-breakdown .tedori-sim-row-note {
  color: #888;
  font-size: 0.8em;
  font-weight: normal;
  display: block;
}

.tedori-sim-tax-detail {
  margin-top: 12px;
  font-size: 0.88em;
  color: #666;
  background: #f7f7f7;
  border-radius: 6px;
  padding: 10px 14px;
}

.tedori-sim-tax-detail p {
  margin: 0 0 4px;
}

.tedori-sim-warning {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff8e6;
  border: 1px solid #f0d48a;
  border-radius: 6px;
  font-size: 0.9em;
}

.tedori-sim-error {
  color: #c0392b;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
}

.tedori-sim-notes {
  font-size: 0.85em;
  color: #666;
  border-top: 1px dashed #ccc;
  padding-top: 12px;
}

.tedori-sim-notes summary {
  cursor: pointer;
  font-weight: bold;
  list-style: none;
}

.tedori-sim-notes summary::-webkit-details-marker {
  display: none;
}

.tedori-sim-notes summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 6px;
  font-size: 0.8em;
  transition: transform 0.15s ease;
}

.tedori-sim-notes[open] summary::before {
  transform: rotate(90deg);
}

.tedori-sim-notes ul {
  padding-left: 1.2em;
}

.tedori-sim-cta {
  margin-top: 14px;
  padding: 14px 16px;
  border: 2px solid #3a7d5c;
  border-radius: 10px;
  background: #fff;
  font-size: 0.92em;
}

.tedori-sim-cta p {
  margin: 0 0 6px;
}

.tedori-sim-cta ul {
  margin: 0;
  padding-left: 1.2em;
}
