/*
 * Power Shift - vzhled prodejního formuláře SimpleShop
 *
 * Formulář je iframe ze SimpleShopu, styly webu se do něj nedostanou. Tento soubor se vkládá
 * v SimpleShopu: produkt -> Ostatní -> "JS, CSS a jiné kódy", buď zkopírovaný celý mezi
 * <style> ... </style>, nebo jako odkaz:
 *   <link rel="stylesheet" href="https://www.powershift.cz/wp-content/themes/wp/static/css/ext/simpleshop.css">
 *
 * SimpleShop si barvy nastavuje přes inline styly s !important, proto jsou i zde pravidla
 * s vyšší specificitou (html body ...) a !important.
 *
 * Barvy: tmavá #00343a, zelená #6cbe9b, tmavší zelená #438c76, žlutá #ecea8f, pozadí #f3fafb.
 */

/* Font (soubory musí být veřejně dostupné na webu) */

@font-face {
	font-family: 'GT Walsheim Pro';
	src: url('https://www.powershift.cz/wp-content/themes/wp/static/fonts/GTWalsheimPro-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'GT Walsheim Pro';
	src: url('https://www.powershift.cz/wp-content/themes/wp/static/fonts/GTWalsheimPro-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'GT Walsheim Pro';
	src: url('https://www.powershift.cz/wp-content/themes/wp/static/fonts/GTWalsheimPro-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Základ */

/* SimpleShop používá zelenou přes proměnné (radia, zaškrtnutí, tlačítka), přepíšeme na barvy webu */

html,
html body,
html body * {
	--c-green-500: #00343a !important;
	--c-green-600: #438c76 !important;
}

html body,
html body *:not(.fa):not(i) {
	font-family: 'GT Walsheim Pro', Arial, sans-serif !important;
}

html,
html body {
	background: transparent !important;
}

html body {
	color: #00343a;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

html body .custom-textColor,
html body .custom-textColor a,
html body .currency-switch label {
	color: #00343a !important;
}

html body h2,
html body h2.custom-h2Color {
	color: #00343a !important;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 20px;
	text-align: left;
}

/* Nadpis stránky ve formuláři (web má vlastní) */

html body .header-main {
	display: none !important;
}

/* Měna (zobrazí se jen při více měnách) */

html body .currency-switch label:has(input:checked) {
	background-color: #00343a !important;
	color: #fff !important;
}

/* Bloky formuláře jako karty */

html body .variantPersonItem .item,
html body .paymentMethods,
html body .billingFormWrapper {
	background: #fff !important;
	border: 1px solid #e0e8ea;
	border-radius: 28px;
	padding: 40px;
	margin: 0 0 24px;
	box-sizing: border-box;
}

/* Bloky přes celou šířku (SimpleShop je ve výchozím stavu centruje na 830 px) */

html body .ss-page-form .variantWrapper.rows,
html body .ss-page-form .paymentMethods,
html body .ss-page-form .variantPersonItem,
html body .ss-page-form .totalPriceWrapper,
html body .ss-page-form .billingFormWrapper,
html body .ss-page-form .submitWrapper {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

html body .ss-page-form .totalPriceWrapper {
	margin-top: 24px;
	margin-bottom: 24px;
}

html body .ss-page-form .totalPriceWrapper > .table,
html body .ss-page-form .totalPriceWrapper > .table > .tr,
html body .ss-page-form .totalPriceWrapper > .table > .tr > .td.priceBlock {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0;
	padding: 0;
}

html body .ss-page-form .totalPriceWrapper .totalPriceBlock .table.decPriceTotal {
	max-width: 380px;
}

/* Údaje účastníka jsou v modrém boxu */

html body .variantPersonItem .item .table-wrapper:first-of-type {
	background: #f3fafb;
	border: 1px solid #e0e8ea;
	border-radius: 22px;
	padding: 24px;
	margin: 0 0 24px;
}

/* Pole vedle sebe (2 sloupce), popisek nad polem */

html body .table-wrapper .table.table_form.form {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	column-gap: 16px;
	width: 100%;
}

html body .table-wrapper .table.table_form.form .tr {
	display: block !important;
	margin: 0 0 16px;
}

html body .table-wrapper .table.table_form.form .tr .td {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	padding: 0;
}

html body .table-wrapper .table.table_form.form .tr .td.td_text {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
	text-align: left;
}

/* Účastník: Jméno | Příjmení, E-mail | Pozice, Název firmy přes celou šířku */

html body .ssItemID-HKnc8F4F { order: 1; }
html body .ssItemID-9iELUP3M { order: 2; }
html body .ssItemID-9T5DtPHJ { order: 3; }
html body .ssItemID-RjNIWOsQ { order: 4; }
html body .ssItemID-1gl2s5L1 { order: 5; grid-column: 1 / -1; }

/* Fakturace: Jméno | Příjmení, E-mail | Telefon, Firma, IČ | DIČ, Ulice | PSČ, Město | Stát */

html body .ssItemID-4fYvnJuY { order: 1; }
html body .ssItemID-8upjzEKr { order: 2; }
html body .ssItemID-VEOGjF4M { order: 3; }
html body .ssItemID-qWq7e57p { order: 4; }
html body .ssItemID-nVMNCHNh { order: 5; grid-column: 1 / -1; }
html body .tr.ic { order: 6; }
html body .tr.dic { order: 7; }
html body .tr.street { order: 8; }
html body .tr.zip { order: 9; }
html body .tr.city { order: 10; }
html body .tr.country { order: 11; }
html body .tr.idnum3 { order: 12; grid-column: 1 / -1; }
html body .ssItemID-WkG131hY { order: 13; grid-column: 1 / -1; }

/* Pole */

html body div.table .tr .td input[type=text],
html body div.table .tr .td input[type=email],
html body div.table .tr .td input[type=tel],
html body div.table .tr .td select,
html body div.table .tr .td textarea {
	box-sizing: border-box;
	width: 100%;
	height: 54px;
	padding: 0 24px;
	color: #00343a;
	font-size: 16px;
	line-height: 1.3;
	background-color: #fff;
	border: 1px solid #cddbde !important;
	border-radius: 100px;
	box-shadow: none;
	transition: all .3s;
}

html body div.table .tr .td textarea {
	height: 130px;
	padding: 16px 24px;
	border-radius: 24px;
	resize: vertical;
}

html body div.table .tr .td select {
	padding-right: 48px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300343a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 18px;
	-webkit-appearance: none;
	appearance: none;
}

html body div.table .tr .td input:hover,
html body div.table .tr .td select:hover,
html body div.table .tr .td textarea:hover {
	border-color: #6cbe9b !important;
}

html body div.table .tr .td input:focus,
html body div.table .tr .td select:focus,
html body div.table .tr .td textarea:focus {
	outline: 0;
	border-color: #438c76 !important;
	box-shadow: 0 0 0 4px rgba(108, 190, 155, .25);
}

html body div.table .tr .td input::placeholder {
	color: #8aa2a5;
}

/* Typy vstupenek jako karty */

html body .table.table_form.decPrice {
	display: grid;
	gap: 12px;
	width: 100%;
}

html body .table.table_form.decPrice .tr.variant {
	display: block;
	margin: 0;
}

html body .table.table_form.decPrice .tr.variant .td {
	display: block;
	padding: 0;
}

html body .table.decPrice .tr.variant .cover {
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #cddbde !important;
	border-radius: 20px;
	padding: 0;
	transition: all .3s;
}

html body .table.decPrice .tr.variant .cover:hover {
	border-color: #6cbe9b !important;
}

html body .table.decPrice .tr.variant.sel .cover {
	border-color: #00343a !important;
	box-shadow: 0 0 0 1px #00343a;
	background: #f6fbfb;
}

html body .table.decPrice .tr.variant .cover .line1 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

html body .ss-page-form .table-wrapper .table.decPrice .tr .td .cover .line1 .itemLabel {
	flex: 1 1 auto;
	margin: 0;
	padding: 18px 300px 18px 58px;
	background: transparent;
	border-radius: 20px;
	cursor: pointer;
}

html body .ss-page-form .table-wrapper .table.decPrice .tr .td .cover .line1 .itemLabel .inputAllow {
	top: 22px;
	left: 22px;
}

html body .table.decPrice .tr.variant .itemLabel .label {
	color: #00343a;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

html body .table.decPrice .tr.variant .itemLabel .desc {
	color: #638589;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	margin: 4px 0 0;
}

html body .table.decPrice .tr.variant .right {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-right: 20px;
	white-space: nowrap;
}

html body .table.decPrice .tr.variant .price {
	color: #00343a;
	font-size: 16px;
	font-weight: 700;
}

/* Počet kusů */

html body .plusMinusCover input[type=text] {
	width: 64px;
	height: 40px;
	padding: 0 8px;
	text-align: center;
	border-radius: 100px;
}

/* Tlačítka (SimpleShop jim barvy dává inline s !important) */

html body .btn,
html body .custom-btn.btn,
html body a.btn.custom-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	padding: 0 28px !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	background-color: #00343a !important;
	border: 2px solid #00343a !important;
	border-radius: 100px !important;
	box-shadow: none;
	transition: all .3s;
}

html body .btn:hover,
html body .custom-btn.btn:hover,
html body a.btn.custom-btn:hover {
	background-color: #438c76 !important;
	border-color: #438c76 !important;
	color: #fff !important;
}

html body .btnBuy .btn:after {
	content: '\2192';
	margin: 0 0 0 14px;
	font-size: 18px;
	line-height: 1;
}

/* Přidat dalšího účastníka: obrysové tlačítko */

html body .addPerson {
	margin: 0 0 24px;
	text-align: left;
}

html body .addPerson .btn,
html body .addPerson .custom-btn.btn {
	background-color: transparent !important;
	border-color: #00343a !important;
	color: #00343a !important;
}

html body .addPerson .btn:hover,
html body .addPerson .custom-btn.btn:hover {
	background-color: #00343a !important;
	border-color: #00343a !important;
	color: #fff !important;
}

/* Slevový kupón se nepoužívá */

html body .couponWrapper,
html body .trDiscount {
	display: none !important;
}

/* Souhrn ceny */

html body .priceBlock {
	margin: 24px 0 0;
}

html body .totalPriceBlock .table.decPriceTotal {
	display: block;
	width: 100%;
	max-width: 380px;
	box-sizing: border-box;
	margin: 0 0 0 auto;
	padding: 20px 24px;
	background: #00343a;
	border-radius: 22px;
	color: #fff;
}

html body .totalPriceBlock .table.decPriceTotal .tr {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 4px 0;
}

html body .totalPriceBlock .table.decPriceTotal .tr .td {
	display: block;
	width: auto;
	color: #fff;
	font-size: 14px;
	padding: 0;
	text-align: left;
}

html body .totalPriceBlock .table.decPriceTotal .tr .td:last-child {
	text-align: right;
}

html body .totalPriceBlock .table.decPriceTotal .tr:not(.bold) .td:first-child {
	color: #9eb2b4;
}

html body .totalPriceBlock .table.decPriceTotal .tr.bold {
	margin-top: 10px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, .18);
}

html body .totalPriceBlock .table.decPriceTotal .tr.bold .td {
	font-size: 24px;
	font-weight: 700;
}

/* Platební metoda */

html body .paymentMethods .table.decPrice .tr .td {
	display: block;
	padding: 18px 20px;
	color: #00343a;
	font-weight: 700;
	background: #fff;
	border: 1px solid #cddbde;
	border-radius: 20px;
}

html body .paymentMethods .table.decPrice .tr.sel .td {
	border-color: #00343a;
	box-shadow: 0 0 0 1px #00343a;
	background: #f6fbfb;
}

html body .paymentMethods .fa-check {
	color: #00343a !important;
	margin-right: 8px;
}

/* Tlačítko odeslat, poznámka */

html body .submitWrapper {
	margin: 0;
}

html body .submitWrapper .btnBuy {
	display: flex;
	justify-content: flex-end;
	text-align: right;
}

html body .requiredSentence,
html body .requiredSentence * {
	color: #638589 !important;
	font-size: 14px;
}

html body .requiredSentence {
	margin: 16px 0 0;
	text-align: right;
}

/* Hlášky */

html body .msg {
	padding: 12px 16px;
	border-radius: 14px;
}

/* Mobil */

@media screen and (max-width: 767px) {
	html body .ss-page-form .table-wrapper .table.decPrice .tr .td .cover .line1 .itemLabel {
		padding-right: 20px;
	}

	html body .variantPersonItem .item,
	html body .paymentMethods,
	html body .billingFormWrapper {
		padding: 24px 16px;
		border-radius: 22px;
	}

	html body .table-wrapper .table.table_form.form {
		grid-template-columns: 1fr;
	}

	html body .table-wrapper .table.table_form.form .tr {
		grid-column: auto !important;
	}

	html body .table.decPrice .tr.variant .cover .line1 {
		flex-direction: column;
		align-items: flex-start;
	}

	html body .totalPriceBlock .table.decPriceTotal {
		max-width: none;
	}

	html body .submitWrapper .btnBuy,
	html body .requiredSentence {
		text-align: left;
	}

	html body .submitWrapper .btn {
		width: 100%;
	}
}

/* Doladění (specificita přes .ss-page-form, SimpleShop má vlastní pravidla s třídami) */

/* Karta účastníka: větší odsazení, bez nadpisu produktu */

html body .ss-page-form .variantPersonItem .item {
	margin: 0 0 24px !important;
	padding: 40px !important;
	background: #fff !important;
	border: 1px solid #e0e8ea;
	border-radius: 28px;
}

html body .ss-page-form .variantWrapper > h2 {
	display: none !important;
}

/* Modrý box i pro fakturační údaje */

html body .ss-page-form .variantPersonItem .item .table-wrapper:first-of-type,
html body .ss-page-form .billingFormWrapper .table-wrapper {
	margin: 0 0 28px;
	padding: 32px 32px 16px;
	background: #f3fafb;
	border: 1px solid #e0e8ea;
	border-radius: 22px;
}

html body .ss-page-form .billingFormWrapper .table-wrapper {
	margin-bottom: 0;
}

/* Typy vstupenek: nižší karty, bez rozbitých pozadí */

html body .ss-page-form .table-wrapper .table.decPrice .tr .td .cover {
	overflow: hidden;
	background: #fff;
	border-radius: 20px;
}

html body .ss-page-form .table-wrapper .table.decPrice .tr.sel .td .cover {
	background: #f6fbfb;
}

html body .ss-page-form .table-wrapper .table.decPrice .tr .td .cover .line1 .itemLabel,
html body .ss-page-form .table-wrapper .table.decPrice .tr.sel .td .cover .line1 .itemLabel,
html body .ss-page-form .table-wrapper .table.decPrice .tr .td .cover:hover .line1 .itemLabel {
	padding: 18px 300px 18px 58px;
	background: transparent !important;
}

html body .ss-page-form .table-wrapper .table.decPrice .tr .td .cover .line1 .itemLabel .desc {
	padding-top: 4px;
	font-size: 13px;
	line-height: 1.45;
}

html body .ss-page-form .table-wrapper .table.decPrice .tr .td .cover .line1 .itemLabel .inputAllow {
	top: 20px;
}

html body .ss-page-form .table-wrapper .table.decPrice .tr .td .cover .amount {
	top: 14px;
}

/* Počet kusů */

html body .ss-page-form .plusMinusCover {
	box-sizing: border-box;
	width: 132px;
	height: 42px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #cddbde !important;
	border-radius: 100px;
}

html body .ss-page-form div.table .tr .td .plusMinusCover input[type=text] {
	box-sizing: border-box;
	width: 66px;
	height: 40px;
	margin: 0;
	padding: 0;
	color: #00343a;
	font-size: 16px;
	font-weight: 700;
	line-height: 40px;
	text-align: center;
	background: transparent;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none;
}

html body .ss-page-form .plusMinusCover .plusMinus .minus,
html body .ss-page-form .plusMinusCover .plusMinus .plus {
	top: 0;
	width: 33px;
	height: 40px;
	background: transparent;
	border: 0;
	border-radius: 0;
}

html body .ss-page-form .plusMinusCover .plusMinus .minus {
	left: 0;
}

html body .ss-page-form .plusMinusCover .plusMinus .plus {
	right: 0;
}

html body .ss-page-form .plusMinusCover .plusMinus .minus:before,
html body .ss-page-form .plusMinusCover .plusMinus .plus:before {
	width: 33px;
	height: 40px;
	color: #00343a;
	font-size: 14px;
	line-height: 40px;
}

html body .ss-page-form .plusMinusCover .plusMinus .minus:hover,
html body .ss-page-form .plusMinusCover .plusMinus .plus:hover {
	background: #f3fafb;
	border: 0;
}

/* Doplňkové pole fakturace pro některé země (IČ DPH apod.), v ČR bez popisku se nezobrazí */

html body .ss-page-form .tr.idnum3:has(span[data-form-country=""]:empty) {
	display: none !important;
}

@media screen and (max-width: 767px) {
	html body .ss-page-form .variantPersonItem .item {
		padding: 24px 16px !important;
	}

	html body .ss-page-form .variantPersonItem .item .table-wrapper:first-of-type,
	html body .ss-page-form .billingFormWrapper .table-wrapper {
		padding: 24px 16px 8px;
	}
}

/* Karty vstupenek: mezera mezi nimi, počet kusů a cena na jedné ose */

html body .ss-page-form .table.decPrice .tr.variant + .tr.variant {
	margin-top: 12px;
}

html body .ss-page-form .variantWrapper.rows .table-wrapper .table.decPrice .tr .td .cover .amount {
	top: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 42px;
}

html body .ss-page-form .variantWrapper.rows .table-wrapper .table.decPrice .tr .td .cover .price {
	top: 14px;
	line-height: 42px;
}

/* Karty vstupenek: zarovnání s modrým boxem a zaoblení všech rohů
   (SimpleShop má pro první a poslední kartu vlastní hranaté rohy a tabulce dává boční padding) */

html body .ss-page-form .table-wrapper .table.table_form.decPrice {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

html body .ss-page-form .table-wrapper .table.decPrice .tr .td .cover,
html body .ss-page-form .table-wrapper .table.decPrice .tr:first-child .td .cover,
html body .ss-page-form .table-wrapper .table.decPrice .tr:last-child .td .cover {
	border-radius: 20px !important;
}

html body .ss-page-form .table-wrapper .table.decPrice .tr .td .cover .line1 .itemLabel,
html body .ss-page-form .table-wrapper .table.decPrice .tr:first-child .td .cover .line1 .itemLabel,
html body .ss-page-form .table-wrapper .table.decPrice .tr:last-child .td .cover .line1 .itemLabel {
	border-radius: 20px !important;
}

/* Odstup mezi kartou platby a fakturačními údaji */

html body .ss-page-form .paymentMethods {
	margin-bottom: 20px;
}
