.bwdcv-bwd-subscription-add-form {
	max-width: 40%;
	margin: 20px auto;
	padding: 20px;
	background-color: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.bwdcv-bwd-subscription-add-form h2 {
	text-align: center;
	margin-bottom: 20px;
	color: #333;
	font-family: Arial, sans-serif;
}
.bwdcv-bwd-subscription-add-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: bold;
	color: #333;
	font-family: Arial, sans-serif;
}
.bwdcv-bwd-subscription-add-form input[type="text"],
.bwdcv-bwd-subscription-add-form input[type="number"],
.bwdcv-bwd-subscription-add-form select,
.bwdcv-bwd-subscription-add-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 10px;
	margin-bottom: 15px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-family: Arial, sans-serif;
	font-size: 14px;
}
.bwdcv-bwd-subscription-add-form button {
	width: 100%;
	padding: 10px;
	background-color: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-family: Arial, sans-serif;
	font-size: 16px;
	transition: background-color 0.3s;
}
.bwdcv-bwd-subscription-add-form button:hover {
	background-color: #005d8c;
}
.bwdcv-bwd-subscription-add-form input:focus,
.bwdcv-bwd-subscription-add-form select:focus,
.bwdcv-bwd-subscription-add-form textarea:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
}

.bwdcv-subscription-plans-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.bwdcv-subscription-plans-table th,
.bwdcv-subscription-plans-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}

.bwdcv-subscription-plans-table th {
	background-color: #0073aa !important;
	color: #ffffff !important;
	font-weight: bold;
	text-transform: uppercase;
}

.bwdcv-subscription-plans-table tr:hover {
	background-color: #f5f5f5;
}

.bwdcv-subscription-plans-table tr:nth-child(even) {
	background-color: #f9f9f9;
}

.bwdcv-subscription-plans-table td {
	color: #333;
}

.bwdcv-subscription-plans-table td:first-child {
	font-weight: bold;
	color: #0073aa;
}

/* Responsive adjustments */
@media (max-width: 600px) {
	.bwdcv-subscription-plans-table {
		display: block;
		overflow-x: auto;
	}

	.bwdcv-subscription-plans-table th,
	.bwdcv-subscription-plans-table td {
		display: block;
		text-align: right;
	}

	.bwdcv-subscription-plans-table th {
		text-align: left;
		padding: 10px;
	}
}

/* admin switcher */
.bwdcv-admin-switch {
	position: relative;
	display: inline-block;
	width: 55px;
	height: 26px;
}

.bwdcv-admin-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.bwdcv-admin-switch .slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: 0.4s;
	border-radius: 34px;
}

.bwdcv-admin-switch .slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 4px;
	bottom: 3px;
	background-color: #fff;
	transition: 0.4s;
	border-radius: 50%;
}

.bwdcv-admin-switch input:checked + .slider {
	background-color: #2196f3;
}

.bwdcv-admin-switch input:checked + .slider:before {
	transform: translateX(27px);
}

#adminmenu .toplevel_page_wp-cv-builder .wp-menu-image img {
	padding: 2px 0 0;
	opacity: 1;
	width: 25px;
	object-fit: cover;
}

.bwdcv-main_menu_page img {
	max-width: 100%;
	width: 100%;
}
.bwd-active-text {
	color: green;
}
.bwd-deactive-text {
	color: red;
}

/* Page Title */
.bwdcv-page-title {
	color: #23282d;
	font-size: 23px;
	font-weight: 400;
	margin: 0;
	padding: 9px 0 15px;
	line-height: 1.3;
}

/* Form Table */
.bwdcv-form-table {
	width: 100%;
	border-collapse: collapse;
	margin: 15px 0;
}

.bwdcv-form-table th,
.bwdcv-form-table td {
	padding: 15px 10px;
	vertical-align: top;
}

.bwdcv-form-table th {
	width: 200px;
	text-align: left;
	font-weight: 600;
	color: #23282d;
}

