/* Accessibility toolbar. Ported from AccessibleWP 5.4.0.
   :not(.koren-a11y-n) never matches a real class; it keeps the specificity these rules need to beat theme rules. */

.koren-a11y-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

#koren-a11y-toolbar * {
	box-sizing: border-box;
}

.koren-a11y-icon {
	display: inline-block;
	width: 24px;
	height: 24px;
	line-height: 1;
}

.koren-a11y-icon svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: currentColor;
}

/* Open button */
#koren-a11y-btn-wrap {
	border: 1.5px solid #1E7AB9;
	z-index: 9500;
	position: fixed;
	margin-top: -100vh;
	border-radius: 50%;
	transition: all 1200ms ease;
}

body #koren-a11y-btn-wrap {
	top: 120px;
	left: 20px;
}

#koren-a11y-btn {
	margin: 0;
	padding: 0;
	cursor: pointer;
	appearance: none;
	width: 48px;
	height: 48px;
	background: #1E7AB9;
	text-align: center;
	color: #fff;
	border: 4px solid #fff;
	border-radius: 50%;
	box-shadow: 6px 8px 16px rgba(0, 0, 0, 0.2);
}

#koren-a11y-btn:hover,
#koren-a11y-btn:focus {
	border-color: orangered;
}

#koren-a11y-btn-wrap.show {
	margin-top: 0;
}

body.koren-a11y-contrast #koren-a11y-btn svg,
#koren-a11y-btn svg {
	height: auto;
	display: inline-block;
	width: 36px;
	top: 2px;
	position: relative;
	background-color: transparent;
}

/* Close button */
#koren-a11y-close {
	margin: 0;
	padding: 0;
	cursor: pointer;
	appearance: none;
	background: none;
	border: 0;
	position: absolute;
	top: 10px;
	right: 10px;
	outline: none;
	color: #fff;
	z-index: 250;
}

body.rtl #koren-a11y-close {
	right: auto;
	left: 10px;
}

/* Toggles */
#koren-a11y-toolbar.koren-a11y-style-default .koren-a11y-toggler {
	border-bottom: 1px solid rgba(36, 36, 36, 0.1);
}

.koren-a11y-toggler label > * {
	pointer-events: none;
}

#koren-a11y-toolbar.koren-a11y-style-default .koren-a11y-toggler label {
	display: flex;
	width: 100%;
	margin: 0;
	cursor: pointer;
	background: white;
	padding: 8px 16px;
	font-weight: 400;
	font-size: 1em;
	outline: none;
	align-items: center;
}

.koren-a11y-toggler label:hover,
.koren-a11y-toggler label:focus {
	outline: none;
	background: whitesmoke;
}

#koren-a11y-toolbar.koren-a11y-style-default .koren-a11y-toggler label > i.koren-a11y-icon,
#koren-a11y-toolbar.koren-a11y-style-default .koren-a11y-toggler label > span {
	display: inline-block;
	line-height: 34px;
	color: #333;
}

.koren-a11y-toggler label > span {
	flex-grow: 1;
}

.koren-a11y-toggler label > i.koren-a11y-icon {
	float: left;
	margin-right: 8px;
}

body.rtl .koren-a11y-toggler label > i.koren-a11y-icon {
	float: right;
	margin-right: auto;
	margin-left: 8px;
}

.koren-a11y-toggler label input {
	display: none;
}

.koren-a11y-switcher {
	position: relative;
	display: inline-block;
	height: 34px;
	width: 60px;
	float: right;
}

body.rtl .koren-a11y-switcher {
	float: left;
}

.koren-a11y-switch {
	background-color: rgba(36, 36, 36, 0.22);
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 500px;
	cursor: pointer;
	transition-property: background-color;
	transition-duration: .2s;
	box-shadow: inset 0 0 2px rgba(36, 36, 36, 0.07);
}

.koren-a11y-switch:before {
	content: '';
	background-color: #fff;
	position: absolute;
	width: 30px;
	height: 30px;
	left: 2px;
	bottom: 2px;
	border-radius: 50%;
	transition-property: transform, box-shadow;
	transition-duration: .2s;
	transform: translateX(0px);
}

body.rtl .koren-a11y-switch:before {
	transform: translateX(26px);
}

input:checked + .koren-a11y-switch {
	background-color: #3c8dbc !important;
}

