.sp-pcp-settings-page-container {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    position: relative;

    .sp-pcp-setting-tabs {
        display: flex;
        flex-direction: column;
        z-index: 10;
        width: 248px;
        height: 100%;
        background: #ffffff;
        border: 1px solid #DDDDDD;
        border-radius: 12px;
        padding: 16px;
        gap: 8px;

        ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
    }

    .sp-pcp-setting-tab {
        cursor: pointer;
        padding: 10px 20px 10px 8px;
        font-size: 14px;
        line-height: 20px;
        color: #1e1e1e;
        border-radius: 6px;
        font-weight: 500;
        position: relative;
        background: transparent;
        border: 1px solid transparent;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s ease;

        .sp-pcp-setting-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;

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

            path {
                stroke: #1e1e1e;
            }
        }

        &:hover {
            background: #f5f5f5;
        }

        &.active {
            background: #ffffff;
            color: #641DD7;
            border: 1px solid #641DD7;

            .sp-pcp-setting-icon path {
                stroke: #641DD7;
            }
        }
    }

    .sp-pcp-settings-select-field {
        .sp-pcp-component-title {
            width: 220px;
        }

        .sp-smart-post-select-field {
            width: 260px;
        }

        .sp-smart-post-component-mb {
            margin-bottom: 0;
        }
    }

    .sp-pcp-setting-tabs-bottom {
        display: none;
    }

    .sp-pcp-setting-tab-content {
        flex: 1;
        padding: 32px;
        background: #ffffff;
        border: 1px solid #DDDDDD;
        border-radius: 12px;
        min-width: 0;
    }

    hr {
        margin: 24px 0;
    }

    .components-input-control__backdrop {
        border-radius: 4px !important;
        border: 1px solid #DDDDDD !important;
    }

    .sp-pcp-settings-save-wrapper {
        display: flex;
        gap: 8px;
        margin-top: 30px;
        justify-content: flex-start;

        button {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 14px 24px;
            color: #FFFFFF;
            font-size: 16px;
            font-weight: 600;
            border-radius: 4px;
            border: none;
            background-color: #c5c5c6;
            cursor: pointer;
            transition: all 0.3s ease-in-out;
        }

        .sp-pcp-settings-save-btn {
            pointer-events: none;

            &.active {
                background-color: #3b9752;
                pointer-events: initial;
            }
        }

        .sp-pcp-settings-reset-btn {
            background-color: white;
            border: 1px solid #ff5b2e;
            color: #ff5b2e;
        }
    }

    .sp-pcp-settings-api-guideline {
        background: #F3F4F5;
        padding: 16px 0 16px 305px;
        margin: 36px -36px -32px -36px;
        display: flex;
        gap: 4px;

        a {
            display: flex;
            align-items: center;
        }
    }

    .sp-pcp-component-title {
        width: 270px;
        color: #2F2F2F;
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
    }

    .sp-pcp-component-title.site-mode-title {
        white-space: pre-line;
    }

    .sp-pcp-settings-advanced-controls {
        display: flex;
        flex-direction: column;
        gap: 20px;

        .sp-pcp-settings-option {
            padding-bottom: 20px;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            align-items: center;
            gap: 32px;
            justify-content: space-between;

            &:last-child {
                border-bottom: none;
            }
        }

        .sp-pcp-option-label-wrapper {
            display: flex;
            flex-direction: column;
            gap: 4px;
            width: 50%;
        }

        .sp-pcp-component-title {
            font-size: 14px;
            font-weight: 600;
            color: #2f2f2f;
            line-height: 20px;
        }

        .sp-pcp-option-help-text {
            font-size: 13px;
            font-weight: 400;
            color: #757575;
            line-height: 20px;
        }

        .sp-pcp-blocks-settings-select-field {
            .css-1y1fx19 svg {
                width: 24px !important;
                height: 24px !important;
            }
        }
        hr {
            margin: -25px 0;
        }

        .sp-pcp-settings-save-wrapper {
            margin: 0;
        }
    }

    .sp-pcp-settings-cache-time {
        width: 110px;
        gap: 2px;
        position: relative;

        .mins {
            display: flex;
            flex-direction: column;
            justify-content: center;
            user-select: none;
            padding: 0 10px;
            font-size: 12px;
            color: #555;
            border: none;
            height: 28px;
            background-color: #f5f5f5;
            border-radius: 0 5px 5px 0;
            position: absolute;
            right: 1px;
        }

        .components-input-base {
            height: 30px;
        }
    }

    .sp-pcp-settings-option {
        display: flex;
        align-items: center;
    }

    .api-source {
        .sp-pcp-component-title {
            display: block;
            padding-right: 20px;
            z-index: 10;
        }

        .sp-pcp-settings-info {
            display: inline-flex;
            transform: translateY(2px);
            padding-top: 0;
        }
    }

    .sp-pcp-setting-purge-cache {
        cursor: pointer;
        border-radius: 4px;
        background: #1A74E4;
        padding: 6px 12px;
        color: #FFFFFF;
        border: none;
    }

    .sp-pcp-settings-additional-codes {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .sp-pcp-component-title {
        display: flex;
        align-items: center;
    }
}


