
.ilrw-widget {
  max-width: 760px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #cfd8df;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(7, 51, 73, .10);
  color: #0b2f4a;
}

.ilrw-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
}

.ilrw-heading-icon {
  font-size: 2.35rem;
  line-height: 1;
}

.ilrw-heading h3 {
  margin: 0;
  color: #0a3553;
  font-size: 1.45rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.ilrw-heading-sub {
  margin: 5px 0 0;
  color: #314b5e;
  font-size: .95rem;
}

.ilrw-location {
  margin: 3px 0 0;
  color: #6b7d89;
  font-size: .82rem;
}

.ilrw-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 0 20px 18px;
}
.ilrw-controls label { display: block; }
.ilrw-controls label span { display: block; font-weight: 600; margin-bottom: 5px; }
.ilrw-controls input,
.ilrw-controls select,
.ilrw-controls button {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}
.ilrw-controls button { padding: 8px 16px; cursor: pointer; }

.ilrw-status {
  margin: 0;
  padding: 14px 20px 18px;
  color: #5f6772;
  border-top: 1px solid #e6ecef;
}

.ilrw-result {
  margin: 0;
  padding: 0 20px 18px;
  border-top: 0;
}

.ilrw-date-strip {
  margin: 0 -20px 16px;
  padding: 9px 20px;
  background: #1097a5;
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.ilrw-result-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.ilrw-condition-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.ilrw-condition-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.ilrw-condition {
  color: #29465a;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.ilrw-temp {
  font-size: 2.35rem;
  font-weight: 800;
  white-space: nowrap;
  color: #0a3553;
}

.ilrw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
  border-top: 1px solid #dfe7eb;
  border-bottom: 1px solid #dfe7eb;
}

.ilrw-grid > div {
  min-width: 0;
  padding: 14px 8px;
  text-align: center;
  background: transparent;
  border-radius: 0;
  border-right: 1px solid #dfe7eb;
}

.ilrw-grid > div:last-child {
  border-right: 0;
}

.ilrw-grid span {
  display: block;
  color: #395469;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ilrw-grid .ilrw-metric-icon {
  margin-bottom: 5px;
  font-size: 1.35rem;
  line-height: 1;
}

.ilrw-grid strong {
  display: block;
  margin-top: 4px;
  color: #0a3553;
  font-size: .98rem;
}

.ilrw-interval-note {
  margin-top: 4px;
  font-size: .74rem;
  line-height: 1.35;
  color: #758690;
}

.ilrw-recommendation {
  position: relative;
  margin-top: 16px;
  padding: 13px 15px 13px 54px;
  border: 0;
  border-radius: 12px;
}

.ilrw-recommendation::before {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
}

