.achados-media-dialog[open] {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr);
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  overflow: hidden;
  border: 0;
  color: white;
  background: #0c0c0e;
}

.achados-media-dialog::backdrop { background: #0c0c0e; }
.achados-media-toolbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 10px;
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.96) 0%, rgba(12, 12, 14, 0.72) 100%);
}
.achados-media-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}
.achados-media-stage {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  width: min(100%, 800px);
  justify-self: center;
  touch-action: pan-y;
  user-select: none;
}
.achados-media-stage img,
.achados-media-stage video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  touch-action: pan-y;
}

.achados-media-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 52px;
  padding: 4px 12px;
}
.achados-media-navigation output { min-width: 42px; text-align: center; font-size: 14px; }
.achados-media-dialog .achados-media-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 15px 0 9px;
  border-radius: 9999px;
  border: 2px solid #fe2c55;
  background: #ffffff;
  color: #161823;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 0 0 3px rgba(254, 44, 85, 0.3);
  transition: transform 120ms ease, background-color 120ms ease;
}
.achados-media-dialog .achados-media-close:active {
  transform: scale(0.96);
  background: #f5f5f7;
}
.achados-media-dialog .achados-media-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
.achados-close-x {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fe2c55;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.achados-close-label {
  letter-spacing: -0.01em;
}
.achados-media-navigation button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #27272c;
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}


.achados-video-rail {
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  user-select: none;
}

[data-achados-gallery] { touch-action: pan-y; user-select: none; }
[data-achados-gallery].achados-dragging { scroll-snap-type: none; }
.achados-dragging { scroll-behavior: auto; }
.achados-dragging, .achados-dragging * { cursor: grabbing !important; }
.achados-gallery-controls {
  position: absolute;
  inset: 50% 8px auto;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.achados-gallery-controls button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: #161823c9;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.achados-video-play {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  cursor: pointer;
}

.achados-video-play span {
  display: grid;
  width: 38px;
  height: 38px;
  padding-left: 2px;
  place-items: center;
  border-radius: 50%;
  background: #141419b3;
  color: white;
}

.achados-video-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.achados-video-controls { display: flex; gap: 4px; }
.achados-video-controls button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #e5e5e7;
  border-radius: 50%;
  color: #161823;
  font-size: 21px;
  cursor: pointer;
}
.achados-video-controls button:disabled { opacity: .35; cursor: default; }
.achados-video-play:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.achados-video-error {
  position: absolute;
  top: 50%;
  max-width: min(90%, 340px);
  padding: 12px;
  border-radius: 8px;
  background: #252529;
  text-align: center;
}

/* Sticky tab active state & moving indicator */
[data-achados-tab] {
  color: #8a8b91;
  transition: color 150ms ease;
}
[data-achados-tab][aria-current="true"] {
  color: #161823;
  font-weight: 700;
}
[data-achados-tab][aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  margin: 0 auto;
  height: 2px;
  width: 32px;
  border-radius: 9999px;
  background: #fe2c55;
}

/* Subtle bottom scrim on creator cards so @handles stay legible */
.achados-video-card-bg {
  position: relative;
}
.achados-video-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.08) 55%, rgba(0, 0, 0, 0.62) 100%);
}
.achados-video-card-bg .achados-video-play {
  position: relative;
  z-index: 1;
}

/* Product specs rows and studio photo framing */
.maleta-spec-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid #f4f4f6;
  font-size: 13.5px;
}
.maleta-spec-row:last-child {
  border-bottom: 0;
}
.maleta-spec-label {
  color: #8a8b91;
  flex-shrink: 0;
}
.maleta-spec-value {
  color: #161823;
  text-align: right;
  font-weight: 500;
}
.maleta-desc-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #f0f0f2;
  border-radius: 8px;
  padding: 6px;
  cursor: zoom-in;
}
.maleta-rating-bar-track {
  flex: 1;
  height: 6px;
  border-radius: 9999px;
  background: #f0f0f2;
  overflow: hidden;
}
.maleta-rating-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: #f2b900;
}

/* Complete TikTok Shop Reviews Sheet */
.maleta-rev-btn-all {
  margin-top: 14px;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 9999px;
  border: 1px solid #d9d9de;
  background: #ffffff;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #161823;
  cursor: pointer;
}
.maleta-rev-btn-all:active {
  background: #f5f5f7;
}
.maleta-rev-summary-box {
  margin-top: 12px;
  border-radius: 10px;
  background: #f5f5f7;
  padding: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #161823;
}
.maleta-rev-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.maleta-rev-chip {
  border: 1px solid #e2e2e7;
  background: #f7f7f9;
  color: #161823;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 140ms, border-color 140ms, color 140ms;
}
.maleta-rev-chip.is-active {
  background: #fff0f4;
  border-color: #fe2c55;
  color: #fe2c55;
  font-weight: 700;
}
.maleta-rev-list {
  margin-top: 14px;
  border-top: 1px solid #f0f0f2;
}
.maleta-rev-card {
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f2;
}
.maleta-rev-card:last-child {
  border-bottom: 0;
}
.maleta-rev-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.maleta-rev-author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.maleta-rev-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  object-fit: cover;
  background: #f1f1f3;
  flex-shrink: 0;
}
.maleta-rev-avatar-letter {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: #ececf0;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.maleta-rev-name {
  font-size: 13px;
  font-weight: 700;
  color: #161823;
}
.maleta-rev-date {
  font-size: 11px;
  color: #8a8b91;
  white-space: nowrap;
}
.maleta-rev-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
  font-size: 11.5px;
  color: #6b7280;
}
.maleta-rev-stars {
  color: #f2b900;
  letter-spacing: 0.5px;
}
.maleta-rev-verified {
  color: #009c8e;
  font-weight: 700;
}
.maleta-rev-text {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #161823;
  white-space: pre-line;
}
.maleta-rev-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.maleta-rev-photos img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  background: #f1f1f3;
  cursor: zoom-in;
}
.maleta-rev-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
}
.maleta-rev-helpful {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e5e5ea;
  background: #ffffff;
  color: #5a5b60;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
}
.maleta-rev-helpful.is-voted {
  border-color: #fe2c55;
  background: #fff0f4;
  color: #fe2c55;
}
.maleta-rev-load-btn {
  margin-top: 12px;
  width: 100%;
  border: 1px solid #d9d9de;
  background: #ffffff;
  color: #161823;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: 9999px;
  cursor: pointer;
}
.maleta-rev-load-btn:active {
  background: #f5f5f7;
}
.maleta-rev-count-note {
  margin-top: 10px;
  text-align: center;
  font-size: 11.5px;
  color: #8a8b91;
}

/* Embedded Description Demo Video Card */
.sanfonada-desc-video-card {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ececef;
  background: #101116;
}
.sanfonada-desc-video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: linear-gradient(90deg, #161823 0%, #242636 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}
.sanfonada-desc-video-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
}
.sanfonada-desc-video-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(254, 44, 85, 0.92);
  color: #ffffff;
  white-space: nowrap;
}
.sanfonada-desc-video-player {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #0c0c0e;
  object-fit: contain;
}

