#wpsp-post-panel-modal {

    .wpsp-post-panel-content {
        max-width: 922px;
        background: #f9f8fd;
    }

    .wpsp-post-panel {
        .wpsp-post-panel-modal-settings {
            flex-basis: 65%;
            padding: 24px 10px 10px 30px;

            h2 {
                font-size: 20px;
                font-weight: 500;
                line-height: 120%;
                color: #1D2939;
                letter-spacing: 0px;
                margin: 0 0 20px 0;
            }

            .wpsp-post--card {
                background: rgb(255, 255, 255);
                padding: 16px;
                border-radius: 12px;

                .card--title {
                    display: flex;
                    align-items: center;
                    margin-bottom: 16px;
                    gap: 8px;
                    // justify-content: space-between;
                    .wpsp-reset-schedule-on {
                        button {
                            background: transparent;
                            border: none;
                            cursor: pointer;
                            svg {
                                width: 20px;
                                height: 20px;
                                display: block;
                            }
                        }
                    }
                    .schedule-on-label {
                        display: flex;
                        align-items: center;
                        gap: 4px;
                    }
                    h4.title {
                        margin: 0;
                        font-size: 16px;
                        line-height: 1.2em;
                        font-weight: 500;
                        color: #1D2939;
                    }
                }
                
                .schedule-on-tooltip {
                    position: relative;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    width: 20px;
                    height: 20px;
                    color: #98a2b3;
                    cursor: pointer;

                    svg {
                        width: 16px;
                        height: 16px;
                        display: block;
                    }

                    .wpsp-republish-unpublish-doc-link svg {
                      width: 20px;
                      height: 20px;
                    }

                    .info {
                        position: absolute;
                        left: 50%;
                        bottom: calc(100% + 10px);
                        transform: translateX(-50%) translateY(6px);
                        width: 260px;
                        max-width: min(260px, 80vw);
                        background: #101828;
                        border-radius: 8px;
                        padding: 10px 12px;
                        box-shadow: 0 10px 24px rgba(16, 24, 40, 0.2);
                        opacity: 0;
                        visibility: hidden;
                        pointer-events: none;
                        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
                        z-index: 10;

                        span {
                        color: #ffffff;
                        font-size: 12px;
                        font-weight: 400;
                        line-height: 1.45;
                        display: block;
                        }

                        &::after {
                        content: "";
                        position: absolute;
                        left: 50%;
                        top: 100%;
                        transform: translateX(-50%);
                        border-width: 6px;
                        border-style: solid;
                        border-color: #101828 transparent transparent transparent;
                        }
                    }

                    &:hover .info,
                    &:focus-within .info {
                        opacity: 1 !important;
                        visibility: visible !important;
                        transform: translateX(-50%) translateY(0);
                    }
                }

                .wpsp-post--items {
                    .card--title {
                        margin-bottom: 8px;
                    }
                }

                &.wpsp-post--card-publish-on {
                  .wpsp-post-items--wrapper .wpsp-post--items {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    gap: 20px;

                    .card--title {
                      margin-bottom: 0;
                    }
                    .wpsp-date--picker {
                      flex: 1;
                      max-width: 340px;
                    }
                  }
                }
                
            }
            .wpsp-post-items-advanced-schedule-wrapper {
                .wpsp-advanced-scheduled-on {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    gap: 16px;

                    .wpsp-advanced-schedule-on-input {
                        flex-basis: 50%;
                        input {
                            width: 100%;
                        }
                    }
                    .wpsp-post--items {
                      flex-basis: 50%;
                      .wpsp-date--picker {
                          button, a {
                            margin-top: 0 !important;
                            background-color: #F3F2FF;
                            color: #6C62FF;
                            border: 1px solid #F3F2FF;
                            max-height: 40px;
                            // min-height: 40px;
                          }
                      }
                    }
                }
            }


            .wpsp-post-panel-modal-settings-schedule {
                margin-bottom: 20px;

                .wpsp-post-items--wrapper {
                    display: flex;
                    gap: 16px;

                    .wpsp-post--items {
                        flex: 1;

                        .card--title {
                            margin-bottom: 8px;

                            h5 {
                                font-size: 14px;
                                color: #475467;
                                font-weight: 500;
                                margin: 0;

                            }
                        }
                        .wpsp-date--picker {
                            .wpsp-date--picker-controls {
                                display: flex;
                                align-items: center;
                                gap: 12px;

                                > span {
                                    flex: 1;
                                }
                            }

                            input {
                                font-size: 14px;
                                line-height: 140%;
                                color: #6e6e8d;
                                border: 1px solid #ECEFF5;
                                border-radius: 8px;
                                padding: 0 12px 0 12px;
                                min-height: 40px;
                                max-height: 40px;
                                width: 100%;
                                background: transparent;
                                cursor: pointer;

                                &:focus {
                                    outline: 0;
                                    box-shadow: none;
                                }
                            }

                            .wpsp-date-reset-btn {
                                border: 1px solid #d0d5dd;
                                background: #fff;
                                border-radius: 8px;
                                color: #475467;
                                cursor: pointer;
                                font-size: 13px;
                                font-weight: 500;
                                line-height: 1;
                                min-height: 40px;
                                padding: 0 14px;

                                &:hover {
                                    border-color: #98a2b3;
                                    color: #344054;
                                }

                                &:focus {
                                    outline: 0;
                                    box-shadow: none;
                                }
                            }
                        }
                        &.wpsp-post--items-manual-schedule {
                            display: flex;
                            gap: 20px;
                            align-items: center;
                            justify-content: space-between;

                            .card--title {
                                margin-bottom: 0;
                            }
                            .wpsp-select--option {
                              flex: 1;
                              max-width: 340px;
                            }
                        }
                        label input {
                          appearance: none;
                          width: 16px;
                          height: 16px;
                          background: rgba(0, 0, 0, 0);
                          border: 1px solid #d7dbdf;
                          border-radius: 4px;
                          display: inline-flex;
                          align-items: center;
                          justify-content: center;
                          margin: 0;
                          padding: 0;
                          box-shadow: none;
                          box-sizing: border-box;
                          outline: 0;
                          transition: .25s ease-in-out;
                          position: relative;
                          cursor: pointer;
                          &::after {
                            content: "";
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            width: 5px;
                            height: 10px;
                            margin-top: -1px;
                            border: solid #fff;
                            border-width: 0 2px 2px 0;
                            box-sizing: border-box;
                            transition: ease-in-out .35s;
                            transform: translate(-50%, -50%) rotate(45deg);
                          }
                          &:checked {
                            background: #6d62ff;
                            border-color: #6d62ff;

                            &::after {
                              color: #fff;
                            }
                            &::before {
                              display: none;
                            }
                          }
                          
                        }
                    }

                    .select--wrapper label {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        color: #3c434a;
                    }
                }
            }
        }

        .wpsp-modal-social-share {
            background-color: #F2F0FA;
            padding: 24px 20px 24px 20px;
            flex-basis: 35%;

            h2 {
                font-size: 20px;
                font-weight: 500;
                color: #1D2939;
                line-height: 120%;
                letter-spacing: 0px;
                margin: 0 0 20px 0;
            }

            .wpsp-post--card {
                background: #fff;
                padding: 0;
                padding-top: 16px;
                border-radius: 12px;
            }

            .wpsp-disabled-social-share-checkbox {
                padding: 0 16px;

                .wpsp-share-checkbox {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    margin-bottom: 16px;

                    label {
                        font-size: 14px;
                        color: #1B1B50;
                        font-weight: 500;
                        cursor: pointer;
                    }
                }
            }
            .wpsp-custom-social-message-with-banner {
                position: relative;

                .wpsp-social-share-disabled-message {
                    position: absolute;
                    inset: 0;
                    margin: 16px;
                    margin-top: 0;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    background: #FFFFFFED;
                    z-index: 9;

                    h3 {
                        font-size: 14px;
                        font-weight: 600;
                        line-height: 150%;
                        color: #1D2939;
                        margin: 8px 0 8px;
                    }
                    p {
                        font-size: 12px;
                        line-height: 150%;
                        color: #6E6E8D;
                        margin: 0;
                    }
                }
            }
            .wpsp-upload-social-banner {
                padding: 0 16px;

                .wpsp-upload-social-banner-btn {
                    button {
                        width: 100%;
                        opacity: 1;
                        gap: 8px;
                        border-radius: 6px;
                        padding-top: 12px;
                        padding-right: 16px;
                        padding-bottom: 12px;
                        padding-left: 16px;
                        border-width: 1px;
                        border-style: solid;
                        border-color: #6C62FF;
                        border-image: initial;
                        background: #fff;
                        cursor: pointer;
                        color: #6C62FF;
                    }
                    p {
                        font-size: 11px;
                        color: #6E6E8D;
                        font-weight: 400;
                        line-height: 140%;
                        font-style: italic;
                        margin: 8px 0 16px;
                    }
                }

                .wpsp-social-banner-preview-image, 
                .wpsp-upload-social-banner-preview-inner {
                    width: 100%;
                    height: auto;
                    display: block;

                    img {
                        border-radius: 4px;
                        max-width: 100%;
                        max-height: 140px;
                        object-fit: cover;
                    }
                }

                .wpsp-upload-social-banner-remove {
                    margin-top: 10px;
                    gap: 12px;
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    button {
                        font-size: 12px;
                        line-height: 120%;
                        font-weight: 500;
                        padding: 11px 14px;
                        border-radius: 6px;
                        background: transparent;
                        flex: 1;
                        cursor: pointer;
                    }
                    .wpsp-upload-social-share-btn {
                        padding: 11px 12px;
                        color: #6C62FF;
                        border: 1px solid #6C62FF;
                    }
                    .wpsp-remove-banner-social-share-btn {
                        padding: 11px 12px;
                        color: #FD2626;
                        border: 1px solid #FFB4B4;
                    }
                }

                .wpsp-upload-social-banner-remove-confirm {
                    padding: 20px;
                    background: #F9F8FD;
                    border-radius: 4px;
                    border: 1px solid #F2F0FA;
                    
                    h3 {
                        font-size: 12px;
                        font-weight: 500;
                        line-height: 100%;
                        color: #1B1B50;
                        margin: 0;
                        margin-bottom: 8px;
                    }
                    p {
                        font-size: 11px;
                        line-height: 150%;
                        color: #1D2939;
                        margin: 0;
                        margin-bottom: 16px;
                    }
                    .wpsp-remove-social-banner-btn-wrapper {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        gap: 12px;

                        button {
                            font-size: 12px;
                            line-height: 120%;
                            font-weight: 500;
                            border-radius: 6px;
                            background: transparent;
                            cursor: pointer;
                        }
                        .wpsp-cancel-remove-banner-btn {
                            padding: 8px 20px;
                            color: #6C62FF;
                            border: 1px solid #6C62FF;
                        }
                        .wpsp-remove-banner-btn {
                            padding: 8px 16px;
                            color: #FD2626;
                            border: 1px solid #FFB4B4;
                            flex: 1;
                        }
                    }
                }
            }

            .wpsp-add-social-message-wrapper {
                padding: 0 16px;
                p {
                    font-size: 14px;
                    color: #1B1B50;
                    font-weight: 500;
                    margin: 10px 0 16px 0;
                }

                button {
                    width: 100%;
                    opacity: 1;
                    gap: 8px;
                    border-radius: 6px;
                    padding: 12px 16px;
                    border-width: 1px;
                    border-style: solid;
                    border-color: #6C62FF;
                    border-image: initial;
                    background: #6C62FF;
                    cursor: pointer;
                    color: #fff;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 8px;
                }
            }

            .wpsp-social-platforms-card-wrapper {
                margin-top: 24px;

                h4 {
                    font-size: 14px;
                    line-height: 120%;
                    font-weight: 500;
                    color: #6E6E8D;
                    margin: 0;
                    margin-bottom: 8px;
                    padding: 0 16px;
                }
                .wpsp-social-platforms--wrapper {
                    padding: 8px 5px 13px 16px;
                    margin-right: 5px;
                    max-height: 210px;
                    overflow: auto;

                    .wpsp-social-platforms-cards {
                        display: flex;
                        flex-direction: column;
                        gap: 20px;

                        .wpsp-social-card {
                            background: #F9FAFC;
                            border: 1px solid #ECEFF5;
                            padding: 8px;
                            border-radius: 8px;

                            .social-platforms-card-header {
                                display: flex;
                                align-items: center;
                                gap: 8px;
                                margin-bottom: 8px;

                                .wpsp-social-platform-icon-bubble {
                                  display: inline-flex;
                                }
                                .wpsp-preview-name {
                                    font-size: 14px;
                                    font-weight: 500;
                                    line-height: 1.2em;
                                    color: #1B1B50;
                                }
                            }
                            .social-platforms-card-content {
                                display: flex;
                                align-items: center;
                                background: #FFF;
                                padding: 8px;
                                border-radius: 8px;

                                svg,
                                img {
                                    width: 24px;
                                    height: 24px;
                                    border-radius: 50%;
                                    box-sizing: border-box;
                                    border: 1px solid #FFF;
                                    max-width: 100%;
                                }
                                .count-card {
                                    width: 24px;
                                    height: 24px;
                                    border-radius: 50%;
                                    border: 1px solid #FFF;
                                    background: #F3F2FF;
                                    display: flex;
                                    align-items: center;
                                    justify-content: center;
                                    font-size: 7px;
                                    line-height: 120%;
                                    font-weight: 500;
                                    color: #6C62FF;
                                    box-sizing: border-box;
                                    cursor: pointer;
                                }
                            }
                            .social-platforms-card-content > *:not(:first-child) {
                                margin-left: -6px;
                            }
                        }
                    }
                }
                .wpsp-social-btn--wrapper {
                    padding: 11px 16px 16px;
                    box-shadow: 0px -1px 16px 0px #0000000F;

                    button{
                        font-size: 12px;
                        line-height: 100%;
                        font-weight: 500;
                        width: 100%;
                        border-radius: 6px;
                        padding-top: 12px;
                        padding-right: 16px;
                        padding-bottom: 12px;
                        padding-left: 16px;
                        border-width: 1px;
                        border-style: solid;
                        border-color: #6c62ff;
                        border-image: initial;
                        background: #fff;
                        cursor: pointer;
                        color: #6c62ff;
                    }
                    button.wpsp-share-now-btn {
                        background: #6C62FF;
                        color: #fff;
                        margin-top: 10px;
                    }
                    button.wpsp-share-now-btn:disabled {
                        opacity: 0.5;
                        cursor: not-allowed;
                    }
                }
            }
        }

        .wpsp-post-items--wrapper {
            .sc-publish-future {
                margin-top: 0;

                .sc-publish-future-buttons {
                    margin-top: 10px;
                    display: flex;
                    gap: 10px;
                }

                .sc-publish-future-buttons button.button {
                    padding: 8px 10px !important;
                    background: #6C62FF !important;
                    border-radius: 6px !important;
                    border: 1px solid #6C62FF !important;
                    cursor: pointer;
                    line-height: 0;
                    &:focus {
                        box-shadow: none;
                        outline: 0;
                    }
                }
            }
        }

        input[type="checkbox"] {
            width: 16px;
            height: 16px;
            border: 1px solid #D7DBDF;
            border-radius: 4px;
            background: transparent;
            margin: 0;
            &:checked::before {
                content: url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%233582c4%27%2F%3E%3C%2Fsvg%3E) / '';
                margin: -1px -3px;
                height: 16px;
                width: 18px;
                transform: rotate(0deg);
                border: unset;
            }
            &:focus {
                box-shadow: none;
                outline: 0;
            }
        }

        select {
            font-size: 14px;
            line-height: 140%;
            font-weight: 400;
            color: #6e6e8d;
            border: 1px solid #ECEFF5;
            box-shadow: none;
            border-radius: 8px;
            padding: 0 24px 0 12px;
            min-height: 40px;
            max-height: 40px;
            max-width: 25rem;
            -webkit-appearance: none;
            background: #fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 8px top 55%;
            background-size: 12px 12px;
            cursor: pointer;
            vertical-align: middle;
            width: 100%;

            &:focus {
                border: 1px solid #ECEFF5;
            }
        }
    }

    .wpsp-post-panel .wpsp-disabled-social-share-checkbox input[type="checkbox"] {
        appearance: none;
        width: 16px;
        height: 16px;
        background: transparent;
        border: 1px solid #D7DBDF;
        border-radius: 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        box-shadow: none;
        box-sizing: border-box;
        outline: 0;
        transition: 0.25s ease-in-out;
        position: relative;
        cursor: pointer;
    }
    .wpsp-post-panel .wpsp-disabled-social-share-checkbox input[type="checkbox"]::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 10px;
        margin-top: -1px;
        border: solid #FFFFFF;
        border-width: 0 2px 2px 0;
        box-sizing: border-box;
        transition: ease-in-out .35s;
        transform: translate(-50%, -50%) rotate(45deg);
    }
    .wpsp-post-panel .wpsp-disabled-social-share-checkbox input[type="checkbox"]:checked {
        background: #6d62ff;
        border-color: #6d62ff;
    }
    .wpsp-post-panel .wpsp-disabled-social-share-checkbox input[type="checkbox"]:checked::after {
        color: #FFFFFF;
    }
    .wpsp-post-panel .wpsp-disabled-social-share-checkbox input[type="checkbox"]:checked::before {
        display: none;
    }

    #wpsp-custom-toast-container {
        position: fixed;
        top: 24px;
        right: 24px;
        z-index: 999999;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .wpsp-custom-toast {
        min-width: 260px;
        max-width: 360px;
        padding: 12px 14px;
        border-radius: 8px;
        color: #fff;
        font-size: 13px;
        line-height: 1.3;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
        opacity: 0;
        transform: translateY(-8px);
        transition: all 0.2s ease;
    }

    .wpsp-custom-toast.show {
        opacity: 1;
        transform: translateY(0);
    }

    .wpsp-custom-toast.success {
        background: #16a34a;
    }

    .wpsp-custom-toast.error {
        background: #dc2626;
    }
    .wpsp-post-panel-inner-modal {
        .wpsp-custom-template-modal {
            .wpsp-platform-icons {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 8px;
                margin-bottom: 16px;

                .wpsp-platform-icon-button-wrapper {
                    &.active {
                        width: 32px;
                        height: 32px;
                        border-radius: 8px;
                        background: #ffffff;
                        box-shadow: 0px 6px 15px 0px #1B1B501F;
                        border: 1px solid #ECEFF5;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        transition: ease-in-out 0.3s;
                        position: relative;

                        .wpsp-platform-icon {
                            &::after {
                                content: '';
                                position: absolute;
                                bottom: -10px;
                                left: 50%;
                                transform: translateX(-50%);
                                width: 0;
                                height: 0;
                                border-left: 6px solid transparent;
                                border-right: 6px solid transparent;
                                border-top: 7px solid #ffffff;
                                z-index: 1;
                            }

                            &:hover {
                                transform: translateY(0px);
                            }
                        
                            svg path{
                                fill: #fff;
                            }
                        }  
                    }
                    // &:hover {
                    //     .wpsp-platform-icon {
                    //         transform: translateX(-4px);
                    //         &::after {
                    //             display: none;
                    //         }
                    //     }
                    // }
                    .wpsp-platform-icon {
                        width: 24px;
                        height: 24px;
                        border-radius: 50%;
                        padding: 6px;
                        border: none;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        transition: ease-in-out 0.3s;
                        background: #98A2B3 !important;
                        position: relative;  
                        cursor: pointer;  

                        &:hover {
                            transform: translateY(-2px);
                        }
                        &.facebook.active {
                            background-color: #1877f2 !important;
                        }
                        &.twitter.active {
                            background-color: #000000 !important;
                        }
                        &.linkedin.active {
                            background-color: #0077b5 !important;
                        }
                        &.pinterest.active {
                            background-color: #bd081c !important;
                        }
                        &.instagram.active {
                            background-color: #e4405f !important;
                        }
                        &.medium.active {
                            background-color: #00ab6c !important;
                        }
                        &.threads.active {
                            background-color: #000000 !important;
                        }
                        &.google_business.active {
                            background-color: #db4437 !important;
                        }
                               

                        &.has-data {
                            // background: #ffffff !important;
                            // border-radius: 8px;
                            // border: 1px solid #ECEFF5;

                            &:before {
                                content: '';
                                position: absolute;
                                top: -1px;
                                right: -2px;
                                width: 4px;
                                height: 4px;
                                background-color: #06c08d;
                                border-radius: 50%;
                            }
                        }
                    }
                }
            }
            .wpsp-tooltip-wrapper {
                position: relative;
                display: inline-block;

                &:nth-child(1),
                &:nth-child(2) {
                  .wpsp-tooltip {
                    left: 72px;

                    &:after {
                        left: 38px;
                    }
                }

                
                }
            }

            .wpsp-tooltip {
                position: absolute;
                top: 40px;
                left: 50%;
                transform: translateX(-50%);
                background-color: #FFF;
                color: #1D2939;
                padding: 12px;
                font-size: 11px;
                line-height: 150%;
                font-weight: 600;
                border-radius: 8px;
                max-width: 216px;
                white-space: nowrap;
                opacity: 0;
                visibility: hidden;
                transition: all .2s ease;
                box-shadow: 0px -8px 12px 5px rgba(51,65,85,.0192156863),0px -20px 25px 5px rgba(51,65,85,.1019607843);
                z-index: 999999999;

                span {
                    font-weight: 400;
                    color: #6E6E8D;
                }

                &:after {
                    content: "";
                    position: absolute;
                    top: -12px;
                    left: 50%;
                    margin-left: 12px;
                    transform: translateX(-50%) rotate(-90deg);
                    border-width: 12px;
                    border-style: solid;
                    border-color: #FFF rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
                }
            }

            /* Show on hover */
            .wpsp-tooltip-wrapper:hover .wpsp-tooltip {
                opacity: 1;
                visibility: visible;
            }
        }
    }
    .wpsp-modal--header {
        padding: 16px 24px;
        background: #fff;
        border-bottom: 1px solid #f0f0f1;
        border-radius: 14px 14px 0 0;
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
    }

    .wpsp-modal--footer {
        display: flex;
        justify-content: flex-end;
        gap: 16px;
        padding: 12px 16px;
        border-top: 1px solid rgb(236, 239, 245);
        background: #f9f8fd;
        border-radius: 0 0 14px 14px;
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10;

        .btn {
            font-size: 14px;
            line-height: 100%;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 14px 20px;
            border-radius: 6px;
            border: none;
            gap: 8px;
            cursor: pointer;

            &.primary-btn {
                color: #FFF;
                background: #6C62FF;
            }

            &.secondary-btn {
                color: #6C62FF;
                background: #F3F2FF;
            }
        }
        
    }

    .wpsp-date-time-section {
        display: flex;
        gap: 16px;
        
        select {
            font-size: 13px;
            line-height: 140%;
            font-weight: 400;
            color: #6E6E8D;
            border: 1px solid #eceff5;
            box-shadow: none;
            border-radius: 8px;
            padding: 0 24px 0 12px;
            min-height: 40px;
            max-height: 40px;
            max-width: 25rem;
            -webkit-appearance: none;
            appearance: none;
            background: #fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 8px top 55%;
            background-size: 12px 12px;
            cursor: pointer;
            vertical-align: middle;
            width: 100%;

            &:focus {
                outline: 0;
                box-shadow: none;
            }
        }
        input {
            font-size: 14px;
            font-weight: 400;
            line-height: 140%;
            color: #6e6e8d;
            width: 100%;
            padding: 0 12px;
            border: 1px solid #eceff5;
            border-radius: 8px;
            min-height: 40px;
            max-height: 40px;
            background: #FFFFFF;

            &:focus {
                outline: 0;
                box-shadow: none;
            }
        }
    }

    /*.wpsp-post-panel-inner-modal {
        // overflow-x: hidden;
    }

    // Custom social template modal styles
    .wpsp-custom-template-modal {
        max-width: 922px !important;
        width: 90vw !important;
        top: 20px;
        margin: 0 auto;
        // overflow: hidden;
    }*/

    .wpsp-custom-template-modal .wpsp-components-modal__header {
        border-bottom: 1px solid #ECEFF5;
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 16px 32px;
        background: #FFF;
        border-radius: 14px 14px 0 0;
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999999;
    }
    .wpsp-custom-template-modal .wpsp-custom-social-doc-link:focus {
        box-shadow: none;
    }
    .wpsp-custom-template-modal .wpsp-components-modal__content.has-scrolled-content:not(.hide-header) .wpsp-components-modal__header {
        border-bottom-color: #ECEFF5;
    }
    .wpsp-custom-template-modal .wpsp-components-modal__content {
        flex: 1;
        margin-top: 0;
        overflow: auto;
        padding: 0;
    }
    .wpsp-custom-template-modal .wpsp-components-modal__header .wpsp-components-modal__header-heading {
        font-size: 20px;
        font-weight: 500;
        line-height: 1.2em;
        color: #1D2939;
        margin: 0;
    }
    /* Close button sits inside the sticky modal header (flex row with
       justify-content: space-between pushes it to the right edge).
       Styled as a 32x32 icon button. */
    .wpsp-custom-template-modal .wpsp-components-button {
        flex: 0 0 auto;
        border: none;
        background: #FFF;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        margin: 0;
        transition: background-color 0.15s ease;
        position: absolute;
        top: 0;
        right: -45px;
        z-index: 999999999;
        svg {
            width: 20px;
            height: 20px;
            fill: #475467;
            outline: none;
        }
        &:hover:not(:disabled) {
            background: #F3F2FF;
        }
        &:focus:not(:disabled) {
            box-shadow: none;
            outline: 0;
        }
    }
    .wpsp-disabled-message {
        font-size: 12px;
        font-weight: 400;
        line-height: 22px;
        color: #1B1B50;
        margin: 0;
        padding-top: 8px;
    }
}

