/**
 * Medipharm Global - B2B Business KYC & Verification Styles
 *
 * @package Kadence_Child_Medipharm
 */

/* 1. Account KYC Container & Cards */
.mp-kyc-container {
	width: 100%;
	max-width: 860px;
	margin: 0 auto;
	font-family: inherit;
}

.mp-kyc-header-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 1.75rem 2rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.mp-kyc-header-card.mp-status-verified {
	border-left: 5px solid #00A896;
}

.mp-kyc-header-card.mp-status-pending {
	border-left: 5px solid #D97706;
}

.mp-kyc-header-card.mp-status-rejected {
	border-left: 5px solid #E11D48;
}

.mp-kyc-status-badge-wrap {
	margin-bottom: 0.75rem;
}

.mp-kyc-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.mp-kyc-badge svg {
	width: 14px;
	height: 14px;
}

.mp-badge-verified {
	background: #D1FAE5;
	color: #065F46;
	border: 1px solid #A7F3D0;
}

.mp-badge-pending {
	background: #FEF3C7;
	color: #92400E;
	border: 1px solid #FDE68A;
}

.mp-badge-rejected {
	background: #FEE2E2;
	color: #991B1B;
	border: 1px solid #FECACA;
}

.mp-badge-unverified {
	background: #F1F5F9;
	color: #475569;
	border: 1px solid #E2E8F0;
}

.mp-kyc-title {
	font-size: 1.5rem;
	font-weight: 800;
	color: #003366;
	margin: 0 0 0.5rem 0;
	letter-spacing: -0.02em;
}

.mp-kyc-intro {
	color: #475569;
	font-size: 0.92rem;
	line-height: 1.6;
	margin-bottom: 1.25rem;
}

/* Alert Boxes */
.mp-kyc-alert {
	display: flex;
	gap: 12px;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	font-size: 0.88rem;
	line-height: 1.5;
	margin-top: 1rem;
}

.mp-kyc-alert .mp-alert-icon {
	font-size: 1.25rem;
	line-height: 1;
}

.mp-kyc-alert p {
	margin: 4px 0 0 0;
	font-size: 0.84rem;
}

.mp-alert-success {
	background: #ECFDF5;
	border: 1px solid #A7F3D0;
	color: #065F46;
}

.mp-alert-warning {
	background: #FFFBEB;
	border: 1px solid #FDE68A;
	color: #92400E;
}

.mp-alert-danger {
	background: #FFF1F2;
	border: 1px solid #FECDD3;
	color: #9F1239;
}

/* Summary Details Card */
.mp-kyc-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 1.75rem 2rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.mp-kyc-section-heading {
	font-size: 1.15rem;
	font-weight: 700;
	color: #003366;
	margin: 0 0 1.25rem 0;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #EEF2F6;
}

.mp-kyc-details-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.25rem;
	margin-bottom: 1rem;
}

.mp-kyc-detail-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mp-detail-label {
	font-size: 0.78rem;
	color: #64748B;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
}

.mp-detail-val {
	font-size: 0.95rem;
	color: #0F172A;
	font-weight: 700;
}

.mp-kyc-view-doc-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #00A896;
	font-weight: 700;
	font-size: 0.88rem;
	text-decoration: none;
	margin-top: 2px;
}

.mp-kyc-view-doc-btn:hover {
	color: #008775;
	text-decoration: underline;
}

/* Category & Verification Type Selector */
.mp-kyc-type-selector-wrap {
	margin-bottom: 1.25rem;
}

.mp-selector-heading {
	display: block;
	font-weight: 700;
	font-size: 0.88rem;
	color: #1E293B;
	margin-bottom: 8px;
}

.mp-kyc-type-selector {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

@media (max-width: 640px) {
	.mp-kyc-type-selector {
		grid-template-columns: 1fr;
		gap: 8px;
	}
}

.mp-kyc-type-option {
	position: relative;
	border: 1.5px solid #CBD5E1;
	border-radius: 10px;
	padding: 10px 12px;
	cursor: pointer;
	background: #FFFFFF;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	text-align: left;
	box-sizing: border-box;
}

.mp-kyc-type-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	margin: 0;
}

.mp-kyc-type-option:hover {
	border-color: #00A896;
	background: #F8FAFC;
}

