/* Product pages use the same portrait cards as the magazine. */
.product-shorts .community-short-grid button {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cfdde4;
  border-radius: 8px;
  background: #f5f8fa;
  color: #173343;
  font: inherit;
  cursor: pointer;
}

.product-shorts .community-short-grid button:is(:hover, :focus-visible) {
  outline: 2px solid #08758c;
  outline-offset: 2px;
}

.product-shorts .community-short-preview,
.product-shorts .community-short-title { width: 100%; }
.product-shorts .community-short-title {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.product-shorts-player {
  box-sizing: border-box;
  width: min(400px, calc(100% - 24px));
  width: min(400px, calc(100% - 24px), max(224px, calc((100dvh - 112px) * .5625)));
  max-height: calc(100% - 24px);
  inset: 0;
  margin: auto;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: #0b1821;
  color: white;
  overscroll-behavior: contain;
}

.product-shorts-player::backdrop { background: rgb(5 17 25 / 80%); }
:root:has(.product-shorts-player[open]) { overflow: hidden; }

.product-shorts-toolbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  background: inherit;
}

.product-shorts-toolbar p {
  margin: 0;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-shorts-toolbar button {
  flex: none;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #8196a2;
  border-radius: 6px;
  background: #173343;
  color: white;
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}

.product-shorts-stage {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.product-shorts-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