::-webkit-scrollbar {
  width: 6px;
  height: 20px;
}
::-webkit-scrollbar-track {
  background: #FFF;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #E1E0E6;
  border-radius: 4px;
  transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: #E1E0E6;
}

#wpsp-custom-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpsp-custom-toast {
    min-width: 260px;
    max-width: 360px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.wpsp-custom-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.wpsp-custom-toast.success {
    background: #16a34a;
}

.wpsp-custom-toast.error {
    background: #dc2626;
}


.wpsp-custom-template-modal .components-modal__header {
  border-bottom: 1px solid #ECEFF5;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: #FFF;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.wpsp-custom-template-modal .wpsp-custom-social-doc-link:focus {
    box-shadow: none;
}
.wpsp-custom-template-modal .components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header {
    border-bottom-color: #ECEFF5;
}
.wpsp-custom-template-modal .components-modal__content {
  flex: 1;
  margin-top: 0;
  overflow: auto;
  padding: 0;
}
.wpsp-custom-template-modal .components-modal__header .components-modal__header-heading {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2em;
  color: #1D2939;
}
.wpsp-custom-template-modal .components-button svg {
  width: 20px;
  fill: #475467;
  outline: none;
}
.wpsp-custom-template-modal .components-button:focus:not(:disabled) {
    box-shadow: none;
    outline: 0;
}

