: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 {
  margin-top: 4px;
  font-size: 13px;
  line-height: 14px;
  font-weight: 400;
  margin-left: 4px;
  color: var(--text-muted);
}

#ai-submit {
  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 {
  background: var(--secondary-color);
  color: var(--background-color);
}

.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);
}

#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: 20px 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 {
  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:hover img {
  filter: blur(2px);
}

.video-selector-ai-videos-pending .video-selector-ai-image,
.video-selector-ai-image[data-animating="true"] {
  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 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;
}

@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;
  }
  .user-avatar.sign-up {
    font-size: 12px;
    padding: 0 12px;
    height: 35px;
  }
  .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"] label[for="QR-Code"],
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"] #text-editor-QR-Code,
body[data-template="Social30"] #show-hide-selector-QR-Code,
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"] label[for="QR-Code"],
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"] #text-editor-QR-Code,
body[data-template="Social15"] #show-hide-selector-QR-Code,
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="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"] #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 label[for="Persistent-QR-Code"],
body[data-template="Custom30"] #video-player-settings #text-editor-Persistent-QR-Code,
body[data-template="Custom30"] #video-player-settings #show-hide-selector-Persistent-QR-Code,
body[data-template="Custom30"] #video-player-settings #show-hide-selector-Persistent-QR-Code *,
body[data-template="Custom30"] #video-player-settings #template-selector-container,
body[data-template="Custom30"] #video-player-settings #template-selector-container * {
  display: block;
}

body[data-template="Custom30"] #video-player-settings label[for="Persistent-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 label[for="Persistent-QR-Code"],
body[data-template="Custom15"] #video-player-settings #text-editor-Persistent-QR-Code,
body[data-template="Custom15"] #video-player-settings #show-hide-selector-Persistent-QR-Code,
body[data-template="Custom15"] #video-player-settings #show-hide-selector-Persistent-QR-Code *,
body[data-template="Custom15"] #video-player-settings #template-selector-container,
body[data-template="Custom15"] #video-player-settings #template-selector-container * {
  display: block;
}

body[data-template="Custom15"] #video-player-settings label[for="Persistent-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 label[for="Persistent-QR-Code"],
body[data-template="PIP30"] #video-player-settings #text-editor-Persistent-QR-Code,
body[data-template="PIP30"] #video-player-settings #show-hide-selector-Persistent-QR-Code,
body[data-template="PIP30"] #video-player-settings #show-hide-selector-Persistent-QR-Code *,
body[data-template="PIP30"] #video-player-settings #template-selector-container,
body[data-template="PIP30"] #video-player-settings #template-selector-container * {
  display: block;
}

body[data-template="PIP30"] #video-player-settings label[for="Persistent-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;
}

/* 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 label[for="Persistent-QR-Code"],
body[data-template="PIP15"] #video-player-settings #text-editor-Persistent-QR-Code,
body[data-template="PIP15"] #video-player-settings #show-hide-selector-Persistent-QR-Code,
body[data-template="PIP15"] #video-player-settings #show-hide-selector-Persistent-QR-Code *,
body[data-template="PIP15"] #video-player-settings #template-selector-container,
body[data-template="PIP15"] #video-player-settings #template-selector-container * {
  display: block;
}

body[data-template="PIP15"] #video-player-settings label[for="Persistent-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;
}

/* 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: 25%;
  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: 169 / 300;
  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: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 0.75rem;
}
.image-search-modal-grid .grid-item {
  cursor: pointer;
  border: 1px solid var(--border-color-light);
  border-radius: 4px;
  overflow: hidden;
  background: #fafafa;
  width: 100%;
  padding-bottom: 56.25%;
  position: relative;
}
.image-search-modal-grid .grid-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

#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;
  } 
}