:root {
  --primary-color: #FF42A1;
  --secondary-color: #bc3ea1;
  --background-color: #fff;
  --text-color: #000;
  --text-muted: rgba(0, 0, 0, .5);
  --box-shadow-light: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04);
  --box-shadow-dark: 0 20px 25px -5px rgba(0, 0, 0, .3), 0 10px 10px -5px rgba(0, 0, 0, .6);
  --border-color-light: rgba(0, 0, 0, .15);
  --border-color-dark: rgba(0, 0, 0, .75);
  --background-muted: rgba(0, 0, 0, .1);
  --box-shadow-extra-light: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);
  --button-hover-scale: 1.2;
  --button-disabled-opacity: .5;
  --tooltip-background: #000;
  --tooltip-text-color: #fff;
  --border-color-hover: rgba(0, 0, 0, .35);
  --launch-background: #f8fafc;
  --tooltip-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  --box-shadow-launch: 0 0 10px rgba(0, 0, 0, .1);
  --button-scale-small: .5;
  --button-translate-y: 25%;
  --tooltip-triangle-color: #000;
  --autofill-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0) inset;
  --shortcuts-box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, .1), 0 -1px 2px 0 rgba(0, 0, 0, .06);
  --link-color: #667eea;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

nav,
footer {
  height: 100px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

footer {
  justify-content: end;
  align-items: end;
  color: var(--text-muted);
}

nav .left {
  flex: 1;
}

nav .middle {
  flex: 3;
}

nav .right {
  display: flex;
  justify-content: flex-end;
  flex: 2;
}

.user-avatar {
  height: 50px;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  background: var(--primary-color);
  color: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  font-weight: 700;
  box-shadow: var(--box-shadow-light);
}

.user-avatar small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-left: 4px;
}

.section-header {
  margin: 0 0 20px 0;
  border-radius: 3px;
  background: var(--primary-color);
  display: block;
}

h1 {
  font-weight: 800;
  text-align: center;
  margin: 20px 0 0 0;
}

input,
select,
textarea {
  display: block;
  margin: 5px 0 20px 0;
  padding: 5px 10px;
  width: 100%;
  box-sizing: border-box;
  background: var(--background-muted);
  box-shadow: var(--box-shadow-extra-light);
  border: none;
  border-radius: 5px;
  font-family: 'Open Sans', sans-serif;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-color);
  -webkit-box-shadow: var(--autofill-box-shadow);
  transition: background-color 5000s ease-in-out 0s;
}

#ai-guidance,
#convert-guidance {
  margin-top: 4px;
  font-size: 13px;
  line-height: 14px;
  font-weight: 400;
  margin-left: 4px;
  color: var(--text-muted);
}

#ai-submit,
#convert-submit-v3,
#convert-submit-v4 {
  font-size: 1em;
  font-weight: 600;
  margin: 12px 0 8px 0;
  border: 3px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 6px 12px;
}

#ai-submit:hover,
#convert-submit-v3:hover,
#convert-submit-v4:hover {
  background: var(--secondary-color);
  color: var(--background-color);
}

#convert-submit-v3,
#convert-submit-v4 {
  margin: 0;
}

#convert-guidance {
  margin-top: 4px;
  margin-bottom: 16px;
}

.ai-apply {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.ai-apply:hover {
  background: var(--primary-color);
  color: var(--background-color);
}

.ai-shortcut-suggestions {
  display: flex;
  flex-wrap: wrap;
}

.ai-shortcut-suggestions button.ai-apply.shortcut {
  font-size: 12px;
  padding: 2px 6px;
  margin: 2px 6px 4px 0px;
}

#video-player iframe {
  background-color: #000;
}

#video-player-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* compensate for border */
  padding-bottom: calc(56.25% - 4px);
  overflow: hidden;
  border: 4px solid var(--border-color-dark);
  margin-top: 20px;
  border-radius: 2px;
  box-shadow: var(--box-shadow-dark);
  box-sizing: border-box;
}

.video-player-base {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.video-player-base img {
  width: 33%;
  margin: 0 auto;
}

#video-player,
#video-player-placeholder {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1);
  position: absolute;
  top: 0;
  left: 0;
}

#video-player {
  background: transparent;
  z-index: 2;
}

#video-player-placeholder {
  background: var(--text-color);
  filter: saturate(1.5) hue-rotate(-49deg);
  animation: rotateHue 5s infinite;
}

@keyframes rotateHue {
  0% {
    filter: saturate(1.5) hue-rotate(-49deg);
  }

  50% {
    filter: saturate(1.5) hue-rotate(-80deg);
  }

  100% {
    filter: saturate(1.5) hue-rotate(-49deg);
  }
}

#video-player-placeholder video {
  width: 100%;
  height: 100%;
}

#video-player-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#video-player.loading {
  cursor: wait;
  animation: loading 1s infinite;
}

@keyframes loading {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

.video-player-editor {
  display: none;
  padding: 30px 20px 180px 20px;
  overflow: auto;
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  background: var(--background-color);
  height: 100vh;
  box-shadow: var(--box-shadow-light);
  box-sizing: border-box;
  z-index: 99;
}

.video-player-editor label {
  cursor: pointer;
}

#player-editor-toggle,
#player-draft-toggle,
#player-share-toggle,
#player-upload-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--background-color);
  background-image: url('/assets/v2/edit.svg');
  background-size: cover;
  background-position: center;
  box-shadow: var(--box-shadow-light);
  width: 30px;
  height: 30px;
  border-radius: 100%;
  box-sizing: border-box;
  overflow: hidden;
  transform: scale(1);
  transition: transform .3s;
  z-index: 100;
}

#player-draft-toggle {
  top: 46px;
  background-image: url('/assets/v2/draft.svg');
  background-size: 28px;
  background-repeat: no-repeat;
}

#player-share-toggle {
  top: 82px;
  background-image: url('/assets/v2/share.svg');
  border: 1px solid #fff;
}

#player-upload-toggle {
  top: 118px;
  background-image: url('/assets/v2/upload-video.svg');
  border: 1px solid #fff;
  color: #000;
}

#player-draft-toggle.active {
  display: none;
}

#player-draft-toggle:hover,
#player-editor-toggle:hover,
#player-share-toggle:hover,
#player-upload-toggle:hover {
  cursor: pointer;
  transform: scale(var(--button-hover-scale));
}

#player-editor-toggle.close {
  position: fixed;
  right: auto;
  left: 330px;
  background-image: url('/assets/v2/close.svg');
  box-shadow: var(--box-shadow-extra-light);
}

#search {
  display: flex;
  margin-top: 10px;
  background: var(--background-muted);
  box-shadow: var(--box-shadow-extra-light);
  border-radius: 20px;
}

#search-input {
  flex: 1;
  padding: 20px 10px 20px 0;
  border: none;
  border-radius: 20px;
  background: none;
  outline: none;
  margin: 0;
  box-shadow: none;
}

#search-button,
#model-toggle {
  background-color: var(--background-color);
  color: var(--background-color);
  width: 56px;
  height: 56px;
  border-radius: 100%;
  border: none;
  transform: scale(var(--button-scale-small)) translate(0, var(--button-translate-y));
  transition: transform .3s;
  background-image: url('/assets/v2/up-arrow-icon.svg');
  background-size: 26px;
  background-repeat: no-repeat;
  background-position: center;
  filter: invert(1);
}

#search-button:hover {
  cursor: pointer;
  transform: scale(.8);
}

#search-button:disabled {
  cursor: progress;
  opacity: var(--button-disabled-opacity);
  transform: scale(var(--button-scale-small)) translate(0, var(--button-translate-y));
}

#model-controller {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  user-select: none;
  cursor: pointer;
}

#model-controller * {
  user-select: none;
}

#model-controller.active #model {
  display: block;
}

#model-toggle {
  background-image: url(/assets/settings.svg);
  filter: invert(.5);
  background-color: var(--border-color-light);
  transform: scale(var(--button-scale-small)) translate(0, 0);
  background-image: none;
}

#model {
  display: none;
  position: absolute;
  top: -20px;
  left: 30px;
  background: var(--text-color);
  width: 225px;
  color: var(--background-color);
  font-size: 10px;
  box-shadow: 0px 2px 2px var(--border-color-dark);
}

.video-picker-video,
.video-selector-video,
.image-picker-img,
.image-selector-image {
  background-color: var(--border-color-dark);
  background-size: cover;
  background-position: center;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 5px 0 20px 0;
  border: 3px solid var(--border-color-light);
  border-radius: 5px;
  box-sizing: border-box;
  position: relative;
}

.video-picker-video,
.image-picker-img {
  transform: scale(1);
  transition: all .3s;
}

.video-picker-video:hover,
.image-picker-img:hover {
  border: 3px solid var(--border-color-hover);
  cursor: pointer;
  transform: scale(1.05);
}

.video-selector,
.image-selector {
  position: fixed;
  top: 0;
  left: 320px;
  width: 300px;
  height: 100vh;
  padding: 10px 20px 30px 10px;
  background: var(--background-color);
  box-sizing: border-box;
  box-shadow: var(--box-shadow-light);
  overflow: hidden;
  z-index: 99999;
}

.video-selector-video,
.image-selector-image {
  margin: 0;
  transform: scale(1);
  transition: all .3s;
  max-height: 200px;
  position: relative;
}

.video-selector-video:hover,
.image-selector-image:hover {
  cursor: pointer;
  transform: scale(1.1);
}

.video-picker-video video,
.video-selector-video video,
.image-selector-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

.video-selector-header,
.image-selector-header {
  text-align: right;
  padding: 10px;
}

.video-selector-content,
.image-selector-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 10px;
  overflow: auto;
  height: calc(100vh - 100px);
  padding: 10px 20px;
}

.video-selector-close,
.image-selector-close {
  background: var(--border-color-dark);
  color: var(--background-color);
  border: none;
  padding: 10px 15px;
  border-radius: 32px;
  transform: scale(1);
  transition: all .3s;
  display: inline-block;
  position: sticky;
  top: 20px;
}

.video-selector-close:hover,
.image-selector-close:hover {
  cursor: pointer;
  transform: scale(1.1) translate(0, -5%);
}

/* .video-selector-content {
  height: calc(100vh - 170px);
} */

.video-selector-add-with-ai h3 {
  margin: 10px 0 10px 0;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

.video-selector-add-with-ai h3 img {
  width: 16px;
  margin-right: 6px;
}

.video-selector-add-with-ai p {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  padding: 10px;
  background: var(--background-muted);
  border-radius: 3px;
  box-shadow: var(--box-shadow-extra-light);
  cursor: pointer;
}

.accordion-caret {
  float: right;
  width: 16px;
  height: 20px;
  text-align: right;
  background-image: url('/assets/v2/caret.svg');
  background-size: cover;
  background-position: center;
  opacity: .75;
  transition: all .3s;
}

.accordion-caret.open {
  transform: rotate(180deg);
}

.video-selector-ai-images.open,
.video-selector-ai-videos-pending.open {
  display: block;
}

.video-selector-ai-images,
.video-selector-ai-videos-pending {
  display: none;
}

.video-selector-ai-image {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border: 3px solid var(--border-color-light);
  border-radius: 3px; 
  box-sizing: border-box;
  transform: scale(1);
  transition: all .3s;
  overflow: hidden;
  margin-bottom: 10px;
}

.video-selector-ai-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
  filter: blur(0);
  transition: all .3s;
}

.video-selector-ai-image:hover {
  cursor: pointer;
  border: 3px solid var(--border-color-dark);
  transform: scale(1.05);
}

.video-selector-ai-videos-pending .video-selector-ai-image:after,
.video-selector-ai-image[data-animating="true"]:after,
.video-selector-ai-image:hover:after,
.video-selector-ai-image.processing:after {
  content: "Convert to AI Video";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  background: var(--border-color-dark);
  color: var(--background-color);
  padding: 10px 20px;
  border-radius: 5px;
  box-sizing: border-box;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}

.video-selector-ai-image.processing:after {
  content: "Processing...";
}

.video-selector-ai-image:hover img {
  filter: blur(2px);
}