/* Custom Social Template Styles */

/* Global button wrapper styling */

.wpsp-custom-template-label-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wpsp-global-template {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  position: relative;

  .wpsp-tooltip-wrapper {
    line-height: 0;
  }
}
.wpsp-custom-template-label-wrap span,
.wpsp-global-template span {
    font-size: 13px;
    font-weight: 500;
    color: #1B1B50;
}

/* Advance Schedule new css */
.wpsp-post-items-advanced-schedule-wrapper .wpsp-global-template {
    margin-bottom: 16px;
}
.wpsp-post-items-advanced-schedule-wrapper .wpsp-global-template span.title {
    font-size: 16px;
    margin-bottom: 0;
    flex: 1;
}
#wpsp-post-panel-modal .wpsp-post-panel .wpsp-global-template input.wpsp-slider {
    position: relative;
    display: flex;
    width: 36px;
    height: 18px;
    transition: ease-in-out .25s;
    background: #7c8db5;
    border: 1px solid #7c8db5;
    border-radius: 50px;
    margin: 0;
    box-sizing: border-box;
    box-shadow: none;    
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
#wpsp-post-panel-modal .wpsp-post-panel .wpsp-global-template .wpsp-slider:before {
    display: none;
}
#wpsp-post-panel-modal .wpsp-post-panel .wpsp-global-template .wpsp-slider:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50px;
    left: 0;
    top: 0;
    transition: all 0.2s ease;
    box-shadow: none;
    background: #fff;
    z-index: 2;
    cursor: pointer;
}
#wpsp-post-panel-modal .wpsp-post-panel .wpsp-global-template input.wpsp-slider:checked {
    background: #6a4bff;
    border-color: #6a4bff;
}
#wpsp-post-panel-modal .wpsp-post-panel .wpsp-global-template input:checked::after {
    left: 18px;
    background: #ffffff;
}
h5.title {
    font-size: 14px;
    color: #475467;
    font-weight: 500;
    margin: 0;
}
.wpsp-global-template span.title {
    font-size: 14px;
    color: #475467;
    font-weight: 500;
    margin: 0;
    margin-bottom: 8px;

}
.wpsp-date--picker input {
    font-size: 14px;
    line-height: 140%;
    font-weight: 400;
    color: #6e6e8d;
    border: 1px solid #eceff5;
    border-radius: 8px;
    padding: 0 12px;
    min-height: 40px;
    max-height: 40px;
    width: 100%;
    cursor: pointer;
}
/* .wpsp-post-items-advanced-schedule-wrapper .wpsp-post--items .card--title {
    margin-bottom: 0 !important;
} */
.wpsp-post--items .wpsp-advanced-scheduled-on input[type="text"] {
    font-size: 14px;
    line-height: 140%;
    font-weight: 400;
    color: #6e6e8d;
    border: 1px solid #eceff5;
    box-shadow: none;
    border-radius: 8px;
    padding: 0 12px;
    min-height: 40px;
    max-height: 40px;
    width: 50%;
    margin-right: 16px;
    background: transparent;
    cursor: pointer;
}
.components-popover__content {
    padding: 12px !important;
}
.wpsp-post--items .wpsp-date--picker .button.button-secondary,
.wpsp-post--items .wpsp-date--picker .wpsp-advanced-link {
    font-size: 14px;
    font-weight: 500;
    line-height: 130%;
    text-decoration: none;
    color: #6c62ff;
    border: 1px solid #6c62ff;
    background: transparent;
    padding: 10px 16px;
    border-radius: 8px;
    margin-top: 20px !important;
    
    &:focus {
        outline: 0;
        box-shadow: none;
    }
}
.wpsp-post--items .wpsp-advanced-scheduled-on input[type="text"] {
    font-size: 14px;
    line-height: 140%;
    font-weight: 400;
    color: #6e6e8d;
    border: 1px solid #eceff5;
    box-shadow: none;
    border-radius: 8px;
    padding: 0 12px;
    min-height: 40px;
    max-height: 40px;
    width: 50%;
    margin-right: 16px;
    background: transparent;
}
.wpsp-custom-template-label-wrap input,
.wpsp-use-global-template-checkbox-wrapper input,
.wpsp-use-global-template-checkbox-wrapper input[type=checkbox] {
  display: none;
}
.wpsp-custom-template-label-wrap label {
  width: 36px;
  height: 18px;
  min-height: 18px;
  position: relative;
  cursor: pointer;
  display: flex;
}
.wpsp-custom-template-label-wrap label:before {
  content: "";
  position: absolute;
  width: 36px;
  height: 18px;
  left: 0;
  /* transition: background 0.1s 0.1s ease; */
  background: #7c8db5;
  border-radius: 50px;
  margin: 0;
  box-sizing: border-box;
  cursor: pointer;
}
.wpsp-custom-template-label-wrap input[type=checkbox]:checked + label::before {
  background: #6a4bff;
}
.wpsp-custom-template-label-wrap label:after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: 1px;
  top: 1px;
  transition: all 0.2s ease;
  box-shadow: none;
  background: #fff;
  z-index: 2;
  cursor: pointer;
}
.wpsp-custom-template-label-wrap input[type=checkbox]:checked + label::after {
  left: 19px;
  background: #ffffff;
}

