.bts-video, .bts-video-slider { box-sizing: border-box; min-width: 0; width: 100%; margin: 0; }
.bts-video *, .bts-video-slider * { box-sizing: border-box; }
.bts-video [hidden], .bts-video-slider [hidden] { display: none !important; }
.bts-video__frame { position: relative; aspect-ratio: 16 / 9; padding: 12px; overflow: hidden; border: 1px solid #ded8d1; border-radius: 22px; background: #f5f1eb; }
.bts-video__media { display: block; width: 100%; height: 100%; margin: 0; border-radius: 14px; object-fit: contain; background: #f5f1eb; }
.bts-video button, .bts-video-slider button { cursor: pointer; border: 0; box-shadow: none; font-family: inherit; }
.bts-video__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 76px; height: 76px; padding: 0 0 0 5px; border-radius: 50%; background: #fff; color: #bd642a; font-size: 30px; }
.bts-video__controls { position: absolute; right: 14px; bottom: 52px; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 24px; background: rgb(23 38 53 / 65%); }
.bts-video__controls button { min-width: 40px; height: 40px; border-radius: 50%; padding: 0 10px; background: transparent; color: #fff; font-size: 16px; }
.bts-video__controls button:first-child { background: #fff; color: #172635; }
.bts-video button:focus-visible, .bts-video-slider button:focus-visible, .bts-video-slider__track:focus-visible { outline: 3px solid #c98028; outline-offset: 3px; }
.bts-video__caption { margin: 10px 12px 0; text-align: right; font-size: 15px; color: #948777; }
.bts-video__error { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 12px; background: #fff; color: #172635; border-radius: 10px; }
.bts-video-slider { position: relative; }
.bts-video-slider__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bts-video-slider__track::-webkit-scrollbar { display: none; }
.bts-video-slider__item { flex: 0 0 calc((100% - 24px) / 2); min-width: 0; scroll-snap-align: start; }
.bts-video-slider .bts-video__frame { aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 24px; }
.bts-video-slider .bts-video__media { border-radius: 24px; object-fit: cover; }
.bts-video-slider .bts-video.is-playing .bts-video__media { object-fit: contain; background: #172635; }
.bts-video-slider .bts-video__play { width: 62px; height: 62px; background: rgb(255 255 255 / 25%); border: 2px solid #fff; color: #fff; font-size: 25px; }
.bts-video-slider .bts-video__caption { text-align: center; margin: 14px 0 0; color: #4b4b4b; font-size: 16px !important; font-style: normal !important; line-height: 1.5; font-weight: 600; }
.bts-video-slider__prev, .bts-video-slider__next { position: absolute; top: 44%; transform: translateY(-50%); width: 38px; height: 38px; padding: 0; border-radius: 50%; background: #fff; color: #888; line-height: 1; z-index: 2; }
.bts-video-slider__prev { left: 12px; }
.bts-video-slider__next { right: 12px; }
.bts-video-slider :is(.bts-video-slider__prev, .bts-video-slider__next)::after { content: ''; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.bts-video-slider .bts-video-slider__prev::after { transform: translate(calc(-50% + 2px), -50%) rotate(-135deg); }
.bts-video-slider .bts-video-slider__next::after { transform: translate(calc(-50% - 2px), -50%) rotate(45deg); }
.bts-video-slider button:disabled { opacity: .4; cursor: default; }
.bts-video-slider__dots { display: flex; justify-content: center; gap: 0; margin-top: 10px; }
.bts-video-slider__dots button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; background: transparent; }
.bts-video-slider__dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #d2cdc7; }
.bts-video-slider__dots button[aria-current="true"]::before { background: #172635; }
/* Keep Hello Elementor / global button styles out of this component, including hover/focus. */
:is(.bts-video, .bts-video-slider) button,
:is(.bts-video, .bts-video-slider) button:is(:hover, :focus, :active) {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: var(--bts-video-button-bg, transparent) !important;
  color: var(--bts-video-button-color, #172635) !important;
  border: var(--bts-video-button-border, 0) !important;
  border-radius: var(--bts-video-button-radius, 50%) !important;
  width: var(--bts-video-button-width, auto) !important;
  height: var(--bts-video-button-height, 40px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  padding: var(--bts-video-button-padding, 0) !important;
  margin: 0 !important;
  font-family: inherit !important;
  font-size: var(--bts-video-button-size, 16px) !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  display: grid !important;
  place-items: center !important;
  transition: none !important;
}
.bts-video .bts-video__play {
  --bts-video-button-bg: rgb(255 255 255 / 25%);
  --bts-video-button-color: #fff;
  --bts-video-button-border: 2px solid #fff;
  --bts-video-button-width: 62px;
  --bts-video-button-height: 62px;
  --bts-video-button-padding: 0 0 0 5px;
  --bts-video-button-size: 25px;
}
.bts-video-slider .bts-video .bts-video__play {
  --bts-video-button-bg: rgb(255 255 255 / 25%);
  --bts-video-button-color: #fff;
  --bts-video-button-border: 2px solid #fff;
  --bts-video-button-width: 62px;
  --bts-video-button-height: 62px;
  --bts-video-button-size: 25px;
}
.bts-video .bts-video__controls button { --bts-video-button-color: #fff; --bts-video-button-padding: 0 8px; --bts-video-button-height: 30px; --bts-video-button-size: 12px; }
.bts-video .bts-video__controls button:is(:first-child, :last-child) { --bts-video-button-width: 30px; --bts-video-button-padding: 0; --bts-video-button-size: 14px; }
.bts-video .bts-video__controls button:first-child { --bts-video-button-bg: #fff; --bts-video-button-color: #172635; }
.bts-video-slider :is(.bts-video-slider__prev, .bts-video-slider__next) {
  --bts-video-button-bg: #fff;
  --bts-video-button-color: #888;
  --bts-video-button-width: 38px;
  --bts-video-button-height: 38px;
  --bts-video-button-size: 0px;
}
.bts-video-slider .bts-video-slider__dots button { --bts-video-button-width: 18px; --bts-video-button-height: 24px; }
.bts-video .bts-video__caption { font-style: normal !important; }
:is(.bts-video, .bts-video-slider) button[hidden],
:is(.bts-video, .bts-video-slider) button[hidden]:is(:hover, :focus, :active) { display: none !important; }
@media (max-width: 600px) {
  .bts-video__frame { padding: 7px; border-radius: 16px; }
  .bts-video__play { width: 56px; height: 56px; font-size: 23px; }
  .bts-video__controls { right: 10px; bottom: 50px; gap: 2px; }
  .bts-video__controls button { min-width: 32px; height: 32px; font-size: 13px; }
  .bts-video-slider__track { gap: 12px; }
  .bts-video-slider__item { flex-basis: calc((100% - 12px) / 1.5); }
  .bts-video-slider__item:only-child { flex-basis: 100%; }
  .bts-video-slider .bts-video__caption { margin-top: 12px; }
  .bts-video-slider__prev, .bts-video-slider__next { width: 34px; height: 34px; }
  .bts-video .bts-video__play { --bts-video-button-width: 56px; --bts-video-button-height: 56px; --bts-video-button-size: 23px; }
  .bts-video .bts-video__controls button { --bts-video-button-height: 28px; --bts-video-button-size: 11px; }
  .bts-video .bts-video__controls button:is(:first-child, :last-child) { --bts-video-button-width: 28px; --bts-video-button-size: 13px; }
  .bts-video-slider :is(.bts-video-slider__prev, .bts-video-slider__next) { --bts-video-button-width: 34px; --bts-video-button-height: 34px; }
}
.bts-video.bts-video--single .bts-video__frame {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.bts-video.bts-video--single .bts-video__media { background: transparent !important; }
.bts-video .bts-video__poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0 !important;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}
.bts-video.bts-video--single .bts-video__poster { object-fit: contain; }
.bts-video .bts-video__play, .bts-video .bts-video__controls, .bts-video .bts-video__error { z-index: 1; }
html.bts-video-lightbox-open { overflow: hidden; }
.bts-video--single > .bts-video__frame,
.bts-video-slider .bts-video__frame { height: var(--bts-video-height-desktop, auto); }
@media (max-width: 600px) {
  .bts-video--single > .bts-video__frame,
  .bts-video-slider .bts-video__frame { height: var(--bts-video-height-mobile, auto); }
  .bts-video.bts-video--single .bts-video__frame,
  .bts-video.bts-video--single .bts-video__media,
  .bts-video-slider .bts-video__frame,
  .bts-video-slider .bts-video__media { border-radius: 10px; }
}
dialog.bts-video.bts-video-lightbox {
  position: fixed;
  inset: 0;
  width: min(1000px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  max-height: 88vh;
  max-height: 88dvh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: visible;
  background: transparent;
}
.bts-video-lightbox::backdrop { background: rgb(23 20 17 / 78%); backdrop-filter: blur(5px); }
.bts-video.bts-video-lightbox .bts-video__frame { aspect-ratio: auto; height: auto; padding: 0; border: 0; background: #172635; border-radius: 16px; }
.bts-video.bts-video-lightbox .bts-video__media { width: 100%; height: auto; max-height: 80vh; max-height: 80dvh; object-fit: contain; background: #172635; }
.bts-video.bts-video-lightbox .bts-video__poster { object-fit: contain; }
.bts-video.bts-video-lightbox .bts-video-lightbox__close {
  position: absolute;
  top: -16px;
  right: -12px;
  z-index: 3;
  --bts-video-button-width: 34px;
  --bts-video-button-height: 34px;
  --bts-video-button-bg: #fff;
  --bts-video-button-color: #172635;
  --bts-video-button-size: 24px;
}
.bts-video__media::-webkit-media-controls-fullscreen-button { display: none; }