.video-selector-ai-videos-pending .video-selector-ai-image,
.video-selector-ai-image[data-animating="true"],
.video-selector-ai-image.processing {
  pointer-events: none;
  cursor: wait;
  animation: fadeInAndOut 1s infinite;
}

.video-selector-ai-videos-pending .video-selector-ai-image:after,
.video-selector-ai-image[data-animating="true"]:after {
  content: "Creating Video...";
}

.video-selector-ai-videos-pending .video-selector-ai-image {
  animation: none;
}

.image-selector-controls {
  display: flex;
  justify-content: center;
  align-items: center;
}

#image-selector-upload,
#image-selector-search {
  padding: 12px;
  text-align: center;
  background: var(--background-color);
  color: var(--border-color-dark);
  border: 3px solid var(--border-color-light);
  border-radius: 5px;
  transition: all .3s;
  width: 50%;
  box-sizing: border-box;
  margin: 0 5px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#image-selector-upload:hover,
#image-selector-search:hover  {
  cursor: pointer;
  border: 3px solid var(--border-color-dark);
}

#image-selector-upload img,
#image-selector-search img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  object-position: center;
}

#image-selector-upload.loading,
#image-selector-search.loading  {
  cursor: wait;
  animation: loading 1s infinite;
}

.selected {
  box-sizing: border-box;
  border: 3px solid var(--border-color-dark);
}

label {
  background: var(--border-color-dark);
  padding: 5px 20px;
  margin-bottom: 5px;
  display: inline-block;
  color: var(--background-color);
  border-radius: 10px 0px;
  font-weight: 700;
  font-size: 12px;
}

textarea[rows="4"] {
  margin-bottom: 60px;
}

#aiEditor {
  margin-bottom: 10px;
}

.image-selector-image.current,
.video-selector-video.current {
  opacity: 0.35;
}

#video-player-messages {
  margin-top: 10px;
  min-height: 50px;
  line-height: 20px;
  font-size: 13px;
  /* text-transform: uppercase; */
  text-align: center;
  color: var(--text-muted);
  transition: opacity 0.5s, transform 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

#video-player-messages  {
  font-weight: 600;
}

#video-player-messages img {
  width: 12px;
  height: 12px;
  margin-right: 10px;
  opacity: 0.5;
  object-fit: contain;
  object-position: center;
  vertical-align: middle;
}

#video-player-messages:empty {
  opacity: 0;
  transform: translateY(50%);
}

#video-player-messages:not(:empty) {
  opacity: 1;
  transform: translateY(0%);
}

.tag {
  background: var(--primary-color);
  color: var(--background-color);
  padding: 0px 10px;
  font-weight: 700;
  margin: 5px;
  box-shadow: var(--box-shadow-light);
  border-radius: 5px;
  white-space: nowrap;
  display: inline-block;
}

.shortcuts {
  left: 0;
  position: fixed;
  bottom: 0;
  padding: 10px 20px;
  background: var(--background-color);
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
  box-shadow: var(--shortcuts-box-shadow);
  z-index: 3;
}

.shortcuts:before {
  content: 'Shortcuts';
  display: block;
  font-weight: 700;
  margin: 0 0 10px 0;
  background: var(--primary-color);
  color: var(--background-color);
  padding: 5px 20px;
  font-size: 12px;
  border-radius: 3px;
}

.shortcut {
  border: 2px solid var(--text-color);
  border-radius: 5px;
  background: var(--background-color);
  margin: 0 5px 5px 0;
  box-shadow: var(--box-shadow-light);
  padding: 2px 8px;
  color: var(--text-color);
  transition: all .3s;
}

.shortcut:hover {
  cursor: pointer;
  background: var(--text-color);
  color: var(--background-color);
}

.shortcut img {
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: middle;
  transition: all .3s;
  object-position: 0px -1px;
}

.shortcut:hover img {
  filter: invert(1);
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  max-width: 800px;
  margin-bottom: 30px;
}

.avatar-dark {
  /* width: 25%; */
  color: var(--secondary-color);
  border: 3px solid var(--secondary-color);
  background: var(--background-color);
  transition: all .3s;
}

.avatar-dark:hover {
  cursor: pointer;
  background: var(--secondary-color);
  color: var(--background-color);
}

.launch {
  padding: 20px;
  background: var(--launch-background);
  border-radius: 10px;
  box-shadow: var(--box-shadow-launch);
  max-width: 800px;
  margin: 0 auto 20px auto;
}

.cc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.launch input {
  background: var(--background-color);
  color: rgba(74, 85, 104, 1);
  box-shadow: var(--box-shadow-extra-light);
  margin: 0 0 20px 0;
}

.cc-fields input {
  padding: 14px;
  border-radius: 5px;
  font-size: 14px;
  margin: 0;
}

.launch-label {
  font-size: 14px;
  font-weight: 400;
}

.launch-label b {
  font-weight: 800;
}

.budget {
  display: flex;
  overflow: auto;
}

.budget-amt.user-avatar {
  flex: 1;
  background: var(--background-color);
  color: var(--secondary-color);
  border: 3px solid var(--secondary-color);
  padding: 0 10px;
  border-radius: 5px;
  font-weight: 700;
  text-align: center;
  margin: 0 10px 10px 0;
  height: 30px;
  transition: all .3s;
  box-shadow: none;
  box-sizing: border-box;
}

.budget-amt.user-avatar:hover,
.budget-amt.user-avatar.active  {
  cursor: pointer;
  background: var(--secondary-color);
  color: var(--background-color);
}

.date-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ccn {
  grid-column: 1 / span 2;
}

.hidden {
  display: none;
}

#customers {
  margin-bottom: 20px;
}

#voiceSelect,
.template-selector {
  margin-bottom: 60px;
}

.chat {
  position: relative;
}

/* signup */
.signup {
  background-color: rgba(255, 255, 255, .7)!important;
}

.form-v2 {
  display: flex;
  flex-direction: column;
  align-content: space-around;
  justify-content: center;
  align-items: center;
}

.form-v2 input {
  padding: 20px;
}

.signup #form.form-v2 {
  background: var(--background-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--box-shadow-launch);
}

#form.form-v2 {
  padding: 20px;
}

#form.form-v2 input {
  padding: 20px;
  margin: 10px 0;
  background-color: var(--background-muted);
}

#form.form-v2 h1 {
  color: var(--primary-color);
}

#form.form-v2 h1 {
  color: var(--primary-color);
  margin: 40px 20px 20px 20px;
}

/* signup */
.sign-up,
#form.form-v2 .signup-close,
#form.form-v2 .submit-signup {
  transition: all .3s;
}
.sign-up:hover,
#form.form-v2 .signup-close:hover,
#form.form-v2 .submit-signup:hover {
  cursor: pointer;
  transform: scale(1.1);
}
#form.form-v2 .signup-close {
  background: var(--border-color-dark);
  color: var(--background-color);
  border: none;
  padding: 10px 15px;
  border-radius: 32px;
  transform: scale(1);
  transition: all .3s;
}
#form.form-v2 .submit-signup {
  height: 50px;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  background: var(--primary-color);
  color: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  font-weight: 700;
  box-shadow: var(--box-shadow-light);
  border: none;
}
#form.form-v2 .reset {
  color: var(--text-muted);
}
/* sign out */
.user-avatar.sign-up.signed-in:hover::after {
  content: "Sign Out";
  position: absolute;
  top: 100%; /* Position below the avatar */
  left: 50%;
  transform: translateX(-50%);
  margin-top: 5px; /* Spacing between the avatar and the tooltip */
  background-color: var(--tooltip-background);
  color: var(--tooltip-text-color);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap; /* Prevent text wrapping */
  box-shadow: var(--tooltip-box-shadow);
}

.user-avatar.sign-up.signed-in:hover::before {
  content: "";
  position: absolute;
  top: calc(100% - 10px); /* Position the triangle closer to the tooltip */
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px; /* Size of the triangle */
  border-style: solid;
  border-color: transparent transparent var(--tooltip-triangle-color) transparent; /* Create a downward-facing triangle */
}

#sign-up-help {
  margin: 0;
}

.sign-up-pitch {
  color: var(--text-muted);
  max-width: 300px;
}

.signup {
  background-color: rgba(255, 255, 255, .9) !important;
  background-image: url(/assets/v2/bg.png) !important;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: top center;
  z-index: 999 !important;
  animation: zoomBackground .3s forwards !important;
}

@keyframes zoomBackground {
  0% {
    opacity: 0;
    background-size: 200%;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    background-size: 100%; /* Adjust this value for the zoom effect */
  }
}

#cust_sum .sales-message {
  display: none;
}

#cust_sum.low .sales-message.message--low,
#cust_sum.medium .sales-message.message--med,
#cust_sum.high .sales-message.message--high,
#cust_sum.default .sales-message.message--default {
  display: inline;
}

/* launch */
#targeting-tags {
  display: none;
  margin-bottom: 10px;
}

#targeting-tags .tag {
  padding: 4px 14px;
  margin-left: 0;
  margin: 0 10px 10px 0;
}

#customers .tag,
#targeting-tags .tag {
  background: var(--secondary-color);
  font-size: 14px;
}

#customers .tag {
  margin: 0 2px;
  padding: 0px 4px;
}

.targeting,
#customers {
  margin-bottom: 44px;
}

.targeting-input input {
  padding: 14px;
  border-radius: 5px;
  font-size: 14px;
  margin: 0 0 10px 0;
}

.targeting-input input {
  padding: 14px;
  border-radius: 5px;
  font-size: 14px;
  margin: 0 0 10px 0;
}

.targeting-input {
  position: relative;
}

#targeting-input-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background-color: #000;
  border-radius: 100%;
  border: none;
  margin: 8px;
  background-image: url('/assets/v2/update.svg');
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: center;
  transform: scale(1) rotate(0deg);
  transition: all .3s;
}

#targeting-input-btn:hover {
  cursor: pointer;
  transform: scale(1.1) rotate(180deg);
}

#targeting-input-btn:disabled {
  cursor: progress;
  opacity: var(--button-disabled-opacity);
}

.checkout-area {
  min-height: 86px;
}

.checkout {
  padding: 0 20px;
  box-shadow: inset 0px 2px 6px rgba(0, 0, 0, 0);
  transition: box-shadow .3s;
  animation: fadeInCheckout .3s forwards;
}

.promo-code-section {
  margin: 15px 0;
}

.promo-code-input {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
}

.promo-code-input input {
  flex: .25;
  padding: 8px;
  border: 1px solid var(--border-color-light);
  border-radius: 5px;
  height: 38px; 
  box-sizing: border-box;
}

.promo-code-input button {
  padding: 0 15px;
  background: var(--primary-color);
  color: var(--background-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  height: 38px; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-code-input button:hover {
  background: var(--secondary-color);
  color: var(--text-color);
}

.promo-message {
  font-size: 14px;
  margin-top: 5px;
}

.promo-message.success {
  color: var(--text-color);
}

.promo-message.error {
  color: var(--text-color);
}


@keyframes fadeInCheckout {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* launch animation test */
body.launch-open .checkout {
  background-image: url(/assets/v2/bg.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: top;
  box-shadow: inset 0px 10px 10px rgba(0, 0, 0, .2);
}

/* when this class activates zoom out the background */
body.launch-open .checkout {
  animation: zoomOutBackground .6s forwards;
}

@keyframes zoomOutBackground {
  0% {
    background-size: 200%;
  }
  100% {
    background-size: 100%;
  }
}

.cc-fields .user-avatar.avatar-dark {
  min-width: 200px;
}

/* stripe */
#card-element {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--background-color);
  color: rgba(74, 85, 104, 1);
  box-shadow: var(--box-shadow-extra-light);
  padding: 14px;
  border-radius: 5px;
  font-size: 14px;
  margin: 0 0 10px 0;
}

#payment-form {
  display: flex;
  min-height: 100px;
  flex-direction: column;
  justify-content: space-between;
}

#payment-form button[type="submit"] {
  font-size: 1em;
  max-width: 200px;
}

#launch,
#download {
  position: relative; /* Necessary for positioning the pseudo-element */
  min-width: 160px;
  margin: 0 14px;
  transform: translateX(0);
  transition: all 0.3s; /* Smooth hover effect */
}

