/**
 * Property Check Case Updates slider.
 *
 * This feature sheet deliberately uses `case-updates-*` component names so the
 * paged assistant cannot inherit the retired guidance layout's narrow columns.
 * The outer `guidance-hero` class remains only for the established green tone.
 */

#checklistWorkspace > .guidance-hero.case-updates-panel {
  position: relative;
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 310px;
  height: 310px;
  max-height: 310px;
  padding: 20px 24px 14px;
  overflow: hidden;
}

.case-updates-robot {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 24px;
  width: 84px;
  height: 84px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
}

.case-updates-robot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.case-updates-content {
  position: static;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 54px;
  gap: 4px;
  margin: 0;
  padding: 0;
  transform: none;
}

.case-updates-slides {
  position: static;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.case-updates-slide {
  position: static;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.case-updates-slide[hidden],
.case-updates-understood[hidden],
.case-updates-inline-action[hidden] {
  display: none;
}

.case-updates-heading {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 108px;
}

.case-updates-eyebrow {
  display: block;
  margin: 0 0 6px;
  color: inherit;
  font: 600 10px/1.2 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.case-updates-heading h2 {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  color: inherit;
  font-size: clamp(25px, 2.2vw, 31px);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.case-updates-message {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  max-height: none;
  min-width: 0;
  margin: 10px 0 0;
  padding: 0;
  overflow: visible;
  white-space: pre-line;
  color: #dce9df;
  font-size: 16px;
  line-height: 1.46;
  overflow-wrap: break-word;
  word-break: normal;
}

.case-updates-inline-action {
  min-width: 0;
  min-height: 36px;
  max-width: min(100%, 520px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
  color: inherit;
  font: 700 12px/1.2 var(--font-sans);
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  cursor: pointer;
}

.case-updates-inline-action:hover,
.case-updates-inline-action:focus-visible {
  background: rgba(255, 255, 255, .17);
}

.case-updates-footer {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 54px;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  align-items: center;
  column-gap: 18px;
  margin: 0;
  padding: 2px 0 8px;
  border: 0;
}

.case-updates-footer-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-right: 2px;
  overflow: visible;
}

.case-updates-footer-actions:empty {
  display: block;
}

.case-updates-pagination {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  white-space: nowrap;
}

.case-updates-page-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  color: inherit;
  font-size: 16px;
  cursor: pointer;
}

.case-updates-page-button:hover:not(:disabled),
.case-updates-page-button:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, .17);
}

.case-updates-page-button:disabled {
  opacity: .35;
  cursor: default;
}

.case-updates-page-button.is-unavailable {
  visibility: hidden;
  pointer-events: none;
}

.case-updates-page-count {
  min-width: 40px;
  text-align: center;
  color: #c8d7cc;
  font: 600 11px var(--font-mono);
}

.case-updates-understood {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(142, 227, 207, .62);
  border-radius: 10px;
  background: rgba(142, 227, 207, .15);
  color: #effff9;
  font: 700 12px var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
}

.case-updates-understood:hover,
.case-updates-understood:focus-visible {
  background: rgba(142, 227, 207, .25);
}

@media (min-width: 1100px) {
  #checklistWorkspace > .guidance-hero.case-updates-panel {
    min-height: 310px;
    height: 310px;
    max-height: 310px;
  }
}

@media (max-width: 520px) {
  #checklistWorkspace > .guidance-hero.case-updates-panel {
    min-height: 425px;
    height: 425px;
    max-height: 425px;
    padding: 16px 15px 13px;
    border-radius: 18px;
  }

  .case-updates-robot {
    top: 16px;
    left: 15px;
    width: 64px;
    height: 64px;
  }

  .case-updates-content {
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) 60px;
    gap: 4px;
  }

  .case-updates-heading {
    min-height: 64px;
    padding-left: 78px;
  }

  .case-updates-eyebrow {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .case-updates-heading h2 {
    font-size: clamp(21px, 6.4vw, 25px);
    line-height: 1.1;
  }

  .case-updates-message {
    margin-top: 11px;
    font-size: 15px;
    line-height: 1.44;
  }

  .case-updates-footer {
    height: 60px;
    min-height: 60px;
    grid-template-columns: minmax(0, 1fr) 117px;
    column-gap: 8px;
    padding: 2px 0 8px;
  }

  .case-updates-footer-actions {
    gap: 5px;
    padding-right: 0;
  }

  .case-updates-inline-action {
    min-height: 38px;
    max-height: 46px;
    padding: 5px 8px;
    font-size: 11px;
    line-height: 1.15;
    white-space: normal;
    overflow: hidden;
  }

  .case-updates-page-button {
    width: 35px;
    height: 35px;
  }

  .case-updates-understood {
    min-height: 35px;
    padding-inline: 10px;
  }
}

@media (max-width: 350px) {
  #checklistWorkspace > .guidance-hero.case-updates-panel {
    min-height: 445px;
    height: 445px;
    max-height: 445px;
    padding-inline: 13px;
  }

  .case-updates-robot {
    left: 13px;
    width: 58px;
    height: 58px;
  }

  .case-updates-heading {
    min-height: 58px;
    padding-left: 70px;
  }

  .case-updates-heading h2 {
    font-size: 21px;
  }

  .case-updates-message {
    font-size: 14.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-updates-page-button,
  .case-updates-understood,
  .case-updates-inline-action {
    transition: none;
  }
}