input:checked + .koren-a11y-switch:before {
	transform: translateX(26px);
}

body.rtl input:checked + .koren-a11y-switch:before {
	transform: translateX(0px);
}

/* Panel */
.koren-a11y-toolbar {
	display: none;
	position: fixed;
	z-index: 99999;
	outline: none;
	transition: all 1200ms ease;
	top: -100vh;
	left: 20px;
}

.koren-a11y-toolbar:focus {
	outline: none;
}

.koren-a11y-toolbar.koren-a11y-toolbar-active {
	display: block;
}

.koren-a11y-toolbar.koren-a11y-toolbar-show {
	top: 55px;
}

#koren-a11y-module {
	position: relative;
	background-color: white;
	width: 380px;
	border: 8px solid #efefef;
	box-shadow: 0 2px 12px 1px rgba(36, 36, 36, 0.33);
}

.koren-a11y-enlarged #koren-a11y-module {
	width: 616px;
}

.koren-a11y-heading {
	background: #1E7AB9;
	padding: 8px 16px;
}

p.koren-a11y-title {
	color: #fff;
}

.koren-a11y-heading p.koren-a11y-title {
	margin: 0;
	padding: 0;
	font-size: 32px;
}

.koren-a11y-heading p {
	margin: 0;
}

/* Contrast: the toolbar itself */
body.koren-a11y-contrast #koren-a11y-toolbar.koren-a11y-style-default .koren-a11y-toggler label,
body.koren-a11y-contrast #koren-a11y-module {
	background-color: black;
	border-color: #ccc;
}

body.koren-a11y-contrast #koren-a11y-toolbar .koren-a11y-heading,
body.koren-a11y-contrast #koren-a11y-toolbar .koren-a11y-heading p.koren-a11y-title {
	background-color: #333;
}

body.koren-a11y-contrast:not(.koren-a11y-n):not(.koren-a11y-n):not(.koren-a11y-n) .koren-a11y-switch {
	background-color: #666;
}

body.koren-a11y-contrast #koren-a11y-toolbar.koren-a11y-style-default .koren-a11y-toggler label > i.koren-a11y-icon,
body.koren-a11y-contrast #koren-a11y-toolbar.koren-a11y-style-default .koren-a11y-toggler label > span {
	color: #fff;
}

/* Stop animations */
body.koren-a11y-animations * {
	transition: none !important;
	animation: none !important;
}

/* Highlight links and buttons */
body.koren-a11y-underline:not(.koren-a11y-n) #koren-a11y-close,
body.koren-a11y-underline:not(.koren-a11y-n) a,
body.koren-a11y-underline:not(.koren-a11y-n) button {
	text-decoration: underline;
	background: #FFE901;
	color: #000;
	box-shadow: 0 0 0 2px #FFE901;
}

/* Mark titles */
body.koren-a11y-marktitles:not(.koren-a11y-n):not(.koren-a11y-n) #koren-a11y-toolbar .koren-a11y-heading,
body.koren-a11y-marktitles:not(.koren-a11y-n):not(.koren-a11y-n) #koren-a11y-toolbar p.koren-a11y-title,
body.koren-a11y-marktitles:not(.koren-a11y-n):not(.koren-a11y-n) h1,
body.koren-a11y-marktitles:not(.koren-a11y-n):not(.koren-a11y-n) h2,
body.koren-a11y-marktitles:not(.koren-a11y-n):not(.koren-a11y-n) h3 {
	background-color: yellow;
	color: black;
}

/* Contrast: the page */
body.koren-a11y-contrast:not(.koren-a11y-n):not(.koren-a11y-n):not(.koren-a11y-n) * {
	background-image: none;
}

body.koren-a11y-contrast:not(.koren-a11y-n):not(.koren-a11y-n):not(.koren-a11y-n) {
	background-color: black;
	color: white;
}

body.koren-a11y-contrast:not(.koren-a11y-n):not(.koren-a11y-n):not(.koren-a11y-n) *,
body.koren-a11y-contrast:not(.koren-a11y-n):not(.koren-a11y-n):not(.koren-a11y-n) #footer,
body.koren-a11y-contrast:not(.koren-a11y-n):not(.koren-a11y-n):not(.koren-a11y-n) #site-footer,
body.koren-a11y-contrast:not(.koren-a11y-n):not(.koren-a11y-n):not(.koren-a11y-n) #header,
body.koren-a11y-contrast:not(.koren-a11y-n):not(.koren-a11y-n):not(.koren-a11y-n) #site-header,
body.koren-a11y-contrast:not(.koren-a11y-n):not(.koren-a11y-n):not(.koren-a11y-n) .singular .featured-media::before {
	background-color: black;
	color: white;
}

