/* Embeddable cubic yard calculator widget — self-contained.
   This stylesheet must not rely on the site's global.css: the widget runs
   inside third-party iframes and only this file is loaded. */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #fff;
}

.widget {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0.75rem;
}

.widget h1 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  line-height: 1.3;
  color: #14532d;
}

/* Input hint: shown when a typed value was invalid or clamped. Non-blocking. */
.w-notice {
  border-left: 4px solid #92400e;
  background: #fef3c7;
  padding: 0.5rem 0.7rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  margin: 0 0 0.6rem;
}
.w-notice[hidden] { display: none; }

.w-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 0.75rem;
}

.w-field label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.w-input {
  display: flex;
  align-items: stretch;
  border: 1px solid #c9c2b4;
  border-radius: 8px;
  overflow: hidden;
}

.w-input input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border: 0;
  font: inherit;
  color: inherit;
  background: #fff;
}

.w-input input:focus {
  outline: 2px solid #14532d;
  outline-offset: -2px;
}

.w-unit {
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  font-size: 0.85rem;
  color: #555;
  background: #f6f1e8;
  border-left: 1px solid #c9c2b4;
}

.w-field select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid #c9c2b4;
  border-radius: 8px;
  font: inherit;
  color: inherit;
  background: #fff;
}

.w-field select:focus {
  outline: 2px solid #14532d;
  outline-offset: -2px;
}

.w-results {
  margin-top: 0.9rem;
  padding: 0.75rem 1rem;
  background: #f6f1e8;
  border: 1px solid #d9d2c5;
  border-radius: 10px;
}

.w-primary {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: #14532d;
}

.w-primary small {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
}

.w-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.w-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
  border-top: 1px solid #d9d2c5;
  font-size: 0.95rem;
}

.w-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #555;
}

.w-credit {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  text-align: center;
  color: #555;
}

.w-credit a {
  color: #14532d;
}