.mp-kyc-type-option.active {
	border-color: #00A896 !important;
	background: #F0FDF4 !important;
	box-shadow: 0 2px 8px rgba(0, 168, 150, 0.15);
}

.mp-type-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 100%;
}

.mp-type-header {
	display: flex;
	align-items: center;
	gap: 6px;
}

.mp-type-icon {
	font-size: 1.15rem;
	line-height: 1;
}

.mp-type-content strong {
	font-size: 0.85rem;
	color: #003366;
	font-weight: 700;
}

.mp-type-content small {
	font-size: 0.72rem;
	color: #64748B;
	line-height: 1.25;
}

.mp-modal-selector-wrap {
	margin-bottom: 1rem;
}

/* 2. Verification Form Styles */
.mp-kyc-form-group {
	margin-bottom: 1.25rem;
}

.mp-kyc-form-row {
	display: flex;
	gap: 1.25rem;
}

@media (max-width: 640px) {
	.mp-kyc-form-row {
		flex-direction: column;
		gap: 0;
	}
}

.mp-kyc-form-group label,
.mp-kyc-label {
	display: block;
	font-weight: 700;
	font-size: 0.88rem;
	color: #1E293B;
	margin-bottom: 6px;
}

.mp-kyc-form-group .required {
	color: #E11D48;
}

.mp-kyc-input {
	width: 100% !important;
	padding: 0.75rem 1rem !important;
	border: 1.5px solid #CBD5E1 !important;
	border-radius: 8px !important;
	font-size: 0.92rem !important;
	background: #FFFFFF !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
	box-sizing: border-box !important;
}

.mp-kyc-input:focus {
	border-color: #00A896 !important;
	box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.15) !important;
	outline: none !important;
}

.mp-field-hint {
	display: block;
	font-size: 0.78rem;
	color: #64748B;
	margin-top: 4px;
}

.mp-mb-2 {
	margin-bottom: 0.75rem;
}

/* Upload & Camera Buttons */
.mp-kyc-upload-actions {
	display: flex;
	gap: 0.85rem;
	flex-wrap: wrap;
	margin-bottom: 0.75rem;
}

.mp-kyc-btn-file,
.mp-kyc-btn-camera {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.75rem 1.25rem;
	border-radius: 8px;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
}

.mp-kyc-btn-file {
	background: #F8FAFC;
	border: 1.5px dashed #94A3B8;
	color: #1E293B;
}

.mp-kyc-btn-file:hover {
	background: #F1F5F9;
	border-color: #00A896;
	color: #00A896;
}

.mp-kyc-btn-camera {
	background: #F0FDFA;
	border: 1.5px solid #00A896;
	color: #00A896;
}

.mp-kyc-btn-camera:hover {
	background: #CCFBF1;
	color: #007D6F;
}

/* Attached File Preview */
.mp-kyc-file-preview {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #F8FAFC;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	padding: 0.65rem 1rem;
	max-width: 440px;
	margin-top: 0.5rem;
}

.mp-preview-icon {
	font-size: 1.4rem;
}

.mp-preview-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.mp-preview-details strong {
	font-size: 0.88rem;
	color: #0F172A;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mp-preview-details span {
	font-size: 0.75rem;
	color: #64748B;
}

.mp-preview-remove-btn {
	background: none !important;
	border: none !important;
	font-size: 1.25rem !important;
	color: #94A3B8 !important;
	cursor: pointer;
	padding: 0 6px !important;
	line-height: 1 !important;
}

.mp-preview-remove-btn:hover {
	color: #EF4444 !important;
}

.mp-kyc-form-error {
	background: #FEE2E2;
	color: #991B1B;
	border: 1px solid #FECACA;
	padding: 0.65rem 1rem;
	border-radius: 6px;
	font-size: 0.85rem;
	margin-top: 0.75rem;
}

.mp-btn-kyc-submit {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	background: #003366 !important;
	color: #FFFFFF !important;
	padding: 0.85rem 1.75rem !important;
	border-radius: 8px !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: background 0.2s ease !important;
	border: none !important;
}

.mp-btn-kyc-submit:hover {
	background: #002244 !important;
}

.mp-kyc-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mpKycSpin 0.7s linear infinite;
}

@keyframes mpKycSpin {
	to { transform: rotate(360deg); }
}

/* 3. Interactive Desktop Camera Modal */
.mp-camera-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mp-camera-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.8);
	backdrop-filter: blur(4px);
}

