/**
 * Electronic Prescription modal — Newtons Chemist
 * Targets WooPW .practitioner-prescription-wrapper (navy var(--theme-primary-color, #1f2a44) / green #bc9a4a)
 */

#practitioner-order-modal:has(.practitioner-prescription-wrapper) .modal-dialog,
#practitioner-order-prescription-modal:has(.practitioner-prescription-wrapper) .modal-dialog {
	max-width: min(980px, calc(100vw - 24px)) !important;
	width: 100% !important;
	margin: 1rem auto !important;
}

#practitioner-order-modal:has(.practitioner-prescription-wrapper) .modal-body,
#practitioner-order-prescription-modal:has(.practitioner-prescription-wrapper) .modal-body {
	padding: 0 0 18px !important;
	background: #fff !important;
	max-height: calc(100vh - 80px) !important;
	overflow-y: auto !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper {
	--pm-navy: var(--theme-primary-color, #1f2a44);
	--pm-green: #bc9a4a;
	--pm-soft: #f4f6fb;
	--pm-border: #e2e8f0;
	--pm-muted: #5a6a8a;
	position: relative !important;
	margin: 0 !important;
	padding: 0 20px 12px !important;
	background: #fff !important;
	color: var(--pm-navy) !important;
	font-family: inherit !important;
	box-sizing: border-box !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper *,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper * {
	font-family: inherit !important;
	box-sizing: border-box !important;
}

/* Header */
#practitioner-order-modal .practitioner-prescription-wrapper .presc-header-row,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .presc-header-row {
	float: none !important;
	width: auto !important;
	height: auto !important;
	margin: 0 -20px 16px !important;
	padding: 0 !important;
	border: none !important;
	border-bottom: 1px solid var(--pm-border) !important;
	background: linear-gradient(90deg, var(--pm-navy) 0%, #243a8f 55%, var(--pm-green) 100%) !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .presc-header-row > .presc-row,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .presc-header-row > .presc-row {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
	width: 100% !important;
	height: auto !important;
	padding: 16px 20px !important;
	margin: 0 !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .header-col-left,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .header-col-left,
#practitioner-order-modal .practitioner-prescription-wrapper .header-col-right,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .header-col-right {
	float: none !important;
	position: static !important;
	top: auto !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .site-logo,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .site-logo {
	display: inline-flex !important;
	align-items: center !important;
	padding: 10px 14px !important;
	background: #fff !important;
	border-radius: 12px !important;
	box-shadow: 0 6px 16px rgba(30, 48, 123, 0.12) !important;
	text-align: left !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .site-logo img,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .site-logo img {
	display: block !important;
	max-height: 48px !important;
	width: auto !important;
	max-width: 160px !important;
	object-fit: contain !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .header-col-right,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .header-col-right {
	text-align: right !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .header-col-right h2,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .header-col-right h2 {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	color: #fff !important;
	font-size: clamp(0.95rem, 2.5vw, 1.2rem) !important;
	font-weight: 800 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	line-height: 1.25 !important;
}

/* Prescriber / Patient cards */
#practitioner-order-modal .practitioner-prescription-wrapper .presc-user-details-wrapper,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .presc-user-details-wrapper {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 14px !important;
	float: none !important;
	width: 100% !important;
	margin: 0 0 20px !important;
	clear: both !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .user-detail.first,
#practitioner-order-modal .practitioner-prescription-wrapper .user-detail.last,
#practitioner-order-modal .practitioner-prescription-wrapper .user-detail:first-child,
#practitioner-order-modal .practitioner-prescription-wrapper .user-detail:last-child,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .user-detail.first,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .user-detail.last,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .user-detail:first-child,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .user-detail:last-child {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 16px !important;
	background: #fff !important;
	border: 1px solid var(--pm-border) !important;
	border-radius: 16px !important;
	box-shadow: 0 6px 18px rgba(30, 48, 123, 0.04) !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .user-title,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .user-title {
	margin: 0 0 12px !important;
	color: var(--pm-navy) !important;
	font-size: 1.05rem !important;
	font-weight: 800 !important;
	text-transform: none !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .user-detail p,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .user-detail p {
	margin: 0 0 8px !important;
	color: var(--pm-muted) !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	line-height: 1.45 !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .user-detail p strong,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .user-detail p strong {
	color: var(--pm-navy) !important;
	font-weight: 800 !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .user-detail a,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .user-detail a {
	color: var(--pm-green) !important;
	text-decoration: none !important;
	font-weight: 700 !important;
}

/* Notes */
#practitioner-order-modal .practitioner-prescription-wrapper .notes-column,
#practitioner-order-modal .practitioner-prescription-wrapper .prescriber-order-note,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .notes-column,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .prescriber-order-note {
	clear: both !important;
	margin: 0 0 20px !important;
	padding: 16px !important;
	background: var(--pm-soft) !important;
	border: 1px solid var(--pm-border) !important;
	border-radius: 16px !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .notes-column h3,
#practitioner-order-modal .practitioner-prescription-wrapper .prescriber-order-note h3,
#practitioner-order-modal .practitioner-prescription-wrapper .pharmacy-prec-table h3,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .notes-column h3,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .prescriber-order-note h3,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .pharmacy-prec-table h3 {
	margin: 0 0 10px !important;
	padding: 0 !important;
	background: transparent !important;
	color: var(--pm-navy) !important;
	font-size: 0.95rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.03em !important;
	text-transform: uppercase !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper textarea.form-control,
#practitioner-order-modal .practitioner-prescription-wrapper textarea.presc-input,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper textarea.form-control,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper textarea.presc-input {
	display: block !important;
	width: 100% !important;
	min-height: 110px !important;
	margin: 0 !important;
	padding: 12px 14px !important;
	border: 1.5px solid var(--pm-border) !important;
	border-radius: 14px !important;
	background: #fff !important;
	color: var(--pm-navy) !important;
	font-size: 0.92rem !important;
	font-weight: 600 !important;
	line-height: 1.45 !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
	resize: vertical !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper textarea:focus,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper textarea:focus {
	outline: none !important;
	border-color: var(--pm-green) !important;
	box-shadow: 0 0 0 3px rgba(188, 154, 74, 0.16) !important;
}

/* Medicines table */
#practitioner-order-modal .practitioner-prescription-wrapper .pharmacy-prec-table,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .pharmacy-prec-table {
	margin: 0 0 20px !important;
	padding: 16px !important;
	border: 1px solid var(--pm-border) !important;
	border-radius: 16px !important;
	background: #fff !important;
	overflow-x: auto !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper table.prescription-table,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper table.prescription-table,
body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.shop_table,
body.woocommerce #practitioner-order-prescription-modal .practitioner-prescription-wrapper table.shop_table {
	width: 100% !important;
	margin: 0 !important;
	border: 1px solid var(--pm-border) !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	background: #fff !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper table.prescription-table thead th,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper table.prescription-table thead th,
body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.shop_table thead th {
	padding: 12px 14px !important;
	background: var(--pm-soft) !important;
	border: none !important;
	border-bottom: 1px solid var(--pm-border) !important;
	color: var(--pm-navy) !important;
	font-size: 0.75rem !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.03em !important;
	text-align: left !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper table.prescription-table tbody td,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper table.prescription-table tbody td,
body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.shop_table tbody td {
	padding: 14px !important;
	border: none !important;
	border-bottom: 1px solid #eef2f6 !important;
	background: #fff !important;
	color: var(--pm-navy) !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	vertical-align: top !important;
	text-align: left !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper table.prescription-table tbody tr:last-child td,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper table.prescription-table tbody tr:last-child td {
	border-bottom: none !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper table.prescription-table textarea.presc-input,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper table.prescription-table textarea.presc-input {
	min-height: 88px !important;
}

/* Signer + actions */
#practitioner-order-modal .practitioner-prescription-wrapper .signer-info,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .signer-info {
	margin: 0 0 20px !important;
	padding: 14px 16px !important;
	text-align: left !important;
	background: var(--pm-soft) !important;
	border: 1px solid var(--pm-border) !important;
	border-radius: 14px !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .signer-info h5,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .signer-info h5 {
	margin: 0 0 8px !important;
	color: var(--pm-muted) !important;
	font-size: 0.82rem !important;
	font-weight: 700 !important;
	text-transform: none !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .signer-info .user-title,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .signer-info .user-title {
	color: var(--pm-navy) !important;
	font-size: 0.95rem !important;
	font-weight: 800 !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .presc-e-sign img,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .presc-e-sign img {
	max-width: 180px !important;
	height: auto !important;
	padding: 8px !important;
	background: #fff !important;
	border: 1px solid var(--pm-border) !important;
	border-radius: 10px !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .presc-footer-right,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .presc-footer-right {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: flex-end !important;
	align-items: center !important;
	gap: 10px !important;
	width: 100% !important;
	margin: 0 0 14px !important;
	text-align: right !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .prescriber-approve-now,
#practitioner-order-modal .practitioner-prescription-wrapper .theme-btn-primary.presc-prescription-order-actions,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .prescriber-approve-now,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .theme-btn-primary.presc-prescription-order-actions {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 12px 22px !important;
	border: none !important;
	border-radius: 999px !important;
	background: var(--pm-navy) !important;
	color: #fff !important;
	font-size: 0.92rem !important;
	font-weight: 800 !important;
	text-decoration: none !important;
	text-transform: none !important;
	box-shadow: none !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .prescriber-approve-now:hover,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .prescriber-approve-now:hover {
	background: var(--pm-green) !important;
	color: #fff !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .prescriber-decline-now,
#practitioner-order-modal .practitioner-prescription-wrapper .theme-btn-outline-danger,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .prescriber-decline-now,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .theme-btn-outline-danger {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 12px 22px !important;
	border: 1.5px solid #b42318 !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: #b42318 !important;
	font-size: 0.92rem !important;
	font-weight: 800 !important;
	text-decoration: none !important;
	text-transform: none !important;
	box-shadow: none !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .prescriber-decline-now:hover,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .prescriber-decline-now:hover {
	background: #b42318 !important;
	color: #fff !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .e-signature-wrapper,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .e-signature-wrapper {
	margin: 0 !important;
	padding: 12px 16px !important;
	background: var(--pm-soft) !important;
	border: 1px solid var(--pm-border) !important;
	border-radius: 12px !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .e-signature-wrapper h6,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .e-signature-wrapper h6,
#practitioner-order-modal .practitioner-prescription-wrapper .e-signature-wrapper p,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .e-signature-wrapper p {
	margin: 0 0 4px !important;
	color: var(--pm-muted) !important;
	font-size: 0.8rem !important;
	font-weight: 700 !important;
	text-transform: none !important;
}

#practitioner-order-modal .practitioner-prescription-wrapper .e-sign-id,
#practitioner-order-prescription-modal .practitioner-prescription-wrapper .e-sign-id {
	color: var(--pm-navy) !important;
	font-weight: 800 !important;
	text-transform: none !important;
}

@media (max-width: 991px) {
	#practitioner-order-modal .practitioner-prescription-wrapper .presc-user-details-wrapper,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .presc-user-details-wrapper {
		grid-template-columns: 1fr !important;
	}

	#practitioner-order-modal .practitioner-prescription-wrapper .presc-header-row > .presc-row,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .presc-header-row > .presc-row {
		flex-direction: column !important;
		align-items: flex-start !important;
	}

	#practitioner-order-modal .practitioner-prescription-wrapper .header-col-right,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .header-col-right {
		text-align: left !important;
		width: 100% !important;
	}
}

@media (max-width: 767px) {
	#practitioner-order-modal:has(.practitioner-prescription-wrapper) .modal-dialog,
	#practitioner-order-prescription-modal:has(.practitioner-prescription-wrapper) .modal-dialog {
		max-width: calc(100vw - 16px) !important;
		margin: 0.65rem auto !important;
	}

	#practitioner-order-modal .practitioner-prescription-wrapper,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper {
		padding: 0 14px 10px !important;
	}

	#practitioner-order-modal .practitioner-prescription-wrapper .presc-header-row,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .presc-header-row {
		margin: 0 -14px 14px !important;
	}

	#practitioner-order-modal .practitioner-prescription-wrapper .presc-header-row > .presc-row,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .presc-header-row > .presc-row {
		padding: 14px !important;
	}

	#practitioner-order-modal .practitioner-prescription-wrapper .header-col-right h2,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .header-col-right h2 {
		font-size: 0.95rem !important;
	}

	#practitioner-order-modal .practitioner-prescription-wrapper .user-detail.first,
	#practitioner-order-modal .practitioner-prescription-wrapper .user-detail.last,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .user-detail.first,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .user-detail.last {
		padding: 14px !important;
		border-radius: 14px !important;
	}

	#practitioner-order-modal .practitioner-prescription-wrapper .notes-column,
	#practitioner-order-modal .practitioner-prescription-wrapper .prescriber-order-note,
	#practitioner-order-modal .practitioner-prescription-wrapper .pharmacy-prec-table,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .notes-column,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .prescriber-order-note,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .pharmacy-prec-table {
		padding: 14px !important;
		border-radius: 14px !important;
	}

	/* Stack medicines table rows as cards */
	body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.shop_table_responsive.prescription-table thead,
	body.woocommerce #practitioner-order-prescription-modal .practitioner-prescription-wrapper table.shop_table_responsive.prescription-table thead,
	body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.prescription-table thead,
	body.woocommerce #practitioner-order-prescription-modal .practitioner-prescription-wrapper table.prescription-table thead {
		display: none !important;
	}

	body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.shop_table_responsive.prescription-table,
	body.woocommerce #practitioner-order-prescription-modal .practitioner-prescription-wrapper table.shop_table_responsive.prescription-table,
	body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.prescription-table,
	body.woocommerce #practitioner-order-prescription-modal .practitioner-prescription-wrapper table.prescription-table {
		border: none !important;
		border-radius: 0 !important;
		background: transparent !important;
		overflow: visible !important;
	}

	body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.shop_table_responsive.prescription-table tbody,
	body.woocommerce #practitioner-order-prescription-modal .practitioner-prescription-wrapper table.shop_table_responsive.prescription-table tbody,
	body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.prescription-table tbody,
	body.woocommerce #practitioner-order-prescription-modal .practitioner-prescription-wrapper table.prescription-table tbody {
		display: flex !important;
		flex-direction: column !important;
		gap: 14px !important;
	}

	body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.shop_table_responsive.prescription-table tbody tr,
	body.woocommerce #practitioner-order-prescription-modal .practitioner-prescription-wrapper table.shop_table_responsive.prescription-table tbody tr,
	body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.prescription-table tbody tr,
	body.woocommerce #practitioner-order-prescription-modal .practitioner-prescription-wrapper table.prescription-table tbody tr {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		gap: 14px !important;
		row-gap: 14px !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 14px !important;
		border: 1px solid var(--pm-border) !important;
		border-radius: 14px !important;
		background: var(--pm-soft) !important;
		box-shadow: none !important;
	}

	body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.shop_table_responsive.prescription-table tbody td,
	body.woocommerce #practitioner-order-prescription-modal .practitioner-prescription-wrapper table.shop_table_responsive.prescription-table tbody td,
	body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.prescription-table tbody td,
	body.woocommerce #practitioner-order-prescription-modal .practitioner-prescription-wrapper table.prescription-table tbody td {
		display: block !important;
		float: none !important;
		clear: both !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		margin: 0 0 14px 0 !important;
		padding: 12px 14px !important;
		border: 1px solid var(--pm-border) !important;
		border-radius: 12px !important;
		background: #fff !important;
		text-align: left !important;
	}

	body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.shop_table_responsive.prescription-table tbody td:last-child,
	body.woocommerce #practitioner-order-prescription-modal .practitioner-prescription-wrapper table.shop_table_responsive.prescription-table tbody td:last-child,
	body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.prescription-table tbody td:last-child,
	body.woocommerce #practitioner-order-prescription-modal .practitioner-prescription-wrapper table.prescription-table tbody td:last-child {
		margin-bottom: 0 !important;
	}

	body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.shop_table_responsive.prescription-table tbody td[data-title]::before,
	body.woocommerce #practitioner-order-prescription-modal .practitioner-prescription-wrapper table.shop_table_responsive.prescription-table tbody td[data-title]::before,
	body.woocommerce #practitioner-order-modal .practitioner-prescription-wrapper table.prescription-table tbody td[data-title]::before,
	body.woocommerce #practitioner-order-prescription-modal .practitioner-prescription-wrapper table.prescription-table tbody td[data-title]::before {
		display: block !important;
		content: attr(data-title) !important;
		margin: 0 0 6px !important;
		padding: 0 !important;
		color: var(--pm-muted) !important;
		font-size: 0.72rem !important;
		font-weight: 800 !important;
		text-transform: uppercase !important;
		letter-spacing: 0.03em !important;
		float: none !important;
	}

	#practitioner-order-modal .practitioner-prescription-wrapper .presc-user-details-wrapper,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .presc-user-details-wrapper,
	#practitioner-order-modal .practitioner-prescription-wrapper .notes-column,
	#practitioner-order-modal .practitioner-prescription-wrapper .prescriber-order-note,
	#practitioner-order-modal .practitioner-prescription-wrapper .pharmacy-prec-table,
	#practitioner-order-modal .practitioner-prescription-wrapper .signer-info,
	#practitioner-order-modal .practitioner-prescription-wrapper .e-signature-wrapper,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .notes-column,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .prescriber-order-note,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .pharmacy-prec-table,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .signer-info,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .e-signature-wrapper {
		margin-bottom: 18px !important;
	}

	#practitioner-order-modal .practitioner-prescription-wrapper .presc-footer-right,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .presc-footer-right {
		flex-direction: column !important;
		align-items: stretch !important;
	}

	#practitioner-order-modal .practitioner-prescription-wrapper .prescriber-approve-now,
	#practitioner-order-modal .practitioner-prescription-wrapper .prescriber-decline-now,
	#practitioner-order-modal .practitioner-prescription-wrapper .theme-btn-primary.presc-prescription-order-actions,
	#practitioner-order-modal .practitioner-prescription-wrapper .theme-btn-outline-danger,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .prescriber-approve-now,
	#practitioner-order-prescription-modal .practitioner-prescription-wrapper .prescriber-decline-now {
		width: 100% !important;
	}
}