.checkout-area.checkout-launch #launch {
  opacity: 1;
  transform: translateX(117px);
}

.checkout-area.checkout-download #download {
  opacity: 1;
  transform: translateX(-117px);
}

.checkout-area.checkout-launch #download {
  opacity: 0;
  pointer-events: none;
}

.checkout-area.checkout-download #launch {
  opacity: 0;
  pointer-events: none;
}

.checkout-area.checkout-download .budget {
  display: none;
}

.checkout-area.checkout-launch .download-submit {
  display: none;
}

.checkout-area.checkout-download .launch-submit {
  display: none;
}

.checkout-area.checkout-download .launch-label,
.checkout-area.checkout-download .targeting,
.checkout-area.checkout-download #budget-controller,
.checkout-area.checkout-download #customers,
.checkout-area.checkout-download .Logos_filmstrip_wrapper,
.checkout-area.checkout-download #custom-budget-amount  {
  display: none;
}

@media screen and (max-width: 920px) {
  #launch,
  #download {
    padding: 6px;
    margin: 0 6px;
    height: 26px;
    min-width: 120px;
  }

  .checkout-area.checkout-launch #launch {
    transform: translateX(75px);
  }

  .checkout-area.checkout-download #download {
    transform: translateX(-75px);
  }
}

#download-controller .user-avatar {
  pointer-events: none;
  display: inline-block;
}

.checkout-area.checkout-download #launch-messages {
  display: none;
}

.checkout-area.checkout-launch #download-messages,
.checkout-area.checkout-launch #download-controller {
  display: none;
}

.checkout-area.checkout-download .checkout {
  min-height: 400px;
}

.checkout #launch::after {
  content: "Click Here To Launch Your AD"; /* The tooltip text */
  position: absolute;
  bottom: calc(100% + 10px); /* Position above the element */
  left: 50%; /* Center the tooltip horizontally */
  transform: translateX(-50%);
  background-color: #333; /* Tooltip background */
  color: #fff; /* Tooltip text color */
  padding: 5px 10px; /* Tooltip padding */
  border-radius: 4px; /* Rounded corners */
  white-space: nowrap; /* Prevent text wrapping */
  box-shadow: var(--box-shadow-dark); /* Optional shadow */
  pointer-events: none; /* Prevent mouse interaction with the tooltip */
  transition: opacity 0.3s ease; /* Smooth appearance */
  opacity: 0;
}

.checkout #launch::before{
  content: ""; /* Empty content for the triangle */
  position: absolute;
  bottom: calc(100% - 6px); /* Align the triangle just above the element */
  left: 50%; /* Center the triangle horizontally */
  transform: translateX(-50%);
  border-width: 8px; /* Size of the triangle */
  border-style: solid;
  border-color: #333 transparent transparent transparent; /* Triangle pointing up */
  transition: opacity 0.1s ease; /* Smooth appearance, but faster */
  opacity: 0;
  z-index: 2;
}

.checkout.helper #launch::after,
.checkout.helper #launch::before {
  opacity: 1; /* Show the tooltip and triangle */
}

/* nav */
nav {
  display: flex;
  align-items: center;
}

nav a  {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 26px;
  font-weight: 700;
  display: inline-flex;
}

body nav a:hover {
  color: var(--secondary-color);
}

.home .middle a:nth-child(1) {
  color: var(--primary-color);
}

.my-ads .middle a:nth-child(2) {
  color: var(--primary-color);
}

/* mobile */
@media (max-width: 920px) {
  h1 {
    font-size: 1.4em;
  }
  .video-selector,
  .image-selector {
    left: 20px;
    width: 280px;
    padding: 0 0 30px 0;
  }
  .video-selector-header,
  .image-selector-header {
    text-align: center;
  }
  .tag, #targeting-tags .tag,
  .targeting-input input {
    margin: 0 5px 5px 0;
    font-size: 12px;
  }
  #video-player-messages .label {
    margin: 0 5px 5px 5px;
  }
  .user-avatar.sign-up {
    font-size: 12px;
    padding: 0 12px;
    height: 35px;
  }
  .user-avatar.user-credits {
    font-size: 12px;
    padding: 0 12px;
    height: 35px;
    margin-left: 12px;
  }
  .middle {
    position: absolute;
    top: 100px;
    width: calc(100% - 40px);
    text-align: center;
  }

  .middle a {
    margin: 0 10px;
  }
}

/* hack */
.left a:first-child {
  margin-left: 0;
  transform: translate(0, -3px);
}

@media screen and (max-width: 920px) {
  .left a:first-child {
    transform: translate(0, 0);
  }
}

/* non clickable editors */
.section-header,
label[for="Music"],
label[for="Persistent-QR-Code"],
label[for="Location-Business-Info.fill_color"],
#streamr-voice-selector label {
  pointer-events: none;
}

@media screen and (max-width: 920px) {
  .left a:first-child {
    transform: translate(0, 0);
  }
}

/* custom budget */
div#custom-budget-amount {
  position: relative;
  display: none;
}

#custom-budget-amount.active {
  display: block;
  animation: fadeIn .3s forwards;
}

#custom-budget-amount label {
  position: absolute;
  top: 0;
  left: 0;
  height: 30px;
  width: 30px;
  font-size: 20px;
  margin: 0;
  padding: 0;
  display: flex;
  background: transparent;
  color: var(--secondary-color);
  flex-direction: column;
  align-content: center;
  justify-content: space-evenly;
  align-items: center;
}

#custom-budget-amount input[type="number"] {
  height: 30px;
  margin-bottom: 20px;
  padding-left: 22px;
  width: calc(100% - 12px);
  font-weight: 800;
  font-size: 1.2em;
  color: var(--secondary-color);
}


ul.fadeInChat li {
  opacity: 0; /* Start hidden */
  animation: fadeInChat 1s ease-in forwards;
}

ul.fadeInChat li:nth-child(1) {
  animation-delay: 0s;
}

ul.fadeInChat li:nth-child(2) {
  animation-delay: 0.5s;
}

ul.fadeInChat li:nth-child(3) {
  animation-delay: 1s;
}

ul.fadeInChat.fadeInLater li:nth-child(1) {
  animation-delay: 1.5s;
}

ul.fadeInChat.fadeInLater li:nth-child(2) {
  animation-delay: 2s;
}

ul.fadeInChat.fadeInLater li:nth-child(3) {
  animation-delay: 2.5s;
}

@keyframes fadeInChat {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


.launch.loading {
  animation: fadeInAndOut 1s infinite;
}

@keyframes fadeInAndOut {
  0% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.25;
  }
}

.reachtv-faq,
.adgood-faq {
  display: none;
}

.nscreenads-about {
  display: none;
}


#player-draft-toggle.tooltip,
#player-share-toggle.tooltip,
#player-upload-toggle.tooltip,
#player-editor-toggle:not(.close).tooltip,
#player-draft-toggle:hover,
#player-share-toggle:hover,
#player-upload-toggle:hover,
#player-editor-toggle:not(.close):hover {
  width: 130px;
  padding: 0 10px;
  background-repeat: no-repeat;
  background-size: 30px;
  border-radius: 2px;
  background-position: right;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
}

#player-draft-toggle.tooltip,
#player-draft-toggle:hover {
  width: 202px;
  background-color: #fff;
  background-size: 28px;
  background-position: 173px center;
}

#player-share-toggle.tooltip,
#player-share-toggle:hover {
  width: 144px;
  background-color: #fff;
  background-size: 28px;
  background-position: 114px 0px;
}

#player-upload-toggle.tooltip,
#player-upload-toggle:hover {
  width: 175px;
  background-color: #fff;
  background-size: 28px;
  background-position: 145px 0px;
}

#player-draft-toggle:hover,
#player-share-toggle:hover,
#player-upload-toggle:hover,
#player-editor-toggle:not(.close):hover {
  transform: none !important;
}

#player-draft-toggle.tooltip::before,
#player-share-toggle.tooltip::before,
#player-upload-toggle.tooltip::before,
#player-editor-toggle.tooltip:not(.close)::before,
#player-draft-toggle:hover::before,
#player-share-toggle:hover::before,
#player-upload-toggle:hover::before,
#player-editor-toggle:not(.close):hover::before {
  content: "edit this ad";
  font-weight: 600;
}

#player-draft-toggle.tooltip::before,
#player-draft-toggle:hover::before {
  content: "view and save drafts";
}

#player-share-toggle.tooltip::before,
#player-share-toggle:hover::before {
  content: "share this ad";
}

#player-upload-toggle.tooltip::before,
#player-upload-toggle:hover::before {
  content: "upload your own";
}

.video-player-drafts-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .5);
  z-index: 999999;
  display: none;
}

.video-player-drafts-modal.active {
  display: block;
  animation: fadeIn .3s forwards;
}

.video-player-sharing-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.5);
  z-index: 9999999;
  display: none;
}

.video-player-sharing-modal.active {
  display: block;
  animation: fadeIn .3s forwards;
}

.video-player-sharing {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 650px;
  height: auto;
  max-height: 600px;
  overflow: auto;
  transform: translate(-50%, -50%);
  background: var(--background-color);
  color: var(--text-color);
  border-radius: 3px;
}

#video-player-sharing-link {
  width: calc(100% - 20px);
  margin: 10px 10px 0 10px;
  padding: 10px 10px 0 10px;
  box-sizing: border-box;
  position: relative;
}

#video-player-sharing-link button,
#video-player-sharing-create-preview {
  position: absolute;
  top: 27px;
  right: 21px;
  background: var(--background-color);
  color: var(--text-color);
  border: 3px solid var(--text-color);
  padding: 4px 8px;
  font-weight: 800;
  border-radius: 3px;
  transition: all .3s;
  font-size: 1em;
  font-family: 'Open Sans', sans-serif;
  font-weight: 800;
  cursor: pointer;
}

#video-player-sharing-link button:hover,
#video-player-sharing-create-preview:hover {
  background: var(--text-color);
  color: var(--background-color);
  border: 3px solid var(--text-color);
}

#video-player-sharing-create-preview:hover img {
  filter: invert(1);
}

#video-player-sharing-create-preview {
  position: relative;
  top: auto;
  right: auto;
  margin: 0 20px 20px 20px;
  display: flex;
}

#video-player-sharing-create-preview img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  object-position: center;
  margin-right: 4px;
}

.email-preview {
  position: relative;
  display: none;
}

.email-preview button {
  position: absolute;
  top: 0;
  right: 20px;
  background: var(--background-color);
  color: var(--text-color);
  border: 1px solid var(--text-color);
  padding: 4px 8px;
  font-weight: 800;
  border-radius: 3px;
  transition: all .3s;
  font-size: 1em;
  font-family: 'Open Sans', sans-serif;
  display: flex;
}

.email-preview button:hover {
  filter: invert(1);
  cursor: pointer;
}

.email-preview button img {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

#video-player-sharing-preview-gif {
  padding: 30px 10px 20px 10px;
  box-sizing: border-box;
  background: var(--background-muted);
  color: var(--text-color);
  margin: 20px;
  border-radius: 6px;
  box-shadow: var(--box-shadow-light);
}

#video-player-sharing-preview-gif .email-link-large {
  font-weight: 800;
  font-size: 1.2em;
  margin-bottom: 10px;
}

#video-player-sharing-preview-gif .email-link-small {
  font-weight: 400;
  font-size: 1em;
  margin-bottom: 10px;
}

#video-player-sharing-preview-gif p {
  margin: 0 0 10px 0;
  padding: 0;
}

#video-player-sharing-preview-gif img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}

#video-player-sharing-link input {
  padding: 20px;
}

#video-player-sharing-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--background-color);
  border: 3px solid var(--text-color);
  color: var(--text-color);
  padding: 4px 8px;
  font-weight: 800;
  border-radius: 3px;
  font-size: 1em;
  font-family: 'Open Sans', sans-serif;
  font-weight: 800;
  transition: all .3s;
  cursor: pointer;
}

#video-player-sharing-close:hover {
  background: var(--text-color);
  color: var(--background-color);
  border: 3px solid var(--text-color);
}

#video-player-sharing-header {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 0;
  font-weight: 800;
  font-size: 1.4em;
}

