body .modal-new-field-content {
	font-family: avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		'Noto Sans', Ubuntu, Cantarell, 'Helvetica Neue', sans-serif,
		'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
		'Noto Color Emoji';
}

.pp-b-radius-05 {
	border-radius: 5px;
}

.hide {
	display: none !important;
}

.pp-w-10 {
	width: 10%;
}

.pp-w-23 {
	width: 23%;
}

.pp-w-33 {
	width: 33%;
}

.pp-w-50 {
	width: 50%
}

.pp-w-100 {
	width: 100%;
}

.flex {
	display: flex;
}

.p-025 {
	padding: 0.25rem;
}

.p-05 {
	padding: 0.5rem;
}

select.p-1 {
	padding: 1.5rem 1rem 0.5rem 1rem;
}

.col {
	flex-direction: column !important;
}

.ppModal {
	display: none;
	position: fixed;
	height: calc(100vh - 32px);
	width: 100%;
	bottom: 0;
	left: 0;
	background-color: rgba(0, 0, 0, .8);
	z-index: 10000;
}

.dragable-icon {
	display: inline-block;
	font-family: dashicons;
	font-size: 20px;
	font-style: normal;
	font-variant: normal;
	line-height: 1.4em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	cursor: move;
}

.dragable-icon:before {
	content: '\f333';
}

.pp-draggable-icon-option {
	font-size: 1.5rem;
	padding: 0.5rem;
}

.pp-draggable-icon-option:before {
	content: '\f333';
}

.modal-new-field-content {
	background-color: #fefefe;
	position: absolute;
	box-shadow: 2px 8px 20px 3px rgb(0 0 0 / 20%);
	margin: auto;
	border-radius: 6px;
	width: 31rem;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.new-field-modal-header {
	padding: 24px 16px;
	-webkit-box-shadow: 0 0 8px rgb(0 0 0 / 10%);
	box-shadow: 0 0 8px rgb(0 0 0 / 10%);
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.new-field-header {
	font-size: 28px;
	font-weight: 700;
}

.pp-modal-add-field {
	padding: 1.5rem;
}

.column {
	display: inline-block;
	padding: 20px;
}

.pp-form-label {
	font-size: 1rem;
	display: block;
	transform: translate3d(1rem, 1.5rem, 0rem);
	color: #aaa;
	position: absolute;
	pointer-events: none;
	transition: all .3s;
}

.pp-select-label {
	font-size: 1rem;
	display: block;
	transform: translate3d(0.5rem, 0.7rem, 0rem) scale(0.7);
	color: #aaa;
	position: absolute;
}

.input-field {
	transition: all 0.3s;
	padding: 0.5rem;
}

.submit-field {
	padding: 0.5rem;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	background-color: #E5E5E5;
	border-radius: 6px;
}

.pp- {
	font-size: 1rem;
	color: #aaa;
	position: absolute;
	opacity: 1;
	transform: translate3d(1rem, 1.3rem, 0rem);
	transform-origin: 0 0;
	transition: all 0.3s;
	pointer-events: none;
}

.input-box {
	transition: all 0.5s;
}

select.input-box {
	border-radius: 5px;
	background-color: #f2f2f2;
	border: 0;
	max-width: inherit;
}

input.input-box {
	border-radius: 5px;
	background-color: #f2f2f2;
	border: 0;
	padding: 1.5rem 1rem 0.5rem 1rem;
}

.input-box::placeholder {
	color: transparent;
}

.input-box:focus {
	box-shadow: none;
	outline: none;
}

.input-box:focus+.pp-form-label {
	transform: translate3d(0.45rem, 0.85rem, 0rem) scale(0.7);
}

.input-box:focus+.pp-form-label,
.input-box:not(:placeholder-shown)+.pp-form-label {
	transform: translate3d(0.45rem, 0.85rem, 0rem) scale(0.7);
}

.input-box:focus+.pp-name-label {
	transform: translate3d(-0.6rem, 0.85rem, 0rem) scale(0.7);
}

.input-box:focus+.pp-name-label,
.input-box:not(:placeholder-shown)+.pp-name-label {
	transform: translate3d(-0.6rem, 0.85rem, 0rem) scale(0.7);
}

.input-box:focus+.pp-default-label {
	transform: translate3d(0.1rem, 0.85rem, 0rem) scale(0.7);
}

.input-box:focus+.pp-default-label,
.input-box:not(:placeholder-shown)+.pp-default-label {
	transform: translate3d(0.1rem, 0.85rem, 0rem) scale(0.7);
}

.input-checkboxes {
	padding: 0.5rem;
}

.input-checkboxes label {
	font-size: 1rem;
}

.input-checkboxes input {
	border-radius: 5px;
	background-color: #f2f2f2;
	border: 0;
}

@media screen and (max-width: 782px) {
	input[type='checkbox'], input[type='radio'] {
		width: 1rem !important;
		height: 1rem !important;
	}
}

.table-form {
	overflow: hidden;
	border-radius: 5px;
}

table#field-table {
	border-collapse: collapse;
	width: 100%;
}

tr.table-header-footer {
	background: #dcdcde;
}

table#field-table th,
table#field-table td {
	padding: 1rem;
	margin: 0;
	text-align: center;
	overflow-wrap: break-word;
}

