span.wpo-warning {
	display: inline-block;
	border: 1px solid red;
	border-left: 4px solid red;
	padding: 5px 15px;
	background-color: white;
}
.wcpdf-extensions-ad,
.wcpdf-promo-ad {
	position: relative;
	min-height: 90px;
	border: 1px solid #6e1edc;
	background-color: #f1e9fc;
	padding: 15px;
	padding-left: 100px;
	margin-top: 30px;
}

img.wpo-helper {
	position: absolute;
	bottom: 0px;
	left: 3px;
}

.wcpdf-extensions-ad h3,
.wcpdf-promo-ad h3 {
	margin: 0;
	padding: 20px;
	font-weight: normal;
	font-family: serif;
	letter-spacing: -1px;
	font-size: 2.25em;
}

.wcpdf-promo-ad p {
	margin: 0;
	padding: 0 20px;
	font-size: 1.15em;
}

.wcpdf-promo-ad p.upgrade-tab {
	margin-top: 30px;
	font-style: italic;
	font-size: 1em;
}

.wcpdf-promo-ad p.expiration {
	font-size: 0.8em;
	padding-top: 8px;
}

.wcpdf-extensions-ad a,
.wcpdf-promo-ad a {
	color: #6e1edc;
}

.wcpdf-extensions-ad a.dismiss,
.wcpdf-promo-ad a.dismiss {
	padding: 10px 20px;
}

.wcpdf-promo-ad p strong.code {
	font-size: 1.3em;
	font-family: serif;
	padding: 0.1em 0.4em;
	background: #6e1edc;
	color: white;
	border-radius: 5px;
	font-weight: normal;
}

.wcpdf-extensions-ad i {
	padding-left: 20px;
}

.wcpdf-extensions-ad ul,
.wcpdf-promo-ad ul {
	margin: 0;
	margin-left: 40px;
}

.wcpdf-extensions li {
	margin: 0;
}

.wcpdf-extensions li ul {
	list-style-type: square;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

.wcpdf-extensions > li:before {
	content: "";
	border-color: transparent transparent transparent #111;
	border-style: solid;
	border-width: 0.35em 0.35em 0.35em 0.45em;
	display: block;
	height: 0;
	width: 0;
	left: -1em;
	top: 0.9em;
	position: relative;
}

.wcpdf-extensions li:not(.expanded) {
	cursor:pointer;
}

.wcpdf-extensions .expanded:before {
	border-color: #111 transparent transparent transparent;
	left: -1.17em;
	border-width: 0.45em 0.45em 0.35em 0.35em !important;
}

.wcpdf-extensions .more {
	padding: 10px;
	background-color: white;
	border: 1px solid #ccc;
	border-radius: 5px;
}

.wcpdf-extensions table td {
	vertical-align: top;
}

.dropbox-logo {
	margin-bottom: -10px;
	margin-right: 10px;
}
.cloud-logo {
	margin-bottom: -10px;
	margin-top: -5px;
	margin-right: 10px;
}

#img-header_logo {
	max-height: 200px;
	width: auto;
	max-width: 100%;
}

.multiple-text-input label {
	padding-right: 1em;
}

table.multiple-text-input td {
	padding: 0;
}

table.wcpdf_documents_settings_list {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	background-color: white;
	border-top: 2px solid black;
}
table.wcpdf_documents_settings_list tr.odd {
	background-color: #EBF5FF;
}

table.wcpdf_documents_settings_list td {
	padding: 5px;
}

table.wcpdf_documents_settings_list a {
	text-decoration: none;
}

table.wcpdf_documents_settings_list td.settings-icon {
	text-align: right;
}

table.wcpdf_documents_settings_list td.title {
	font-weight: bold;
}

.wcpdf-settings-sections ul {
	height: 3em;
}

.wcpdf-settings-sections ul li {
	float: left;
	margin-right: 10px;
}

.wcpdf-settings-sections ul li a {
	text-decoration: none;
	display: inline-block;
	padding: 0.8em 1em;
	color: #50575e;
	border:  1px solid #c3c4c7;
	box-sizing: border-box;
}

.wcpdf-settings-sections ul li a.active {
	border: 2px solid #51266b;
	padding: calc(0.8em - 1px) calc(1em - 1px);
	color: black;
}

.wcpdf_document_settings_sections {
	position: relative;
}

.wcpdf_document_settings_sections > span {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 0.6em;
	display: inline-block;
}

.wcpdf_document_settings_sections > h2 {
	cursor: pointer;
	padding: 1em 0.8em;
	border: 1px solid #c3c4c7;
	background: #ffffff;
	border-radius: 0.5em;
	margin: 0 0 0.5em;
}

.wcpdf_document_settings_sections ul {
	background: white;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	display: block;
	height: auto;
	display: none;
	box-sizing: border-box;
	position: absolute;
	border-left: 1px solid #c3c4c7;
	border-right: 1px solid #c3c4c7;
	z-index: 1000;
	box-shadow: 0 35px 35px -8px rgba(0, 0, 0, 0.1);
	-webkit-box-shadow: 0 35px 35px -8px rgba(0, 0, 0, 0.1);
}

.wcpdf_document_settings_sections ul.active {
	display: block;
}

.wcpdf_document_settings_sections ul li {
	box-sizing: border-box;
	padding: 0;
	margin-bottom: 0;
	border-bottom: 1px solid #eaeaea;
	font-size: 1.1em;
}