/* Buttons row */
.sp-pcp-settings-info {
    display: flex;
    cursor: help;
    position: relative;
    padding: 5px;

    img {
        height: 14px;
        width: 14px;
    }

    &:hover {
        .sp-pcp-settings-info-text {
            display: block;
        }
    }
}

.sp-pcp-settings-info-text {
    display: none;
    position: absolute;
    background: rgb(22 30 38);
    color: rgb(127 159 175);
    width: 290px;
    padding: 14px 20px;
    font-weight: normal;
    border-radius: 5px;
    z-index: 10;
    left: 22px;
    top: 0;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.contribute-text {
    margin-top: -46px;
    width: 450px;

    .sp-pcp-settings-modal-btn {
        cursor: pointer;
        font-weight: 600;
        text-decoration: underline;
    }
}

.sp-pcp-section-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 28px;
    color: #1d2327;
}

.sp-pcp-blocks-settings-toggle-btn {
    .react-toggle {
        touch-action: pan-x;
        display: inline-block;
        position: relative;
        cursor: pointer;
        background-color: transparent;
        border: 0;
        padding: 0;

        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;

        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        -webkit-tap-highlight-color: transparent;
    }

    .react-toggle-screenreader-only {
        border: 0;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .react-toggle--disabled {
        cursor: not-allowed;
        // opacity: 0.5;
        -webkit-transition: opacity 0.25s;
        transition: opacity 0.25s;
    }

    .react-toggle-track {
        width: 36px;
        height: 18px;
        padding: 0;
        border-radius: 30px;
        background-color: #BBBBBB;
        -webkit-transition: all 0.2s ease;
        -moz-transition: all 0.2s ease;
        transition: all 0.2s ease;
    }

    .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
        background-color: #BBBBBB;
    }

    .react-toggle--checked .react-toggle-track {
        background-color: #4AB866;
    }

    .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
        background-color: #4AB866;
    }

    .react-toggle-track-check {
        position: absolute;
        width: 14px;
        height: 10px;
        top: 0px;
        bottom: 0px;
        margin-top: auto;
        margin-bottom: auto;
        line-height: 0;
        left: 8px;
        opacity: 0;
        -webkit-transition: opacity 0.25s ease;
        -moz-transition: opacity 0.25s ease;
        transition: opacity 0.25s ease;
    }

    .react-toggle--checked .react-toggle-track-check {
        opacity: 1;
        -webkit-transition: opacity 0.25s ease;
        -moz-transition: opacity 0.25s ease;
        transition: opacity 0.25s ease;
    }

    .react-toggle-track-x {
        position: absolute;
        width: 10px;
        height: 10px;
        top: 0px;
        bottom: 0px;
        margin-top: auto;
        margin-bottom: auto;
        line-height: 0;
        right: 10px;
        opacity: 1;
        -webkit-transition: opacity 0.25s ease;
        -moz-transition: opacity 0.25s ease;
        transition: opacity 0.25s ease;
    }

    .react-toggle--checked .react-toggle-track-x {
        opacity: 0;
    }

    .react-toggle-thumb {
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
        position: absolute;
        top: 2px;
        left: 2px;
        width: 14px;
        height: 14px;
        border: 1px solid #BBBBBB;
        border-radius: 50%;
        background-color: #FAFAFA;

        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;

        -webkit-transition: all 0.25s ease;
        -moz-transition: all 0.25s ease;
        transition: all 0.25s ease;
    }

    .react-toggle--checked .react-toggle-thumb {
        left: 20px;
        border-color: #4ab866;
    }

    //   .react-toggle--focus .react-toggle-thumb {
    //     -webkit-box-shadow: 0px 0px 3px 2px #0099E0;
    //     -moz-box-shadow: 0px 0px 3px 2px #0099E0;
    //     box-shadow: 0px 0px 2px 3px #0099E0;
    //   }

    .react-toggle:active:not(.react-toggle--disabled) .react-toggle-thumb {
        -webkit-box-shadow: 0px 0px 5px 5px #0099E0;
        -moz-box-shadow: 0px 0px 5px 5px #0099E0;
        box-shadow: 0px 0px 5px 5px #0099E0;
    }
}