.video-player-drafts {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  max-width: 700px;
  max-height: 600px;
  background: var(--background-color);
  padding: 20px;
  box-sizing: border-box;
  box-shadow: var(--box-shadow-light);
  border-radius: 5px;
}

#video-player-drafts-items {
  height: calc(100% - 50px);
  overflow: auto;
}

#video-player-drafts-items.loading {
  animation: fadeInAndOut 1s infinite;
}

#video-player-drafts-items h4 {
  padding: 10px;
  margin: 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

#video-player-drafts-header {
  text-align: center;
  margin: 20px auto 0 auto;
  font-size: 1.4em;
  font-weight: 800;
}

#video-player-drafts-create {
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  max-width: 800px;
}

.video-player-draft-info {
  padding: 15px;
}

.video-player-draft-header-title {
  font-weight: 600;
}

.video-player-draft-image {
  width: 200px;
  height: 115px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(0, 0, 0, .06);
  position: relative;
}

.video-player-draft-image img,
.video-player-draft-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-player-draft {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: space-evenly;
  align-items: center;
  padding: 10px;
  margin: 10px;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: all .3s;
}

.video-player-draft:hover {
  cursor: pointer;
  transform: scale(1.02);
}

.video-player-draft .video-player-draft-image:after {
  content: "Load Draft";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  font-size: 1em;
  font-weight: 800;
  opacity: 0;
  transition: all .3s;
}

.video-player-draft:hover .video-player-draft-image:after {
  opacity: 1;
}

button#video-player-drafts-close {
  position: absolute;
  top: 0;
  right: 0;
  margin: 5px;
  background: #fff;
  border: 3px solid #000;
  color: #000;
  padding: 4px 20px;
  border-radius: 5px;
  box-shadow: var(--box-shadow-light);
  transition: all .3s;
  font-weight: 800;
  font-family: 'Open Sans', sans-serif;
  font-size: 1em;
  transition: all .3s;
}

button#video-player-drafts-close:hover {
  cursor: pointer;
  background: #000;
  color: #fff;
}

.video-player-draft-save {
  padding: 4px 20px;
  border: 3px solid green;
  color: green;
  font-weight: 800;
  border-radius: 5px;
  font-size: 1em;
  margin: 0 5px;
  transition: all .3s;
}

.video-player-draft-delete {
  padding: 4px 20px;
  border: 3px solid red;
  color: red;
  font-weight: 800;
  border-radius: 5px;
  font-size: 1em;
  margin: 0 5px;
  transition: all .3s;
}

.video-player-draft-save:hover {
  cursor: pointer;
  background: green;
  color: #fff;
  border: 3px solid green;
}

.video-player-draft-delete:hover {
  cursor: pointer;
  background: red;
  color: #fff;
  border: 3px solid red;
}

.color-picker {
  width: 110px;
  height: 60px;
}

input.logo-upload-input.loading {
  animation: fadeInAndOut 1s infinite;
  cursor: wait;
}

.logo-picker-img-wrapper {
  width: 50%;
  padding-bottom: calc(56.25% / 2);
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, .5);
}

.logo-picker-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  transition: all .3s;
}

.logo-picker-img-wrapper img:hover {
  transform: scale(1.02);
}

footer a {
  color: #bc3ea1;
}

.streamr-notification {
  position: fixed;
  top: 75px;
  width: 100%;
  max-width: 300px;
  padding: 20px;
  background: var(--secondary-color);
  left: 50%;
  transform: translate(-50%, 0px);
  color: var(--background-color);
  border-radius: 20px;
  box-shadow: var(--box-shadow-dark);
  z-index: 999999999;
  font-weight: 800;
  text-align: center;
  animation: fadeInUpThenOut 3s forwards;
  cursor: pointer;
}

/* .streamr-notification-message {} */

@keyframes fadeInUpThenOut {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, 0px);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 0px);
  }
  75% {
    opacity: 1;
    transform: translate(-50%, 0px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

@media screen and (max-width: 740px) {
  .video-player-drafts {
    max-width: calc(100% - 40px);
  }
  .video-player-draft {
    flex-direction: column;
    text-align: center;
  }
  #video-player-drafts-header {
    margin: 40px auto 10px auto;
  }
  #video-player-drafts-items {
    height: calc(100% - 80px);
  }
}



/* templates controller */
/* todo: make this dynamic via js hide/show logic */

/* by default hide any Convert elements */
label[for="Short-Script"],
input#Short-Script,
textarea#script-to-speech-editor-Short-Script,
label[for="Frame-1-Text"],
input#Frame-1-Text,
textarea#text-editor-Frame-1-Text {
  display: none;
}

/* show select Convert elements */
body[data-template="Convert"] label[for="Short-Script"],
body[data-template="Convert"] label[for="Frame-1-Text"] {
  display: inline-block;
}

body[data-template="Convert"] input#Short-Script,
body[data-template="Convert"] textarea#script-to-speech-editor-Short-Script,
body[data-template="Convert"] input#Frame-1-Text,
body[data-template="Convert"] textarea#text-editor-Frame-1-Text {
  display: block;
}

/* Hide Engage elements */
body[data-template="Convert"] label[for="Frame-1-Audio"],
body[data-template="Convert"] label[for="Frame-2-Audio"],
body[data-template="Convert"] label[for="Frame-3-Audio"],
body[data-template="Convert"] label[for="Frame-4-Audio"],
body[data-template="Convert"] #text-to-speech-editor-Frame-1-Audio,
body[data-template="Convert"] #text-to-speech-editor-Frame-2-Audio,
body[data-template="Convert"] #text-to-speech-editor-Frame-3-Audio,
body[data-template="Convert"] #text-to-speech-editor-Frame-4-Audio {
  display: none;
}

/* Some Convert custom styling */
body[data-template="Convert"] label.section-header {
  margin-top: 60px;
}

body[data-template="Convert"] label.section-header:first-of-type {
  margin-top: 0;
}

label[for="Short-Script"] {
  /* prevent click scrolling on script */
  pointer-events: none;
}

.show-hide-selector {
  margin: -30px 0 15px 80%;
  width: 20%;
  font-size: 10px;
  font-weight: 600;
  transform: translate(0px, 10px);
  padding: 2px;
}

/* social */
/* todo: config based by options maybe */
body[data-template="Social30"] label[for="Frame-1-Audio"],
body[data-template="Social30"] label[for="Frame-2-Audio"],
body[data-template="Social30"] label[for="Frame-3-Audio"],
body[data-template="Social30"] label[for="Frame-4-Audio"],
body[data-template="Social30"] label[for="Frame-4-Text"],
body[data-template="Social30"] label[for="Tagline"],
body[data-template="Social30"] label[for="Location"],
body[data-template="Social30"] label[for="Music"],
body[data-template="Social30"] #text-to-speech-editor-Frame-1-Audio,
body[data-template="Social30"] #text-to-speech-editor-Frame-2-Audio,
body[data-template="Social30"] #text-to-speech-editor-Frame-3-Audio,
body[data-template="Social30"] #text-to-speech-editor-Frame-4-Audio,
body[data-template="Social30"] #text-editor-Frame-4-Text,
body[data-template="Social30"] #text-editor-Tagline,
body[data-template="Social30"] #text-editor-Location,
body[data-template="Social30"] #streamr-voice-selector,
body[data-template="Social30"] #ai-editor-container,
body[data-template="Social30"] .music-picker,
body[data-template="Social30"] .section-header:not(.header--change-template) {
  display: none;
}

body[data-template="Social30"] .shortcuts .shortcut:nth-child(1),
body[data-template="Social30"] .shortcuts .shortcut:nth-child(2),
body[data-template="Social30"] .shortcuts .shortcut:nth-child(3) {
  display: none;
}

body[data-template="Social15"] label[for="Frame-1-Audio"],
body[data-template="Social15"] label[for="Frame-2-Audio"],
body[data-template="Social15"] label[for="Frame-3-Audio"],
body[data-template="Social15"] label[for="Frame-4-Audio"],
body[data-template="Social15"] label[for="Frame-4-Text"],
body[data-template="Social15"] label[for="Tagline"],
body[data-template="Social15"] label[for="Location"],
body[data-template="Social15"] label[for="Music"],
body[data-template="Social15"] #text-to-speech-editor-Frame-1-Audio,
body[data-template="Social15"] #text-to-speech-editor-Frame-2-Audio,
body[data-template="Social15"] #text-to-speech-editor-Frame-3-Audio,
body[data-template="Social15"] #text-to-speech-editor-Frame-4-Audio,
body[data-template="Social15"] #text-editor-Frame-4-Text,
body[data-template="Social15"] #text-editor-Tagline,
body[data-template="Social15"] #text-editor-Location,
body[data-template="Social15"] #streamr-voice-selector,
body[data-template="Social15"] #ai-editor-container,
body[data-template="Social15"] .music-picker,
body[data-template="Social15"] .section-header:not(.header--change-template) {
  display: none;
}

body[data-template="Social15"] .shortcuts .shortcut:nth-child(1),
body[data-template="Social15"] .shortcuts .shortcut:nth-child(2),
body[data-template="Social15"] .shortcuts .shortcut:nth-child(3) {
  display: none;
}

body[data-template="Social15"] label[for="Frame-5-Image"],
body[data-template="Social15"] label[for="Frame-6-Image"],
body[data-template="Social15"] #image-picker-Frame-5-Image,
body[data-template="Social15"] #image-picker-Frame-6-Image {
  display: none;
}

body[data-template="Social30"] .header--change-template,
body[data-template="Social15"] .header--change-template {
  margin-top: 60px;
}

body[data-template="Social30"] .video-player-editor,
body[data-template="Social15"] .video-player-editor {
  padding: 30px 20px 80px 20px;
}

body[data-template="Social30"] #video-player-settings #text-editor-Frame-1-Text,
body[data-template="Social15"] #video-player-settings #text-editor-Frame-1-Text  {
 display: block;
}

body[data-template="Social30"] #video-player-settings label[for="Frame-1-Text"],
body[data-template="Social15"] #video-player-settings label[for="Frame-1-Text"] {
 display: inline-block;
}

body[data-template="Engage"] label[for="Frame-5-Image"],
body[data-template="Engage"] label[for="Frame-6-Image"],
body[data-template="Engage"] #image-picker-Frame-5-Image,
body[data-template="Engage"] #image-picker-Frame-6-Image {
  display: none;
}

body[data-template="EngagePro"] label[for="Frame-5-Image"],
body[data-template="EngagePro"] label[for="Frame-6-Image"],
body[data-template="EngagePro"] #image-picker-Frame-5-Image,
body[data-template="EngagePro"] #image-picker-Frame-6-Image {
  display: none;
}

body[data-template="Convert"] label[for="Frame-5-Image"],
body[data-template="Convert"] label[for="Frame-6-Image"],
body[data-template="Convert"] #image-picker-Frame-5-Image,
body[data-template="Convert"] #image-picker-Frame-6-Image {
  display: none;
}

body[data-template="Engage"] label[for="Frame-5-Video"],
body[data-template="Engage"] label[for="Frame-6-Video"],
body[data-template="Engage"] #image-picker-Frame-5-Video,
body[data-template="Engage"] #image-picker-Frame-6-Video,
body[data-template="Engage"] #video-picker-Frame-5-Video,
body[data-template="Engage"] #video-picker-Frame-6-Video {
  display: none;
}

body[data-template="EngagePro"] label[for="Frame-5-Video"],
body[data-template="EngagePro"] label[for="Frame-6-Video"],
body[data-template="EngagePro"] #image-picker-Frame-5-Video,
body[data-template="EngagePro"] #image-picker-Frame-6-Video,
body[data-template="EngagePro"] #video-picker-Frame-5-Video,
body[data-template="EngagePro"] #video-picker-Frame-6-Video {
  display: none;
}

body[data-template="EngageLite"] label[for="Frame-5-Video"],
body[data-template="EngageLite"] label[for="Frame-6-Video"],
body[data-template="EngageLite"] #image-picker-Frame-5-Video,
body[data-template="EngageLite"] #image-picker-Frame-6-Video,
body[data-template="EngageLite"] #video-picker-Frame-5-Video,
body[data-template="EngageLite"] #video-picker-Frame-6-Video {
  display: none;
}