.wpsp-custom-template-label-wrap span,
.wpsp-global-template span {
  font-size: 13px;
  font-weight: 500;
  color: #1B1B50;
}
.wpsp-global-template label {
  width: 36px;
  height: 18px;
  min-height: 18px;
  position: relative;
  cursor: pointer;
  display: flex;
}
.wpsp-global-template label:before {
  content: "";
  position: absolute;
  width: 36px;
  height: 18px;
  left: 0;
  /* transition: background 0.1s 0.1s ease; */
  background: #7c8db5;
  border-radius: 50px;
  margin: 0;
  box-sizing: border-box;
  cursor: pointer;
}
.wpsp-global-template input[type=checkbox]:checked + label::before {
  background: #6a4bff;
}
.wpsp-global-template label:after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: 1px;
  top: 1px;
  transition: all 0.2s ease;
  box-shadow: none;
  background: #fff;
  z-index: 2;
  cursor: pointer;
}
.wpsp-global-template input[type=checkbox]:checked + label::after {
  left: 19px;
  background: #ffffff;
}
.wpsp-custom-template-button-wrapper {
  margin: 15px 0;
  padding: 15px;
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  text-align: start;
}
.wpsp-custom-template-button-wrapper .components-button.is-secondary {
  margin-top: 10px;
}
.components-button.is-secondary:focus {
  box-shadow: none;
}
.components-button.is-secondary:disabled:not(:focus), 
.components-button.is-secondary[aria-disabled=true]:hover:not(:focus), 
.components-button.is-secondary[aria-disabled=true]:not(:focus) {
    box-shadow: none;
}
.wpsp-add-template-btn {
  background: #6c62ff !important;
  border-color: #6c62ff !important;
  color: #fff !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
}

