.srz {
	--srz-white: #FFFFFF;
	--srz-red: #D20A11;
	--srz-red-dark: #A90006;
	--srz-grey: #9C9C9C;
	--srz-line: #E1E1E1;
	--srz-ink: #101010;
	--srz-gap: 24px;
	--srz-font-body: Montserrat, "Helvetica Neue", Arial, sans-serif;
	--srz-font-display: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
	--srz-icon-down: url("https://amit.webfusion.dev/wp-content/uploads/icon-down.svg");
	--srz-icon-up: url("https://amit.webfusion.dev/wp-content/uploads/icon-up.svg");
	--srz-icon-checkmark: url("https://amit.webfusion.dev/wp-content/uploads/icon-checkmark.svg");

	color: var(--srz-ink);
	max-width: 100%;
}

.srz *,
.srz *::before,
.srz *::after {
	box-sizing: border-box;
}

.srz-heading {
	margin: 0 0 var(--srz-gap);
	font-family: var(--srz-font-display);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--srz-ink);
}

/* Formulář */

.srz-form {
	display: flex;
	flex-direction: column;
	gap: var(--srz-gap);
	margin: 0;
	background: var(--srz-white);
}

.srz-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--srz-gap);
}

.srz-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.srz-label {
	font-family: var(--srz-font-body);
	font-size: 16px;
	line-height: 1.3;
	color: var(--srz-grey);
}

.srz-label--strong {
	font-size: 17px;
	font-weight: 700;
	color: var(--srz-ink);
}

.srz-input {
	width: 100%;
	padding: 14px 16px;
	font-family: var(--srz-font-body);
	font-size: 16px;
	line-height: 1.4;
	color: var(--srz-ink);
	background: var(--srz-white);
	border: 1px solid var(--srz-line);
	border-radius: 6px;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.srz-input::placeholder {
	color: var(--srz-grey);
}

.srz-input:hover {
	border-color: var(--srz-grey);
}

.srz-input:focus {
	outline: none;
	border-color: var(--srz-red);
	box-shadow: 0 0 0 1px var(--srz-red);
}

.srz-textarea {
	min-height: 96px;
	resize: none;
}

.has-error .srz-input {
	border-color: var(--srz-red);
}

.srz-error {
	display: none;
	font-family: var(--srz-font-body);
	font-size: 14px;
	line-height: 1.4;
	color: var(--srz-red);
}

.has-error .srz-error {
	display: block;
}

.srz-hint {
	margin: 0;
	font-family: var(--srz-font-body);
	font-size: 14px;
	color: var(--srz-grey);
}

/* Telefonní číslo s předvolbou */

.srz-field--tel .iti {
	display: block;
	width: 100%;
}

.srz .srz-input--tel.iti-initialized {
	padding-left: 97px !important;
	padding-right: 16px !important;
}

.srz-field--tel .iti__flag-container {
	z-index: 3;
}

.srz-field--tel .iti__selected-flag {
	background-color: transparent !important;
	border-radius: 7px 0 0 7px;
	padding: 16px 11px;
	border-right: 1px solid rgba(225, 225, 225, 1);
}

.srz-field--tel .iti__selected-dial-code {
	display: none;
}

.srz-field--tel .iti__arrow {
	position: relative;
	margin-left: 20px;
	margin-right: 10px;
}

.srz-field--tel .iti__arrow::before {
	position: absolute;
	content: "";
	right: 50%;
	top: 50%;
	transform: translate(50%, -50%);
	width: 24px;
	height: 24px;
	background: var(--srz-icon-down);
	background-color: #fff;
}

.srz-field--tel .iti__arrow.iti__arrow--up::before {
	background: var(--srz-icon-up);
	background-color: #fff;
}

.srz-field--tel .iti__country-list {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	margin-bottom: 6px;
	margin-top: 6px;
	border: none;
}

.srz-field--tel .iti__country {
	padding: 10px 16px;
}

.srz-field--tel .iti__country.iti__active {
	position: relative;
	padding-right: 48px;
}

.srz-field--tel .iti__country.iti__active::after {
	position: absolute;
	content: "";
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	background: var(--srz-icon-checkmark);
	background-repeat: no-repeat;
}

.srz-field--tel .iti__country-name {
	display: none;
}

.srz-field--tel .iti__dial-code {
	margin-left: 2px;
	color: var(--srz-ink) !important;
}

.srz-field--tel .iti__country:hover {
	background-color: rgba(247, 247, 247, 1);
}

.srz-field--tel .iti__country:hover span {
	color: var(--srz-red) !important;
}

/* Uzavřené registrace */

.srz-closed {
	margin: 0;
	font-family: var(--srz-font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--srz-ink);
}

/* Počet lístků */

.srz-tickets {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.srz-stepper {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--srz-line);
	border-radius: 6px;
	overflow: hidden;
	background: var(--srz-white);
}

.srz-stepper__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	padding: 0;
	background: var(--srz-white);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.srz-stepper__btn img {
	display: block;
	width: 16px;
	height: 16px;
}

.srz-stepper__btn:hover:not(:disabled) {
	background: var(--srz-line);
}

.srz-stepper__btn:focus-visible {
	outline: 2px solid var(--srz-red);
	outline-offset: -2px;
}

.srz-stepper__btn:disabled {
	cursor: not-allowed;
	opacity: 0.4;
}

.srz-stepper__input {
	width: 52px;
	padding: 12px 4px;
	font-family: var(--srz-font-body);
	font-size: 16px;
	text-align: center;
	color: var(--srz-ink);
	background: var(--srz-white);
	border: 0;
	border-left: 1px solid var(--srz-line);
	border-right: 1px solid var(--srz-line);
	border-radius: 0;
	appearance: textfield;
	-moz-appearance: textfield;
}

.srz-stepper__input::-webkit-outer-spin-button,
.srz-stepper__input::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
}

