/* Base layout also provides a complete-border fallback without container queries. */
.use-case-scenarios-cards {
  container-name: use-case-scenarios;
  container-type: inline-size;
}

/* Three cards remain visible without stretching their natural content height. */
.use-case-scenarios-viewport {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: var(--scenario-viewport-height, 391px);
  padding-right: 10px;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scroll-snap-type: y proximity;
  scrollbar-color: #777777 #eeeeee;
}

.use-case-scenarios-viewport::-webkit-scrollbar {
  width: 8px;
}

.use-case-scenarios-viewport::-webkit-scrollbar-track {
  border-radius: 4px;
  background: #eeeeee;
}

.use-case-scenarios-viewport::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: #777777;
}

/* Keep the explicit 8px track in browsers supporting WebKit scrollbar styling. */
@supports selector(::-webkit-scrollbar) {
  .use-case-scenarios-viewport {
    scrollbar-color: auto;
  }
}

.use-case-scenarios-viewport:focus-visible {
  outline: 2px solid #2b2b2b;
  outline-offset: -2px;
}

.use-case-scenario-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  flex-shrink: 0;
  min-height: 117px;
  scroll-snap-align: start;
  padding: 20px;
  border: 1px solid rgba(43, 43, 43, 0.1);
  border-radius: 10px;
  background: rgba(248, 248, 253, 0.2);
}

.use-case-scenario-card-bg {
  display: none;
  pointer-events: none;
}

.use-case-scenario-copy {
  position: relative;
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 410px;
  overflow-wrap: anywhere;
}

.use-case-scenario-title {
  margin: 0;
  color: #1b0d00;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
}

.use-case-scenario-description {
  margin: 13px 0 0;
  color: #777777;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
}

.use-case-scenario-button {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  width: 70px;
  height: 25px;
  margin-top: 0;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(43, 43, 43, 0.1);
  border-radius: 20px;
  background: rgba(248, 248, 253, 0.2);
}

.use-case-scenario-button img {
  width: 31px;
  height: 14px;
}

.use-case-scenario-button:hover {
  border-color: #1b0d00;
  background: #1b0d00;
}

.use-case-scenario-button:hover img {
  filter: brightness(0) invert(1);
}

.use-case-scenario-button:focus-visible {
  outline: 2px solid #2b2b2b;
  outline-offset: 3px;
}

/* Use the notched artwork only at its designed width; shrink to an intact card. */
@container use-case-scenarios (min-width: 611px) {
  .use-case-scenario-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: 117px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .use-case-scenario-card-bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
  }

  .use-case-scenario-button {
    position: absolute;
    right: 0;
    bottom: 0;
    margin-top: 0;
  }
}
