.modal-template-container .fds-modal-container {
    width: min(764px, 80vw);
}

@media (max-width: 767px) {
    .modal-template-container .fds-modal-container {
        width: 100%;
        margin: 0;
        bottom: 0;
        top: unset;
        position: fixed;
        overflow-y: auto;
        max-height: 100vh !important;
        height: -webkit-fit-content !important;
        height: -moz-fit-content !important;
        height: fit-content !important;
        border-radius: 16px 16px 0 0 !important;
    }
}

.modal-template-container .fds-modal-header {
    display: none !important;
}

.modal-template-container .fds-modal-body {
    padding: 6px !important;
    border-radius: 20px;
    height: 100% !important;
    max-height: 80vh !important;
}

@media (max-width: 767px) {
    .modal-template-container .fds-modal-body {
        border-radius: unset !important;
        overflow-y: unset !important;
        max-height: 100vh !important;
    }
}

.modal-template-footer-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-template-footer-title::before,
.modal-template-footer-title::after {
    content: "";
    flex: 1;
    min-width: 0;
    height: 1px;
    background-color: #e9ecef;
    width: 150px;
}

@media (max-width: 767px) {

    .modal-template-footer-title::before,
    .modal-template-footer-title::after {
        width: 100%;
    }
}
.main-module__slot___qNSan {
    border: 1px solid var(--border-light);
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 7px;
    height: 100%;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.main-module__slot___qNSan:hover {
    border-color: #6933fa !important;
}

.main-module__slot___qNSan:hover path {
    stroke: #6933fa !important;
}

/* Icon area turns purple when slot is hovered (hover anywhere on UploadSlot) */
.main-module__slot___qNSan:hover .main-module__iconSlotWrap___JZXk5 {
    color: #6933fa !important;
}

.main-module__slot___qNSan:hover .main-module__iconSlotWrap___JZXk5 *,
.main-module__slot___qNSan:hover .main-module__iconSlotWrap___JZXk5 svg {
    color: inherit !important;
    fill: currentColor !important;
}

/* group-hover: label turns purple when slot is hovered */
.main-module__slot___qNSan:hover .main-module__label___ed2z2 {
    color: #6933fa !important;
}

.main-module__iconSlotWrap___JZXk5 {
    color: #5a5a5a;
}

.main-module__iconSlotWrap___JZXk5 svg {
    fill: currentColor !important;
}

.main-module__slotActive___uEp9g {
    border: 2px dashed #6933fa;
    background: rgba(105, 51, 250, 0.08);
}

.main-module__iconWrap___O43Ut {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    color: #5a5a5a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
}

.main-module__label___ed2z2 {
    color: #5a5a5a;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
    text-align: center;
}

.main-module__subText___lFLj1 {
    color: #888;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
}

/* group-hover: subText turns purple when slot is hovered */
.main-module__slot___qNSan:hover .main-module__subText___lFLj1 {
    color: #6933fa !important;
}
.video-generator-sidebar {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    z-index: 1;
}

.video-generator-sidebar::before {
    content: "";
    position: absolute;
    background-color: white;
    inset: 0;
    z-index: 0;
    opacity: 0.85;
}

.video-generator-sidebar>* {
    position: relative;
    z-index: 1;
}

.video-generator-upload-slot {
    border-width: 1px;
    border-color: #b5b5b5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.video-generator-upload-slot:hover {
    border-color: rgba(138, 99, 255, 0.65);
}

/* Progress Bar Styles - Custom div-based progress bar */
.video-progress-bar {
    background-color: white;
    border-radius: 9999px;
}

.video-progress-fill {
    background-color: #8a63ff;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

@keyframes videoProgressAnimation {
    from {
        width: 0%;
    }

    to {
        width: 98%;
    }
}

.group:hover.icon-hover .fd-icon {
    color: var(--fds-purple-50) !important;
}

.group:hover.icon-hover svg {
    color: var(--fds-purple-50) !important;
    fill: var(--fds-purple-50) !important;
}

.group:hover.icon-hover svg path {
    color: var(--fds-purple-50) !important;
    fill: var(--fds-purple-50) !important;
}

.video-icons .fd-icon {
    color: #5a5a5a !important;
}

.video-icons .fd-icon:hover {
    color: #141414 !important;
}

.video-icons .fds-icbtn:hover {
    background-color: #fff !important;
}

.video-grey-filled-icon path {
    fill: #5a5a5a !important;
}

.video-grey-filled-icon svg {
    width: 16px !important;
    height: 16px !important;
}

.d-flex-important {
    display: flex !important;
}

.group:hover .video-grey-filled-icon path {
    fill: #6933fc !important;
}

.video-property-icons svg {
    width: 16px;
    height: 16px;
    color: #5a5a5a;
}

.group:hover .video-property-icons path {
    fill: #6933fc !important;
}

.group:hover .video-border-only-icon path {
    stroke: #6933fc !important;
    fill: none !important;
}

.video-dropdown .fds-input-wrapper.fds-input-m {
    color: #5a5a5a;
}

.video-dropdown .fds-dropdown-item-container {
    padding: 6px !important;
}

.video-dropdown .fds-menu-item-wrapper {
    padding: 4px 8px !important;
}

.hide-container {
    width: 0;
    padding: 0;
    overflow: hidden;
    border-width: 0;
}

.show-container {
    width: calc(50% - 14px);
    padding: 7px 1px;
    overflow: auto;
    border: 1px dashed #B5B5B5 !important;
    height: 100%;
}

.animation-slide-in {
    animation: slideIn 0.3s linear forwards;
}

.animation-slide-in-end-image {
    animation: slideInEndImage 0.3s linear forwards;
}

@keyframes slideIn {
    from {
        width: 0;
        padding: 0;
        overflow: hidden;
        border-width: 0;
        opacity: 0;
    }

    to {
        width: calc(50% - 14px);
        padding: 7px 1px;
        overflow: auto;
        border-width: 1px;
        opacity: 100%;
    }
}

@keyframes slideInEndImage {
    from {
        width: 0;
        padding: 0;
        overflow: hidden;
        border-width: 0;
        opacity: 0;
    }

    to {
        width: 100%;
        padding: 7px 1px;
        overflow: auto;
        border-width: 1px;
        opacity: 100%;
    }
}

.arrow-move-left {
    position: relative;
    animation: arrowMoveLeft 0.3s linear forwards;
}

@keyframes arrowMoveLeft {
    from {
        left: 50%;
    }

    to {
        left: 0%;
    }
}

.property-selection input {
    font-size: 14px !important;
}

.property-selection .fds-dropdown {
    border-color: #F0F0F0 !important;
}

.pill:empty {
    display: none;
}

.audio-input-container button {
    padding: 0 10px !important;
}

.active-feature-dropdown-label path {
    fill: #6933FA !important
}

.active-feature-dropdown-label .highlight-text {
    color: #6933FC !important;
}

.generate-image-slot {
    background: var(--fds-primary-20) !important;
}

.right-section-tabs .tab.active {
    background-color: white;
}

.right-section-tabs .tab {
    border: none !important;
    padding: 8px 12px !important;
    background-color: inherit;
}

.right-section-tabs .tab-label {
    line-height: 100%;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: #5A5A5A;
}

.right-section-tabs .active .tab-label {
    color: #6933FA;
}

.icon-divider {
    width: 1px;
    height: 24px;
    background-color: #E0E0E0;
}

.bg-source-selector .fds-selector-container {
    width: 100%;
}

.bg-source-selector .fds-selector-option .selected path {
    fill: #6933FA !important
}

.bg-source-selector .fds-selector-option:hover path {
    fill: #6933FA !important;
}

.bg-source-selector .fds-selector-option:hover .option-label {
    color: #6933FA !important;
}

.bg-source-selector .option-icon-container {
    width: 20px !important;
    height: 20px !important;
}

.bg-source-selector .fds-selector-option {
    flex: 1;
    min-width: 100px;
}

.generation-model-selection-modal.fds-modal-container {
    height: calc(100vh - 68px) !important;
    top: 70px;
}

.generation-model-selection-modal .fds-modal-body {
    padding-inline: 20px !important;
    padding-block: 4px !important;
    height: auto !important;
    max-height: 80vh !important;
}

.generation-model-selection-modal .fds-modal-header {
    padding: 20px;
    background-color: #ffffff;
    display: flex !important;
    overflow-y: auto !important;
}

.generation-model-selection-modal .fds-back-button {
    display: none;
}

.generation-model-selection-modal .fds-modal-background {
    background: rgba(171, 168, 168, 0.1) !important;
    -webkit-backdrop-filter: blur(15px) !important;
            backdrop-filter: blur(15px) !important;
    overflow: hidden !important;
}

.video-modal-icons svg {
    width: 12px;
    height: 12px;
    color: #5A5A5A;
}

.model-modal-feature-tabs .active .tab-label {
    color: #6933FA;
}

.model-modal-feature-tabs .tab.active {
    background-color: #F7F5FC !important;
    border: 1px solid transparent;
}

.model-modal-feature-tabs .tab {
    padding: 8px 12px !important;
    border: 1px solid #F0F0F0;
}

.action-ctas-tooltip .tippy-content {
    box-shadow:
        3px 3px 4px 0 rgba(105, 51, 255, 0.06),
        6px 8px 6px 0 rgba(105, 51, 255, 0.04) !important;
    padding: 8px !important;
    border-radius: 8px;
}

.action-ctas-tooltip {
    border: 1px solid #F0F0F0 !important;
    border-radius: 8px;
}

.video-card-prompt-clamp {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Feature Tabs on left side CSS */
.video-feature-tabs :not(.active)>.tab-label {
    color: #B5B5B5 !important;
}

.video-feature-tabs .tab-label {
    padding-inline: 12px !important;
    height: 20px;
}

.video-feature-tabs .tabs-header::after {
    z-index: 8;
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    background: #b5b5b5;
    height: 2px;
    border-radius: 10px 10px 10px 10px;
    opacity: 0.5;
}

.video-feature-tabs .tab.active:after {
    height: 2px !important;
    bottom: 4px !important;
}

.video-feature-tabs .tab {
    padding: 10px 0px !important;
}
