/*
 * OPIS Profiler styles.
 * Ported from the iPad theme (themes/mobile/style.css) and scoped to
 * .opis-profiler so nothing else on the site is affected.
 * Loaded only on pages using the OPIS Profiler templates.
 *
 * Not ported: the global reset, body styles, the fixed iPad #wrapper,
 * iScroll, the user-agent notice and favourites.
 */

.opis-profiler {
	--opis-pf-navy: #0B3557;
	--opis-pf-navy-dark: #081D2D;
	--opis-pf-panel: #082842;
	--opis-pf-accent: #a1e8ed;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: 0 20px;
	color: #fff;
	font-family: Helvetica Light, Helvetica, Arial, sans-serif;
	font-size: 18px;
	line-height: 1.6;
}
.opis-profiler *,
.opis-profiler *::before,
.opis-profiler *::after {
	box-sizing: border-box;
}
.opis-profiler img {
	max-width: 100%;
	height: auto;
}
.opis-profiler p,
.opis-profiler li {
	color: #fff;
	font-size: 18px;
	line-height: 1.6;
}
.opis-profiler a,
.opis-profiler a:visited {
	color: #fff;
	text-decoration: none;
	cursor: pointer;
}
.opis-profiler a:hover {
	color: var(--opis-pf-accent);
}
.opis-profiler h1,
.opis-profiler h2,
.opis-profiler h3,
.opis-profiler h4 {
	color: #fff;
	font-weight: normal;
}
.opis-profiler .clearfix::after {
	content: "";
	display: table;
	clear: both;
}

/* Page title with the iPad step markers */
.opis-profiler .opis-pf-title {
	position: relative;
	font-size: 48px;
	line-height: 1.1;
	margin: 0 0 25px;
	clear: both;
}
.opis-profiler .opis-pf-step {
	padding-right: 140px;
	min-height: 60px;
	background-repeat: no-repeat;
	background-position: top right;
}
.opis-profiler .opis-pf-step-1 {
	background-image: url('../../img/step1.png');
}
.opis-profiler .opis-pf-step-2 {
	background-image: url('../../img/step2.png');
}
.opis-profiler .opis-pf-step-3 {
	background-image: url('../../img/step3.png');
	font-size: 36px;
}
.opis-profiler .opis-pf-title .learn_more img {
	vertical-align: middle;
}

.opis-profiler h2 {
	font-size: 28px;
	margin: 20px 0 10px;
	clear: both;
}

/* Rehab protocol link above injury results */
.opis-profiler .opis-pf-protocol-cta {
	clear: both;
	margin: 10px 0 25px;
	padding: 20px 25px;
	background: #ffffff;
	border-left: 6px solid #246593;
	border-radius: 6px;
}
.opis-profiler .opis-pf-protocol-cta h2 {
	margin: 0 0 6px;
	color: #0b3557 !important;
	font-size: 24px;
	line-height: 1.3;
}
.opis-profiler .opis-pf-protocol-cta p {
	margin: 0 0 12px;
	color: #0b3557 !important;
	font-size: 16px;
	line-height: 1.5;
}
.opis-profiler .opis-pf-protocol-cta a.button {
	margin: 0;
}

/* Upgrade card (rehab protocol pages for visitors without a membership) */
.opis-profiler .opis-pf-upgrade {
	clear: both;
	margin: 20px 0 30px;
	padding: 30px;
	background: #ffffff;
	border-radius: 6px;
	text-align: center;
}

/* The theme forces white text with strong selectors, so these colours use !important. */
.opis-profiler .opis-pf-upgrade h2 {
	margin: 0 0 10px;
	color: #0b3557 !important;
	font-size: 26px;
	line-height: 1.3;
}
.opis-profiler .opis-pf-upgrade p {
	color: #0b3557 !important;
	font-size: 16px;
	line-height: 1.5;
	text-align: center !important;
}

/* Membership options, side by side */
.opis-profiler .opis-pf-upgrade-levels {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin: 20px 0;
}
.opis-profiler a.opis-pf-upgrade-level {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 220px;
	padding: 20px;
	border: 2px solid #246593;
	border-radius: 6px;
	text-decoration: none;
}
.opis-profiler a.opis-pf-upgrade-level:hover {
	background: #eef5fa;
}
.opis-profiler .opis-pf-upgrade-name {
	color: #0b3557 !important;
	font-size: 18px;
	font-weight: 700;
}
.opis-profiler .opis-pf-upgrade-price {
	color: #0b3557 !important;
	font-size: 16px;
}
.opis-profiler .opis-pf-upgrade-cta {
	margin-top: 6px;
	padding: 8px 18px;
	border-radius: 4px;
	background: #246593;
	color: #ffffff !important;
	font-weight: 700;
}