.srz-stepper__input:focus {
	outline: none;
	box-shadow: inset 0 0 0 1px var(--srz-red);
}

/* Odeslání */

.srz-actions {
	display: flex;
	justify-content: center;
}

.srz-submit {
	min-width: 264px;
	padding: 14px 32px;
	font-family: var(--srz-font-display);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--srz-white);
	background: var(--srz-red);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.srz-submit:hover:not(:disabled),
.srz-submit:focus-visible:not(:disabled) {
	background: var(--srz-red-dark);
}

.srz-submit:focus-visible {
	outline: 2px solid var(--srz-ink);
	outline-offset: 2px;
}

.srz-submit:disabled {
	background: var(--srz-grey);
	cursor: not-allowed;
}

/* Záložní výpis hlášek bez JavaScriptu */

.srz-message {
	margin: 0 0 var(--srz-gap);
	padding: 14px 16px;
	font-family: var(--srz-font-body);
	font-size: 15px;
	line-height: 1.5;
	border-radius: 0;
}

.srz-message--success {
	color: var(--srz-ink);
	background: var(--srz-line);
	border-left: 4px solid var(--srz-red);
}

.srz-message--error {
	color: var(--srz-white);
	background: var(--srz-red);
}

.srz-honeypot {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Výpis rezervací */

.srz-account {
	font-family: var(--srz-font-body);
}

.srz-account__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.srz-account__item {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	column-gap: 32px;
	padding: 16px 0;
}

.srz-account__item:first-child {
	padding-top: 0;
}

.srz-account__item:last-child {
	padding-bottom: 0;
}

.srz-account__item + .srz-account__item {
	border-top: 1px solid var(--srz-line);
}

.srz-account__date {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	font-family: var(--srz-font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: var(--srz-white);
	background: var(--srz-ink);
	border-radius: 0;
}

.srz-account__body {
	min-width: 0;
}

.srz-account__title {
	display: block;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--srz-red);
	text-decoration: none;
}

/* Odkaz z názvu se roztahuje přes celou kartu, aby byla klikatelná celá plocha. */
a.srz-account__title::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.srz-account__item:hover .srz-account__title,
.srz-account__title:focus-visible {
	color: var(--srz-red-dark);
	text-decoration: underline;
}

.srz-account__item:focus-within {
	outline: 2px solid var(--srz-red);
	outline-offset: 4px;
}

.srz-account__title:focus-visible {
	outline: none;
}

.srz-account__meta {
	margin: 6px 0 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--srz-ink);
}

.srz-account__place + .srz-account__time::before {
	content: "\2022";
	margin: 0 6px;
	color: var(--srz-ink);
}

/* Na širokých displejích tvoří dvojice s počtem míst a stavem jeden řádek. */
.srz-account__footer {
	display: contents;
}

.srz-account__seats {
	font-size: 16px;
	font-weight: 500;
	color: var(--srz-ink);
	white-space: nowrap;
}

.srz-account__status {
	font-size: 16px;
	font-weight: 600;
	color: var(--srz-grey);
	text-align: right;
	white-space: nowrap;
}

.srz-account__status.is-approved {
	color: #1E8A46;
}

.srz-account__status.is-pending {
	color: #E08A11;
}

.srz-account__status.is-rejected {
	color: var(--srz-red);
}

.srz-account__empty {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	color: var(--srz-ink);
}

.srz-account__login {
	color: var(--srz-red);
}

.srz-account__pagination {
	display: flex;
	gap: 8px;
	margin-top: 24px;
}

.srz-account__pagination .page-numbers {
	padding: 8px 14px;
	font-size: 16px;
	font-weight: 500;
	color: var(--srz-ink);
	text-decoration: none;
	border: 1px solid var(--srz-line);
	border-radius: 0;
}

.srz-account__pagination .page-numbers.current,
.srz-account__pagination .page-numbers:hover {
	color: var(--srz-white);
	background: var(--srz-red);
	border-color: var(--srz-red);
}

/* Tablety a mobily: obsah se skládá pod sebe podle návrhu. */
@media (max-width: 1024px) {
	.srz-account__item {
		grid-template-columns: auto minmax(0, 1fr);
		column-gap: 20px;
		padding: 20px 0;
	}

	.srz-account__item:first-child {
		padding-top: 0;
	}

	.srz-account__body {
		align-self: start;
	}

	.srz-account__meta {
		margin-top: 8px;
	}

	.srz-account__place,
	.srz-account__time {
		display: block;
	}

	.srz-account__time {
		margin-top: 6px;
	}

	.srz-account__place + .srz-account__time::before {
		content: none;
	}

	.srz-account__footer {
		display: flex;
		grid-column: 1 / -1;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		margin-top: 16px;
		padding-top: 16px;
		border-top: 1px solid var(--srz-line);
	}
}

@media (max-width: 767px) {
	.srz {
		--srz-gap: 20px;
	}

	.srz-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.srz-submit {
		min-width: 0;
		width: auto;
		padding: 14px 36px;
	}

	.srz-account__date {
		width: 64px;
		height: 64px;
	}
}

@media (max-width: 400px) {
	.srz-submit {
		width: 100%;
		padding: 14px 20px;
	}

	.srz-account__item {
		column-gap: 14px;
	}

	.srz-account__date {
		width: 56px;
		height: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.srz *,
	.srz *::before,
	.srz *::after {
		transition-duration: 0.01ms !important;
	}
}