.wpsp-add-template-btn:hover {
  background: #5b50f5 !important;
  border-color: #5b50f5 !important;
}

button.components-button.wpsp-add-template-btn:disabled {
  opacity: .5;
  cursor: no-drop;
}

/* Modal styling */
.wpsp-custom-template-modal {
  max-width: 922px !important;
  width: 90vw !important;
}

.wpsp-modal-content {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.wpsp-modal-layout {
  display: flex;
  /* min-height: 500px; */
  min-height: 0;
  flex: 1;
  max-height: calc(100vh - 255px);
}

/* Left side - Template Editor */
.wpsp-modal-left {
  flex: 1;
  padding: 24px 32px;
  border-right: 1px solid #E9E7F4;
  background: #F9F8FD;
  overflow: auto;
}

.wpsp-platform-icon svg path {
  /* fill: #FFF; */
} 
/* 
.wpsp-platform-icon svg {
  width: 16px;
  height: 16px;
  fill: #6b7280;
  transition: all 0.2s ease;
} */

.wpsp-platform-icon svg {
  min-height: 16px;
}

.wpsp-platform-icon.active svg path {
  /* fill: #1877f2; */
}

/* Facebook specific active state */
button.wpsp-platform-icon.facebook.active svg path {
  fill: #1877f2;
}

/* Twitter/X specific active state */
button.wpsp-platform-icon.twitter.active svg path,
button.wpsp-platform-icon.x.active svg path {
  fill: #000000;
}

/* LinkedIn specific active state */
button.wpsp-platform-icon.linkedin.active svg path {
  fill: #0077b5;
}

/* Pinterest specific active state */
button.wpsp-platform-icon.pinterest.active svg path {
  fill: #e60023;
}

/* Instagram specific active state */
button.wpsp-platform-icon.instagram.active svg path {
  fill: #e4405f;
}

.wpsp-custom-template-content-wrapper h5 {
    font-size: 12px;
    font-weight: 400;
    line-height: 22px;
    color: #1b1b50;
    margin: 0;
    padding-bottom: 16px;
    padding: 8px 5px 8px 10px;
    border-left: 2px solid #2196f3;
    margin-bottom: 10px;
    border-radius: 6px;
    background: linear-gradient(45deg, #e6f0ff, #f5f9ff, #e6f0ff);
}

/* Profile Selection Area Wrapper */
.wpsp-profile-selection-area-wrapper {
  position: relative;
}

/* Selected Profiles Area */
.selected-profile-area {
  padding: 6px 12px;
  border: 1px solid #ECEFF5;
  background: #FFF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
}

.wpsp-profile-selection-area-wrapper.no-profile-found .selected-profile-area::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffffa1;
  border-radius: 8px;
  cursor: default;
}

.selected-profile-area ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.selected-profile-area .select-profile-icon {
  width: 8px;
  height: 8px;
  border-style: solid;
  border-width: 0 1.5px 1.5px 0px;
  transform: rotate(45deg);
  border-color: #475467;
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  margin-right: 4px;
  cursor: pointer;
}
.selected-profile-area .select-profile-icon img {
  display: none;
}

.selected-profile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.selected-profile .wpsp-selected-profile-btn {
  opacity: 1;
}

.selected-profile .wpsp-selected-profile-action .wpsp-remove-profile-btn {
  opacity: 0;
}

.selected-profile:hover .wpsp-selected-profile-action .wpsp-selected-profile-btn {
  opacity: 0;
}

.selected-profile:hover .wpsp-selected-profile-action .wpsp-remove-profile-btn {
  opacity: 1;
  transform: scale(1);
}

.selected-profile:not(:first-child) {
  margin-left: -4px;
}

.selected-profile .wpsp-profile-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #FFF;
}