/* "Already a member? Log in" */
.opis-profiler .opis-pf-upgrade-login a {
	color: #246593 !important;
	text-decoration: underline;
}

/* Start step: gender choice (iPad #ipad_get_started) */
.opis-profiler .disclaimer {
	font-size: 14px;
	text-align: center;
}
.opis-profiler #ipad_get_started,
.opis-profiler #opis_pf_get_started {
	text-align: center;
	font-size: 28px;
	padding: 15px 30px;
}
.opis-profiler #ipad_get_started .option,
.opis-profiler #opis_pf_get_started .option {
	display: inline-block;
	width: 95px;
	height: 155px;
	padding: 10px;
	margin: 0 8px;
	background: url('../../img/white_transparent_2.png');
	border-radius: 5px;
	opacity: 0.6;
	transition: opacity 0.25s ease;
}
.opis-profiler #ipad_get_started .option:hover,
.opis-profiler #ipad_get_started .option.selected,
.opis-profiler #opis_pf_get_started .option:hover,
.opis-profiler #opis_pf_get_started .option.selected {
	opacity: 1;
}

/* Home: Welcome block above the Home content */
.opis-profiler.opis-pf-welcome {
	padding: 30px 20px 10px;
}
.opis-profiler.opis-pf-welcome > p,
.opis-profiler.opis-pf-welcome p:not(.disclaimer) {
	font-size: 22px;
	line-height: 1.45;
}
.opis-profiler.opis-pf-welcome .disclaimer,
.opis-profiler.opis-pf-welcome .disclaimer * {
	font-size: 14px;
}

/* Step 1: Find Your Shoes tiles (iPad .find_your_shoe boxes), even 2 x 2 grid */
.opis-profiler .opis-pf-find-content {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: auto;
	grid-auto-rows: 1fr;
	gap: 30px 40px;
	max-width: 1100px;
}
.opis-profiler .opis-pf-find-content::before,
.opis-profiler .opis-pf-find-content::after {
	display: none;
}
.opis-profiler .opis-pf-find-content > p {
	grid-column: 1 / -1;
	margin: 0;
	padding: 0;
	font-size: 22px;
	line-height: 1.6;
}
.opis-profiler .opis-pf-find-content > p:empty,
.opis-profiler .opis-pf-find-content > br {
	display: none;
}
.opis-profiler .opis-pf-find-content > a {
	display: block;
	min-width: 0;
}
.opis-profiler .opis-pf-find-content .find_your_shoe {
	display: flex;
	align-items: center;
	gap: 30px;
	width: 100%;
	height: 100%;
	min-height: 200px;
	float: none;
	margin: 0;
	padding: 30px 30px 30px 40px;
	border-radius: 5px;
	transition: background-color 0.5s ease;
}
.opis-profiler .opis-pf-find-content .find_your_shoe img {
	float: none;
	flex: 0 0 auto;
	width: 100px;
	max-width: 100px;
	margin: 0;
}
.opis-profiler .opis-pf-find-content .find_your_shoe .wrap {
	flex: 1 1 auto;
	float: none;
	width: auto;
	min-width: 0;
	padding: 0;
}
.opis-profiler .opis-pf-find-content .find_your_shoe h2 {
	clear: none;
	margin: 0 0 4px;
	padding: 0;
	font-size: 34px;
	line-height: 1.15;
}
.opis-profiler .opis-pf-find-content .find_your_shoe p {
	margin: 0;
	padding: 0;
	font-size: 20px;
	line-height: 1.6;
}
.opis-profiler .opis-pf-find-content #personal_profiler { background-color: #75AD47; }
.opis-profiler .opis-pf-find-content #personal_profiler:hover { background-color: #80D03F; }
.opis-profiler .opis-pf-find-content #shoe_query { background-color: #8B48A6; }
.opis-profiler .opis-pf-find-content #shoe_query:hover { background-color: #B14DDA; }
.opis-profiler .opis-pf-find-content #injury_profiler { background-color: #C18526; }
.opis-profiler .opis-pf-find-content #injury_profiler:hover { background-color: #EAA332; }
.opis-profiler .opis-pf-find-content #shoe_rankings { background-color: #2FA7B6; }
.opis-profiler .opis-pf-find-content #shoe_rankings:hover { background-color: #4CCED8; }

