.ympv-editor,
.ympv-product-video {
  --ympv-purple: #6654a3;
  --ympv-border: #ddd6ec;
  min-width: 0;
  max-width: 100%;
  color: #393541;
  font-family: inherit;
  text-align: left;
}

.ympv-editor {
  padding: 24px;
  border: 1px solid var(--ympv-border);
  border-radius: 10px;
  background: #fff;
}

.ympv-editor [hidden],
.ympv-product-video [hidden] {
  display: none !important;
}

.ympv-heading h3,
.ympv-preview h4,
.ympv-product-video h2 {
  margin: 0 0 10px;
  color: var(--ympv-purple);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
}

.ympv-heading p,
.ympv-editor p,
.ympv-editor li {
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ympv-heading {
  margin-bottom: 20px;
}

.ympv-field {
  margin-bottom: 18px;
}

.ympv-editor .ympv-field > label {
  display: block;
  width: 100%;
  margin: 0 0 7px;
  color: #393541;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.ympv-editor .form-control,
.ympv-editor input[type="file"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  margin: 0;
  border: 1px solid var(--ympv-border);
  border-radius: 6px;
  background-color: #fff;
  color: #393541;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.ympv-editor .form-control {
  padding: 10px 12px;
}

.ympv-editor select.form-control {
  padding-right: 36px;
}

.ympv-editor input[type="file"] {
  padding: 8px;
}

.ympv-editor input[type="file"]::file-selector-button {
  min-height: 44px;
  margin-right: 10px;
  padding: 8px 14px;
  border: 1px solid var(--ympv-purple);
  border-radius: 4px;
  background: #f6f3fc;
  color: var(--ympv-purple);
  font: inherit;
  cursor: pointer;
}

.ympv-editor .form-control:focus,
.ympv-editor input[type="file"]:focus-visible,
.ympv-editor .ympv-button:focus-visible {
  outline: 2px solid var(--ympv-purple);
  outline-offset: 3px;
  box-shadow: none;
}

.ympv-help {
  margin: 8px 0 0;
  color: #68616f;
  font-size: 13px;
  line-height: 1.55;
}

.ympv-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--ympv-purple);
  border-radius: 4px;
  background: #f8f6fc;
}

.ympv-notice strong {
  display: block;
  margin-bottom: 6px;
}

.ympv-notice ol {
  margin: 6px 0 10px;
  padding-left: 20px;
}

.ympv-notice li + li {
  margin-top: 5px;
}

.ympv-notice p:last-child {
  margin-bottom: 0;
}

.ympv-editor .ympv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--ympv-purple);
  border-radius: 6px;
  background: var(--ympv-purple);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}

.ympv-editor .ympv-button--secondary {
  background: #fff;
  color: var(--ympv-purple);
}

.ympv-editor .ympv-button:hover {
  background: #f1edf9;
  color: #4f4086;
}

.ympv-editor .ympv-button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.ympv-progress {
  margin-bottom: 18px;
}

.ympv-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.ympv-progress progress {
  display: block;
  width: 100%;
  height: 12px;
  margin-bottom: 12px;
  accent-color: var(--ympv-purple);
}

.ympv-status:empty {
  display: none;
}

.ympv-status {
  margin: 16px 0;
  color: #4f4086;
}

.ympv-error {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #e5a6a6;
  border-radius: 6px;
  background: #fff5f5;
  color: #922c2c;
}

.ympv-preview {
  margin-top: 24px;
}

.ympv-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--ympv-border);
  border-radius: 8px;
  background: #18151e;
}

.ympv-player > video,
.ympv-player > iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.ympv-product-video {
  grid-column: 1 / -1;
  width: 100%;
  margin: 20px 0;
}

.ympv-youtube-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 16px;
  color: #fff;
  text-align: center;
}

.ympv-youtube-cover p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.ympv-youtube-button {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid #a694d1;
  border-radius: 6px;
  background: var(--ympv-purple);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.ympv-youtube-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.ympv-product-video a,
.ympv-editor a {
  color: var(--ympv-purple);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .ympv-editor {
    padding: 18px 14px;
  }

  .ympv-heading h3,
  .ympv-product-video h2 {
    font-size: 19px;
  }

  .ympv-notice {
    padding: 12px;
  }

  .ympv-editor .ympv-button {
    width: 100%;
  }
}