.wcpdf_document_settings_sections ul li:last-child {
	border-color: #c3c4c7;
}

.wcpdf_document_settings_sections ul li:hover {
	cursor: pointer;
	background: #51266b;
	color: white;
}

.wcpdf_document_settings_sections ul li:hover a {
	color: white;
}

.wcpdf_document_settings_sections ul li a {
	color: black;
	text-decoration: none;
	padding: 1.2em 1.6em;
	display: block;
}

.wcpdf_document_settings_sections .arrow-down {
	font-size: 0.7em;
	color: #999;
	margin-left: 8px;
	font-weight: normal;
	float: right;
}

.wcpdf_document_settings_sections p:hover,
.wcpdf_document_settings_sections p:hover > .arrow-down {
	color: #222;
}

.wcpdf_advanced_numbers_choose_table {
	margin-top: 20px;
}

.wcpdf_advanced_numbers_choose_table .number-table-data-info {
	border-top: 1px solid #eaeaea;
	margin-bottom: 20px;
}

.wcpdf_advanced_numbers_choose_table .item-number {
	background-color: #d63638;
	color: white;
	padding: 3px 6px;
	border-radius: 3px;
}

.wcpdf_advanced_numbers_choose_table .number-gapped {
	background-color: #d63638;
}

.wcpdf_advanced_numbers_choose_table .number-doc-type {
	background-color: #51266b;
}

.wcpdf_advanced_numbers_choose_table .number-refund {
	background-color: #2271b1;
}

.wcpdf_document_settings_document_output_formats {
	margin-bottom: 30px;
}

.edit-next-number {
	opacity:0.5;
}
.edit-next-number:hover {
	opacity:1;
	cursor:pointer;
}

/* Pointers */

.wpo-wcpdf-pointer.wp-pointer-top .wp-pointer-arrow,
.wpo-wcpdf-pointer.wp-pointer-top .wp-pointer-arrow-inner {
		border-bottom-color: #51266b;
}

.wpo-wcpdf-pointer .wp-pointer-content h3 {
	border-color: #51266b;
	background: #51266b;
}

.wpo-wcpdf-pointer .wp-pointer-content h3:before {
	color: #51266b;
}

/* Preview */

body.woocommerce_page_wpo_wcpdf_options_page {
	background: #fdfdfd;
}

.wrap [class$="icon32"] + h2 {
	font-size: 18px;
	padding: 1em;
}

.wrap .notice {
	margin: 15px 0 0;
}

.nav-tab-wrapper a.nav-tab {
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	padding-bottom: 0.5em;
	margin: 0 1.2em;
	font-size: 15px;
}

.nav-tab-wrapper a.nav-tab.nav-tab-active {
	border-bottom: 3px solid #51266b;
}

.wcpdf-settings-sub-sections {
	margin-top: -1em;
}

#wpo-wcpdf-settings .wcpdf-settings-sub-sections {
	margin-left: -2em;
	margin-bottom: 3em;
}

.wcpdf-settings-sub-sections a.nav-tab {
	font-size: 13px;
}

.doc-output-toggle-group {
	display: inline-flex;
	list-style: none;
	margin: 1em 0;
	padding: 0;
	border-radius: 6px;
	border: 1px solid #d1d5db;
	overflow: hidden;
	background-color: #fff;
	color: #1d2327;
	font-size: 1.3em;
	font-weight: 600;
}

.doc-output-toggle-item {
	margin: 0;
	padding: 0;
}

.doc-output-toggle-item + .doc-output-toggle-item .doc-output-toggle {
	border-left: 1px solid #e5e7eb;
}

.doc-output-toggle {
	display: inline-block;
	padding: 6px 16px;
	font-size: 14px;
	text-decoration: none;
	border: none;
	background-color: #fff;
	color: #374151;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.doc-output-toggle.active {
	background-color: #f9fafb;
	color: #111827;
	font-weight: 700;
}

.doc-output-toggle:hover,
.doc-output-toggle:focus,
.doc-output-toggle.active:hover,
.doc-output-toggle.active:focus {
	background-color: inherit;
	color: inherit;
	outline: none;
	box-shadow: none;
}

/* EDI Tax Defaults Card */
.edi-tax-defaults-card {
	background: #F9F9F9;
	border: 1px solid #D5D7DA;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
}

.edi-tax-defaults-card h3 {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 600;
}

.edi-tax-defaults-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 20px;
}

.edi-tax-defaults-field {
	display: flex;
	flex-direction: column;
}

.edi-tax-defaults-field h4 {
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 500;
	color: #1d2327;
}

.edi-tax-defaults-control select {
	width: 100%;
	max-width: 100%;
	padding: 6px 2em 6px 8px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background-color: #fff;
	font-size: 13px;
}

.edi-tax-defaults-control .current {
	margin-top: 6px;
}

.edi-tax-defaults-control .current code {
	background: #D5D7DA;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12px;
	color: #414651;
}

/* EDI tax table */
.edi-tax-class-table table {
	border: 0;
	box-shadow: none;
}

.edi-tax-class-table table > tbody > tr {
	background-color: transparent !important;
}

.edi-tax-class-table table > thead > tr > th {
	background-color: #fafafa;
	border-bottom: 1px solid #E9EAEB !important;
	padding: 16px;
}

.edi-tax-class-table table > tbody > tr > td {
	border-bottom: 1px solid #E9EAEB !important;
	padding: 16px;
}