body[data-template="Convert"] label[for="Frame-5-Video"],
body[data-template="Convert"] label[for="Frame-6-Video"],
body[data-template="Convert"] #image-picker-Frame-5-Video,
body[data-template="Convert"] #image-picker-Frame-6-Video,
body[data-template="Convert"] #video-picker-Frame-5-Video,
body[data-template="Convert"] #video-picker-Frame-6-Video {
  display: none;
}

body[data-template="Engage"] #text-to-speech-editor-Frame-4-Audio,
body[data-template="Convert"] #text-to-speech-editor-Frame-4-Audio {
  margin-bottom: 20px;
}

body[data-template="Engage"] .logo-picker,
body[data-template="Convert"] .logo-picker {
  margin-bottom: 60px;
}

/* custom uploads */
#video-player-settings #Custom-Video,
#video-player-settings #custom-video-editor-video,
#video-player-settings label[for="Custom-Video"] {
  display: none;
}

/* custom 30s */
body[data-template="Custom30"] #video-player-settings * { 
  display: none;
}

body[data-template="Custom30"] #video-player-settings label[for="Custom-Video"],
body[data-template="Custom30"] #video-player-settings #custom-video-editor-video,
body[data-template="Custom30"] #video-player-settings #template-selector-container,
body[data-template="Custom30"] #video-player-settings #template-selector-container *,
body[data-template="Custom30"] #video-player-settings #text-editor-QR-Code,
body[data-template="Custom30"] #video-player-settings #show-hide-selector-QR-Code,
body[data-template="Custom30"] #video-player-settings #show-hide-selector-QR-Code * {
  display: block;
}

body[data-template="Custom30"] #video-player-settings label[for="QR-Code"],
body[data-template="Custom30"] #video-player-settings label[for="Custom-Video"] {
  display: inline-block;
}

body[data-template="Custom30"] #video-player-settings #custom-video-editor-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--text-color);
  display: block;
  cursor: pointer;
  box-sizing: border-box;
  margin-bottom: 40px;
  transition: transform .3s;
  transform: scale(1);
}

body[data-template="Custom30"] #video-player-settings #custom-video-editor-video:hover {
  transform: scale(1.02);
}

/* custom 15s */
body[data-template="Custom15"] #video-player-settings * { 
  display: none;
}

body[data-template="Custom15"] #video-player-settings label[for="Custom-Video"],
body[data-template="Custom15"] #video-player-settings #custom-video-editor-video,
body[data-template="Custom15"] #video-player-settings #template-selector-container,
body[data-template="Custom15"] #video-player-settings #template-selector-container *,
body[data-template="Custom15"] #video-player-settings #text-editor-QR-Code,
body[data-template="Custom15"] #video-player-settings #show-hide-selector-QR-Code,
body[data-template="Custom15"] #video-player-settings #show-hide-selector-QR-Code * {
  display: block;
}


body[data-template="Custom15"] #video-player-settings label[for="QR-Code"],
body[data-template="Custom15"] #video-player-settings label[for="Custom-Video"] {
  display: inline-block;
}

body[data-template="Custom15"] #video-player-settings #custom-video-editor-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--text-color);
  display: block;
  cursor: pointer;
  box-sizing: border-box;
  margin-bottom: 40px;
  transition: transform .3s;
  transform: scale(1);
}

body[data-template="Custom15"] #video-player-settings #custom-video-editor-video:hover {
  transform: scale(1.02);
}

/* PIP */
/* only for pip */
label[for="Background.fill_color"],
#Background.fill_color {
  display: none;
}

/* pip 30 */
body[data-template="PIP30"] #video-player-settings * { 
  display: none;
}

body[data-template="PIP30"] #video-player-settings label[for="Custom-Video"],
body[data-template="PIP30"] #video-player-settings #custom-video-editor-video,
body[data-template="PIP30"] #video-player-settings #template-selector-container,
body[data-template="PIP30"] #video-player-settings #template-selector-container *,
body[data-template="PIP30"] #video-player-settings #text-editor-QR-Code,
body[data-template="PIP30"] #video-player-settings #show-hide-selector-QR-Code,
body[data-template="PIP30"] #video-player-settings #show-hide-selector-QR-Code * {
  display: block;
}

body[data-template="PIP30"] #video-player-settings label[for="QR-Code"],
body[data-template="PIP30"] #video-player-settings label[for="Custom-Video"] {
  display: inline-block;
}

body[data-template="PIP30"] #video-player-settings label[for="Location-Business-Info.fill_color"],
body[data-template="PIP30"] #video-player-settings label[for="Title"],
body[data-template="PIP30"] #video-player-settings label[for="Tagline"],
body[data-template="PIP30"] #video-player-settings label[for="Brand-Logo"],
body[data-template="PIP30"] #video-player-settings label[for="Business-Website"] {
  display: inline-block;
}

body[data-template="PIP30"] #video-player-settings .color-picker,
body[data-template="PIP30"] #video-player-settings #text-editor-Title,
body[data-template="PIP30"] #video-player-settings #text-editor-Tagline,
body[data-template="PIP30"] #video-player-settings #text-editor-Business-Website {
  display: block;
}

body[data-template="PIP30"] #video-player-settings .logo-picker, 
body[data-template="PIP30"] #video-player-settings .logo-upload-input, 
body[data-template="PIP30"] #video-player-settings .logo-picker img {
  display: block;
}

body[data-template="PIP30"] #video-player-settings label[for="Title.font_family"],
body[data-template="PIP30"] #video-player-settings .font-picker,
body[data-template="PIP30"] #video-player-settings .font-picker * {
  display: inline-block;
}

/* 15s PIP */
body[data-template="PIP15"] #video-player-settings * { 
  display: none;
}

body[data-template="PIP15"] #video-player-settings label[for="Custom-Video"],
body[data-template="PIP15"] #video-player-settings #custom-video-editor-video,
body[data-template="PIP15"] #video-player-settings #template-selector-container,
body[data-template="PIP15"] #video-player-settings #template-selector-container *,
body[data-template="PIP15"] #video-player-settings #text-editor-QR-Code,
body[data-template="PIP15"] #video-player-settings #show-hide-selector-QR-Code,
body[data-template="PIP15"] #video-player-settings #show-hide-selector-QR-Code * {
  display: block;
}

body[data-template="PIP15"] #video-player-settings label[for="QR-Code"],
body[data-template="PIP15"] #video-player-settings label[for="Custom-Video"] {
  display: inline-block;
}

body[data-template="PIP15"] #video-player-settings label[for="Location-Business-Info.fill_color"],
body[data-template="PIP15"] #video-player-settings label[for="Title"],
body[data-template="PIP15"] #video-player-settings label[for="Tagline"],
body[data-template="PIP15"] #video-player-settings label[for="Brand-Logo"],
body[data-template="PIP15"] #video-player-settings label[for="Business-Website"] {
  display: inline-block;
}

body[data-template="PIP15"] #video-player-settings .color-picker,
body[data-template="PIP15"] #video-player-settings #text-editor-Title,
body[data-template="PIP15"] #video-player-settings #text-editor-Tagline,
body[data-template="PIP15"] #video-player-settings #text-editor-Business-Website {
  display: block;
}

body[data-template="PIP15"] #video-player-settings .logo-picker, 
body[data-template="PIP15"] #video-player-settings .logo-upload-input, 
body[data-template="PIP15"] #video-player-settings .logo-picker img {
  display: block;
}

body[data-template="PIP15"] #video-player-settings label[for="Title.font_family"],
body[data-template="PIP15"] #video-player-settings .font-picker,
body[data-template="PIP15"] #video-player-settings .font-picker * {
  display: inline-block;
}

/* custom video editor */
body[data-template="PIP30"] #video-player-settings #custom-video-editor-video,
body[data-template="PIP15"] #video-player-settings #custom-video-editor-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--text-color);
  display: block;
  cursor: pointer;
  box-sizing: border-box;
  margin-bottom: 40px;
  transition: transform .3s;
  transform: scale(1);
}
/* end PIP */

.video-player-upload-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none; /* Hidden by default */
  animation: fadeInUpload 0.3s ease-in-out;
}
@keyframes fadeInUpload {
  from { opacity: 0; }
  to { opacity: 1; }
}
.video-player-upload {
  width: 100%;
  max-width: 400px;
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 60px 20px 30px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--box-shadow-dark);
  position: relative;
}
#video-player-upload-form {
  margin: 20px 0 20px 0;
}
.video-player-upload-container button {
  font-family: 'Open Sans', sans-serif;
}
#video-player-upload-close {
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--text-color);
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 800;
}
#video-player-upload-close:hover {
  background: var(--text-color);
  color: var(--background-color);
  transform: scale(1.1);
}
.custom-upload-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--text-color);
  background-color: var(--background-color);
  color: var(--text-color);
  font-weight: 800;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}
.custom-upload-btn:hover {
  background-color: var(--text-color);
  color: var(--background-color);
  transform: scale(1.05);
}
.video-player-upload label {
  font-weight: 400;
  font-size: 14px;
}
.video-player-upload label b {
  font-weight: 800;
}
.video-player-upload input {
  padding: 15px;
}
#video-player-upload-duration {
  color: var(--text-color);
  font-size: 14px;
}

/* date range */
.date-range-picker {
  text-align: right;
  display: none;
  animation: fadeInDateRange .3s forwards;
}

@keyframes fadeInDateRange {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#date-ranger.expanded .date-range-picker {
  display: block;
}

.date-range-picker input {
  margin: 10px 10px 0 0;
  width: 50%;
}

.date-range-picker form {
  display: flex;
  text-align: left;
  margin-bottom: 12px;
}

input#start:before {
  content: "Start Date";
}

input#end:before {
  content: "End Date";
}

.date-ranger-days {
  position: relative;
  background: var(--background-color);
  cursor: pointer;
  display: inline-block;
  padding-right: 24px;
  border-bottom: 1px solid var(--text-color);
  margin-bottom: -1px; /* compensate for border */
}

.date-ranger-days:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background-image: url(/assets/v2/edit.svg);
  background-size: cover;
  background-color: #fff;
  border-radius: 100%;
}

/* social video editing */
#social-video-editor-video {
  width: 50%;
  height: 100%;
  aspect-ratio: 169 / 300;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--text-color);
  display: block;
  cursor: pointer;
  box-sizing: border-box;
  margin-bottom: 40px;
  transition: transform 3s;
  transform: scale(1);
  background-color: var(--text-color);
}

#social-video-editor-video:hover {
  transform: scale(1.02);
}

#social-video-picker-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

#social-video-picker-container {
  background-color: var(--background-color);
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  max-width: 800px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  position: relative;
}

#social-video-picker-container h2 {
  margin: 4px 0 24px 0;
}

#social-video-picker-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 34px;
  border: none;
  color: var(--background-color);
  background-color: var(--text-color);
  cursor: pointer;
  border-radius: 100%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: all .3s;
}

#social-video-picker-close:hover {
  transform: scale(1.1);
}

#social-video-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

div#social-video-picker-grid::after {
  content: "";
  display: flex;
  flex: 50%;
}

.social-video-picker-item {
  flex: 148px;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}

.social-video-picker-item:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.social-video-picker-item.loading {
  animation: loadingNewSocial 1s infinite;
}

@keyframes loadingNewSocial {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

#social-video-picker-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--text-color);
  cursor: pointer;
  aspect-ratio: 148 / 83;
  transition: all .3s;
}

#social-video-picker-grid img:hover {
  transform: scale(1.05);
}

#social-video-picker-form {
  display: flex;
  align-items: center;
}

#social-video-picker-search {
  display: flex;
  margin: 5px 0 20px 10px;
  padding: 5px 10px;
  background: var(--text-color);
  color: var(--background-color);
  font-family: 'Open Sans';
  font-weight: 800;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transform: scale(1);
  transition: all .3s;
}

#social-video-picker-search:hover {
  transform: scale(1.1);
}

p#social-video-picker-examples {
  font-size: 12px;
  color: var(--text-muted);
  transform: translate(2px, -16px);
  margin: 0 0 8px 0;
}

