body.wcfr-modal-open {
	overflow: hidden;
}

#wcfr-open-modal {
	margin-left: 10px;
}

.wcfr-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.wcfr-modal.is-open {
	display: block;
}

.wcfr-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.wcfr-dialog {
	position: relative;
	background: #fff;
	width: min(92vw, 640px);
	max-height: 88vh;
	overflow: auto;
	margin: 5vh auto;
	padding: 28px;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.wcfr-close {
	position: absolute;
	top: 10px;
	right: 14px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.wcfr-subtitle {
	margin-top: 0;
	color: #666;
}

.wcfr-config-preview {
	background: #f6f7f7;
	border: 1px solid #e0e0e0;
	padding: 14px;
	border-radius: 8px;
	margin-bottom: 18px;
}

.wcfr-config-preview pre {
	white-space: pre-wrap;
	margin: 10px 0 0;
	font-size: 13px;
}

.wcfr-field {
	margin-bottom: 14px;
}

.wcfr-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.wcfr-field input,
.wcfr-field textarea {
	width: 100%;
}

.wcfr-actions {
	margin-top: 18px;
}

.wcfr-response {
	margin-top: 14px;
	font-weight: 600;
}

.wcfr-response.is-success {
	color: #0a7f2e;
}

.wcfr-response.is-error {
	color: #b42318;
}

#wcfr-modal .wcfr-config-preview {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;

    color: #222; /* 🔥 FORȚEAZĂ culoarea corectă */
}

#wcfr-modal .wcfr-config-preview * {
    color: #222 !important;
}

#wcfr-modal .wcfr-config-preview strong {
    font-weight: 600;
}

#wcfr-modal .wcfr-config-preview pre {
    background: transparent;
    border: none;
    margin: 5px 0 0;
    font-family: inherit;
}

#wcfr-modal .wcfr-config-preview {
    font-size: 14px;
    line-height: 1.6;
}

#wcfr-modal label {
    color: #222 !important;
    font-weight: 500;
}

#wcfr-modal input,
#wcfr-modal textarea {
    color: #222 !important;
    background: #fff;
    border: 1px solid #ccc;
}

#wcfr-modal input::placeholder,
#wcfr-modal textarea::placeholder {
    color: #999;
}

#wcfr-modal .wcfr-field {
    margin-bottom: 15px;
}

#wcfr-modal label {
    display: block;
    margin-bottom: 5px;
}

#wcfr-modal h3,
#wcfr-modal #wcfr-modal-title {
    color: #222 !important;
}

#wcfr-modal {
    color: #222;
}

#wcfr-modal * {
    color: inherit;
}

@media (max-width: 768px) {
	#wcfr-open-modal {
		display: block;
		width: 100%;
		margin-left: 0;
		margin-top: 10px;
	}

	.wcfr-dialog {
		padding: 20px;
		margin: 3vh auto;
		width: min(94vw, 640px);
	}
}

#wcfr-open-modal,
.wcfr-open-modal {
    background: #ff6600 !important;
    color: #fff !important;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #ff6600;
    font-family: "Lexend", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline;
    margin-left: 10px;
}


.wcfr-submit {
    background: #ff6600 !important;
    color: #fff !important;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-radius: 10px !important;
    border-color: #ff6600 !important;
    font-family: "Lexend", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline;
    margin-left: 10px;
}

#wcfr-open-modal:hover,
.wcfr-open-modal:hover {
    background: #fff !important;
    color: #ff6600 !important;
}

#wcfr-open-modal:active {
    transform: scale(0.98);
}
