/**
 * Terroir Artisan B2B Verification Frontend Styles
 */

/* Modal Container */
.tabv-b2b-modal {
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: none;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
}

body.tabv-modal-open {
	overflow: hidden;
}

/* Modal Content */
.tabv-b2b-modal-content {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	max-width: 600px;
	width: 90%;
	margin: auto;
	animation: tabvSlideIn 0.3s ease-out;
}

@keyframes tabvSlideIn {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Modal Header */
.tabv-b2b-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #e0e0e0;
	background-color: #f8f9fa;
	border-radius: 8px 8px 0 0;
}

.tabv-b2b-modal-header h2 {
	margin: 0;
	font-size: 18px;
	line-height: 1.4;
	color: #333;
}

.tabv-close-modal {
	background: none;
	border: none;
	font-size: 28px;
	color: #999;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.tabv-close-modal:hover {
	color: #333;
}

/* Modal Body */
.tabv-b2b-modal-body {
	padding: 20px;
}

.tabv-b2b-modal-body > p {
	margin: 0 0 20px 0;
	color: #555;
	line-height: 1.6;
}

/* Form Group */
.tabv-b2b-modal-body .form-group {
	margin-bottom: 20px;
}

.tabv-b2b-modal-body label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.tabv-b2b-modal-body .required {
	color: #e74c3c;
	margin-left: 4px;
}

.tabv-b2b-modal-body input[type="text"] {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: arial, sans-serif;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.tabv-b2b-modal-body input[type="text"]:focus {
	outline: none;
	border-color: #3498db;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.tabv-b2b-modal-body small {
	display: block;
	margin-top: 6px;
	color: #888;
	font-size: 12px;
	line-height: 1.4;
}

/* Verification Response */
.tabv-verification-response {
	margin: 20px 0;
	padding: 15px;
	border-radius: 4px;
	animation: tabvFadeIn 0.3s ease-out;
}

@keyframes tabvFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.tabv-success {
	background-color: #f0f8f4;
	border: 1px solid #d4edda;
	border-radius: 4px;
	padding: 15px;
}

.tabv-success h3 {
	margin: 0 0 15px 0;
	color: #27ae60;
	font-size: 16px;
}

.tabv-error {
	background-color: #fef5f5;
	border: 1px solid #f5d6d6;
	border-radius: 4px;
	padding: 15px;
}

.tabv-error h3 {
	margin: 0 0 10px 0;
	color: #e74c3c;
	font-size: 16px;
}

.tabv-error p {
	margin: 0;
	color: #c0392b;
	font-size: 14px;
}

.tabv-company-info {
	display: grid;
	gap: 10px;
}

.tabv-company-info p {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: #333;
}

.tabv-company-info strong {
	font-weight: 600;
	color: #222;
}

/* Form Actions */
.form-actions {
	display: flex;
	gap: 12px;
	margin-top: 20px;
	justify-content: flex-end;
}

.btn {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
	min-width: 120px;
}

.btn-primary {
	background-color: #3498db;
	color: #fff;
}

.btn-primary:hover:not(:disabled) {
	background-color: #2980b9;
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-primary:disabled {
	background-color: #95a5a6;
	cursor: not-allowed;
	opacity: 0.6;
}

.btn-secondary {
	background-color: #ecf0f1;
	color: #333;
	border: 1px solid #bdc3c7;
}

.btn-secondary:hover {
	background-color: #d5dbdb;
}

/* Admin Meta Box */
.tabv-b2b-meta-box {
	margin: 10px 0;
}

.tabv-b2b-meta-box label {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 10px;
	margin: -10px;
	font-size: 14px;
}

.tabv-b2b-meta-box input[type="checkbox"] {
	margin-right: 10px;
	cursor: pointer;
}

.tabv-b2b-meta-box .description {
	margin: 10px 0 0 0;
	font-size: 12px;
	color: #888;
	padding: 10px;
	background-color: #f5f5f5;
	border-radius: 3px;
}

/* Dokan Meta Box */
.tabv-b2b-dokan-field {
	padding: 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #f9f9f9;
	margin-bottom: 15px;
}

.dokan-checkbox-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	font-weight: 500;
}

.dokan-checkbox-label input[type="checkbox"] {
	margin-right: 10px;
	cursor: pointer;
}

.tabv-b2b-dokan-field .description {
	margin: 10px 0 0 0;
	font-size: 12px;
	color: #666;
	display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
	.tabv-b2b-modal-content {
		max-width: 95%;
		max-height: 90vh;
		overflow-y: auto;
	}

	.tabv-b2b-modal-header {
		padding: 15px;
	}

	.tabv-b2b-modal-header h2 {
		font-size: 16px;
	}

	.tabv-b2b-modal-body {
		padding: 15px;
	}

	.form-actions {
		flex-direction: column;
		gap: 10px;
	}

	.btn {
		width: 100%;
		min-width: unset;
	}

	.tabv-company-info {
		gap: 8px;
	}

	.tabv-company-info p {
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.tabv-b2b-modal-header h2 {
		font-size: 14px;
	}

	.tabv-b2b-modal-header {
		padding: 12px;
	}

	.tabv-b2b-modal-body {
		padding: 12px;
	}

	.btn {
		padding: 8px 16px;
		font-size: 13px;
	}
}