body.koren-a11y-contrast:not(.koren-a11y-n):not(.koren-a11y-n):not(.koren-a11y-n) a,
body.koren-a11y-contrast:not(.koren-a11y-n):not(.koren-a11y-n):not(.koren-a11y-n) button,
body.koren-a11y-contrast:not(.koren-a11y-n):not(.koren-a11y-n):not(.koren-a11y-n) label {
	color: yellow;
}

body.koren-a11y-contrast:not(.koren-a11y-n):not(.koren-a11y-n):not(.koren-a11y-n) .koren-a11y-icon {
	background: none;
}

/* Readable font */
body.koren-a11y-readable:not(.koren-a11y-n):not(.koren-a11y-n):not(.koren-a11y-n),
body.koren-a11y-readable:not(.koren-a11y-n):not(.koren-a11y-n):not(.koren-a11y-n) *:not(.fa):not(.koren-a11y-icon) {
	font-family: 'Arial', sans-serif;
}

@media (max-height: 867px) {
	.koren-a11y-toggler label > i.koren-a11y-icon,
	.koren-a11y-toggler label > span {
		line-height: 24px;
	}
	.koren-a11y-switcher {
		height: 24px;
		width: 50px;
	}
	.koren-a11y-switch::before {
		width: 20px;
		height: 20px;
	}
}

@media (max-height: 768px) {
	.koren-a11y-heading {
		padding: 8px 16px;
	}
	.koren-a11y-heading p.koren-a11y-title {
		font-size: 24px;
	}
}

@media (max-height: 600px) {
	.koren-a11y-heading {
		padding: 6px 16px;
	}
	#koren-a11y-module {
		border-width: 4px;
	}
}

@media (max-height: 558px) {
	#koren-a11y-toolbar .koren-a11y-toggler label > i.koren-a11y-icon,
	#koren-a11y-toolbar.koren-a11y-style-default .koren-a11y-toggler label > i.koren-a11y-icon,
	#koren-a11y-toolbar .koren-a11y-toggler label > span,
	#koren-a11y-toolbar.koren-a11y-style-default .koren-a11y-toggler label > span {
		font-size: 14px;
		line-height: 20px;
	}
	.koren-a11y-switcher {
		height: 20px;
		width: 46px;
	}
	.koren-a11y-switch::before {
		width: 16px;
		height: 16px;
	}
	.koren-a11y-heading p.koren-a11y-title {
		font-size: 18px;
	}
}

@media (max-height: 481px) {
	#koren-a11y-close {
		top: 4px;
		right: 4px;
	}
}

@media (max-height: 468px) {
	.koren-a11y-heading {
		padding: 4px 16px;
	}
	.koren-a11y-heading p.koren-a11y-title {
		font-size: 16px;
	}
	#koren-a11y-close {
		top: 0;
		right: 0;
	}
}

@media (max-height: 386px) {
	.koren-a11y-heading p.koren-a11y-title {
		font-size: 14px;
	}
	.koren-a11y-toggler label > i.koren-a11y-icon,
	.koren-a11y-toggler label > span {
		font-size: 12px;
		line-height: 18px;
	}
	.koren-a11y-switcher {
		height: 18px;
		width: 44px;
	}
	.koren-a11y-switch::before {
		width: 14px;
		height: 14px;
	}
}

@media (max-width: 768px) {
	.koren-a11y-enlarged #koren-a11y-module {
		width: 548px;
	}
}

@media (max-width: 600px) {
	.koren-a11y-enlarged #koren-a11y-module {
		width: 420px;
	}
}

@media (max-width: 481px) {
	.koren-a11y-enlarged #koren-a11y-module {
		width: 396px;
	}
}

@media (max-width: 400px) {
	#koren-a11y-module {
		width: 320px;
	}
	.koren-a11y-enlarged #koren-a11y-module {
		width: 100%;
	}
}

@media (max-width: 321px) {
	#koren-a11y-module {
		width: 300px;
	}
}