label[for="social-video-picker-input"] {
  display: inline-flex;
  padding: 6px 12px;
  margin: 0;
}

label[for="social-video-picker-input"] img {
  filter: invert(1);
  margin-right: 6px;
}

label[for="social-video"] {
  display: none;
}

body[data-template="Social30"] label[for="social-video"],
body[data-template="Social15"] label[for="social-video"] {
  display: inline-block;
}

#social-video-editor-video {
  display: none;
}

body[data-template="Social30"] #social-video-editor-video,
body[data-template="Social15"] #social-video-editor-video {
  display: block;
}

/* IMAGE SEARCH */
/* Modal overlay */
.image-search-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

/* Modal container */
.image-search-modal {
  background: var(--background-color);
  color: var(--text-color);
  width: 90vw;
  height: 90vh;
  max-width: 800px;
  max-height: 600px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.image-search-modal-header {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border-color-light);
  position: relative;
}
.image-search-modal-search-bar {
  display: flex;
  margin-bottom: 20px;
}
.image-search-modal-header input {
  flex: 1;
  padding: 0.5rem;
  font-size: 1rem;
  margin: 0 0.5rem 0 0;
}
.image-search-modal-header h2 {
  margin: 10px 0 20px 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  font-weight: 800;
}
.image-search-modal-header button.image-search-modal-close {
  color: var(--text-color);
  background: none;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  transition: transform 0.3s ease;
}
.image-search-modal-header button.image-search-modal-close:hover {
  transform: scale(1.5);
}
button.image-search-modal-search {
  border: 3px solid var(--text-color);
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--background-color);
  color: var(--text-color);
  font-weight: 800;
  font-family: 'Open Sans';
}
button.image-search-modal-search:hover {
  cursor: pointer;
  background: var(--text-color);
  color: var(--background-color);
  transform: scale(1.05);
}

/* Grid */
.image-search-modal-grid {
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}
.image-search-modal-grid .grid-item {
  cursor: pointer;
  border: 1px solid var(--border-color-light);
  border-radius: 4px;
  overflow: hidden;
  background: #fafafa;
  width: 240px;
  flex: 1 1 240px;
  aspect-ratio: 16 / 9;
  position: relative;
}
.image-search-modal-grid .grid-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#player-templates-toggle {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 9;
}

#video-player-wrapper #player-templates-toggle .header--change-template {
  display: none; 
}

#video-player-wrapper #player-templates-toggle .template-selector {
  background: #fff;
  color: #000;
  padding: 0;
  margin: 0;
}

#video-player-wrapper #template-selector-container {
  background-color: #fff;
  color: #000;
  padding: 0 0 0 30px;
  border-radius: 6px;
  background-image: url('/assets/v2/layout.svg');
  background-repeat: no-repeat;
  background-position: left;
  background-size: contain;
  min-width: 30px;
  min-height: 30px;
  box-sizing: border-box;
  display: flex;
  filter: invert(1);
}

#video-player-wrapper #template-selector-container::before {
  content: "Change Template";
  position: absolute;
  top: -8px;
  left: 30px;
  font-size: 10px;
  background: #fff;
  border-radius: 6px;
  padding: 0 6px;
  color: rgba(0, 0, 0, 0.6);
  opacity: 0;
}

#video-player-wrapper #player-templates-toggle .template-selector {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  outline: none !important
}

#video-player-wrapper #player-templates-toggle:hover .template-selector,
#video-player-wrapper #player-templates-toggle:hover #template-selector-container::before {
  opacity: 1;
  max-width: 300px;
}

@media screen and (max-width: 740px) {
  #video-player-wrapper #player-templates-toggle {
    display: none;
  } 
}

/* magic assets */
.add-images-modal {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.add-images-modal-content {
  background: #fff;
  max-width: 800px;
  padding: 20px;
  border-radius: 8px;
  position: relative;
}

.add-images-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.ai-add-options {
  display: flex;
  justify-content: space-evenly;
}

.ai-add-options img {
  width: 30px;
  height: 30px;
}

#add-images, #image-to-video-selector-upload {
  box-sizing: border-box;
  border: 3px solid var(--text-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all .3s;
  width: 50%;
  margin: 5px 5px 10px 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px;
  transition: all .3s;
}

#add-images:hover, #image-to-video-selector-upload:hover {
  transform: scale(1.05);
}

.social-video-picker-upload button {
  display: block;
  padding: 10px 20px;
  margin-bottom: 15px;
  border: 2px solid var(--text-color);
  background-color: var(--background-color);
  color: var(--text-color);
  font-weight: 800;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

#video-selector-upload-button {
  display: block;
  padding: 10px 20px;
  margin-bottom: 15px;
  border: 3px solid var(--text-color);
  background-color: var(--background-color);
  color: var(--text-color);
  font-weight: 800;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  width: 100%;
}

#video-selector-upload-button:hover {
  background-color: var(--text-color);
  color: var(--background-color);
  transform: scale(1.05);
}

body[data-template="Engage"] label[for="Location"],
body[data-template="Engage"] #text-editor-Location {
  display: none;
}

/* only engage pro gets these */
label[for="Frame-1-Video-2"],
label[for="Frame-2-Video-2"],
label[for="Frame-3-Video-2"],
label[for="Frame-4-Video-2"],
#video-picker-Frame-1-Video-2,
#video-picker-Frame-2-Video-2,
#video-picker-Frame-3-Video-2,
#video-picker-Frame-4-Video-2 {
  display: none;
}

body[data-template="EngagePro"] label[for="Frame-1-Video-2"],
body[data-template="EngagePro"] label[for="Frame-2-Video-2"],
body[data-template="EngagePro"] label[for="Frame-3-Video-2"],
body[data-template="EngagePro"] label[for="Frame-4-Video-2"] {
  display: inline-block;
}

body[data-template="EngagePro"] #video-picker-Frame-1-Video-2,
body[data-template="EngagePro"] #video-picker-Frame-2-Video-2,
body[data-template="EngagePro"] #video-picker-Frame-3-Video-2,
body[data-template="EngagePro"] #video-picker-Frame-4-Video-2 {
  display: block;
}

/* only engage pro gets these */
label[for="Frame-1-Image-2"],
label[for="Frame-2-Image-2"],
label[for="Frame-3-Image-2"],
label[for="Frame-4-Image-2"],
#image-picker-Frame-1-Image-2,
#image-picker-Frame-2-Image-2,
#image-picker-Frame-3-Image-2,
#image-picker-Frame-4-Image-2 {
  display: none;
}

body[data-template="EngagePro"] label[for="Frame-1-Image-2"],
body[data-template="EngagePro"] label[for="Frame-2-Image-2"],
body[data-template="EngagePro"] label[for="Frame-3-Image-2"],
body[data-template="EngagePro"] label[for="Frame-4-Image-2"] {
  display: inline-block;
}

body[data-template="EngagePro"] #image-picker-Frame-1-Image-2,
body[data-template="EngagePro"] #image-picker-Frame-2-Image-2,
body[data-template="EngagePro"] #image-picker-Frame-3-Image-2,
body[data-template="EngagePro"] #image-picker-Frame-4-Image-2 {
  display: block;
}

body[data-model="v2"] option[value="621b8cb0-8828-4e64-99c9-ba27435a658b"] {
  display: none;
}

body[data-model="v3"] option[value="37fa2000-04ee-4c76-9829-df222476f4f0"],
body[data-model="veo3"] option[value="37fa2000-04ee-4c76-9829-df222476f4f0"] {
  display: none;
}

body[data-model="v3"] optgroup[label="Social"],
body[data-model="veo3"] optgroup[label="Social"] {
  display: none;
}


body[data-model="v3"] option[value="c737ab62-8d54-4af2-83cc-769385a917c8"],
body[data-model="veo3"] option[value="c737ab62-8d54-4af2-83cc-769385a917c8"] {
  display: none;
}

body[data-model="v3"] option[value="4b59fbb8-ebe7-4d01-bbd7-ad35b9178e86"],
body[data-model="veo3"] option[value="4b59fbb8-ebe7-4d01-bbd7-ad35b9178e86"] {
  display: none;
}

/* 
PAUSE ADS HIDDEN IN V3 and VEO3
c86c8e1a-ef87-42be-9d89-a3063ecbcfb3
e0d1032d-437e-47fd-91c5-446b54d0c38e
104a61ae-5f59-4bb0-b89e-0f35e853d4b4
53a4c3a4-2aa6-4a4c-90f9-94bbe7b296bf
ef017576-ac54-45f8-b406-8a5d70e90902
28f4d99c-fa6f-4b75-8939-5644bb756ead 
*/
body[data-model="v3"] optgroup[label="Pause Ad"],
body[data-model="veo3"] optgroup[label="Pause Ad"] {
  display: none;
}

body[data-model="v3"] option[value="c86c8e1a-ef87-42be-9d89-a3063ecbcfb3"],
body[data-model="veo3"] option[value="c86c8e1a-ef87-42be-9d89-a3063ecbcfb3"] {
  display: none;
}

body[data-model="v3"] option[value="e0d1032d-437e-47fd-91c5-446b54d0c38e"],
body[data-model="veo3"] option[value="e0d1032d-437e-47fd-91c5-446b54d0c38e"] {
  display: none;
}

body[data-model="v3"] option[value="104a61ae-5f59-4bb0-b89e-0f35e853d4b4"],
body[data-model="veo3"] option[value="104a61ae-5f59-4bb0-b89e-0f35e853d4b4"] {
  display: none;
}

body[data-model="v3"] option[value="53a4c3a4-2aa6-4a4c-90f9-94bbe7b296bf"],
body[data-model="veo3"] option[value="53a4c3a4-2aa6-4a4c-90f9-94bbe7b296bf"] {
  display: none;
}

body[data-model="v3"] option[value="ef017576-ac54-45f8-b406-8a5d70e90902"],
body[data-model="veo3"] option[value="ef017576-ac54-45f8-b406-8a5d70e90902"] {
  display: none;
}

body[data-model="v3"] option[value="28f4d99c-fa6f-4b75-8939-5644bb756ead"],
body[data-model="veo3"] option[value="28f4d99c-fa6f-4b75-8939-5644bb756ead"] {
  display: none;
}

label[for="Text-Background.fill_color"] {
   display: none;
}

.user-credits img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
  filter: invert(1);
}

.user-credits {
  margin-right: 12px;
  display: none;
  color: #fff;
}

@keyframes strobeUserCredits {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

.user-credits.loading {
  display: flex;
  animation: strobeUserCredits 1s infinite;
  opacity: 0.5;
}

.user-credits.loaded {
  display: flex;
  opacity: 1;
  animation: none;
  transition: all 0.3s ease;
}

.user-avatar.user-credits.loaded:hover {
  cursor: pointer;
  transform: scale(1.1);
}

.user-avatar.user-credits.loaded:hover::after {
  content: "Purchase Credits";
  position: absolute;
  top: 100%; /* Position below the avatar */
  left: 50%;
  transform: translateX(-50%);
  margin-top: 5px; /* Spacing between the avatar and the tooltip */
  background-color: var(--tooltip-background);
  color: var(--tooltip-text-color);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap; /* Prevent text wrapping */
  box-shadow: var(--tooltip-box-shadow);
}

.user-avatar.user-credits.loaded:hover::before {
  content: "";
  position: absolute;
  top: calc(100% - 10px); /* Position the triangle closer to the tooltip */
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px; /* Size of the triangle */
  border-style: solid;
  border-color: transparent transparent var(--tooltip-triangle-color) transparent; /* Create a downward-facing triangle */
}

.user-credits-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}
.user-credits-modal-content {
  padding: 20px;
  border-radius: 5px;
  max-width: 800px;
  width: 100%;
  text-align: center;
  position: relative;
  color: var(--text-color);
  background: var(--background-color);
  border: 1px solid var(--border-color-light);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--box-shadow-launch);
  box-sizing: border-box;
}
.user-credits-modal-close {
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 18px;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-color);
  color: var(--background-color);
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 800;
}
.user-credits-modal-close:hover {
 transform: scale(1.1);
}
.user-credits-packages {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  align-items: center;
}
.user-credits-package {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border-color-light);
  border-radius: 5px;
  margin: 12px;
  flex: 1;
  box-shadow: var(--box-shadow-launch);
}
.user-credits-modal-content h2 {
  margin: 24px 0 12px 0;
  font-size: 24px;
  font-weight: bold;
  color: var(--text-color);
  font-weight: 800;
}
.user-credits-package h3 {
  margin: 0;
  background-color: var(--primary-color);
  color: var(--background-color);
  padding: 10px;
  border-radius: 5px;
  width: 100%;
}

