.caution-container {
  container-type: inline-size;
  width: 100%; /* Ensures it fills whatever column it is sitting inside */
}

.caution-box {
  display: flex;
  border: 1px solid #F08021;
  border-radius: 8px;
  overflow: hidden; /* Ensures the inner background respects the border-radius */
}

.caution-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: #F08021;
  color: white;
}

.caution-icon {
  font-size: 36px;
  font-weight: 800;
  font-family: Arial, sans-serif;
  margin-bottom: 8px;
  line-height: 1;
}

.caution-label {
  font-size: 18px;
  font-family: Arial, sans-serif;
}

.caution-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  flex-grow: 1;
}

.caution-heading {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  margin-bottom: 8px;
  line-height: 1;
}

.caution-body {
  font-size: 14px;
  font-family: Arial, sans-serif;
}

@container (max-width: 450px) {
  .caution-box {
    flex-direction: column;
  }

  .caution-sidebar {
    /* Changes sidebar layout from vertical stack to horizontal row when on top */
    flex-direction: row; 
    gap: 10px;
    padding: 12px; /* Reduces padding since it's now a top bar */
  }

  .caution-content {
    /* Aligns text to the left for better readability on mobile */
    align-items: flex-start; 
    padding: 20px;
  }

  .caution-heading {
    text-align: left;
    margin-bottom: 8px;
  }
}