/* Injury list + tools sidebar */
.opis-profiler .opis-pf-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: flex-start;
}
.opis-profiler .opis-pf-main {
	flex: 1 1 560px;
	min-width: 0;
}
.opis-profiler .opis-pf-sidebar {
	flex: 0 0 240px;
	padding-left: 20px;
	background: url('../../img/sidebar_bg.png') no-repeat top left;
}
.opis-profiler .opis-pf-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.opis-profiler .opis-pf-sidebar .find_your_shoe {
	display: block;
	width: 100%;
	height: auto;
	float: none;
	margin: 0 0 10px;
	padding: 25px 20px 25px 55px;
	font-size: 18px;
	border-radius: 5px;
	background-repeat: no-repeat;
	background-position: 8px center;
	transition: background-color 0.5s ease;
}
.opis-profiler .opis-pf-sidebar .find_your_shoe:hover {
	color: #fff;
}
.opis-profiler .opis-pf-sidebar #personal_profiler { background-color: #75AD47; background-image: url('../../img/small_find_shoe_personal.png'); }
.opis-profiler .opis-pf-sidebar #personal_profiler:hover { background-color: #80D03F; }
.opis-profiler .opis-pf-sidebar #shoe_query { background-color: #8B48A6; background-image: url('../../img/small_find_shoe_foot_pattern.png'); }
.opis-profiler .opis-pf-sidebar #shoe_query:hover { background-color: #B14DDA; }
.opis-profiler .opis-pf-sidebar #injury_profiler { background-color: #C18526; background-image: url('../../img/small_find_shoe_injury.png'); }
.opis-profiler .opis-pf-sidebar #injury_profiler:hover { background-color: #EAA332; }
.opis-profiler .opis-pf-sidebar #shoe_rankings { background-color: #2FA7B6; background-image: url('../../img/small_find_shoe_ranking.png'); }
.opis-profiler .opis-pf-sidebar #shoe_rankings:hover { background-color: #4CCED8; }
/* .opis-profiler .opis-pf-sidebar .find_your_shoe.active {
	box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.6);
} */

/* Condition cards from the iPad list content (.find_your_shoe.injury) */
.opis-profiler .opis-pf-main .find_your_shoe.injury {
	display: flex;
	gap: 25px;
	align-items: flex-start;
	width: 100%;
	height: auto;
	float: none;
	margin: 0 0 15px;
	padding: 25px 20px;
	background: url('../../img/white_transparent_2.png');
	border-radius: 5px;
	transition: background-color 0.5s ease;
}
.opis-profiler .opis-pf-main .find_your_shoe.injury:hover {
	background-color: rgba(255, 255, 255, 0.08);
}
.opis-profiler .find_your_shoe.injury > a {
	flex: 0 0 200px;
	display: flex;
}
.opis-profiler .find_your_shoe.injury > a img {
	float: none;
	margin: 0;
	max-width: 100%;
	height: auto;
}
.opis-profiler .find_your_shoe.injury .wrap {
	flex: 1 1 auto;
	width: auto;
	float: none;
	padding: 0;
	line-height: 1.3;
}
.opis-profiler .find_your_shoe.injury h2 {
	font-size: 24px;
	margin: 0;
}
.opis-profiler .find_your_shoe.injury h2 img {
	margin: 0 0 0 6px;
	vertical-align: middle;
}
.opis-profiler .find_your_shoe.injury ul {
	list-style: disc;
	margin: 10px 0 0 20px;
	padding: 0;
}
.opis-profiler .find_your_shoe.injury li {
	font-size: 16px;
	line-height: 1.3;
}

/* Condition page (iPad #injury_body) */
.opis-profiler .opis-pf-condition-body ul {
	list-style: disc;
	margin: 0 0 15px 20px;
}
.opis-profiler .opis-pf-condition-body ol {
	list-style: decimal;
	margin: 0 0 15px 20px;
}
.opis-profiler .opis-pf-condition-body li {
	line-height: 1.4;
	margin-bottom: 4px;
}
.opis-profiler .injury_exercises {
	width: 100%;
}
.opis-profiler .injury_exercises td {
	width: 50%;
	padding: 0 3% 20px;
	vertical-align: top;
}