.edi-tax-class-table table > tbody > tr > td > select {
	width: 100%;
	max-width: 100%;
	padding: 6px 2em 6px 8px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background-color: #fff;
	font-size: 13px;
}

.edi-tax-class-table table > tbody > tr > td code {
	background: #D5D7DA;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12px;
	color: #414651;
	white-space: nowrap;
}

#wpo-wcpdf-preview-wrapper {
	width: 100%;
	height: auto;
	position: relative;
	display: flex;
	align-items: flex-start;
}

#wpo-wcpdf-preview-wrapper .sidebar,
#wpo-wcpdf-preview-wrapper .preview-document {
	transition: .3s ease-in-out;
}

#wpo-wcpdf-preview-wrapper .sidebar {
	height: auto;
	padding: 2em 0 0 0;
	box-sizing: border-box;
	background: transparent;
	flex: 0 0 35%;
	overflow-x: clip;
}

#wpo-wcpdf-preview-wrapper .sidebar .settings-search {
	margin-bottom: 2em;
	position: sticky;
	top: 2em;
	z-index: 100;
	background: #fff;
	padding: 2em 0 1em;
}
#wpo-wcpdf-preview-wrapper .sidebar > .settings-search {
	margin-left: 2em;
	width: calc(100% - 4em);
	max-width: 50vw;
}


#wpo-wcpdf-preview-wrapper .sidebar .settings-search > input {
	width: 100%;
	padding: 0 0.4em 0 2.6em;
	font-size: 1em;
	border: 1px solid #c3c4c7;
	border-radius: 0.5em;
	background-repeat: no-repeat;
	background-size: 1.1em 1.1em;
	background-position: 0.75em center;
	background-image: url(data:image/svg+xml,%3Csvg%20width%3D%2217%22%20height%3D%2217%22%20viewBox%3D%220%200%2017%2017%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M15.8334%2015.8334L12.2084%2012.2084M14.1667%207.50004C14.1667%2011.1819%2011.1819%2014.1667%207.50004%2014.1667C3.81814%2014.1667%200.833374%2011.1819%200.833374%207.50004C0.833374%203.81814%203.81814%200.833374%207.50004%200.833374C11.1819%200.833374%2014.1667%203.81814%2014.1667%207.50004Z%22%20stroke%3D%22%23717680%22%20stroke-width%3D%221.66667%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E);
}

#wpo-wcpdf-preview-wrapper .sidebar .settings-search-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 100;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 0.5em;
	max-height: 23em;
	overflow: hidden auto;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
	padding: 0;
	list-style: none;
	margin: -1em 0 0;
	scrollbar-color: #c3c4c7 transparent;
}

#wpo-wcpdf-preview-wrapper .sidebar .settings-search-item {
	padding: 0.6em 1em;
	margin: 0;
	cursor: pointer;
	color: #1e1e1e;
	border-bottom: 1px solid #f0f0f1;
}

#wpo-wcpdf-preview-wrapper .sidebar .settings-search-item:last-child {
	border-bottom: none;
}

#wpo-wcpdf-preview-wrapper .sidebar .settings-search-item:hover,
#wpo-wcpdf-preview-wrapper .sidebar .settings-search-item.active {
	background-color: #f0f0f1;
}

#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr.settings-search-highlight {
	background-color: #D9E0FF;
	transition: background-color 0.3s;
}

#wpo-wcpdf-preview-wrapper .sidebar > form {
	background: transparent !important;
	overflow: visible;
	padding: 0;
	margin-left: 2em;
	box-sizing: border-box;
	width: calc(100% - 4em);
	max-width: 50vw;
}

#wpo-wcpdf-preview-wrapper .sidebar > form.taxes {
	max-width: none;
}

#wpo-wcpdf-preview-wrapper .sidebar > form.editor {
	max-width: none;
}

#wpo-wcpdf-preview-wrapper .sidebar .form-table,
#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody,
#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr,
#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > th,
#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td {
	display: block;
	width: 100%;
	padding: 0;
}

#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr {
	padding: 2em !important;
	box-sizing: border-box;
}

#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > th {
	padding-bottom: 0.6em;
}

#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td p.description {
	font-size: 0.85em;
	padding-top: 0.7em;
}
#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td p.description > code {
	font-size: inherit;
}

#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td p.description > span.wpo-warning {
	width: 100%;
	box-sizing: border-box;
	word-wrap: break-word;
}

.rotate {
	animation: rotate 1s linear infinite;
	transition: transform 0.2s ease;
}

@keyframes rotate {
	100% {
		transform: rotate(360deg);
	}
}

#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td > label {
	font-weight: 600;
	font-size: 0.85em;
	display: inline-block;
}

#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td .wpo-wcpdf-input-wrapper {
	display: flex;
	gap: 5px;
	position: relative;
}

#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td .wpo-wcpdf-input-wrapper > input,
#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td .wpo-wcpdf-input-wrapper > select {
	flex: 1;
	max-width: none;
}

#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td .wpo-wcpdf-input-wrapper > button.sync-address {
	padding: 0;
	width: 30px;
	line-height: 1;
	vertical-align: middle;
	border-radius: 4px;
}

#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td .wpo-wcpdf-input-wrapper > button.sync-address > .dashicons {
	transform: rotate(-45deg);
	vertical-align: middle;
	font-size: 1.8em;
	padding: 0;
	width: auto;
	height: auto;
}

#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td .wpo-wcpdf-input-wrapper > .sync-tooltip {
	position: absolute;
	background-color: #555;
	color: #fff;
	padding: 5px 8px;
	font-size: 12px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
	z-index: 9999;
	right: 0;
	top: 115%;
}

