.splw-saved-templates-page-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.splw-saved-template-promo {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 30px 48px;

    &__text {
        flex: 1 0 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 36px;
        padding: 24px 0;
        overflow: hidden;
    }

    &__title-wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
        word-break: break-word;
    }

    &__title {
        color: #2c2d2f;
        font-family: 'Inter', sans-serif;
        font-size: 24px;
        font-weight: 600;
        line-height: 1.3;
        margin: 0;
        width: 100%;
        white-space: pre-wrap;
    }

    &__title-accent {
        background: linear-gradient(90deg, #ff512f 0%, #f09819 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

    &__desc {
        color: #4e4f52;
        font-family: 'Roboto', sans-serif;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        margin: 0;
        width: 100%;

        strong {
            font-weight: 700;
        }
    }

    &__cta {
        background: #f26c0d;
        border-radius: 4px;
        color: #ffffff;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 500;
        line-height: 28px;
        padding: 10px 24px;
        text-decoration: none;
        transition: background 0.2s ease-in-out;
        white-space: nowrap;
        gap: 5px;

        &:hover,
        &:focus {
            background: #da5b00;
            color: #ffffff;
        }
    }

    &__video {
        flex-shrink: 0;
        position: relative;
        width: 400px;
        max-width: 100%;
        aspect-ratio: 1920 / 1080;
        border-radius: 4px;
        overflow: hidden;
    }

    &__video-thumb {
        all: unset;
        position: relative;
        display: block;
        width: 100%;
        height: 100%;
        cursor: pointer;
        background-color: #f26c0d;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    &__video-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
    }

    &__video-play {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

        svg {
            margin-left: 3px;
        }
    }

    &__video-frame {
        width: 100%;
        height: 100%;
        border: 0;
    }
}

@media (max-width: 960px) {
    .splw-saved-template-promo {
        flex-direction: column;
        gap: 32px;
        padding: 32px;

        &__video {
            width: 100%;
        }
    }
}

.splw-saved-templates-page-container {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.splw-saved-template-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    &-left {
        display: flex;
        gap: 12px;
    }

    .splw-saved-template-search-field {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        height: 36px;
        padding: 6px 6px 6px 16px;
        width: 260px;
    }

    .splw-saved-template-select {
        border: 1px solid #e0e0e0;
        border-radius: 3px;
        height: 36px;
        min-width: 136px;
    }

    .splw-saved-template-select-apply {
        background: #fff;
        border: 1px solid #F26C0D;
        border-radius: 3px;
        color: #F26C0D;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        padding: 6px 16px;
        transition: background .3s ease-in-out, color .3s ease-in-out;
    }

    .splw-saved-template-add-new {
        display: flex;
        padding: 10px 24px 10px 20px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        border-radius: 4px;
        background: #F26C0D;
        color: #ffffff;
        font-size: 16px;
        font-weight: 500;
        line-height: 28px;
        cursor: pointer;

        &:hover {
            background: #da5b00;
        }

        svg {
            width: 24px;
            height: 24px;

            path {
                stroke: #FFF;
            }
        }
    }
}

.splw-saved-template-content-table {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    border-radius: 4px;
    border: 1px solid #FCE2CF;
    background: #FFF;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.08);
    overflow: auto;

    button {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }
}

.splw-saved-template-table-head,
.splw-saved-template-table-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;

    tr {
        display: flex;
        padding-left: 24px;
        align-items: center;
        align-self: stretch;
        justify-content: center;
    }

    .splw-saved-template-table-checkBox {
        input {
            margin-right: 16px;
        }
    }
}

.splw-saved-template-table-title {
    width: 504px;
    a span {
        color: #2271B1;
        font-weight: 500;
    }

    a:hover {
        span {
            color: #2581c5;
        }
    }
}

.splw-saved-template-table-shortcode {
    width: 320px;
    position: relative;

    .splw-shortcode-copy-tooltip {
        color: green;
        position: absolute;
        top: 22%;
        left: 252px;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
}

.splw-saved-template-shortcode-text {
    border-radius: 3px;
    border: 1px solid rgba(234, 219, 209, 1);
    background: rgba(249, 244, 242, 1);
    padding: 6px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    width: fit-content;
    cursor: pointer;
    transition: all .3s ease-in-out;

    &:hover {
        background: #F5EBE6;
    }
}

.splw-saved-template-table-date {
    width: 240px;
    .status {
        text-transform: capitalize;
    }
}

.splw-saved-template-table-action {
    width: 110px;

    >div {
        display: flex;
        gap: 16px;
    }
}

.splw-saved-template-table-head {
    tr {
        background: #FEEDE1;
        height: 48px;

        th {
            color: #2f2f2f;
            font-size: 16px;
            font-weight: 500;
            line-height: 20px;
            text-align: left;
            text-transform: capitalize;
        }
    }
}

.splw-saved-template-table-body {
    tr {
        height: 64px;

        &:nth-of-type(even) {
            background: #FDF9F7;
        }
    }

    td * {
        color: #2F2F2F;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
    }
}

.splw-saved-template-footer {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.splw-saved-template-pagination {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
}

.splw-saved-template-pagination-btn {
    align-items: center;
    background-color: transparent;
    border: 1px solid #757575;
    border-radius: 4px;
    box-sizing: border-box;
    color: #2f2f2f;
    display: flex;
    height: 36px;
    justify-content: center;
    width: 36px;
    cursor: pointer;

    &.btn-active {
        background-color: #2f2f2f;
        color: #fff;
    }

    &.btn-disabled {
        border-color: #ddd;

        path {
            fill: #ddd;
        }
    }
}