/* ============================= */
/* === WRAPPER: DEFAULT THEME === */
/* ============================= */
.revopv-wrapper-default .revopv-video-background {
  aspect-ratio: 1 / 1;
  background: #000;
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.revopv-wrapper-default .revopv-video-foreground {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ============================= */
/* === WRAPPER: STOREFRONT === */
/* ============================= */
.revopv-wrapper-storefront .revopv-video-background {
  height: 231.18px;
  background: #000;
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  border-radius: 4px;
  margin-bottom: 1.618em;
}

.revopv-wrapper-storefront .revopv-video-foreground {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ============================= */
/* === VIDEO/IFRAME GLOBAL === */
/* ============================= */
.revopv-video-foreground iframe,
.revopv-video-foreground video {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  max-width: none !important;
}

.revopv-video-foreground iframe,
.revopv-video-foreground video {
  pointer-events: auto;
}

/* ============================= */
/* === VIDEO/IFRAME - STOREFRONT === */
/* ============================= */
.revopv-video-foreground-storefront iframe,
.revopv-video-foreground-storefront video {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  max-width: none !important;
}

.revopv-video-foreground-storefront iframe,
.revopv-video-foreground-storefront video {
  pointer-events: auto;
}

/* ============================= */
/* === FIT OPTIONS (Global) === */
/* ============================= */

/* === FIT: FILL === */
.revopv-fit-fill .revopv-video-foreground iframe,
.revopv-fit-fill .revopv-video-foreground video {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.revopv-fit-fill-storefront .revopv-video-foreground-storefront iframe,
.revopv-fit-fill-storefront .revopv-video-foreground-storefront video {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* === FIT: CONTAIN === */
.revopv-fit-contain .revopv-video-foreground iframe,
.revopv-fit-contain .revopv-video-foreground video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.revopv-fit-contain-storefront .revopv-video-foreground-storefront iframe,
.revopv-fit-contain-storefront .revopv-video-foreground-storefront video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* === FIT: COVER === */
.revopv-fit-cover .revopv-video-foreground iframe,
.revopv-fit-cover .revopv-video-foreground video {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200vh;
  height: 100%;
  object-fit: cover;
}

.revopv-fit-cover-storefront .revopv-video-foreground-storefront iframe,
.revopv-fit-cover-storefront .revopv-video-foreground-storefront video {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200vh;
  height: 100%;
  object-fit: cover;
}

/* ============================= */
/* === VIDEO BACKGROUND DETAIL PAGE STOREFRONT === */
/* ============================= */
.revopv-video-background-detail-page-storefront {
  height: 328.8px;
  background: #000;
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  border-radius: 4px;
  margin-bottom: 1.618em;
}

.revopv-animation-wrapper-storefront {
  position: absolute;
  right: 8px;
  max-width: 48px;
  top: 8px;
}

.revopv-animation-wrapper {
  position: absolute;
  right: 8px;
  max-width: 48px;
  bottom: 8px;
}

.card-flash-sale > .revopv-animation-wrapper {
  position: absolute;
  right: 8px;
  max-width: 48px;
  top: -20px;
}

.card-flash-sale {
  position: relative !important;
}