#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td .wpo-wcpdf-input-wrapper > .sync-tooltip::after {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent #555 transparent;
}

/* Add a visible state class when showing the tooltip */
#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td .wpo-wcpdf-input-wrapper > .sync-tooltip.visible {
	opacity: 1;
}

#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td > input[type="text"],
#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td > input[type="url"],
#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td > input[type="email"],
#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td > select,
#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td > textarea {
	max-width: none;
	width: 100%;
}

#wpo-wcpdf-preview-wrapper input[type="text"][size],
#wpo-wcpdf-preview-wrapper input[type="url"][size] {
	width: auto !important;
	max-width: 100% !important;
}

#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td > input#next_invoice_number {
	width: auto !important;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="1"] .sidebar .form-table > tbody > tr,
#wpo-wcpdf-preview-wrapper[data-preview-states="2"][data-preview-state="closed"] .sidebar .form-table > tbody > tr,
#wpo-wcpdf-preview-wrapper[data-preview-states="3"][data-preview-state="closed"] .sidebar .form-table > tbody > tr {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 4em;
}

#wpo-wcpdf-preview-wrapper .sidebar .settings_category h2 {
	border-bottom: 1px solid #c3c4c7;
	padding: 1em 0 1em 5px;
	margin: 0;
	font-weight: normal;
	color: #222;
	font-family: sans-serif;
	font-size: 1.3em;
	letter-spacing: -0.01em;
	position: relative;
	transition: transform 0.3s;
	cursor: pointer;
}



#wpo-wcpdf-preview-wrapper .sidebar .settings_category h2 ~ .form-table {
	border-left: 1px solid #c3c4c7;
	border-right: 1px solid #c3c4c7;
	border-bottom: 1px solid #c3c4c7;
	margin-top: 0;
	background: #ffffff;
	margin-bottom: 20px;
}

#wpo-wcpdf-preview-wrapper .sidebar .settings_category h2::after {
	content: '\f347';
	font-family: 'dashicons';
	font-size: 16px;
	color: #82878c;
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.15s;
}

#wpo-wcpdf-preview-wrapper .sidebar .settings_category h2:hover:after {
	color: #222;
}

#wpo-wcpdf-preview-wrapper .sidebar .settings_category h2.active::after {
	transform: translateY(-50%) rotate(180deg);
}

#wpo-wcpdf-preview-wrapper .my_account_buttons_custom {
	margin-top: 1em;
}

#wpo-wcpdf-settings .form-table .ui-tabs-nav {
	padding-left: 0!important;
	margin-left: 0!important;
}

#wpo-wcpdf-settings .translations input,
#wpo-wcpdf-settings .translations textarea,
#wpo-wcpdf-settings .translations select {
	width: 100%;
	max-width: 100%;
}

#wpo-wcpdf-settings .wcpdf-attachment-settings-hint {
	border-left: 4px solid #51266b;
}

#wpo-wcpdf-settings .notice-info.inline {
	border-left-color: #51266b;
}

#wpo-wcpdf-settings table#document-link-access-type {
	margin-top: -15px;
}

#wpo-wcpdf-settings table#document-link-access-type td.option {
	padding-left: 0;
}

#wpo-wcpdf-settings table#document-link-access-type td {
	padding-top: 0;
	padding-bottom: 6px;
	font-size: 12px;
}

#wpo-wcpdf-settings .system-status-table,
#wpo-wcpdf-settings .form-table {
	margin-top: 2em;
}

#wpo-wcpdf-settings.status caption,
#wpo-wcpdf-settings.edi caption {
	font-size: 1.3em;
	font-weight: bold;
	line-height: 1.3em;
	padding-bottom: 0.5em;
	text-align: left;
}

#wpo-wcpdf-settings.status caption > a,
#wpo-wcpdf-settings.edi caption > a {
	margin-left: 6px;
	text-decoration: none;
}

#wpo-wcpdf-settings.edi table.form-table > tbody > tr.edi-multiple label {
	display: block;
	margin-bottom: 5px;
}

#wpo-wcpdf-settings .system-status-table > tbody > tr:nth-of-type(even) {
	background-color: rgb(245 245 245);
}

#wpo-wcpdf-settings .system-status-table .status-cell {
	color: #000;
}

#wpo-wcpdf-settings .system-status-table .valid-status {
	background-color: #68de7c;
}

#wpo-wcpdf-settings .system-status-table .invalid-status {
	background-color: #ffabaf;
}

#wpo-wcpdf-settings .system-status-table .warning-status {
	background-color: #f2d675;
}

#wpo-wcpdf-settings .system-status-table .inactive-status {
	background-color: #dedede;
}

#wpo-wcpdf-settings .edi-tax-class-group {
	margin: 1em 0;
}

button.button-wpo.button,
.button.button-wpo.button-primary {
	height: 36px !important;
	min-height: 36px !important;
	padding: 0 14px !important;
	line-height: normal !important;
	background-color: #6E1EDC !important;
	color: #fff !important;
	border-color: #6E1EDC !important;
	border-radius: 8px !important;

	/* kill WP visual effects that distort the corners */
	background-image: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	background-clip: padding-box !important;

	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.button-wpo:focus {
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(110, 30, 220, .25) !important;
}

button.button-edi-save-taxes {
	margin-top: 2em !important;
}

#wpo-wcpdf-settings .edi-customer-identifiers {
	margin-top: 1em;
}