.selected-profile .wpsp-profile-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  font-size: 12px;
  /* border: 2px solid #6366f1; */
}

.wpsp-remove-profile-btn {
  position: absolute;
  top: -6px;
  right: 8px;
  width: 14px;
  height: 12px;
  border-radius: 50%;
  background: #6E6E8D;
  color: #FFF;
  border: 1px solid #FFF;
  font-size: 12px;
  padding-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease-in-out;
  transform: scale(.2);
  cursor: pointer;
}

.wpsp-selected-profile-btn {
  position: absolute;
  top: -6px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.wpsp-selected-profile-btn svg {
  width: 100%;
  height: 100%;
}

/* Profile Selection Dropdown */
.wpsp-profile-selection-dropdown {
  background: #FFF;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0px 12px 48px 0px #1B1B501A;
  border-radius: 6px;
  padding: 12px 16px;
  position: absolute;
  left: 0;
  right: 0;
  top: 52px;
  z-index: 99999999;
}

.wpsp-profile-selection-dropdown-item {
  padding: 0;
}

.wpsp-profile-card {
  display: flex;
  align-items: center;
  padding: 4px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  margin: 0;
}

.wpsp-profile-card:not(:last-child) {
  margin-bottom: 4px;
}

.wpsp-profile-card.selected,
.wpsp-profile-card:hover {
  background: #F3F2FF;
}

.wpsp-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
}

.wpsp-profile-card .wpsp-profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpsp-profile-card .wpsp-profile-placeholder {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: 50%;
}

.wpsp-profile-info {
  flex: 1;
  min-width: 0;
}

.wpsp-profile-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2em;
  color: #1D2939;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wpsp-profile-type {
  font-size: 12px;
  color: #6b7280;
  text-transform: capitalize;
}

.wpsp-profile-checkmark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: #6366f1;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* No Profiles State */
.wpsp-no-profiles {
  text-align: center;
  padding: 40px 20px;
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
}

.wpsp-no-profiles-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.wpsp-no-profiles-text {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.wpsp-no-profiles-subtext {
  font-size: 12px;
  color: #6b7280;
}

/* Select Profile Hint */
.wpsp-select-profile-hint {
  text-align: center;
  padding: 30px 20px;
  background: #f8faff;
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  margin-bottom: 20px;
}

.wpsp-hint-icon {
  font-size: 24px;
  margin-bottom: 8px;
  opacity: 0.7;
}

.wpsp-hint-text {
  font-size: 14px;
  color: #4f46e5;
  font-weight: 500;
}

/* Template Textarea */
.wpsp-template-textarea {
  margin-bottom: 20px;
}
.wpsp-use-global-template-text.disabled {
  opacity: 0.5;
}
.wpsp-use-global-template-text.disabled .wpsp-tooltip-wrapper .wpsp-tooltip-text {
  display: none;
}
textarea.wpsp-template-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ECEFF5;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4em;
  resize: vertical;
  font-family: inherit;
  background: #FFF;
  box-shadow: none;
  color: #000;
  &:disabled {
    opacity: 0.5;
  }
}

.wpsp-textarea-wrapper {
  position: relative;
}

.wpsp-profile-selection-area-wrapper.no-profile-found .wpsp-textarea-wrapper textarea.wpsp-template-input {
  pointer-events: none;
}

.wpsp-profile-selection-area-wrapper.no-profile-found .wpsp-textarea-wrapper {
  pointer-events: none;
}

.wpsp-profile-selection-area-wrapper.no-profile-found .wpsp-textarea-wrapper::after {
  content: '';
  position: absolute;
  top: 1px;
  bottom: 5px;
  left: 1px;
  right: 1px;
  background: #ffffffa1;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
}

.wpsp-template-input:focus {
  outline: none;
  border-color: #6C62FF;
  box-shadow: none;
}

.wpsp-profile-selection-area-wrapper.no-profile-found .wpsp-template-input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: none;
}

.wpsp-template-input::placeholder {
  color: #6E6E8D;
}

.wpsp-template-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}

.wpsp-placeholders {
  color: #6b7280;
}

.wpsp-custom-template-field-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wpsp-template-meta .wpsp-custom-template-field-info span {
  cursor: pointer;
}
.wpsp-template-meta .wpsp-custom-template-field-info span {
  display: inline-flex;
}

.wpsp-char-count {
  font-weight: 500;
  color: #98A2B3;
}

/* .wpsp-char-count.over-limit {
  color: #dc2626;
  font-weight: 600;
} */

/* Date & Time Scheduling Section */
.wpsp-date-time-section {
  margin-bottom: 0 !important;
  padding: 16px;
  background: #FFF;
  border-radius: 8px;
  position: relative;
}

.wpsp-profile-selection-area-wrapper.no-profile-found .wpsp-date-time-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffffa1;
  border-radius: 8px;
}

.wpsp-date-time-section > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
}

.wpsp-date-time-section > div > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.wpsp-date-time-section label {
  font-weight: 500 !important;
  display: block;
  margin-bottom: 6px !important;
  font-size: 14px;
  color: #475467;
  text-transform: capitalize;
}
.wp-core-ui select.wpsp-date-select,
.wp-core-ui select.wpsp-time-select {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2em;
  color: #1B1B50;
  border-color: #ECEFF5;
  box-shadow: none;
  border-radius: 8px;
  padding: 0 24px 0 12px;
  min-height: 36px;
  max-width: 100%;
  width: 100%;
  background: #fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 5px top 55%;
  background-size: 16px 16px;
  cursor: pointer;
  vertical-align: middle;
}

.wp-core-ui select.wpsp-date-select:focus,
.wp-core-ui select.wpsp-time-select:focus {
    border-color: #6C62FF;
    box-shadow: none;
}

.wpsp-date-time-section input[type="number"],
.wpsp-date-time-section input[type="date"],
.wpsp-date-time-section input[type="time"] {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2em;
  color: #1B1B50;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ECEFF5;
  border-radius: 8px;
  min-height: 36px;
  background: #FFFFFF;
}

.wpsp-date-time-section input[type="number"]:focus,
.wpsp-date-time-section input[type="date"]:focus,
.wpsp-date-time-section input[type="time"]:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: none;
}

/* Right side - Preview */
.wpsp-modal-right {
  flex: 1;
  padding: 18px 16px;
  background: #F2F0FA;
  display: flex;
  flex-direction: column;
  max-width: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}

.wpsp-modal-content .wpsp-preview-card {
  background: #FFF;
  border-radius: 8px;
  padding: 24px 16px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.wpsp-modal-layout .wpsp-preview-not-available {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
  flex: 1;
}
.wpsp-modal-content.no-profile-found .wpsp-preview-not-available {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
}

.wpsp-preview-card h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2em;
  margin: 12px 0 16px;
  color: #1D2939;
  cursor: default;
}

.wpsp-preview-card p {
  font-size: 14px;
  line-height: 1.4em;
  color: #6E6E8D;
  margin: 0;
  cursor: default;
}

.wpsp-modal-content.no-profile-found .wpsp-preview-card .wpsp-preview-not-available svg path {
  fill: #CBD1DC;
}

.wpsp-modal-content.no-profile-found .wpsp-preview-card .wpsp-preview-not-available h3 {
  color: #CBD1DC;
}

.wpsp-modal-content.no-profile-found .wpsp-preview-card .wpsp-preview-not-available p {
  color: #CBD1DC;
}