button.purchase-package {
  background-color: var(--primary-color);
  color: var(--background-color);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin: 12px 0 24px 0;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.3s ease;
}

button.purchase-package:hover {
  transform: scale(1.05);
}

.checkout-credits {
  padding: 20px;
  border: 1px solid var(--border-color-light);
  border-radius: 5px;
  margin: 12px;
  box-shadow: var(--box-shadow-launch);
  background: var(--launch-background);
}

div#payment-form-credits-card-element {
  padding: 20px;
  border: 1px solid var(--border-color-light);
  border-radius: 5px;
  margin: 12px;
  box-shadow: var(--box-shadow-launch);
}

form#payment-form-credits {
  display: flex;
  flex-direction: column;
}

form#payment-form-credits .purchase-package {
  margin: 0 auto;
  width: 100%;
  max-width: 300px;
}

#payment-form-credits-message {
  margin: 20px 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-muted)
}

.not-selected {
  opacity: 0.5;
}

.user-credits-modal-content summary {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 20px 0;
  cursor: pointer;
  user-select: none;
}

.user-credits-modal-content .subtitle {
  color: var(--text-muted);
  font-weight: 600;
  width: 100%;
  max-width: 460px;
  margin: 12px auto;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 14px;
  box-shadow: var(--box-shadow-launch);
  border-collapse: separate; /* key! */
  border-spacing: 0;          /* optional: remove gaps */
  border-radius: 6px;
  overflow: hidden;           /* for clipping corners */
  border: 1px solid var(--border-color-light);
}

.user-credits-modal-content .subtitle th,
.user-credits-modal-content .subtitle td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color-light);
}

.user-credits-modal-content .subtitle th:nth-child(2),
.user-credits-modal-content .subtitle td:nth-child(2) {
  text-align: center;
}

.user-credits-modal-content .subtitle th {
  font-weight: 800;
  background: var(--primary-color);
  color: var(--background-color);
}

.user-credits-modal-content .subtitle tbody tr:last-child td {
  border-bottom: none; /* clean bottom */
}

.spinner {
  width: 200px;
  height: 200px;
  display: grid;
  margin: 0 auto;
  padding: 40px;
  box-sizing: border-box;
}

.spinner::before,
.spinner::after {
  content: "";
  grid-area: 1/1;
  background: var(--c) 50%  0, 
      var(--c) 50%  100%, 
      var(--c) 100% 50%, 
      var(--c) 0    50%;
  background-size: 13.4px 13.4px;
  background-repeat: no-repeat;
  animation: spinner-3hs4a3 1s infinite;
}

.spinner::before {
  --c: radial-gradient(farthest-side, var(--primary-color) 92%, transparent);
  margin: 4.5px;
  background-size: 9px 9px;
  animation-timing-function: linear;
}

.spinner::after {
  --c: radial-gradient(farthest-side, var(--primary-color) 92%, transparent);
}

@keyframes spinner-3hs4a3 {
  100% {
    transform: rotate(.5turn);
  }
}

#model-toggle {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  align-items: center;
  box-shadow: var(--box-shadow-launch);
}

.user-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  filter: invert(1);
  object-fit: cover;
}

@media screen and (max-width: 740px) {
  .user-credits-packages {
    flex-direction: column;
    align-items: center;
  }
  .user-credits-package {
    width: 100%;
    max-width: 400px;
  }  
  .user-credits-modal-content {
    width: 90%;
    max-width: 420px;
  }
  .user-credits-modal-content h2 {
    margin: 36px 0 12px 0;
  }
}

a.credits-faq {
  color: var(--link-color);
  font-size: 0.8em;
  margin: 0 0 12px 0;
  transform: translateY(-8px);
  display: block;
}

/* free download for advanced models */
.download-submit-free {
  display: none;
  font-family: 'Open Sans';
  max-width: 200px;
  width: 100%;
}

body[data-model="v3"] .checkout-download .download-submit-free,
body[data-model="v3.5"] .checkout-download .download-submit-free,
body[data-model="veo3"] .checkout-download .download-submit-free {
  display: inline-block;
}

body[data-model="v3"] .checkout-download #payment-form,
body[data-model="v3.5"] .checkout-download #payment-form,
body[data-model="veo3"] .checkout-download #payment-form {
  display: none;
}

/* pause ad editor (configure available/used editors) */
body[data-template="PauseAd"] #video-player-settings * {
  display: none;
}

body[data-template="PauseAd"] #video-player-settings label[for="Tagline"],
body[data-template="PauseAd"] #video-player-settings label[for="Frame-1-Image"],
body[data-template="PauseAd"] #video-player-settings label[for="Brand-Logo"],
body[data-template="PauseAd"] #video-player-settings label[for="Title.font_family"],
body[data-template="PauseAd"] #video-player-settings label[for="QR-Code"],
body[data-template="PauseAd"] #video-player-settings label[for="Location-Business-Info.fill_color"],
body[data-template="PauseAd"] #video-player-settings label[for="QR-Text-1"],
body[data-template="PauseAd"] #video-player-settings label[for="QR-Text-2"],
body[data-template="PauseAd"] #video-player-settings label[for="QR-Code"] {
  display: inline-block;
}

body[data-template="PauseAd"] #video-player-settings #text-editor-Tagline,
body[data-template="PauseAd"] #video-player-settings #image-picker-Frame-1-Image,
body[data-template="PauseAd"] #video-player-settings .logo-picker,
body[data-template="PauseAd"] #video-player-settings .logo-picker *,
body[data-template="PauseAd"] #video-player-settings .font-picker,
body[data-template="PauseAd"] #video-player-settings .font-picker *,
body[data-template="PauseAd"] #video-player-settings #show-hide-selector-QR-Code,
body[data-template="PauseAd"] #video-player-settings #show-hide-selector-QR-Code *,
body[data-template="PauseAd"] #video-player-settings #text-editor-QR-Code,
body[data-template="PauseAd"] #video-player-settings #template-selector-container,
body[data-template="PauseAd"] #video-player-settings #template-selector-container *,
body[data-template="PauseAd"] #video-player-settings .color-picker,
body[data-template="PauseAd"] #video-player-settings .color-picker *,
body[data-template="PauseAd"] #video-player-settings #text-editor-QR-Text-1,
body[data-template="PauseAd"] #video-player-settings #text-editor-QR-Text-2,
body[data-template="PauseAd"] #video-player-settings #show-hide-selector-QR-Code,
body[data-template="PauseAd"] #video-player-settings #show-hide-selector-QR-Code *,
body[data-template="PauseAd"] #video-player-settings #text-editor-QR-Code {
  display: block;
}

/* pause ad quanta minus editor (configure available/used editors) */
body[data-template="PauseAdQuantaMinus"] #video-player-settings * {
  display: none;
}

body[data-template="PauseAdQuantaMinus"] #video-player-settings label[for="Tagline"],
body[data-template="PauseAdQuantaMinus"] #video-player-settings label[for="Frame-1-Image"],
body[data-template="PauseAdQuantaMinus"] #video-player-settings label[for="Brand-Logo"],
body[data-template="PauseAdQuantaMinus"] #video-player-settings label[for="Title.font_family"],
body[data-template="PauseAdQuantaMinus"] #video-player-settings label[for="QR-Code"],
body[data-template="PauseAdQuantaMinus"] #video-player-settings label[for="Location-Business-Info.fill_color"],
body[data-template="PauseAdQuantaMinus"] #video-player-settings label[for="QR-Text-1"],
body[data-template="PauseAdQuantaMinus"] #video-player-settings label[for="QR-Text-2"] {
  display: inline-block;
}

body[data-template="PauseAdQuantaMinus"] #video-player-settings #text-editor-Tagline,
body[data-template="PauseAdQuantaMinus"] #video-player-settings #image-picker-Frame-1-Image,
body[data-template="PauseAdQuantaMinus"] #video-player-settings .logo-picker,
body[data-template="PauseAdQuantaMinus"] #video-player-settings .logo-picker *,
body[data-template="PauseAdQuantaMinus"] #video-player-settings .font-picker,
body[data-template="PauseAdQuantaMinus"] #video-player-settings .font-picker *,
body[data-template="PauseAdQuantaMinus"] #video-player-settings #show-hide-selector-QR-Code,
body[data-template="PauseAdQuantaMinus"] #video-player-settings #show-hide-selector-QR-Code *,
body[data-template="PauseAdQuantaMinus"] #video-player-settings #text-editor-QR-Code,
body[data-template="PauseAdQuantaMinus"] #video-player-settings #template-selector-container,
body[data-template="PauseAdQuantaMinus"] #video-player-settings #template-selector-container *,
body[data-template="PauseAdQuantaMinus"] #video-player-settings .color-picker,
body[data-template="PauseAdQuantaMinus"] #video-player-settings .color-picker *,
body[data-template="PauseAdQuantaMinus"] #video-player-settings #text-editor-QR-Text-1,
body[data-template="PauseAdQuantaMinus"] #video-player-settings #text-editor-QR-Text-2 {
  display: block;
}

/* pause ad noema editor (configure available/used editors) */
body[data-template="PauseAdNoema"] #video-player-settings * {
  display: none;
}

body[data-template="PauseAdNoema"] #video-player-settings label[for="Tagline"],
body[data-template="PauseAdNoema"] #video-player-settings label[for="Frame-1-Image"],
body[data-template="PauseAdNoema"] #video-player-settings label[for="Brand-Logo"],
body[data-template="PauseAdNoema"] #video-player-settings label[for="Title.font_family"],
body[data-template="PauseAdNoema"] #video-player-settings label[for="QR-Code"],
body[data-template="PauseAdNoema"] #video-player-settings label[for="Location-Business-Info.fill_color"],
body[data-template="PauseAdNoema"] #video-player-settings label[for="QR-Text-1"],
body[data-template="PauseAdNoema"] #video-player-settings label[for="QR-Text-2"]  {
  display: inline-block;
}

body[data-template="PauseAdNoema"] #video-player-settings #text-editor-Tagline,
body[data-template="PauseAdNoema"] #video-player-settings #image-picker-Frame-1-Image,
body[data-template="PauseAdNoema"] #video-player-settings .logo-picker,
body[data-template="PauseAdNoema"] #video-player-settings .logo-picker *,
body[data-template="PauseAdNoema"] #video-player-settings .font-picker,
body[data-template="PauseAdNoema"] #video-player-settings .font-picker *,
body[data-template="PauseAdNoema"] #video-player-settings #show-hide-selector-QR-Code,
body[data-template="PauseAdNoema"] #video-player-settings #show-hide-selector-QR-Code *,
body[data-template="PauseAdNoema"] #video-player-settings #text-editor-QR-Code,
body[data-template="PauseAdNoema"] #video-player-settings #template-selector-container,
body[data-template="PauseAdNoema"] #video-player-settings #template-selector-container *,
body[data-template="PauseAdNoema"] #video-player-settings .color-picker,
body[data-template="PauseAdNoema"] #video-player-settings .color-picker *,
body[data-template="PauseAdNoema"] #video-player-settings #text-editor-QR-Text-1,
body[data-template="PauseAdNoema"] #video-player-settings #text-editor-QR-Text-2 {
  display: block;
}

/* pause ad opal fullscreen editor (configure available/used editors) */
body[data-template="PauseAdOpalFullscreen"] #video-player-settings * {
  display: none;
}

body[data-template="PauseAdOpalFullscreen"] #video-player-settings label[for="Frame-1-Image"],
body[data-template="PauseAdOpalFullscreen"] #video-player-settings label[for="Frame-1-Video"],
body[data-template="PauseAdOpalFullscreen"] #video-player-settings label[for="Brand-Logo"] {
  display: inline-block;
}