.ilrw-recommendation-title {
  margin-bottom: 2px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.ilrw-recommendation-text {
  font-size: .9rem;
  line-height: 1.35;
}

.ilrw-rec-good {
  background: #edf8ef;
  color: #176b37;
}
.ilrw-rec-good::before { content: "✓"; background: #1a9c52; }
.ilrw-rec-good .ilrw-recommendation-title::before { content: none; }

.ilrw-rec-caution {
  background: #fff7df;
  color: #8a5b00;
}
.ilrw-rec-caution::before { content: "!"; background: #e8a500; }
.ilrw-rec-caution .ilrw-recommendation-title::before { content: none; }

.ilrw-rec-poor {
  background: #fff0f0;
  color: #9a2525;
}
.ilrw-rec-poor::before { content: "!"; background: #d34646; }
.ilrw-rec-poor .ilrw-recommendation-title::before { content: none; }

.ilrw-disclaimer {
  margin: 0;
  padding: 12px 20px 16px;
  border-top: 1px solid #edf1f3;
  font-size: .78rem;
  line-height: 1.35;
  color: #697a86;
  background: #fbfcfd;
}

@media (max-width: 640px) {
  .ilrw-widget { border-radius: 14px; }
  .ilrw-controls { grid-template-columns: 1fr; }
  .ilrw-result-header { align-items: flex-start; }
  .ilrw-grid { grid-template-columns: 1fr 1fr; }
  .ilrw-grid > div:nth-child(2) { border-right: 0; }
  .ilrw-grid > div:nth-child(-n+2) { border-bottom: 1px solid #dfe7eb; }
  .ilrw-heading h3 { font-size: 1.2rem; }
  .ilrw-temp { font-size: 1.85rem; }
}


.ilrw-booking-block-notice {
  margin: 14px 0 18px;
  padding: 15px 17px;
  border: 2px solid #c63d3d;
  border-radius: 12px;
  background: #fff0f0;
  color: #8d1f1f;
  font-weight: 700;
  line-height: 1.45;
}

.ilrw-weather-disabled,
.ilrw-weather-disabled:hover {
  opacity: .55 !important;
  cursor: not-allowed !important;
}


/* Home-page current-day weather card */
.ilrw-today-widget {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.ilrw-today-highlow {
  margin-top: 4px;
  color: #657985;
  font-size: .88rem;
  font-weight: 600;
}

.ilrw-today-cta {
  padding-top: 16px;
  text-align: center;
}

.ilrw-today-button {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: #0a6f82;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  line-height: 1.2;
  box-shadow: 0 5px 14px rgba(7, 51, 73, .14);
}

.ilrw-today-button:hover,
.ilrw-today-button:focus {
  background: #085d6d;
  color: #fff !important;
}

@media (max-width: 640px) {
  .ilrw-today-widget .ilrw-result-header {
    align-items: center;
  }
  .ilrw-today-widget .ilrw-temp {
    font-size: 2rem;
  }
}


/* v2.1 Home-page on-demand forecast popup */
.ilrw-week-launcher {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.ilrw-week-open {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #d8e3e8;
  border-radius: 14px;
  background: #fff;
  color: #173747;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(7,51,73,.08);
}
.ilrw-week-open:hover { border-color: #9fbec9; }
.ilrw-week-open-icon { font-size: 2rem; line-height: 1; }
.ilrw-week-open-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ilrw-week-open-copy strong { font-size: 1.05rem; }
.ilrw-week-open-copy span { color: #667b86; font-size: .9rem; }
.ilrw-week-open-action { color: #0a6f82; font-weight: 800; white-space: nowrap; }

.ilrw-week-backdrop {
  position: fixed;
  z-index: 999999;
  inset: 0;
  padding: 24px;
  background: rgba(11,31,42,.58);
  overflow-y: auto;
}
.ilrw-week-modal {
  width: min(1100px, 100%);
  margin: 40px auto;
  border-radius: 18px;
  background: #fff;
  color: #173747;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
}
.ilrw-week-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid #e2e9ec;
}
.ilrw-week-modal-head h2 { margin: 0 0 3px; font-size: 1.45rem; }
.ilrw-week-modal-head p { margin: 0; color: #6b7f89; }
.ilrw-week-close {
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: #eef4f6; color: #234553;
  font-size: 1.8rem; line-height: 1;
  cursor: pointer;
}
.ilrw-week-status { padding: 34px 22px; text-align: center; color: #667b86; }
.ilrw-week-content { padding: 20px 22px 24px; }
.ilrw-week-summary {
  margin-bottom: 15px;
  font-size: 1.05rem;
  font-weight: 800;
}
.ilrw-week-api-note {
  margin-top: 4px;
  color: #6b7f89;
  font-size: .82rem;
  font-weight: 500;
}
.ilrw-week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 10px;
}
.ilrw-day-card {
  min-width: 0;
  padding: 13px 11px;
  border: 1px solid #dde7eb;
  border-radius: 13px;
  background: #fbfdfe;
}
.ilrw-day-today { border-width: 2px; border-color: #83afbd; background: #f4fafb; }
.ilrw-day-top { display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; }
.ilrw-day-top strong, .ilrw-day-top span { display: block; }
.ilrw-day-top span { color: #70828b; font-size: .78rem; }
.ilrw-day-icon { font-size: 1.6rem; }
.ilrw-day-condition { min-height: 38px; margin-top: 8px; font-size: .82rem; color: #506873; }
.ilrw-day-temps { display: flex; align-items: baseline; gap: 8px; margin: 8px 0; }
.ilrw-day-temps strong { font-size: 1.5rem; }
.ilrw-day-temps span { color: #71838c; font-size: 1rem; }
.ilrw-day-metrics { display: grid; gap: 4px; font-size: .78rem; color: #506873; }
.ilrw-day-rec { margin-top: 10px; padding: 5px 7px; border-radius: 8px; text-align: center; font-size: .74rem; font-weight: 800; }
.ilrw-day-rec.ilrw-rec-good { background: #e7f5ed; color: #27643e; }
.ilrw-day-rec.ilrw-rec-caution { background: #fff3d8; color: #805d0b; }
.ilrw-day-rec.ilrw-rec-poor { background: #fde7e5; color: #8b302b; }
.ilrw-week-note { margin: 18px 0 0; color: #657985; font-size: .86rem; text-align: center; }
.ilrw-week-cta { padding-top: 16px; text-align: center; }
body.ilrw-modal-open { overflow: hidden; }

@media (max-width: 900px) {
  .ilrw-week-days { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .ilrw-week-open { align-items: flex-start; flex-wrap: wrap; }
  .ilrw-week-open-action { width: 100%; padding-left: 46px; }
  .ilrw-week-backdrop { padding: 10px; }
  .ilrw-week-modal { margin: 10px auto; border-radius: 14px; }
  .ilrw-week-content { padding: 15px; }
  .ilrw-week-days { grid-template-columns: 1fr; }
  .ilrw-day-condition { min-height: 0; }
}


/* v2.2 intentional five-day home forecast layout */
.ilrw-week-days {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.ilrw-day-card {
  padding: 16px 14px;
}

.ilrw-day-condition {
  min-height: 42px;
  font-size: .88rem;
}

.ilrw-day-metrics {
  font-size: .82rem;
  gap: 6px;
}

@media (max-width: 900px) {
  .ilrw-week-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ilrw-week-days {
    grid-template-columns: 1fr;
  }

  .ilrw-day-card {
    padding: 15px 16px;
  }

  .ilrw-day-condition {
    min-height: 0;
  }
}


/* v2.3 condition-evaluation explanation */
.ilrw-evaluation {
  margin-top: 18px;
  border: 1px solid #dce7eb;
  border-radius: 12px;
  background: #f8fbfc;
  overflow: hidden;
}
.ilrw-evaluation summary {
  padding: 14px 16px;
  cursor: pointer;
  color: #174b5c;
  font-weight: 800;
  list-style-position: inside;
}
.ilrw-evaluation summary:hover {
  background: #f1f7f8;
}
.ilrw-evaluation-body {
  padding: 0 16px 16px;
  color: #526a75;
  font-size: .88rem;
}
.ilrw-evaluation-body > p:first-child {
  margin-top: 2px;
}
.ilrw-evaluation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin: 14px 0;
}
.ilrw-eval-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e1e9ec;
  border-radius: 10px;
  background: #fff;
}
.ilrw-eval-icon {
  flex: 0 0 auto;
  font-size: 1.35rem;
}
.ilrw-eval-item strong {
  color: #294c5a;
}
.ilrw-eval-item p {
  margin: 3px 0 0;
  line-height: 1.45;
}
.ilrw-thresholds {
  margin-top: 15px;
}
.ilrw-thresholds h4 {
  margin: 0 0 9px;
  color: #294c5a;
}
.ilrw-threshold-row {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 7px;
  padding: 10px 12px;
  border-radius: 9px;
}
.ilrw-threshold-good {
  background: #e7f5ed;
  color: #27643e;
}
.ilrw-threshold-caution {
  background: #fff3d8;
  color: #805d0b;
}
.ilrw-threshold-poor {
  background: #fde7e5;
  color: #8b302b;
}
.ilrw-evaluation-footnote {
  margin: 14px 2px 0;
  font-size: .82rem;
  font-style: italic;
  line-height: 1.45;
}

@media (max-width: 650px) {
  .ilrw-evaluation-grid {
    grid-template-columns: 1fr;
  }
  .ilrw-threshold-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