.sp-smart-post-blocks-settings-page .sp-pcp-blocks-setting-wrapper a.sp-pcp-classic-settings-page-link {
    color: #1a74e4;
    display: inline-block;
    margin-top: 24px;
    position: relative;
    right: 16px;
    font-weight: 500;
    margin-left: 335px;
}
/* Tools Tab Styles */
.sp-pcp-settings-tools-controls {
	display: flex;
	flex-direction: column;
	gap: 36px;
	width: 100%;

	.sp-pcp-settings-tools-section {
		display: flex;
		gap: 32px;
		width: 100%;

		.sp-pcp-settings-tools-section-header {
			width: 280px;
			flex-shrink: 0;

			.sp-pcp-settings-tools-section-title {
				color: #2F2F2F;
				font-size: 14px;
				font-weight: 500;
				line-height: 1.6;
				margin: 0;
			}
		}

		.sp-pcp-settings-tools-section-content {
			flex: 1;
			display: flex;
			flex-direction: column;
			gap: 24px;
			justify-content: center;

			.sp-pcp-settings-tools-subtitle {
				color: #2F2F2F;
				font-size: 13px;
				font-weight: 500;
				line-height: 20px;
				margin: 0;
				white-space: nowrap;
			}

			.sp-pcp-settings-tools-radio-group {
				display: flex;
				flex-direction: column;
				gap: 10px;

				.sp-pcp-settings-tools-radio {
					display: flex;
					align-items: center;
					gap: 8px;
					cursor: pointer;

					input[type="radio"] {
						display: none;
					}

					.sp-pcp-settings-tools-radio-label {
						color: #2F2F2F;
						font-size: 13px;
						line-height: 20px;
						position: relative;
						padding-left: 24px;

						&::before {
							content: '';
							position: absolute;
							left: 0;
							top: 50%;
							transform: translateY(-50%);
							width: 16px;
							height: 16px;
							border-radius: 10px;
							background: #FFFFFF;
							border: 1px solid #949494;
						}

						&::after {
							content: '';
							position: absolute;
							left: 5px;
							top: 50%;
							transform: translateY(-50%);
							width: 8px;
							height: 8px;
							border-radius: 50%;
							background: #FFFFFF;
							opacity: 0;
							transition: opacity 0.2s ease;
						}
					}

					&.active {
						.sp-pcp-settings-tools-radio-label {
							&::before {
								background: #3858E9;
								border-color: #3858E9;
							}

							&::after {
								opacity: 1;
							}
						}
					}
				}
			}

			.sp-pcp-settings-tools-file-input {
				display: flex;
				align-items: center;
				gap: 12px;
				border: 2px dashed transparent;
				transition: all 0.2s ease;


				.sp-pcp-settings-tools-file-btn {
					background: #F0F0F0;
					border: 1px solid #2F2F2F;
					border-radius: 4px;
					padding: 10px 16px;
					color: #2F2F2F;
					font-size: 13px;
					font-weight: 500;
					line-height: 13px;
					cursor: pointer;
					display: inline-block;
				}

				.sp-pcp-settings-tools-file-name {
					color: #757575;
					font-size: 13px;
					line-height: 20px;
				}


				&.dragging {
					border-style: dashed;
					border-color: #641DD7;
					background: #f6f0ff;
				}
			}

			.sp-pcp-settings-tools-btn {
				padding: 10px 16px;
				border-radius: 4px;
				border: none;
				color: #FFFFFF;
				font-size: 14px;
				font-weight: 600;
				line-height: 20px;
				text-transform: capitalize;
				cursor: pointer;
				white-space: nowrap;
				width: 150px;

				&.sp-pcp-settings-tools-btn-primary {
					background: #1A74E4;
					border-color: #1A74E4;

					&:hover {
						background: #155DB7;
						border-color: #155DB7;
					}
				}

				&.sp-pcp-settings-tools-btn-secondary {
					background: #BBBBBB;

					&:hover {
						background: #A8A8A8;
					}

					&.has-file {
						background: #1A74E4;

						&:hover {
							background: #155DB7;
						}
					}
				}
			}
		}
	}

	.sp-pcp-settings-tools-divider {
		height: 1px;
		background: #F0F0F0;
		width: 100%;
	}
}