#wpo-wcpdf-settings .edi-customer-identifiers table thead td {
	vertical-align: middle;
}

#wpo-wcpdf-settings .edi-customer-identifiers .edi-search-wrap {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

#wpo-wcpdf-settings .edi-customer-identifiers input[type="text"]{
	max-width: 120px;
	padding: 0 6px;
}

#wpo-wcpdf-preview-wrapper .preview-document {
	padding: 2em 0 0 0;
	box-sizing: border-box;
	position: sticky;
	top: 2.4em;
	flex: 0 0 60%;
	min-width: 0;
	overflow-x: hidden;
}

#wpo-wcpdf-preview-wrapper .preview {
	min-width: 0;
	overflow-x: hidden;
	overflow-y: auto;
}

#wpo-wcpdf-preview-wrapper .preview pre[class*="language-"] {
	margin: 0;
	width: 100%;
	overflow-x: auto;
	overflow-y: auto;
	white-space: pre;
}

#wpo-wcpdf-preview-wrapper .preview canvas {
	display: block;
	max-width: 100%;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="1"] .sidebar {
	flex: 0 0 100%;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="2"][data-preview-state="closed"] .sidebar {
	flex: 0 0 95%;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="2"][data-preview-state="full"] .sidebar {
	flex: 0 0 95%;
	margin-left: -95%;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="3"][data-preview-state="closed"] .sidebar {
	flex: 0 0 95%;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="3"][data-preview-state="sidebar"] .sidebar {
	flex: 0 0 35%;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="3"][data-preview-state="full"] .sidebar {
	margin-left: -35%;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="3"][data-from-preview-state="full"] .sidebar {
	transition-delay: .4s;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="1"] .preview-document {
	display: none;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="2"][data-preview-state="closed"] .preview-document {
	display: none;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="2"][data-preview-state="full"] .preview-document {
	flex: 0 0 95%;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="3"][data-preview-state="closed"] .preview-document {
	flex: 0 0 60%;
	margin-right: -60%;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="3"][data-preview-state="sidebar"] .preview-document {
	flex: 0 0 60%;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="3"][data-preview-state="full"] .preview-document {
	flex: 0 0 95%;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="3"][data-from-preview-state="full"] .preview-document {
	transition-delay: .4s;
}

.preview-document .preview {
	width: 100%;
	box-sizing: border-box;
	padding-right: 5%;
}

.preview-document .preview > pre {
	width: 100%;
	height: 100%;
	overflow-wrap: anywhere;
	background-color: #222;
	color: white;
	padding: 2em;
	border-radius: 4px;
}

.preview-document .preview > #preview-canvas {
	display: block;
	max-width: 800px;
	max-height: 85vh;
	width: auto!important;
	margin: 2em auto;
	background: white;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#wpo-wcpdf-preview-wrapper[data-preview-states="2"] #preview-canvas {
	max-height: 170vh;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="3"][data-from-preview-state="sidebar"] #preview-canvas {
	max-height: 170vh;
	transition: max-height .4s ease-in-out .3s;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="3"][data-from-preview-state="full"] #preview-canvas {
	transition: max-height .4s ease-in-out 0s;
}

.preview-document .preview-data-wrapper {
	width: 100%;
	height: 4em;
}

.preview-document .preview-data-wrapper .preview-order-data,
.preview-document .preview-data-wrapper .preview-document-type {
	float: right;
	margin-right: 26px;
	position: relative;
}

.preview-document .preview-data-wrapper .preview-document-type ul > li {
	text-decoration: none;
	color: initial;
	padding: 1.4em 1.6em;
}

.preview-document .preview-data-wrapper .preview-document-type ul > li:hover {
	color: white !important;
}

.preview-document .preview-data-wrapper .save-settings {
	padding: 1em 0 0 0;
	float: right;
	overflow: hidden;
	position: relative;
}

.preview-document .preview-data-wrapper .save-settings p {
	padding: 0;
	margin: 0 0 0 2em;
	position: relative;
	margin-right: -200px;
	transition: margin-right .3s ease-out;
}

.preview-document .preview-data-wrapper .save-settings p:after {
	content: '';
	display: block;
	pointer-events: none;
	position: absolute;
	box-sizing: border-box;
	border-radius: 3px;
	right: 0;
	top: 0;
	background: transparent;
	width: 100%;
	height: 100%;
	z-index: 10;
	border: 0px solid white;
	animation: border-pulse 4s infinite;

}

@keyframes border-pulse {
	0% {
		border-color: rgba(255, 255, 255, 0);
		border-width: 8px;
	}
	50% {
		border-color: rgba(255, 255, 255, 1);
		border-width: 0;
	}
}

.preview-document .preview-data-wrapper .save-settings p input:focus {
	outline-width: 0;
	box-shadow: none;
}

.preview-document .preview-data p {
	padding:  1.4em 0;
	margin:  0;
	color: #666;
	text-align: right;
	cursor: pointer;
	font-weight: lighter;
	float: right;
}

.preview-document .preview-data p.order-search {
	display: none;
}

.preview-document .preview-data input {
	float: right;
	margin:  1em 0 0 1em;
	padding: 0.1em 0.5em;
	width: 20ch;
	margin-right: -25ch;
	display: none;
}

.preview-document .preview-data input.active {
	margin-right: 0;
	display: inline-block;
}