.mp-camera-modal-box {
	position: relative;
	background: #0F172A;
	color: #FFFFFF;
	border-radius: 14px;
	width: 90%;
	max-width: 640px;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	z-index: 2;
}

.mp-camera-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mp-camera-modal-header h4 {
	margin: 0;
	color: #FFFFFF;
	font-size: 1rem;
	font-weight: 700;
}

.mp-camera-close-btn {
	background: none !important;
	border: none !important;
	color: rgba(255, 255, 255, 0.7) !important;
	font-size: 1.5rem !important;
	cursor: pointer;
	line-height: 1 !important;
	padding: 0 !important;
}

.mp-camera-close-btn:hover {
	color: #FFFFFF !important;
}

.mp-camera-viewfinder-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

#mpCameraVideo,
#mpCameraSnapshotPreview {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mp-camera-frame-guide {
	position: absolute;
	width: 78%;
	height: 72%;
	border: 2px dashed rgba(255, 255, 255, 0.4);
	border-radius: 8px;
	pointer-events: none;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 12px;
}

.mp-frame-label {
	background: rgba(0, 0, 0, 0.65);
	color: #FFFFFF;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	letter-spacing: 0.03em;
}

.mp-frame-corner {
	position: absolute;
	width: 16px;
	height: 16px;
	border-color: #00A896;
	border-style: solid;
}

.mp-frame-corner.top-left {
	top: -2px;
	left: -2px;
	border-width: 3px 0 0 3px;
}

.mp-frame-corner.top-right {
	top: -2px;
	right: -2px;
	border-width: 3px 3px 0 0;
}

.mp-frame-corner.bottom-left {
	bottom: -2px;
	left: -2px;
	border-width: 0 0 3px 3px;
}

.mp-frame-corner.bottom-right {
	bottom: -2px;
	right: -2px;
	border-width: 0 3px 3px 0;
}

.mp-camera-modal-footer {
	padding: 1.25rem;
	text-align: center;
	background: #0B1120;
}

.mp-btn-shutter {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	background: #00A896 !important;
	color: #FFFFFF !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 0.75rem 2rem !important;
	font-weight: 700 !important;
	font-size: 0.95rem !important;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 168, 150, 0.3) !important;
}

.mp-btn-shutter:hover {
	background: #008775 !important;
}

.mp-shutter-circle {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #FFFFFF;
}

#mpCameraRetakeControls {
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.mp-btn-retake {
	background: #334155 !important;
	color: #FFFFFF !important;
	border: none !important;
	padding: 0.65rem 1.25rem !important;
	border-radius: 6px !important;
	font-weight: 600 !important;
	cursor: pointer;
}

.mp-btn-use-photo {
	background: #00A896 !important;
	color: #FFFFFF !important;
	border: none !important;
	padding: 0.65rem 1.5rem !important;
	border-radius: 6px !important;
	font-weight: 700 !important;
	cursor: pointer;
}

/* 4. Checkout KYC Gate Modal Popup */
.mp-kyc-gate-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mp-kyc-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(4px);
}

.mp-kyc-modal-dialog {
	position: relative;
	background: #FFFFFF;
	border-radius: 16px;
	width: 92%;
	max-width: 580px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 2rem 2rem 2.25rem 2rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	z-index: 2;
	text-align: center;
	box-sizing: border-box;
}

.mp-kyc-modal-close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none !important;
	border: none !important;
	font-size: 1.75rem !important;
	color: #94A3B8 !important;
	cursor: pointer;
	line-height: 1 !important;
	padding: 0 !important;
	z-index: 10;
}

.mp-kyc-modal-close:hover {
	color: #0F172A !important;
}

.mp-kyc-modal-icon-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-bottom: 1rem;
}

.mp-kyc-shield-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(0, 168, 150, 0.12);
	color: #00A896;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mp-kyc-shield-icon svg {
	width: 26px;
	height: 26px;
}

.mp-kyc-shield-icon.mp-shield-pending {
	background: rgba(217, 119, 6, 0.12);
	color: #D97706;
}

.mp-kyc-compliance-pill {
	background: #EEF2F6;
	color: #475569;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mp-kyc-compliance-pill.mp-pill-pending {
	background: #FEF3C7;
	color: #92400E;
}

.mp-kyc-modal-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: #003366;
	margin: 0 0 0.5rem 0;
	letter-spacing: -0.02em;
}

