/* ── DFLV Walk Check Widget ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap');

.dflv-wc {
  background: #F9C120;
  border-radius: 4px;
  padding: 24px 18px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.dflv-wc *,
.dflv-wc *::before,
.dflv-wc *::after {
  box-sizing: border-box;
}

/* ── Header ── */
.dflv-wc__header {
  margin-bottom: 18px;
}

.dflv-wc__title {
  font-size: clamp(22px, 5vw, 40px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.dflv-wc__sub {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

/* ── Controls ── */
.dflv-wc__controls {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}

.dflv-wc__select {
  flex: 1;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23111' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: none;
  border-radius: 4px;
  padding: 11px 32px 11px 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dflv-wc__refresh {
  flex-shrink: 0;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 11px 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.15s;
}

.dflv-wc__refresh:hover {
  opacity: 0.8;
}

/* ── Main card ── */
.dflv-wc__card {
  background: #fff;
  border-radius: 4px;
  padding: 20px 16px;
  margin-bottom: 10px;
}

/* ── Loading ── */
.dflv-wc__loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: #aaa;
}

.dflv-wc__spinner {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 2px solid #eee;
  border-top-color: #F9C120;
  border-radius: 50%;
  animation: dflv-spin 0.7s linear infinite;
}

@keyframes dflv-spin {
  to { transform: rotate(360deg); }
}

/* ── Result ── */
.dflv-wc__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 5px;
}

.dflv-wc__verdict {
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  transition: color 0.3s;
  word-break: break-word;
}

.dflv-wc__desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: #444;
}

/* ── Temp blocks ── */
.dflv-wc__temps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.dflv-wc__temp-block {
  background: #F9C120;
  border-radius: 4px;
  padding: 11px 12px;
}

.dflv-wc__temp-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 3px;
}

.dflv-wc__temp-val {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.dflv-wc__temp-val.dflv-wc--hot {
  color: #111;
}

.dflv-wc__temp-note {
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

/* ── Best time ── */
.dflv-wc__divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 14px 0;
}

.dflv-wc__best-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
}

.dflv-wc__best-text {
  font-size: 13px;
  color: #333;
  line-height: 1.55;
}

/* ── Info box ── */
.dflv-wc__info {
  background: #fff;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 10px;
}

.dflv-wc__info-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 7px;
}

.dflv-wc__info p {
  font-size: 12px;
  color: #444;
  line-height: 1.65;
  margin: 0;
}

/* ── 7-second test ── */
.dflv-wc__test {
  background: #fff;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dflv-wc__test-num {
  font-size: 52px;
  font-weight: 800;
  color: #F9C120;
  line-height: 1;
  flex-shrink: 0;
}

.dflv-wc__test-title {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.dflv-wc__test-desc {
  font-size: 12px;
  color: #555;
  line-height: 1.6;
}

/* ── Footer ── */
.dflv-wc__footer {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  line-height: 1.6;
}

.dflv-wc__footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

/* ── Fade-in animation ── */
@keyframes dflv-fadeup {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dflv-wc__result {
  animation: dflv-fadeup 0.3s ease forwards;
}

/* ── Error state ── */
.dflv-wc__error {
  font-size: 13px;
  color: #c0392b;
  padding: 8px 0;
}

/* ── Narrow sidebar: compact tweaks below 240px ── */
@container (max-width: 240px) {
  .dflv-wc__title { font-size: 20px; }
  .dflv-wc__test-num { font-size: 38px; }
}

/* Fallback for browsers without container queries */
@media (max-width: 280px) {
  .dflv-wc__title { font-size: 20px; }
  .dflv-wc__test-num { font-size: 38px; }
}

/* Container query support */
.dflv-wc {
  container-type: inline-size;
}