.preview-document .preview-data ul {
	position: absolute;
	right: 0;
	top: 100%;
	background: white;
	box-shadow: 0 0 25px -10px rgba(0,0,0,0.2);
	-webkit-box-shadow: 0 0 25px -10px rgba(0,0,0,0.2);
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: 24em;
	display: block;
	height: 0;
	overflow: hidden;
}

.preview-document .preview-data ul.active {
	height: auto;
	z-index: 1;
}

.preview-document .preview-data ul li {
	box-sizing: border-box;
	padding: 0;
	margin-bottom: 0;
	border-bottom: 1px solid #eaeaea;
	font-size: 1.1em;
}

.preview-document .preview-data ul li:hover {
	cursor: pointer;
	background: #51266b;
	color: white;
}

.preview-document .preview-data ul li a,
.preview-document .preview-data.preview-order-data ul li {
	display: block;
	padding: 1.4em 1.6em;
}

.preview-document .preview-data .arrow-down {
	font-size: 0.8em;
	color: #999;
	margin-left: 8px;
}

.preview-document .preview-data p:hover,
.preview-document .preview-data p:hover > .arrow-down {
	color: #222;
}

.preview-document .preview-data #preview-order-search-results {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	width: 300px;
	box-shadow: 0 0 25px -10px rgba(0,0,0,0.2);
	-webkit-box-shadow: 0 0 25px -10px rgba(0,0,0,0.2);
	padding: 20px 0;
	background-color: white;
	z-index: 99;
}

.preview-document .preview-data #preview-order-search-results a {
	display: block;
	border-left: 1px solid #999;
	border-right: 1px solid #999;
	border-top: 1px solid #999;
	color: #000;
	padding: 10px;
	margin: 0 20px;
	text-decoration: none;
	cursor: pointer;
}

.preview-document .preview-data #preview-order-search-results a:last-child {
	border-bottom: 1px solid #999;
}

.preview-document .preview-data #preview-order-search-results a:hover {
	background-color: #51266b;
	color: white;
}

.preview-document .preview-data #preview-order-search-results .order-number {
	font-weight: bold;
}

.preview-document .preview-data #preview-order-search-results .date,
.preview-document .preview-data #preview-order-search-results .total {
	margin-top: 6px;
	display: inline-block;
}

.preview-document .preview-data #preview-order-search-results .total {
	float: right;
}

.preview-document .preview-data #preview-order-search-results .error {
	margin: 0 20px;
}

.preview-document .preview-order-search-wrapper {
	position: relative;
	float: right;
}

.preview-document .preview-order-search-wrapper img.preview-order-search-clear {
	position: absolute;
	width: 30px;
	height: 16px;
	top: 22px;
	right: 6px;
	display: none;
	cursor: pointer;
}

#wpo-wcpdf-preview-wrapper .gutter  {
	flex: 0 0 5%;
	position: sticky;
	top: 2.4em;
	height: 170vh;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="2"][data-preview-state="closed"] .gutter .slide-left,
#wpo-wcpdf-preview-wrapper[data-preview-states="3"][data-preview-state="closed"] .gutter .slide-left {
	float: right;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="3"][data-preview-state="sidebar"] .gutter .slide-left {
	border: none;
}

#wpo-wcpdf-preview-wrapper .slider {
	box-sizing: border-box;
	padding-top: 2.4em;
	color: #999;
	font-weight: bold;
	cursor: pointer;
	font-size: 0.7em;
	line-height: 1em;
	width: 50%;
	height: 100%;
	float: left;
}

#wpo-wcpdf-preview-wrapper .slider.slide-left {
	text-align: right;
	padding-right: 10px;
	border-right: 1px solid #ccc;
}

#wpo-wcpdf-preview-wrapper .slider.slide-right {
	text-align: left;
	padding-left: 10px;
	border-left: 1px solid #ccc;
	display: none;
}

#wpo-wcpdf-preview-wrapper .gutter-arrow {
	width: 0;
	height: 0;
	border-top: 3px solid transparent;
	border-bottom: 3px solid transparent;
	display: block;
}

#wpo-wcpdf-preview-wrapper .arrow-left {
	border-right: 7px solid #999;
	float: right;
}

#wpo-wcpdf-preview-wrapper .arrow-right {
	border-left: 7px solid #999;
}

#wpo-wcpdf-preview-wrapper .slider:hover > .arrow-left {
	border-right: 7px solid #222;
}

#wpo-wcpdf-preview-wrapper .slider:hover > .arrow-right {
	border-left: 7px solid #222;
}

#wpo-wcpdf-preview-wrapper .slider.slide-left:after {
	position: absolute;
	top: 1.55em;
	right: 2em;
	font-size: 1.4em;
	display: none;
}

#wpo-wcpdf-preview-wrapper .slider.slide-right:after {
	position: absolute;
	top: 1.55em;
	left: 2em;
	font-size: 1.4em;
	display: none;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="1"] .gutter {
	display: none;
}

#wpo-wcpdf-preview-wrapper[data-preview-states="3"][data-preview-state="sidebar"]  .gutter {
	height: 100vh;
}

#wpo-wcpdf-preview-wrapper[data-preview-state="full"] .slide-right:after {
	display: inline-block;
}

#wpo-wcpdf-preview-wrapper[data-preview-state="closed"] .slide-left:after {
	display: inline-block;
}

#wpo-wcpdf-preview-wrapper.static .preview-document,
#wpo-wcpdf-preview-wrapper.static .gutter {
	position: static!important;
}

