@import url("./tokens.css");
@import url("./base.css");
@import url("./layout.css");
@import url("./gallery.css");
@import url("./summary.css");
@import url("./purchase.css");
@import url("./payments.css");
@import url("./meta-social.css");
@import url("./responsive.css");

body.single-product {
  overflow-x: hidden;
}

.ws-product-card .stage {
  position: relative;
  overflow: hidden;
}

.ws-product-card .ws-pip-video {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 150px;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  z-index: 6;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ws-product-card .ws-pip-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.ws-product-card .ws-pip-video__close,
.ws-product-card .ws-pip-video__fs,
.ws-product-card .ws-pip-video__mute {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 8;
  -webkit-tap-highlight-color: transparent;
}

.ws-product-card .ws-pip-video__close {
  right: 6px;
  top: 6px;
  font-size: 18px;
  line-height: 1;
}

.ws-product-card .ws-pip-video__fs {
  left: 6px;
  top: 6px;
}

.ws-product-card .ws-pip-video__mute {
  left: 6px;
  top: 42px;
}

.ws-product-card .ws-pip-video__fs svg,
.ws-product-card .ws-pip-video__mute svg {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

.ws-product-card .ws-pip-video__mute svg path:first-child,
.ws-product-card .ws-pip-video__fs svg path {
  fill: currentColor;
}

.ws-product-card .ws-pip-video__mute {
  place-items: center;
}

.ws-product-card .ws-pip-video__mute .ws-pip-video__mute-icon {
  display: none;
}

.ws-product-card .ws-pip-video__mute.is-muted .ws-pip-video__mute-icon--off {
  display: block;
}

.ws-product-card .ws-pip-video__mute:not(.is-muted) .ws-pip-video__mute-icon--on {
  display: block;
}

.ws-product-card .ws-pip-video__mute.is-muted {
  background: rgba(0, 0, 0, 0.72);
}

.ws-product-card .ws-pip-video__mute:not(.is-muted) {
  background: rgba(46, 107, 58, 0.92);
  border-color: rgba(255, 255, 255, 0.3);
}

.ws-product-card .ws-pip-video__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  padding: 10px 8px 8px;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  pointer-events: auto;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.ws-product-card .ws-pip-video__time {
  all: unset;
  box-sizing: border-box;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  opacity: 0.95;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.ws-product-card .ws-pip-video__track {
  all: unset;
  position: relative;
  flex: 1 1 auto;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  cursor: pointer;
}

.ws-product-card .ws-pip-video__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 999px;
}

.ws-product-card .ws-pip-video__knob {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  left: 0%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

@media (max-width: 680px) {
  .ws-product-card .ws-pip-video {
    right: 10px;
    bottom: 10px;
    width: 150px;
    border-radius: 12px;
  }

  .ws-product-card .ws-pip-video__bar {
    height: 24px;
    padding: 9px 7px 7px;
  }

  .ws-product-card .ws-pip-video__time {
    font-size: 10px;
  }
}

@media (min-width: 1024px) {
  .ws-product-card .ws-pip-video {
    width: 190px;
    aspect-ratio: 10 / 16;
    right: 18px;
    bottom: 18px;
    border-radius: 16px;
  }
}

@media (min-width: 1440px) {
  .ws-product-card .ws-pip-video {
    width: 220px;
  }
}