/* Buttons: same colours as the main site's .button (style.css) */
.opis-profiler a.button,
.opis-profiler a.button:visited,
.opis-profiler .fancy_print,
.opis-profiler .opis-pf-print {
	display: inline-block;
	margin: 0 6px 10px 0;
	padding: 12px 20px;
	color: #fff;
	background-color: #246593;
	border-radius: 3px;
	transition: background-color 0.5s ease;
}
.opis-profiler a.button-dark,
.opis-profiler a.button-dark:visited {
	background-color: #143557;
}
.opis-profiler a.button:hover,
.opis-profiler .fancy_print:hover,
.opis-profiler .opis-pf-print:hover,
.opis-profiler a.button.is-active {
	color: #0B3557;
	background-color: var(--opis-pf-accent);
}
.opis-profiler .fancy_print {
	float: right;
	margin: 0 0 15px 15px;
}
.opis-profiler a.button-small {
	font-size: 14px;
	padding: 5px 10px;
	line-height: 1;
	vertical-align: middle;
}
.opis-profiler .opis-pf-toolbar {
	margin: 0 0 20px;
}
.opis-profiler .opis-pf-toolbar .opis-pf-print {
	float: right;
}
.opis-profiler .opis-pf-levels {
	list-style: disc;
	margin: 0 0 20px 20px;
}

/* Accessories ([accessory-group] shortcode) */
.opis-profiler .accessory-group {
	margin: 1em 0;
}
.opis-profiler .accessory-item {
	display: flex;
	background: var(--opis-pf-panel);
	margin-bottom: 0.5em;
}
.opis-profiler .accessory-item .item-image {
	width: 20%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.opis-profiler .accessory-item .item-desc {
	width: 80%;
	padding: 2%;
}
.opis-profiler .accessory-group img {
	max-height: 170px;
	display: block;
}

/* Shoe cards (Visual List) */
.opis-profiler .shoe_display {
	width: 100%;
	max-width: 885px;
	margin-top: 40px;
	background-color: #000;
	font-family: 'Roboto', 'Helvetica Light', 'Helvetica', 'Arial', sans-serif;
}
.opis-profiler .shoe_overview {
	display: flex;
	flex-wrap: wrap;
}
.opis-profiler .shoe_general_info {
	flex: 0 0 300px;
	width: 300px;
	padding: 20px;
	color: #1A3557;
	background-color: #fff;
	line-height: 1.1;
}
.opis-profiler .shoe_general_info h3 {
	color: #1A3557;
	font-size: 25px;
	font-weight: bold;
	padding: 0;
	margin: 0 0 4px;
}
.opis-profiler .shoe_general_info .sub_title {
	font-size: 16px;
	color: #515457;
}
.opis-profiler .opis-pf-shoe-image {
	text-align: center;
	margin-top: 5px;
}
.opis-profiler .shoe_general_info .amazon_icon {
	display: block;
	margin: 1.2em auto 0;
}
.opis-profiler .shoe_details {
	flex: 1 1 300px;
	width: auto;
	color: #1A3557;
	background-color: #E5ECF3;
	font-size: 16px;
	line-height: 1.2;
}
.opis-profiler .shoe_details table {
	width: 100%;
	border-collapse: collapse;
}
.opis-profiler .shoe_details tr {
	border-bottom: 1px solid #ccc;
}
.opis-profiler .shoe_details th,
.opis-profiler .shoe_details td {
	width: 50%;
	padding: 0.5em;
	font-size: 16px;
}
.opis-profiler .shoe_details th {
	color: #1A3557;
	font-weight: bold;
	text-align: right;
}
.opis-profiler .shoe_details td {
	color: #515457;
}
.opis-profiler .shoe_guide img {
	display: block;
	max-width: 100%;
	height: auto;
}
.opis-profiler .shoe_recommendations {
	overflow: hidden;
	width: 100%;
	padding: 1em 0;
	text-align: center;
	background-color: #316592;
}
.opis-profiler .shoe_recommendations h4 {
	font-size: 20px;
	font-weight: bold;
	text-align: left;
	margin: 0 0 0.5em;
	padding: 0;
}
.opis-profiler .shoe_recommendations h4 img {
	vertical-align: middle;
}
.opis-profiler .cat-group {
	padding: 0 2em;
}
.opis-profiler #cat-group-injuries {
	width: 65%;
	float: left;
}
.opis-profiler #cat-group-patterns {
	width: 35%;
	float: right;
	padding-left: 4%;
	border-left: 1px solid #fff;
}
.opis-profiler .check-cat {
	position: relative;
	display: block;
	float: left;
	width: calc(50% - 1em);
	margin: 5px 1em 5px 0;
	padding-left: 1.4em;
	font-size: 15px;
	line-height: 1.3;
	text-align: left;
	color: #fff;
}
.opis-profiler #cat-group-patterns .check-cat {
	width: 100%;
	margin-right: 0;
}
.opis-profiler .check-cat .icon {
	position: absolute;
	left: 0;
}
.opis-profiler .check-cat .icon-check-circle {
	color: #B2FB3F;
}