#wpo-wcpdf-preview-wrapper.static .sidebar {
	height: 170vh!important;
	overflow: hidden;
}

#wpo-wcpdf-preview-wrapper input.readonly,
#wpo-wcpdf-preview-wrapper input[readonly],
#wpo-wcpdf-preview-wrapper textarea.readonly,
#wpo-wcpdf-preview-wrapper textarea[readonly] {
	background-color: #f8f8f8;
}

#wpo-wcpdf-preview-wrapper[data-preview-state="sidebar"] .select2.select2-container {
	width: 100%!important;
}

#wpo-wcpdf-preview-wrapper input#due_date_days {
	text-align: right;
}

#wpo-wcpdf-preview-wrapper input#due_date_days:disabled {
	background-color: #eaeaea;
	color: #999;
}

sup.wcpdf_pro {
	background-color: #51266b;
	color: white;
	font-size: 7pt;
	padding: 1px 2px;
	border-radius: 2px;
}

.notice-wpo p {
	font-size: 0.8em !important;
}

/* EDI Taxes */
#wpo-wcpdf-settings ul#edi-standard-changelog {
	display: none;
	list-style: disc;
	padding-left: 20px;
}

@media screen and (min-width: 1920px) {
	.preview-document .preview > #preview-canvas {
		max-width: 900px;
	}
}

@media screen and (max-width: 1200px) {
	.preview-document .preview > #preview-canvas {
		max-width: 680px;
	}

	.preview-document .preview > #preview-canvas {
		width: 80vw!important;
	}

	#wpo-wcpdf-preview-wrapper .sidebar > form {
		max-width: 100%;
	}

	#wpo-wcpdf-preview-wrapper[data-preview-state="closed"] .select2.select2-container {
		width: 100%!important;
	}

	#wpo-wcpdf-preview-wrapper[data-preview-states="1"] .sidebar .form-table > tbody > tr,
	#wpo-wcpdf-preview-wrapper[data-preview-states="2"][data-preview-state="closed"] .sidebar .form-table > tbody > tr,
	#wpo-wcpdf-preview-wrapper[data-preview-states="3"][data-preview-state="closed"] .sidebar .form-table > tbody > tr {
		gap: 2em;
	}

	.preview-document .preview-data-wrapper {
		height: 6em;
	}

	.preview-document .preview-data p {
		padding: 2.2em 0;
	}

	#wpo-wcpdf-preview-wrapper .slider.slide-right:after,
	#wpo-wcpdf-preview-wrapper .slider.slide-left:after {
		top: 1.5em;
		padding: 1em;
		background: white;
		border: 1px solid #ccc;
	}

	#wpo-wcpdf-preview-wrapper .slider.slide-right:after {
		left: 0;
	}

	#wpo-wcpdf-preview-wrapper .slider.slide-left:after {
		right: 0;
	}

	#wpo-wcpdf-preview-wrapper .multiple-text-input tr td:nth-child(2),
	#wpo-wcpdf-preview-wrapper .multiple-text-input tr td:nth-child(3) {
		float: left;
		margin-bottom: 10px;
	}

	#wpo-wcpdf-preview-wrapper .multiple-text-input tr td .woocommerce-help-tip:after {
		padding: 0.5em 0.8em;
		font-size: 1.2em;
		line-height: inherit;
	}
}

@media screen and (max-width: 860px) {
	#wpo-wcpdf-preview-wrapper[data-preview-states="1"] .sidebar .form-table > tbody > tr,
	#wpo-wcpdf-preview-wrapper[data-preview-states="2"][data-preview-state="closed"] .sidebar .form-table > tbody > tr,
	#wpo-wcpdf-preview-wrapper[data-preview-states="3"][data-preview-state="closed"] .sidebar .form-table > tbody > tr {
		display: block;
	}
}


/* Upgrade tab */

#plugin-recommendations {
	padding: 0 0 3em 1em;
}

#plugin-recommendations h1 {
	font-family: serif;
	letter-spacing: -1px;
	font-size: 3em;
}

#plugin-recommendations p {
	font-size: 1.1em;
}

#upgrade-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.2em;
	margin-bottom: 3em;
}

#upgrade-table th,
#upgrade-table td  {
	padding: 0.8em 2em;
	border-bottom: 1px solid #ccc;
	text-align: center;
}

#upgrade-table th {
	font-weight: normal;
	font-size: 1.1em;
}

#upgrade-table th:not(.last),
#upgrade-table td:not(.last) {
	width: 200px;
}

#upgrade-table tr:last-child td {
	border: none;
}

#upgrade-table td.feature-label {
	text-align: left;
	padding-left: 1em;
	font-weight: bold;
	width: 500px;
}

#upgrade-table td.feature-label span.description {
	display: inline-block;
	padding-top: 10px;
	font-size: 0.8em;
	line-height: 1.4em;
	font-weight: normal;
	color: #555;
}

#upgrade-table td span.feature-available {
	display: inline-block;
	width: 24px;
	height: 24px;
	background-repeat: no-repeat;
	background-size: cover;
}

div.upgrade-table-description a,
#upgrade-table a {
	color: #6e1edc;
	white-space: nowrap;

}

#upgrade-table .upgrade-links h4 {
	margin: 1em 0 0.5em 0;
}

#upgrade-table .upgrade-links p {
	margin: 0;
	font-style: oblique;
	font-size: 0.8em;
}