/* Multi-select dropdown */
.sp-pcp-settings-tools-multiselect {
	margin-top: 12px;
	
	.sp-smart-post-select-field {
		min-width: 260px;
	}
}

/* React Select Multi-Select Styles */
.sp-pcp-settings-tools-multiselect {
	margin-top: 12px;
	min-width: 260px;

	.sp-pcp-tools-multi-select {
		.sp-pcp-tools__control {
			min-height: 38px;
			border: 1px solid #ddd;
			border-radius: 4px;

			&:hover {
				border-color: #ddd;
			}
		}

		.sp-pcp-tools__value-container {
			padding: 2px 4px;
		}

		.sp-pcp-tools__multi-value {
			background-color: #3858e9;
			border-radius: 4px;
			margin: 2px;
			display: flex;
			align-items: center;

			.sp-pcp-tools__multi-value__label {
				color: #fff;
				font-size: 13px;
			}

			.sp-pcp-tools__multi-value__remove {
				background: transparent;
				border: none;
				color: #fff;
				cursor: pointer;

				&:hover {
					background: transparent;
					color: #fff;
				}
			}
		}

		.sp-pcp-tools__placeholder {
			color: #757575;
			font-size: 13px;
		}

		.sp-pcp-tools__single-value,
		.sp-pcp-tools__input {
			font-size: 13px;
			color: #2f2f2f;
		}

		.sp-pcp-tools__menu {
			border: 1px solid #ddd;
			border-radius: 4px;
			box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
			margin-top: 4px;

			.sp-pcp-tools__menu-list {
				padding: 4px 0;

				.sp-pcp-tools__option {
					padding: 8px 12px;
					font-size: 13px;
					cursor: pointer;

					&:hover {
						background-color: #f0f0f0;
					}

					&.sp-pcp-tools__option--is-selected {
						background-color: #3858e9;
						color: #fff;
					}

					&.sp-pcp-tools__option--is-focused {
						background-color: #e0e0e0;
					}
				}
			}
		}

		.sp-pcp-tools__indicator-separator {
			display: none;
		}

		.sp-pcp-tools__dropdown-indicator,
		.sp-pcp-tools__clear-indicator {
			padding: 4px;
		}

        .sp-pcp-tools__input-container input {
            box-shadow: none;
            min-height: 26px;
        }
	}
}