.wpsp-modal-content.no-profile-found .wpsp-preview-card .wpsp-preview-not-available a {
  display: none;
}

/* .wpsp-preview-not-available a {
  font-size: 14px;
  line-height: 1.2em;
  font-weight: 500;
  color: #6C62FF;
} */

.wpsp-preview-header {
  margin-bottom: 16px;
}

.wpsp-preview-avatar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wpsp-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpsp-avatar-circle img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  border-radius: 50%;
}

.wpsp-preview-info {
  flex: 1;
}

.wpsp-preview-name {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2em;
  color: #1D2939;
}

.wpsp-preview-date {
  font-size: 14px;
  line-height: 1.2em;
  color: #475467;
  margin-top: 4px;
}

.wpsp-preview-text {
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.wpsp-preview-text img {
  max-width: 100%;
  max-height: 170px;
  
  border-radius: 8px;
  margin: 8px 0;
}

.wpsp-preview-text p {
  font-size: 13px;
  line-height: 1.5em;
  margin: 14px 0;
}

.wpsp-preview-see-more {
  display: inline;
  margin-left: 4px;
  background: none;
  border: none;
  padding: 0;
  color: #6c62ff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  &:hover {
    text-decoration: underline;
  }
}

.wpsp-preview-placeholder {
  font-size: 14px;
  color: #9ca3af;
  font-style: italic;
  margin-bottom: 16px;
}

.wpsp-preview-post {
  overflow: hidden;
}

.wpsp-preview-image {
  height: 200px;
  border-radius: 8px;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  margin-bottom: 16px;
  overflow: hidden;
}

.wpsp-preview-post-content {
  padding: 0;
}

.wpsp-preview-url {
  font-size: 14px;
  line-height: 22px;
  font-style: italic;
  color: #6E6E8D;
  margin-bottom: 6px;
}

.wpsp-preview-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1em;
  color: #1B1B50;
  margin-bottom: 8px;
}

.wpsp-preview-excerpt {
  font-size: 14px;
  color: #6E6E8D;
  line-height: 1.4em;
}

.wpsp-preview-excerpt img {
max-width: 100%;
max-height: 170px;
border-radius: 8px;
}

/* Modal Footer */
.wpsp-modal-footer {
  align-items: center;
  border-top: 1px solid #ECEFF5;
  padding: 12px 16px;
  background: #F9F8FD;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
}

.wpsp-modal-footer .components-button {
  padding: 12px 16px !important;
  font-size: 14px !important;
  line-height: 1em;
  font-weight: 500;
  border-radius: 8px !important;
  font-weight: 500 !important;
  min-height: 48px;
  transition: unset !important;
  border: none !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.wpsp-modal-footer .components-button.wpsp-cancel-btn {
  color: #6C62FF;
  background: #F3F2FF;
}

.wpsp-modal-footer .components-button.wpsp-save-btn {
  color: #FFFFFF;
  background: #6C62FF;
}

.wpsp-cancel-btn:hover:not(:disabled) {
  color: #6C62FF !important;
  background: #F3F2FF !important;
  box-shadow: none !important;
}

.wpsp-delete-btn {
  background: #ef4444 !important;
  color: #FFFFFF !important;
}

.wpsp-delete-btn:hover:not(:disabled) {
  background: #ef4444 !important;
}

.wpsp-save-btn:hover:not(:disabled) {
  background: #6C62FF !important;
}

.wpsp-save-btn:disabled {
  background: #d1d5db !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
}

.wpsp-custom-tabs {
  margin-bottom: 8px;
}

.wpsp-custom-tabs .wpsp-tab-header {
  display: flex;
  border: 1px solid #EBEEF5;
  border-radius: 4px;
}
.wpsp-custom-tabs button.tab-profile {
  flex: 1;
  border: none;
  padding: 8px 12px;
  background: transparent;
  font-size: 13px;
  line-height: 1.2em;
  font-weight: 400;
  color: #1B1B50;
}
.wpsp-custom-tabs button:not(.active) {
  cursor: pointer;
}
.wpsp-custom-tabs button.tab-profile.active {
  background: #EBEEF5;
  color: #6C62FF;
}

/* Responsive design */
@media (max-width: 768px) {
  .wpsp-post-panel-modal-content {
    flex-direction: column;
    gap: 0;
  }

  .wpsp-custom-template-modal {
    width: 95% !important;
    max-width: none !important;
  }

  .wpsp-modal-layout {
    flex-direction: column;
    min-height: auto;
    overflow: auto;
  }

  .wpsp-modal-left {
    border-right: none;
    padding: 20px 24px;
    overflow: unset;
  }

  .wpsp-modal-right {
    padding: 16px 14px;
    max-width: 100%;
    overflow: unset;
  }

  .wpsp-preview-card {
      padding: 20px 12px;
  }

  /*.wpsp-platform-icons {
    justify-content: center;
  }*/
  
  .wpsp-profile-card {
    padding: 10px;
  }

  .wpsp-profile-avatar {
    width: 32px;
    height: 32px;
    margin-right: 8px;
  }

  .wpsp-profile-card .wpsp-profile-image {
    width: 32px;
    height: 32px;
  }

  .wpsp-profile-card .wpsp-profile-placeholder {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .selected-profile .wpsp-profile-image,
  .selected-profile .wpsp-profile-placeholder {
    width: 36px;
    height: 36px;
  }

  .wpsp-date-time-section > div {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .wpsp-modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .wpsp-modal-footer .components-button {
    width: 100%;
    justify-content: center;
  }
}

/* Template indicator for profiles with custom templates */
.social-profile.has-custom-template {
  position: relative;
}

.social-profile.has-custom-template::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 5px;
  background: #6c62ff;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Loading states */
.wpsp-template-loading {
  opacity: 0.6;
  pointer-events: none;
}

.wpsp-template-saving {
  position: relative;
}

.wpsp-template-saving::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #6c62ff;
  border-radius: 50%;
  animation: wpsp-spin 1s linear infinite;
}

@keyframes wpsp-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error states */
.wpsp-template-error {
  color: #d63638;
  font-size: 13px;
  margin-top: 5px;
}

/* Success states */
.wpsp-template-success {
  color: #00a32a;
  font-size: 13px;
  margin-top: 5px;
}

/* Tooltip for Use Global Template */
.wpsp-tooltip-wrapper,
.schedule-on-tooltip {
  position: relative;
  display: inline-block;
}
.wpsp-tooltip-icon {
  cursor: pointer;
  vertical-align: middle;
  margin-left: 2px;
}
.wpsp-tooltip-text,
.wpsp-post-items-advanced-schedule-wrapper .wpsp-post--items .schedule-on-tooltip .info,
#wpsp-post-panel-modal .wpsp-post-panel .wpsp-post-panel-modal-settings .wpsp-post--card .wpsp-post--items .schedule-on-tooltip .info {
  width: 216px;
  background: #FFFFFF;
  color: #1D2939;
  line-height: 150%;
  text-align: left;
  border-radius: 6px;
  padding: 12px;
  position: absolute;
  z-index: 999;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 13px;
  font-weight: 400 !important;    
  box-sizing: border-box;
  box-shadow: 0px 10px 10px -5px #3341550A, 0px 20px 25px -5px #3341551A;
  pointer-events: none;
}
.wpsp-tooltip-wrapper:hover .wpsp-tooltip-text,
.wpsp-post-items-advanced-schedule-wrapper .wpsp-post--items .schedule-on-tooltip:hover .info,
.wpsp-tooltip-wrapper:focus-within .wpsp-tooltip-text {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  z-index: 999;
}
.wpsp-tooltip-text::after,
.wpsp-post-items-advanced-schedule-wrapper .wpsp-post--items .schedule-on-tooltip .info::after,
#wpsp-post-panel-modal .wpsp-post-panel .wpsp-post-panel-modal-settings .wpsp-post--card .wpsp-post--items .schedule-on-tooltip .info::after {
  content: '';
  position: absolute;
  top: unset;
  bottom: -10px;
  left: 50%;
  margin-left: 12px;
  transform: translateX(-50%) rotate(-90deg);
  border-width: 12px;
  border-style: solid;
  border-color: #fff rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
}
.wpsp-post-items-advanced-schedule-wrapper .wpsp-post--items .schedule-on-tooltip .info span,
#wpsp-post-panel-modal .wpsp-post-panel .wpsp-post-panel-modal-settings .wpsp-post--card .wpsp-post--items .schedule-on-tooltip .info span {
  color: #1D2939;
}