/* Table List */
.opis-profiler .shoe_table_images {
	margin: 0 0 0;
	padding: 20px 10px;
	background: #fff;
	border-radius: 3px 3px 0 0;
	text-align: center;
}
.opis-profiler .shoe_table_images img {
	display: inline-block;
	vertical-align: middle;
}
.opis-profiler .opis-pf-table-wrap {
	width: 100%;
	overflow-x: auto;
}
.opis-profiler .opis-pf-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	color: #1A3557;
	font-size: 14px;
}
.opis-profiler .opis-pf-table th,
.opis-profiler .opis-pf-table td {
	padding: 8px;
	border-bottom: 1px solid #ccc;
	color: #1A3557;
	text-align: left;
	vertical-align: top;
}
.opis-profiler .opis-pf-table thead th {
	background: #E5ECF3;
	font-weight: bold;
	cursor: pointer;
	white-space: nowrap;
}
.opis-profiler .opis-pf-table th img {
	margin-left: 4px;
	vertical-align: middle;
}
.opis-profiler .opis-pf-view[hidden] {
	display: none;
}

/* Bottom bar (iPad #ipad_navigation_bar), kept visible at the bottom of the screen */
.opis-profiler .opis-pf-bottom-bar {
	position: sticky;
	bottom: 0;
	z-index: 20;
	margin: 40px -20px 0;
	padding: 10px 20px;
	background: var(--opis-pf-navy-dark);
}
.opis-profiler .opis-pf-bottom-bar ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 25px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.opis-profiler .opis-pf-bottom-bar li {
	text-align: center;
	text-transform: lowercase;
	font-size: 12px;
	line-height: 1.5;
}
.opis-profiler .opis-pf-bottom-bar li a {
	display: block;
	color: #fff;
}
.opis-profiler .opis-pf-bottom-bar li a::before {
	display: block;
	font-size: 2.5em;
}
.opis-profiler .opis-pf-bottom-bar li.choose_gender {
	margin-left: auto;
}
.opis-profiler .opis-pf-bottom-bar li.choose_gender a {
	display: inline-block;
	margin-right: 5px;
	opacity: 0.4;
}
.opis-profiler .opis-pf-bottom-bar li.choose_gender a.selected {
	opacity: 1;
}

/* Loading notice */
.opis-pf-loading-notice {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 99;
	transform: translate(-50%, -50%);
	padding: 10px 15px;
	text-align: center;
	color: #fff;
	background: rgba(0, 0, 0, 0.9);
}

/* Pop-up content (foot pattern guide) */
.opis-pf-popup {
	max-width: 800px;
	color: #1A3557;
}

/* Smaller screens */
@media (max-width: 800px) {
	.opis-profiler .opis-pf-title {
		font-size: 32px;
	}
	.opis-profiler .opis-pf-step {
		padding-right: 0;
		background-image: none;
	}
	.opis-profiler .opis-pf-sidebar {
		flex: 1 1 100%;
		padding-left: 0;
		background: none;
	}
	.opis-profiler .find_your_shoe.injury {
		flex-direction: column;
	}
	.opis-profiler .find_your_shoe.injury > a {
		flex: 0 0 auto;
		justify-content: flex-start;
	}
	.opis-profiler .opis-pf-find-content {
		grid-template-columns: minmax(0, 1fr);
	}
	.opis-profiler .opis-pf-find-content .find_your_shoe h2 {
		font-size: 28px;
	}
	.opis-profiler .shoe_general_info {
		flex: 1 1 100%;
		width: 100%;
	}
	.opis-profiler #cat-group-injuries,
	.opis-profiler #cat-group-patterns {
		width: 100%;
		float: none;
		border-left: 0;
		padding-left: 2em;
	}
	.opis-profiler .check-cat {
		width: 100%;
	}
	.opis-profiler .injury_exercises td {
		display: block;
		width: 100%;
	}
}

/* Print */
@media print {
	.opis-profiler .opis-pf-bottom-bar,
	.opis-profiler .opis-pf-toolbar,
	.opis-profiler .opis-pf-sidebar,
	.opis-pf-loading-notice {
		display: none !important;
	}
}