@media screen and (max-width: 782px) {
	table#field-table th,
	table#field-table td {
		padding: 0.8rem 0.5rem;
		font-size: 12px;
	}
}

.row-disabled {
	opacity: 0.3;
}

.row-removed {
	background-color: lightcoral;
	opacity: 0.3;
}

tr.row-removed td {
	text-decoration: line-through;
}

.pp-option-dropdown-box-icon {
	display: inline-block;
	font-family: dashicons;
	font-size: 1rem;
	font-style: normal;
	font-variant: normal;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	position: relative;
}

.pp-summary-option-icon {
	left: 0.5rem;
}

.pp-up-icon::before {
	content: '\f343';
}

.pp-down-icon::before {
	content: '\f347';
}

.pp-add-remove-option-icon {
	left: -0.25rem;
	top: 0.25rem;
}

.pp-add-option-row::before {
	content: '\f132';
}

.pp-remove-option-row::before {
	content: '\f158';
}

.pp-remove-option {
	border: 0px !important;
	background-color: transparent;
	font-size: 24px;
	padding: 0px;
	cursor: pointer;
}

.pp-remove-option:hover {
	color: red;
}

#pp-option-list-dropdown {
	background-color: #f2f2f2;
	position: relative;
	overflow: hidden;
}

#pp-option-label {
	padding: 0.5rem 1.5rem;
}

.pp-option-summary-box {
	transform-origin: bottom;
	transform: scaleY(0);
	transition: all .2s ease-in-out;
	visibility: hidden;
	opacity: 0;
	position: absolute;
	bottom: 16%;
	width: 93%;
	box-shadow: 0 2px 8px 0 rgb(24 24 32 / 24%);
	border-radius: 0.5rem;
	background-color: white;
	max-height: 352px;
	overflow-y: scroll;
}

.pp-option-summary-contents-opened {
	transform: scaleY(1);
	visibility: visible;
	opacity: 1;
}

.pp-option-label {
	transform: translate3d(1rem, 0.7rem, 0rem);
	font-size: 0.8rem;
}

.pp-option-input-box {
	transition: all 0.5s;
}

input.pp-option-input-box {
	background-color: #f2f2f2;
	border: 0;
	padding: 1.2rem 1rem 0.4rem 1rem;
	height: 2.5rem;
}

.pp-option-input-box::placeholder {
	color: transparent;
}

.pp-option-input-box:focus {
	box-shadow: none;
	outline: none;
}

.pp-option-input-box:focus+.pp-form-label {
	transform: translate3d(0.5rem, 0.3rem, 0rem) scale(0.8);
}

.pp-option-input-box:focus+.pp-form-label,
.pp-option-input-box:not(:placeholder-shown)+.pp-form-label {
	transform: translate3d(0.5rem, 0.3rem, 0rem) scale(0.8);
}

.pp-field-section-active {
	display: inline-block;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	font-weight: 600;
	border: medium none;
	color: #000;
}

.pp-field-section {
	margin: 0rem 0rem 1rem;
	padding: 0;
	font-size: 14px;
}

#modal-content {
	overscroll-behavior: none;
}

#pp-warning-container {
	width: 100%;
	height: 0;
}

#pp-unsaved-warning {
	width: 100%;
	text-align: left;
	background-color: #f18b6c;
	color: white;
	transition: height 0.3s cubic-bezier(0.29, 1.26, 0.35, 1.31) 0s;
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
}

.pp-unsaved-banner-hide {
	height: 0;
	box-shadow: 0;
}

.pp-unsaved-banner-show {
	height: 3.5rem;
	box-shadow: 0 4px 7px 0px #b17061
}

.pp-edit-field {
	background-color: transparent !important;
	border: 0px !important;
}

.pp-edit-field-icon {
	width: 16px;
	height: 16px;
	fill: #9E9E9E;
	vertical-align: -4px;
}

.pp-edit-field-icon:active {
	pointer-events: none;
}

.pp-edit-field-icon:hover {
	fill: #757575;
}

.pp-field-save-button p {
	margin: 0px;
	padding: 0px;
}