/* Global template warning message  */
.use-global-template-warning {
  width: 240px;
  background: #FFF;
  color: #1D2939;
  text-align: left;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  right: -110px;
  margin-top: -90px;
  transition: opacity 0.2s;
  font-size: 13px;
  font-weight: 400 !important;
  box-shadow: 0px 10px 10px -5px #3341550A, 0px 20px 25px -5px #3341551A;
  pointer-events: none;
}
.use-global-template-warning::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #FFF transparent transparent transparent;
}

.wpsp-social-share-settings-warpper {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}
.wpsp-social-share-settings-warpper .components-base-control.components-checkbox-control{
  order: 1;
}
.wpsp-social-share-settings-warpper .wpsp_image_upload{
  order: 2;
}
.wpsp-social-share-settings-warpper .wpsp-custom-tabs{
  order: 3;
}
.wpsp-social-share-settings-warpper .wpsp-social-share-wrapper{
  order: 4;
}
.wpsp-social-share-settings-warpper .wpsp-custom-template-button-wrapper{
  order: 5;
}
.wpsp-social-share-settings-warpper .wpsp-social-share-wrapper.enabled-custom-template{
  pointer-events: none;
  opacity: 0.5;
}


.wpsp-global-template.hide-preview .use-global-template-warning {
  right: 0;
}
.wpsp-global-template.hide-preview .use-global-template-warning::after {
  left: 95%;
}
.wpsp-custom-template-modal .wpsp-custom-social-footer-left span {
    color: #1c2839;
    font-size: 14px;
}
.wpsp-custom-template-modal .wpsp-custom-social-footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
}
.wpsp-custom-template-modal .wpsp-custom-social-footer-wrapper .wpsp-custom-social-footer-right {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.wpsp-add-social-message-text {
  position: relative;
}
.wpsp-custom-social-doc-link {
  display: inline-flex;
}
.wpsp-add-social-message-text:hover .wpsp-tooltip-text,
.wpsp-add-social-message-text:focus-within .wpsp-tooltip-text {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  z-index: 999;
  top: 35px;
  color: #000;
  width: 200px;
  height: 68px !important;
}
.wpsp-add-social-message-text .wpsp-tooltip-text::after {
  content: '';
  position: absolute;
  top: -6%;
  bottom: unset;
  left: 50%;
  margin-left: 12px;
  transform: translateX(-50%) rotate(-90deg);
  border-width: 12px;
  border-style: solid;
  border-color: #fff rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
}
#wpsp-components-modal-header-1 .wpsp-add-social-message-text .wpsp-tooltip-text::after {
  top: -10px;
}
#wpsp-components-modal-header-1 .wpsp-add-social-message-text:hover .wpsp-tooltip-text {
    left: -23px;
    top: 40px;
    height: 62px !important;
    width: 204px;
    padding: 12px;
    box-shadow: 0px -8px 12px 5px rgba(51,65,85,.0192156863),0px -20px 25px 5px rgba(51,65,85,.1019607843);
}
.components-modal__screen-overlay {
  background-color: #000000B2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 999999;

  .components-modal__frame {
    min-width: auto;
    margin: 0;
    box-shadow: none;
    background: transparent;
    // max-width: 300px;
    // min-width: unset;

    .components-modal__content {
      flex: 1;
      margin-top: 0;
      overflow: auto;
      padding: 0;
      background: #FFF;
      box-shadow: 0px 11px 24px 0px #00000029;
      border-radius: 8px;

      .components-modal__header {
        align-items: center;
        border-bottom: none;
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        height: auto;
        justify-content: space-between;
        left: 0;
        padding: 0;
        position: unset;
        top: 0;
        width: 100%;
        z-index: 10;
        
        .components-modal__header-heading {
          font-size: 16px;
          font-weight: 600;
          line-height: 150%;
          color: #1D2939;
          padding: 24px 24px 0 24px;
          margin: 0;
          margin-bottom: 8px;
          flex: 1;
        }

        .components-spacer {
          display: none;
        }

        button.components-button {
          display: none;
        }
      }

      p {
        font-size: 14px;
        line-height: 150%;
        color: #6E6E8D;
        padding: 0 24px 24px;
        margin: 0;
        max-width: 330px;
      }

      .wpsp-modal-actions,
      .wpsp-advanced-schedule-notice-modal__actions,
      .wpsp-disable-confirm-modal__actions {
        margin: 0 !important;
        justify-content: unset !important;
        gap: 0 !important;
        border-top: 1px solid #E5E5F2;
        display: flex;

        .components-button {
          flex: 1;
          padding: 10px 16px;
          display: flex;
          justify-content: center;
          background: transparent;
          box-shadow: none;
          border: none;
          border-radius: 0;
          font-size: 14px;
          line-height: 150%;
          font-weight: 500;
          height: 40px;
          cursor: pointer;

          &.is-secondary {
            color: #C63239;
            border-right: 1px solid #E5E5F2;
          }

          &.is-primary {
            color: #6C62FF;
            background: transparent !important;
            border: none !important;
          }

        }
      }
    }
  }
}

.wpsp-pro-option {
    position: relative;
    cursor: pointer;

    .wpsp-date--picker input {
        pointer-events: none;
        cursor: pointer;
    }
}

.wpsp-pro-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 43, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100100;
    padding: 20px;

    .wpsp-pro-popup {
        position: relative;
        background: #ffffff;
        border-radius: 16px;
        width: 100%;
        max-width: 550px;
        padding: 40px 40px 48px;
        box-shadow: 0 20px 60px rgba(20, 20, 43, 0.25);
        text-align: center;
        font-family: 'Inter', sans-serif;

        &__close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: transparent;
            border: 0;
            padding: 6px;
            cursor: pointer;
            line-height: 0;
            border-radius: 6px;

            &:hover { background: #f4f5f7; }
        }

        &__title {
            margin: 0 0 8px;
            font-size: 36px;
            font-weight: 700;
            font-style: italic;
            color: #FF8A3D;
            line-height: 1.1;
        }

        &__subtitle {
            margin: 0 0 28px;
            font-size: 22px;
            font-weight: 700;
            color: #14143B;
        }

        &__illustration {
            display: flex;
            justify-content: center;
            margin-bottom: 28px;

            img {
                max-width: 400px;
                width: 100%;
                height: auto;
                border-radius: 12px;
                display: block;
            }
        }

        &__cta {
            display: inline-block;
            background: #6C5CE7;
            color: #ffffff !important;
            font-size: 16px;
            font-weight: 600;
            padding: 14px 36px;
            border-radius: 8px;
            text-decoration: none;
            transition: background 0.2s ease;

            &:hover { background: #5847d6; color: #ffffff; }
            &:focus { box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.35); outline: none; }
        }
    }
}