#upgrade-table .upgrade-links a.upgrade_button,
#plugin-recommendations a.upgrade_button {
	display: inline-block;
	background: white;
	color: #6e1edc;
	padding: 1em 3em 1em 2em;
	border-radius: 12px;
	border: 1px solid #6e1edc;
	text-decoration: none;
	margin: 2em 0;
	position: relative;
}

#upgrade-table .upgrade-links a.upgrade_button:after,
#plugin-recommendations a.upgrade_button:after {
	content: ' \2192'; /* ASCII code for right arrow */
	display: block;
	position: absolute;
	right: 1.8em;
	top: 1.1em;
	transition: 0.5s;
}

#upgrade-table .upgrade-links a.upgrade_button:hover:after,
#plugin-recommendations a.upgrade_button:hover:after {
	right: 1.1em;
	font-weight: bold;
}

#upgrade-table .upgrade-links a.upgrade_button:focus,
#upgrade-table .upgrade-links a.upgrade_button:hover,
#plugin-recommendations a.upgrade_button:focus,
#plugin-recommendations a.upgrade_button:hover {
	background: #6e1edc;
	color: #fcfbf7;
}

#plugin-recommendations {
	border-radius: 8px;
	background-color: #f1e9fc;
	padding: 4em 3em;
}

#plugin-recommendations .card-container {
	max-width: 1100px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 3em;
	padding: 2em 0;
}

#plugin-recommendations .recommendation-card {
	margin-top: 0;
	border-radius: 6px;
	background-color: white;
	box-shadow: 0 0 25px -10px rgba(0,0,0,0.2);
	box-sizing: border-box;
	font-size: 15px;
	overflow: hidden;
	transition: 0.2s;
}

#plugin-recommendations .recommendation-card:nth-child(n+4) {
	display: none;
}

#plugin-recommendations .recommendation-card:hover {
	scale: 1.02;
}

#plugin-recommendations .recommendation-card.currently-installed {
	opacity: 0.5;
}

#plugin-recommendations .recommendation-card .card-content{
	padding: 0 4em 3em 2em;
}

#plugin-recommendations .recommendation-card img {
	width: 100%;
}

#plugin-recommendations .recommendation-card h5 {
	text-align: left;
	font-size: 1.4em;
	line-height: 1.3em;
	font-weight: bold;
	margin: 1em 0;
}

#plugin-recommendations .recommendation-card p {
	text-align: left;
	padding-bottom: 10px;
}

#plugin-recommendations .recommendation-card a.upgrade_button {
	margin: 0;
}

#plugin-recommendations .recommendation-card span.currently-installed {
	font-size: 0.7em;
	color: white;
	background-color: #6e1edc;
	padding: 1em 2em;
	border-radius: 12px;
	margin: 0;
	display: inline-block;
}

.wpo_wcpdf_badge {
	background: #6e1edc;
	color: #fff;
	font-size: 0.6em;
	padding: 4px 9px;
	border-radius: 16px;
	line-height: 1;
	margin: 0 1em;
	font-weight: 600;
	vertical-align: middle;
}

.wpo_wcpdf_pro_notice {
	font-style: italic;
}

@media screen and (max-width: 1100px) {
	#upgrade-table {
		font-size: 1em;
		line-height: 1.2em;
	}

	#upgrade-table th:not(.last),
	#upgrade-table td:not(.last) {
		width: 25%;
		padding: 0.8em 1em;
	}

	#upgrade-table th.last,
	#upgrade-table td.last {
		width: 0;
		padding: 0;
	}

	#upgrade-table td.feature-label span.description {
		padding-top: 6px;
	}

	#plugin-recommendations .card-container {
		grid-gap: 2em;
	}
}

@media screen and (max-width: 968px) {
	#plugin-recommendations .card-container {
		grid-template-columns: repeat(1, 1fr);
		padding-right: 40%;
	}
}

@media screen and (max-width: 782px) {
	#wpo-wcpdf-preview-wrapper .sidebar .form-table > tbody > tr > td:has( input[type="checkbox"] + input[type="text"] ) > input {
		display: inline-block;
	}
}

@media screen and (max-width: 767px) {
	#upgrade-table td.feature-label span.description {
		display: none;
	}

	#upgrade-table th:not(.last),
	#upgrade-table td:not(.last) {
		width: 20%;
	}

	#upgrade-table td.first {
		width: 40%;
	}

	#plugin-recommendations .card-container {
		padding-right: 0;
	}
}

@media screen and (max-width: 649px) {

	div.upgrade-table-description {
		padding-left: 0.8em;
	}

	div.upgrade-table-description p {
		font-size: 1em;
	}

	#upgrade-table {
		font-size: 0.8em;
	}

	#upgrade-table th,
	#upgrade-table td {
		padding: 0.5em 0.8em!important;
	}

	#upgrade-table td span.feature-available {
		width: 18px;
		height: 18px;
	}

	#upgrade-table .upgrade-links a {
		white-space: normal;
		padding: 0.6em 0.8em;
		border-radius: 6px;
	}

	#upgrade-table .upgrade-links a:after {
		display: none;
	}

	#plugin-recommendations .card-container {
		justify-content: center;
	}
}

@media screen and (max-width: 500px) {
	.nav-tab-wrapper {
		overflow: auto;
		flex-wrap: nowrap;
		display: flex;
	}
}

/* Override WordPress default form style */
@media screen and (max-width: 782px) {
	input[type="radio"], input[type="checkbox"] {
		margin-bottom: 0.5em;
	}
}