/* Form Rows */
.bwdcv-form-row {
	display: flex;
	align-items: center;
}

.bwdcv-form-row:last-child {
	border-bottom: none;
}

/* Labels */
.bwdcv-label {
	display: block;
	margin-bottom: 5px;
	color: #23282d;
}

/* Input Fields */
.bwdcv-text-input,
.bwdcv-number-input,
.bwdcv-select-input {
	width: 100%;
	height: 45px;
	/* max-width: 400px; */
	padding: 8px 12px;
	border: 1px solid #8c8f94;
	border-radius: 3px;
	background-color: #fff;
	color: #2c3338;
	font-size: 14px;
	line-height: 1.4;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.cv-product-form .bwdcv-select-input{
	max-width: none !important;
}
.bwdcv-text-input:focus,
.bwdcv-number-input:focus,
.bwdcv-select-input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: 2px solid transparent;
}

/* Select Dropdown */
.bwdcv-select-input {
	height: 36px;
	padding: 6px 12px;
}

/* Field Descriptions */
.bwdcv-field-description {
	color: #646970;
	font-style: italic;
	margin: 5px 0 0;
	font-size: 13px;
	line-height: 1.5;
}

/* Rich Text Editor */
.bwdcv-editor-container {
	width: 100%;
	max-width: 800px;
}

.bwdcv-editor-container .wp-editor-tools {
	background: #f5f5f5;
	padding: 5px;
	border-radius: 3px 3px 0 0;
	border: 1px solid #ddd;
	border-bottom: none;
}

.bwdcv-editor-container .wp-editor-container {
	border: 1px solid #ddd;
	border-radius: 0 0 3px 3px;
}

/* Submit Button */
.bwdcv-form-submit {
	margin: 20px 0 10px;
}

.bwdcv-submit-button {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
	text-decoration: none;
	text-shadow: none;
	padding: 8px 15px;
	height: auto;
	font-size: 14px;
	line-height: 1.4;
	border-radius: 3px;
	transition: all 0.2s ease;
	cursor: pointer;
}

.bwdcv-submit-button:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
}

/* Responsive Styles */
@media screen and (max-width: 782px) {
	.bwdcv-form-table th,
	.bwdcv-form-table td {
		display: block;
		width: 100%;
		padding: 10px 0;
	}

	.bwdcv-form-table th {
		padding-bottom: 5px;
	}

	.bwdcv-text-input,
	.bwdcv-number-input,
	.bwdcv-select-input {
		max-width: 100%;
	}

	.bwdcv-editor-container {
		width: 100%;
	}
}
.bwdcv-form-input {
	width: 100%;
}
/* Error States */
.bwdcv-form-input.error input,
.bwdcv-form-input.error select,
.bwdcv-form-input.error textarea {
	border-color: #d63638;
}

.bwdcv-form-input .error-message {
	color: #d63638;
	font-size: 13px;
	margin-top: 5px;
	display: block;
}

.cv-product-form {
	max-width: 800px;
}
.cv-product-form .form-table tr{
	display: flex;
	align-items: start;
}
.cv-product-form .form-table tr td{
	flex: 1;
}
.cv-image-upload {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.cv-image-preview img {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 5px;
}
.cv-form-actions {
	margin-top: 20px;
	padding-top: 20px;
}
.cv-form-actions .button {
	margin-right: 10px;
}
.cv-form-actions button {
    background: #0e0085 !important;
}
#adminmenu .wp-submenu a[href="admin.php?page=cv-add-product"] {
	display: none !important;
}

/* Style for required field asterisks - Specific to Product Title and Regular Price */
.form-table th label[for="product_title"]:after,
.form-table th label[for="regular_price"]:after {
    content: " *";
    color: #dc3232;
    font-weight: bold;
    margin-left: 2px;
}

/* Remove the manual asterisks from the HTML */
.form-table th label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #23282d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