.pp-delete-field {
	background-color: transparent;
	border: 0px;
	font-size: 20px !important;
	color: #9E9E9E !important;
	cursor: pointer;
}

.pp-delete-field:hover {
	color: red !important;
}

.pp-tooltip-field-editors {
	vertical-align: middle;
}

/* Tooltip container */
.tooltip {
	position: relative;
	padding: 1rem 0.1rem 1rem 0.5rem;
	display: inline-block;
}

/* Tooltip text */
.tooltip .tooltiptext {
	visibility: hidden;
	width: 150px;
	background-color: black;
	color: #fff;
	text-align: center;
	padding: 0.5rem;
	border-radius: 6px;
	/* Position the tooltip text - see examples below! */
	position: absolute;
	z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
	visibility: visible;
}

/* ===== Scrollable Text Content with CKEditor ===== */
#field_content_box {
	background: #fff;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 15px;
	
	/* CKEditor 4 Container - Prevent shaking */
	& #pp-ckeditor-container {
		border-radius: 5px;
		overflow: visible;
		position: relative;
		
		& #pp-ckeditor-editor {
			& textarea {
				width: 100%;
				min-height: 300px;
				height: 300px;
			}
		}
	}

	/* CKEditor 4 Custom Styling - Compact toolbar */
	& .cke {
		border-radius: 5px !important;
		border-color: #ddd !important;
	}
	
	& .cke_top {
		padding: 4px 6px !important;
	}
	
	& .cke_toolbox {
		display: flex;
		flex-wrap: wrap;
		gap: 2px;
	}
	
	& .cke_toolbar {
		display: inline-flex;
		align-items: center;
		margin: 0 !important;
		padding: 0 !important;
		float: none !important;
	}
	
	& .cke_toolbar_separator {
		margin: 0 3px !important;
		height: 20px !important;
	}
	
	& .cke_toolbar_break {
		display: none !important;
	}
	
	& .cke_toolgroup {
		margin: 0 !important;
		padding: 0 !important;
	}
	
	& .cke_button {
		border-radius: 3px !important;
        padding: 3px !important;
        margin: 0 !important;
        width: 20px !important;
        height: 20px !important;
	}
	
	& .cke_button:hover {
		background: #e9ecef !important;
		cursor: pointer;
	}
	
	& .cke_button_on {
		background: #e5e5e5 !important;
	}
	
	& .cke_button_icon {
		width: 16px !important;
		height: 16px !important;
	}
	
	& .cke_combo {
		margin: 0 2px !important;
	}
	
	& .cke_combo_button {
		border-radius: 3px !important;
		padding: 2px 4px !important;
		height: 24px !important;
	}
	
	& .cke_combo_text {
		line-height: 20px !important;
		width: 50px !important;
		font-size: 11px !important;
	}
	
	& .cke_combo_arrow {
		margin-top: 6px !important;
	}
	
	& .cke_contents {
		border-radius: 0 0 6px 6px !important;
	}
	
	& .cke_wysiwyg_frame {
		border-radius: 0 0 6px 6px !important;
	}

	& .cke_bottom {
		padding: none !important;
		position: none !important;
		border-top: none !important;
		background: none !important;
	}
	
}



/* CKEditor 4 Panel/Dropdown Styling - Fixed positioning */
.cke_panel {
	border-radius: 6px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
	z-index: 100001 !important;
}

.cke_colorblock {
	padding: 8px !important;
}

/* Font combo styling - prevent shaking */
.cke_combopanel {
	border-radius: 6px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
	z-index: 100001 !important;
}

/* Ensure dropdowns don't cause layout shifts */
.cke_combo_open {
	position: relative;
}

.cke_panel_container {
	position: fixed !important;
}

/* Color picker popup stability */
.cke_panel_frame {
	border-radius: 6px !important;
}

/* Fallback textarea styling */
#field_content_box textarea {
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
	line-height: 1.6;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	resize: vertical;
	width: 100%;
	box-sizing: border-box;
}

#field_content_box textarea:focus {
	outline: none;
	border-color: #007bff;
	box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

.pp-content-preview-box {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
}

.pp-content-preview-box h1,
.pp-content-preview-box h2,
.pp-content-preview-box h3 {
	margin: 10px 0 5px 0;
	color: #222;
}

.pp-content-preview-box p {
	margin: 8px 0;
}

.pp-content-preview-box ul,
.pp-content-preview-box ol {
	margin: 8px 0;
	padding-left: 25px;
}

/* ===== Linked Checkbox Selector ===== */
#field_linked_checkbox_box select {
	padding: 1.5rem 1rem 0.5rem 1rem;
}

/* ===== Checkbox Label Field ===== */
#field_checkbox_label_box {
	margin-top: 10px;
}