.media-tabs-block {
  border-radius: 8px;
  height: 720px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.media-tabs-block,
.media-tabs-block * {
  font-family:
    Source Sans Pro,
    Arial,
    sans-serif;
}
.media-tabs-block .tab-component {
  background-color: #7f7f7f;
  height: 100%;
  overflow: hidden;
  width: 100%;
}
.media-tabs-block .tab-content-container {
  height: 100%;
  position: relative;
  width: 100%;
}
.media-tabs-block .tab-content-item {
  background: 50% / cover no-repeat;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transition:
    opacity 0.5s ease,
    background-image 0.3s ease;
  width: 100%;
}
.media-tabs-block .tab-content-item.active {
  z-index: 1;
}
.media-tabs-block .tab-content-item .tab-video {
  height: 100%;
  left: 0;
  -o-object-fit: cover;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
}
.media-tabs-block .content-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.8)
  );
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}
.media-tabs-block .text-content {
  color: #fff;
  max-width: 65%;
  padding: 1.5rem;
  position: absolute;
  z-index: 3;
}
.media-tabs-block .text-content.text-content-top-left {
  left: 0;
  top: 0;
}
.media-tabs-block .text-content.text-content-top-right {
  right: 0;
  text-align: right;
  top: 0;
}
.media-tabs-block .text-content.text-content-bottom-left {
  bottom: 0;
  left: 0;
}
.media-tabs-block .text-content.text-content-bottom-right {
  bottom: 0;
  right: 0;
  text-align: right;
}
.media-tabs-block .text-content .content-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 1rem;
}
.media-tabs-block .text-content .content-title strong {
  font-weight: 400 !important;
}
.media-tabs-block .text-content .content-description {
  color: hsla(0, 0%, 100%, 0.95);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
}
.media-tabs-block .text-content .content-description p {
  margin: 0 0 1rem;
}
.media-tabs-block .text-content .content-description p:last-child {
  margin-bottom: 0;
}
.media-tabs-block .tab-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  padding: 1.5rem;
  position: absolute;
  z-index: 3;
}
.media-tabs-block .tab-buttons.tab-buttons-top-left {
  left: 0;
  top: 0;
}
.media-tabs-block .tab-buttons.tab-buttons-top-right {
  right: 0;
  top: 0;
}
.media-tabs-block .tab-buttons.tab-buttons-bottom-left {
  bottom: 0;
  left: 0;
}
.media-tabs-block .tab-buttons.tab-buttons-bottom-right {
  bottom: 0;
  right: 0;
}
.media-tabs-block .tab-buttons .tab-button {
  -webkit-backdrop-filter: blur(7.5px);
  backdrop-filter: blur(7.5px);
  background-color: hsla(0, 0%, 100%, 0.05);
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 400;
  padding: 14px 24px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    font-weight 0.15s ease,
    text-shadow 0.3s ease,
    border-radius 0.3s ease;
  white-space: nowrap;
  will-change: background-color, box-shadow;
}
.media-tabs-block .tab-buttons .tab-button:hover {
  background-color: hsla(0, 0%, 100%, 0.25);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.media-tabs-block .tab-buttons .tab-button.active {
  background-color: #fff;
  border-color: hsla(0, 0%, 100%, 0.3);
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: #000;
  font-weight: 400;
  text-shadow: none;
}
.media-tabs-block .tab-buttons .tab-button span {
  display: inline-block;
  transition: all 0.3s ease;
}
.media-tabs-block .tab-buttons .tab-button span p {
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}
.media-tabs-block .tab-buttons .tab-button span strong {
  font-weight: 700;
  transition: font-weight 0.15s ease;
}
.media-tabs-block .tab-buttons .tab-button span em {
  font-style: italic;
  transition: font-style 0.15s ease;
}
.media-tabs-block .tab-buttons .tab-button span * {
  transition: inherit;
}
.media-tabs-block .tab-buttons .tab-button:focus {
  box-shadow:
    0 0 0 3px hsla(0, 0%, 100%, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3);
  outline: none;
}
.media-tabs-block .tab-buttons .tab-button:active {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.fade-in {
  animation: fadeInUp 0.6s ease;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (min-width: 768px) {
  .media-tabs-block .text-content {
    max-width: 50%;
  }
}
@media (max-width: 1200px) {
  .media-tabs-block {
    height: 500px;
  }
  .media-tabs-block .tab-component {
    display: flex;
    flex-direction: column;
  }
  .media-tabs-block .tab-content-container {
    height: 100%;
    order: 1;
  }
  .media-tabs-block .text-content {
    bottom: 10%;
    left: 0;
    max-width: 100%;
    overflow-y: auto;
    padding: 1rem;
    right: 0;
    text-align: left;
    top: auto;
  }
  .media-tabs-block .text-content.text-content-top-left {
    left: 0;
    top: 0;
  }
  .media-tabs-block .text-content.text-content-top-right {
    right: 0;
    text-align: right;
    top: 0;
  }
  .media-tabs-block .text-content.text-content-bottom-left {
    bottom: 90px;
    left: 0;
  }
  .media-tabs-block .text-content.text-content-bottom-right {
    bottom: 90px;
    right: 0;
    text-align: right;
  }
  .media-tabs-block .text-content .content-title {
    font-size: 1.75rem;
  }
  .media-tabs-block .text-content .content-description {
    font-size: 1.125rem;
  }
  .media-tabs-block .tab-buttons {
    align-items: center;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    background-color: transparent;
    bottom: 0;
    display: flex;
    justify-content: start;
    left: 0;
    order: 2;
    padding: 2rem 1rem;
    position: absolute;
    right: 0;
  }
  .media-tabs-block .tab-buttons .tab-button {
    font-size: 1rem;
    padding: 10px 16px;
  }
}
@media (max-width: 767px) {
  .media-tabs-block .text-content {
    overflow-y: auto;
  }
  .media-tabs-block .tab-buttons {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .media-tabs-block .tab-buttons .tab-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
.media-tabs-block .media-tabs-placeholder {
  align-items: center;
  background-color: #f5f5f5;
  border: 2px dashed #ccc;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.media-tabs-block .media-tabs-placeholder p {
  margin-bottom: 1rem;
}
.media-tabs-block .tab-component {
  position: relative;
}
.tabs-management {
  margin-bottom: 1.5rem;
}
.tabs-management .tabs-management-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.tabs-management .tabs-management-header h3 {
  margin: 0;
}
.tabs-management .no-tabs-message {
  font-style: italic;
  margin: 1rem 0;
}
.tabs-management .tabs-list .tab-item {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 0.625rem;
  overflow: hidden;
}
.tabs-management .tabs-list .tab-item.active {
  border-color: #007cba;
}
.tabs-management .tabs-list .tab-item.editing {
  background-color: rgba(0, 124, 186, 0.05);
  border-color: #007cba;
}
.tabs-management .tabs-list .tab-item .tab-item-header {
  align-items: center;
  background-color: #f9f9f9;
  display: flex;
  justify-content: space-between;
  padding: 0.625rem;
}
.tabs-management .tabs-list .tab-item .tab-item-header .tab-item-title {
  cursor: pointer;
  flex: 1;
  font-weight: 500;
}
.tabs-management .tabs-list .tab-item .tab-item-header .tab-item-title:hover {
  text-decoration: underline;
}
.tabs-management .tabs-list .tab-item .tab-item-header .tab-item-actions {
  display: flex;
  gap: 4px;
}
.tabs-management .tabs-list .tab-item .tab-item-preview {
  height: 80px;
  overflow: hidden;
}
.tabs-management .tabs-list .tab-item .tab-item-preview img,
.tabs-management .tabs-list .tab-item .tab-item-preview video {
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
}
.tab-editor {
  background-color: #f9f9f9;
  border-radius: 4px;
  margin-top: 1rem;
  padding: 1rem;
}
.tab-editor .tab-editor-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.tab-editor .tab-editor-header h3 {
  margin: 0;
}
.tab-editor .tab-editor-fields > div {
  margin-bottom: 1rem;
}
.tab-editor .tab-editor-fields .tab-description-field label,
.tab-editor .tab-editor-fields .tab-title-field label {
  display: block;
  margin-bottom: 4px;
}
.tab-editor .tab-editor-fields .tab-title-editor {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-top: 4px;
  min-height: 40px;
  padding: 8px;
}
.tab-editor .tab-editor-fields .tab-description-editor {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-top: 4px;
  min-height: 100px;
  padding: 8px;
}
.tab-editor .tab-editor-fields .tab-button-text-editor {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-top: 4px;
  min-height: 40px;
  padding: 8px;
}
.tab-editor .tab-editor-fields .tab-media-field .media-upload-container {
  margin-top: 4px;
}
.tab-editor .tab-editor-fields .tab-media-field .media-preview {
  margin-bottom: 0.625rem;
}
.tab-editor .tab-editor-fields .tab-media-field .media-preview img,
.tab-editor .tab-editor-fields .tab-media-field .media-preview video {
  margin-bottom: 0.625rem;
  max-height: 200px;
  max-width: 100%;
}
.tab-editor .tab-editor-fields .tab-media-field .media-preview .media-actions {
  display: flex;
  gap: 8px;
}
.tab-editor .tab-editor-fields .tab-media-field .media-upload- {
  background-color: #f5f5f5;
  border: 1px dashed #ccc;
  padding: 1rem;
  text-align: center;
  width: 100%;
}
.tab-editor .tab-editor-fields .tab-media-field .media-upload-:hover {
  background-color: #f0f0f0;
}