.mp-kyc-modal-desc {
	font-size: 0.86rem;
	color: #475569;
	line-height: 1.5;
	margin: 0 0 1.25rem 0;
}

.mp-kyc-modal-notice {
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 0.85rem 1.1rem;
	margin-bottom: 1.25rem;
	font-size: 0.85rem;
	text-align: left;
}

.mp-kyc-modal-notice.mp-notice-pending {
	display: flex;
	gap: 12px;
	background: #FFFBEB;
	border-color: #FDE68A;
	color: #92400E;
}

.mp-notice-clock {
	font-size: 1.5rem;
	line-height: 1;
}

/* In-Modal Form Styles */
.mp-modal-kyc-form {
	text-align: left;
	margin-top: 0.5rem;
}

.mp-modal-form-row {
	display: flex;
	gap: 12px;
	margin-bottom: 0.85rem;
}

@media (max-width: 600px) {
	.mp-modal-form-row {
		flex-direction: column;
		gap: 0.75rem;
	}
}

.mp-modal-form-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1;
}

.mp-modal-form-group label {
	font-size: 0.8rem;
	font-weight: 700;
	color: #1E293B;
	margin: 0;
}

.mp-modal-form-group label .required {
	color: #E11D48;
}

.mp-modal-form-group input.mp-kyc-input {
	padding: 0.65rem 0.85rem;
	border: 1.5px solid #CBD5E1;
	border-radius: 6px;
	font-size: 0.86rem;
	width: 100%;
	box-sizing: border-box;
	background: #FFFFFF;
	color: #0F172A;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.mp-modal-form-group input.mp-kyc-input:focus {
	border-color: #00A896;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.15);
}

.mp-modal-upload-section {
	background: #F8FAFC;
	border: 1.5px dashed #CBD5E1;
	border-radius: 8px;
	padding: 0.9rem 1rem;
	margin: 0.85rem 0;
}

.mp-modal-upload-label {
	font-size: 0.82rem;
	font-weight: 700;
	color: #0F172A;
	display: block;
	margin-bottom: 6px;
}

.mp-modal-upload-hint {
	font-weight: normal;
	font-size: 0.76rem;
	color: #64748B;
	margin-left: 4px;
}

.mp-modal-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 6px;
}

.mp-modal-submit-row {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin-top: 1rem;
}

.mp-modal-submit-btn {
	width: 100% !important;
	background: #00A896 !important;
	color: #FFFFFF !important;
	font-weight: 700 !important;
	font-size: 0.95rem !important;
	padding: 0.85rem 1.25rem !important;
	border-radius: 8px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	border: none !important;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 168, 150, 0.25) !important;
	transition: background 0.2s;
}

.mp-modal-submit-btn:hover {
	background: #008775 !important;
}

.mp-modal-or-divider {
	position: relative;
	text-align: center;
	margin: 0.2rem 0;
}

.mp-modal-or-divider::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: 1px;
	background: #E2E8F0;
	z-index: 1;
}

.mp-modal-or-divider span {
	position: relative;
	z-index: 2;
	background: #FFFFFF;
	padding: 0 12px;
	font-size: 0.72rem;
	font-weight: 700;
	color: #94A3B8;
	letter-spacing: 0.05em;
}

.mp-optional-badge {
	font-weight: normal;
	font-size: 0.75rem;
	color: #64748B;
	margin-left: 2px;
}

.mp-kyc-modal-cta-row {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.mp-kyc-primary-cta {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	background: #003366 !important;
	color: #FFFFFF !important;
	padding: 0.9rem 1.5rem !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	font-size: 0.95rem !important;
	text-decoration: none !important;
	box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2) !important;
	box-sizing: border-box !important;
	border: none !important;
	cursor: pointer;
}

.mp-kyc-primary-cta:hover {
	background: #002244 !important;
	color: #FFFFFF !important;
}

.mp-kyc-rfq-alt-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	background: #F8FAFC !important;
	color: #334155 !important;
	border: 1.5px solid #CBD5E1 !important;
	padding: 0.75rem 1.25rem !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	font-size: 0.88rem !important;
	cursor: pointer;
	text-decoration: none !important;
	box-sizing: border-box !important;
}

.mp-kyc-rfq-alt-btn:hover {
	background: #EEF2F6 !important;
	color: #0F172A !important;
}