body[data-template="PauseAdOpalFullscreen"] #video-player-settings #image-picker-Frame-1-Image,
body[data-template="PauseAdOpalFullscreen"] #video-player-settings #video-picker-Frame-1-Video,
body[data-template="PauseAdOpalFullscreen"] #video-player-settings .logo-picker,
body[data-template="PauseAdOpalFullscreen"] #video-player-settings .logo-picker *,
body[data-template="PauseAdOpalFullscreen"] #video-player-settings #template-selector-container,
body[data-template="PauseAdOpalFullscreen"] #video-player-settings #template-selector-container * {
  display: block;
}
body[data-template="PauseAdOpalFullscreen"] .video-picker-video video {
  display: block !important;
}

/* pause ad opal fire editor (configure available/used editors) */
body[data-template="PauseAdOpalFire"] #video-player-settings * {
  display: none;
}

body[data-template="PauseAdOpalFire"] #video-player-settings label[for="Tagline"],
body[data-template="PauseAdOpalFire"] #video-player-settings label[for="Brand-Logo"],
body[data-template="PauseAdOpalFire"] #video-player-settings label[for="QR-Code"],
body[data-template="PauseAdOpalFire"] #video-player-settings label[for="Title.font_family"],
body[data-template="PauseAdOpalFire"] #video-player-settings label[for="Location-Business-Info.fill_color"],
body[data-template="PauseAdOpalFire"] #video-player-settings label[for="QR-Text-1"],
body[data-template="PauseAdOpalFire"] #video-player-settings label[for="QR-Text-2"] ,
body[data-template="PauseAdOpalFire"] #video-player-settings label[for="Frame-1-Image"] {
  display: inline-block;
}

body[data-template="PauseAdOpalFire"] #video-player-settings #text-editor-Tagline,
body[data-template="PauseAdOpalFire"] #video-player-settings .logo-picker,
body[data-template="PauseAdOpalFire"] #video-player-settings .logo-picker *,
body[data-template="PauseAdOpalFire"] #video-player-settings #show-hide-selector-QR-Code,
body[data-template="PauseAdOpalFire"] #video-player-settings #show-hide-selector-QR-Code *,
body[data-template="PauseAdOpalFire"] #video-player-settings #text-editor-QR-Code,
body[data-template="PauseAdOpalFire"] #video-player-settings .font-picker,
body[data-template="PauseAdOpalFire"] #video-player-settings .font-picker *,
body[data-template="PauseAdOpalFire"] #video-player-settings #template-selector-container,
body[data-template="PauseAdOpalFire"] #video-player-settings #template-selector-container *,
body[data-template="PauseAdOpalFire"] #video-player-settings .color-picker,
body[data-template="PauseAdOpalFire"] #video-player-settings .color-picker *,
body[data-template="PauseAdOpalFire"] #video-player-settings #image-picker-Frame-1-Image,
body[data-template="PauseAdOpalFire"] #video-player-settings #image-picker-Frame-1-Image *,
body[data-template="PauseAdOpalFire"] #video-player-settings #text-editor-QR-Text-1,
body[data-template="PauseAdOpalFire"] #video-player-settings #text-editor-QR-Text-2 {
  display: block;
}

/* pause ad opal calm editor (configure available/used editors) */
body[data-template="PauseAdOpalCalm"] #video-player-settings * {
  display: none;
}

body[data-template="PauseAdOpalCalm"] #video-player-settings label[for="Tagline"],
body[data-template="PauseAdOpalCalm"] #video-player-settings label[for="Brand-Logo"],
body[data-template="PauseAdOpalCalm"] #video-player-settings label[for="QR-Code"],
body[data-template="PauseAdOpalCalm"] #video-player-settings label[for="Title.font_family"],
body[data-template="PauseAdOpalCalm"] #video-player-settings label[for="Location-Business-Info.fill_color"],
body[data-template="PauseAdOpalCalm"] #video-player-settings label[for="QR-Text-1"],
body[data-template="PauseAdOpalCalm"] #video-player-settings label[for="QR-Text-2"] {
  display: inline-block;
}

body[data-template="PauseAdOpalCalm"] #video-player-settings #text-editor-Tagline,
body[data-template="PauseAdOpalCalm"] #video-player-settings .logo-picker,
body[data-template="PauseAdOpalCalm"] #video-player-settings .logo-picker *,
body[data-template="PauseAdOpalCalm"] #video-player-settings #show-hide-selector-QR-Code,
body[data-template="PauseAdOpalCalm"] #video-player-settings #show-hide-selector-QR-Code *,
body[data-template="PauseAdOpalCalm"] #video-player-settings #text-editor-QR-Code,
body[data-template="PauseAdOpalCalm"] #video-player-settings .font-picker,
body[data-template="PauseAdOpalCalm"] #video-player-settings .font-picker *,
body[data-template="PauseAdOpalCalm"] #video-player-settings #template-selector-container,
body[data-template="PauseAdOpalCalm"] #video-player-settings #template-selector-container *,
body[data-template="PauseAdOpalCalm"] #video-player-settings .color-picker,
body[data-template="PauseAdOpalCalm"] #video-player-settings .color-picker *,
body[data-template="PauseAdOpalCalm"] #video-player-settings #text-editor-QR-Text-1,
body[data-template="PauseAdOpalCalm"] #video-player-settings #text-editor-QR-Text-2 {
  display: block;
}

body[data-template="EngageLite"] #video-player-settings label[for="Location"],
body[data-template="EngageLite"] #video-player-settings #text-editor-Location,
body[data-template="EngageLite"] #video-player-settings label[for="Frame-1-Audio"],
body[data-template="EngageLite"] #video-player-settings #text-to-speech-editor-Frame-1-Audio,
body[data-template="EngageLite"] #video-player-settings label[for="Frame-2-Audio"],
body[data-template="EngageLite"] #video-player-settings #text-to-speech-editor-Frame-2-Audio,
body[data-template="EngageLite"] #video-player-settings label[for="Frame-3-Audio"],
body[data-template="EngageLite"] #video-player-settings #text-to-speech-editor-Frame-3-Audio,
body[data-template="EngageLite"] #video-player-settings label[for="Frame-4-Audio"],
body[data-template="EngageLite"] #video-player-settings #text-to-speech-editor-Frame-4-Audio,
body[data-template="EngageLite"] #video-player-settings label[for="Frame-5-Image"],
body[data-template="EngageLite"] #video-player-settings #image-picker-Frame-5-Image,
body[data-template="EngageLite"] #video-player-settings label[for="Frame-6-Image"],
body[data-template="EngageLite"] #video-player-settings #image-picker-Frame-6-Image {
  display: none;
}

label[for="Tagline.background_color"],
label[for="background-media.color_overlay"],
label[for="QR-Text-1"],
label[for="QR-Text-2"],
#text-editor-QR-Text-1,
#text-editor-QR-Text-2 {
  display: none;
}

.video-player-draft.draft-processing {
  opacity: 0.75;
  pointer-events: none;
}

.video-player-draft.draft-processing .video-player-draft-delete,
.video-player-draft.draft-processing .video-player-draft-header-notes {
  display: none;
}

.draft-in-progress .video-player-draft-delete,
.draft-in-progress .video-player-draft-header-notes,
.draft-in-progress .video-player-draft-save {
  display: none;
}

.video-player-drafts .spinner {
  display: none;
}

.video-player-drafts.loading .spinner {
  display: grid;
}

.model-highlight {
  color: var(--secondary-color);
}

#image-to-video-editor-container {
  margin-top: 40px;
}

#image-to-video-editor-container {
  display: none;
}

body[data-template="Engage"][data-model="v2"] #image-to-video-editor-container,
body[data-template="EngagePro"][data-model="v2"] #image-to-video-editor-container,
body[data-template="EngageLite"][data-model="v2"] #image-to-video-editor-container {
  display: block;
}



/* prompt editor modal */
.prompt-editor-modal {
  position: fixed;
  z-index: 99999999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prompt-editor-modal-content {
  background: var(--background-color);
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color-light);
  max-height: 90vh;
  overflow: auto;
}

.prompt-editor-modal-content img.preview-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1em;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.prompt-editor-modal-content textarea {
  min-height: 120px;
  resize: vertical;
  margin-bottom: 1em;
  color: var(--text-color);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#cancel-btn {
  color: #fff;
  border-color: darkred;
  background-color: darkred;
}

#confirm-btn {
  color: #fff;
  border-color: darkgreen;
  background-color: darkgreen;
}

#cancel-btn:hover,
#confirm-btn:hover {
  filter: brightness(1.3);
}

.prompt-editor-modal-content label {
  align-self: flex-start; /* overrides default stretch behavior */
  display: inline-block;
  width: auto;
}

/* qr code migration */
label[for="Persistent-QR-Code"],
#show-hide-selector-Persistent-QR-Code,
#text-editor-Persistent-QR-Code {
  display: none;
}

body[data-template="Engage"] label[for="Persistent-QR-Code"] {
  display: inline-block;
}

body[data-template="Engage"] #show-hide-selector-Persistent-QR-Code,
body[data-template="Engage"] #text-editor-Persistent-QR-Code {
  display: block;
}

body[data-template="Convert"] label[for="Persistent-QR-Code"] {
  display: inline-block;
}

body[data-template="Convert"] #show-hide-selector-Persistent-QR-Code,
body[data-template="Convert"] #text-editor-Persistent-QR-Code {
  display: block;
}

#bcap-compliance-failed p:first-child {
  margin-top: -20px;
}

.tv-ad-video {
  aspect-ratio: 16 / 9;
}


/* BCAP */
.checkout-area {
  display: none !important;
}

.checkout-ready .checkout-area {
  display: block !important;
}

body[data-template="EngageProBCAP"] label[for="Frame-5-Image"],
body[data-template="EngageProBCAP"] label[for="Frame-6-Image"],
body[data-template="EngageProBCAP"] #image-picker-Frame-5-Image,
body[data-template="EngageProBCAP"] #image-picker-Frame-6-Image {
  display: none;
}

body[data-template="EngageProBCAP"] label[for="Frame-5-Video"],
body[data-template="EngageProBCAP"] label[for="Frame-6-Video"],
body[data-template="EngageProBCAP"] #image-picker-Frame-5-Video,
body[data-template="EngageProBCAP"] #image-picker-Frame-6-Video,
body[data-template="EngageProBCAP"] #video-picker-Frame-5-Video,
body[data-template="EngageProBCAP"] #video-picker-Frame-6-Video {
  display: none;
}

body[data-template="EngageProBCAP"] label[for="Frame-1-Video-2"],
body[data-template="EngageProBCAP"] label[for="Frame-2-Video-2"],
body[data-template="EngageProBCAP"] label[for="Frame-3-Video-2"],
body[data-template="EngageProBCAP"] label[for="Frame-4-Video-2"] {
  display: inline-block;
}

body[data-template="EngageProBCAP"] #video-picker-Frame-1-Video-2,
body[data-template="EngageProBCAP"] #video-picker-Frame-2-Video-2,
body[data-template="EngageProBCAP"] #video-picker-Frame-3-Video-2,
body[data-template="EngageProBCAP"] #video-picker-Frame-4-Video-2 {
  display: block;
}

body[data-template="EngageProBCAP"] label[for="Frame-1-Image-2"],
body[data-template="EngageProBCAP"] label[for="Frame-2-Image-2"],
body[data-template="EngageProBCAP"] label[for="Frame-3-Image-2"],
body[data-template="EngageProBCAP"] label[for="Frame-4-Image-2"] {
  display: inline-block;
}

body[data-template="EngageProBCAP"] #image-picker-Frame-1-Image-2,
body[data-template="EngageProBCAP"] #image-picker-Frame-2-Image-2,
body[data-template="EngageProBCAP"] #image-picker-Frame-3-Image-2,
body[data-template="EngageProBCAP"] #image-picker-Frame-4-Image-2 {
  display: block;
}

body[data-template="EngageProBCAP"][data-model="v2"] #image-to-video-editor-container {
  display: block;
}

option[value="92a49edb-4c43-4579-b277-f0375a6e7667"] {
  display: none;
}

.itv-faq {
  display: none;
}