/* Flawio information pages (page.php): Kontakt, Doprava, Platby, Reklamace, Velkoobchod, terms. */

.fl-page {
	padding-bottom: 72px;
}
.fl-page__head {
	max-width: 760px;
	padding: 8px 0 20px;
}
.fl-page__title {
	margin: 0;
	font-size: clamp(32px, 4vw, 46px);
	line-height: 1.1;
	overflow-wrap: anywhere;
}

/* Readable text column; wide blocks (cards, two-column parts) use the full container. */
.fl-page__content > * {
	max-width: 760px;
	margin-left: 0;
	margin-right: 0;
}
.fl-page__content > .alignwide,
.fl-page__content > .fl-contact-cards,
.fl-page__content > .fl-info-cards {
	max-width: none;
}
.fl-page__content h2 {
	margin: 48px 0 14px;
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.2;
}
.fl-page__content h3 {
	margin: 32px 0 10px;
	font-size: 23px;
	line-height: 1.25;
}
.fl-page__content p,
.fl-page__content li {
	line-height: 1.7;
}
.fl-page__content a:not(.wp-block-button__link) {
	color: var(--flawio-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.fl-page__content a:not(.wp-block-button__link):hover {
	color: var(--flawio-primary-hover);
}
.fl-page__lead {
	font-size: 21px;
	color: var(--flawio-text);
}

.fl-page__subtitle {
	margin-top: 8px !important;
}
.fl-page-note {
	margin-top: 40px;
}
.fl-page__content .wp-block-buttons {
	gap: 12px;
	margin-top: 20px;
}
.fl-steps ul {
	margin: 8px 0 0;
	padding-left: 20px;
}

/* Numbered steps ("Jak to probíhá") */
.fl-steps {
	counter-reset: fl-step;
	list-style: none;
	padding: 0;
}
.fl-steps > li {
	counter-increment: fl-step;
	position: relative;
	padding: 4px 0 14px 54px;
}
.fl-steps > li::before {
	content: counter(fl-step);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--flawio-bg-soft);
	color: var(--flawio-primary);
	font-weight: 700;
}

/* Cards: contact details, shipping and payment options, benefits */
.fl-contact-cards,
.fl-info-cards {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}
/* Three contact cards (phones, e-mail, hours): one row from 900 px. */
.fl-contact-cards {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 899px) {
	.fl-contact-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.fl-contact-card--accent {
		grid-column: 1 / -1;
	}
}
.fl-contact-card,
.fl-info-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 24px;
	border-radius: 16px;
	background: var(--flawio-bg);
	box-shadow: 0 0 0 1px var(--flawio-border);
}
.fl-contact-card__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: var(--flawio-bg-soft);
	color: var(--flawio-primary);
}
.fl-contact-card__label {
	color: var(--flawio-muted);
	font-size: 15px;
}
.fl-contact-card__value {
	font-size: 19px;
	font-weight: 600;
	overflow-wrap: anywhere;
}
.fl-contact-card__value a {
	color: var(--flawio-text) !important;
	text-decoration: none !important;
}
.fl-contact-card__value a:hover {
	color: var(--flawio-primary) !important;
}
.fl-contact-card__note {
	color: var(--flawio-muted);
	font-size: 15px;
	font-weight: 400;
}
.fl-contact-card {
	transition: box-shadow .2s ease, transform .2s ease;
}
.fl-contact-card:hover {
	box-shadow: 0 0 0 1px var(--flawio-border), 0 12px 28px rgba(58, 14, 28, .08);
	transform: translateY(-2px);
}
.fl-contact-card__value {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.fl-contact-card__big {
	font-size: 21px;
	line-height: 1.3;
}
/* Phones: the main way to reach the shop, in the brand colour. */
.fl-contact-card--accent {
	background: var(--flawio-primary);
	box-shadow: none;
	color: #FFFFFF;
}
.fl-contact-card--accent:hover {
	box-shadow: 0 12px 28px rgba(142, 27, 58, .28);
}
.fl-contact-card--accent .fl-contact-card__icon {
	background: rgba(255, 255, 255, .16);
	color: #FFFFFF;
}
.fl-contact-card--accent .fl-contact-card__label {
	color: rgba(255, 255, 255, .8);
}
.fl-contact-card--accent .fl-contact-card__value a {
	color: #FFFFFF !important;
}
.fl-contact-card--accent .fl-contact-card__value a:hover {
	color: #FFFFFF !important;
	text-decoration: underline !important;
	text-underline-offset: 4px;
}
/* "Teď jsme k zastižení": set by the inline script of [flawio_contact_cards] in Prague time. */
.fl-open-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin-top: 8px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--flawio-bg-soft);
	color: var(--flawio-muted);
	font-size: 14px;
	font-weight: 600;
}
.fl-open-badge[hidden] {
	display: none;
}
.fl-open-badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}
.fl-open-badge.is-open {
	background: #EAF4EA;
	color: var(--flawio-success);
}

/* Kontakt: the form in a white card, the aside with help links and the operator's details. */
.fl-form-card {
	padding: 36px;
	border-radius: 20px;
	background: var(--flawio-bg);
	box-shadow: 0 0 0 1px var(--flawio-border), 0 16px 40px rgba(58, 14, 28, .06);
}
.fl-page-split__aside {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.fl-page-split__aside > * {
	margin: 0 !important;
}
.fl-page-split__aside .fl-link-list a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	text-decoration: none !important;
	font-weight: 600;
}
.fl-page-split__aside .fl-link-list a::after {
	content: "›";
	font-size: 20px;
	line-height: 1.2;
}
.fl-contact-company {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 16px;
	padding: 24px;
	border-radius: 16px;
	box-shadow: 0 0 0 1px var(--flawio-border);
}
.fl-contact-company h3 {
	margin: 0 0 6px !important;
	font-size: 19px !important;
}
.fl-contact-company p {
	margin: 0 0 6px;
	line-height: 1.6;
}
.fl-contact-company p:last-child {
	margin: 0;
}
.fl-contact-company__note {
	color: var(--flawio-muted);
	font-size: 14px;
}

.fl-info-cards > *,
.fl-info-card > * {
	margin: 0 !important;
}
.fl-info-card h3 {
	margin: 0;
	font-size: 22px;
}
.fl-info-card__price {
	color: var(--flawio-primary);
	font-size: 24px;
	font-weight: 700;
}
.fl-info-card__badge {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--flawio-primary);
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
}
.fl-info-card--highlight {
	box-shadow: 0 0 0 2px var(--flawio-primary);
}
.fl-info-card ul {
	padding-left: 20px;
}

/* Soft box: notes, "Než napíšete", calls to action */
.fl-help-box {
	padding: 28px;
	border-radius: 16px;
	background: var(--flawio-bg-soft);
}
.fl-help-box > :first-child {
	margin-top: 0;
}
.fl-help-box > :last-child {
	margin-bottom: 0;
}
.fl-link-list {
	list-style: none;
	padding: 0;
}
.fl-link-list li {
	padding: 6px 0;
	border-bottom: 1px solid rgba(58, 14, 28, .1);
}
.fl-link-list li:last-child {
	border-bottom: 0;
}

/* Form + aside, side by side on wide screens */
.fl-page-split {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 40px;
	align-items: start;
	margin-top: 56px;
}
.fl-page-split > * {
	margin: 0;
}
.fl-page-split__form > h2:first-child {
	margin-top: 0;
}

/* WPForms in brand style (WPForms runs with its base styles only, so fields are styled here). */
.fl-page .wpforms-container {
	margin: 0 !important;
}
.fl-page .wpforms-container .wpforms-field {
	padding: 0 0 20px;
}
.fl-page .wpforms-container .wpforms-field-label {
	margin-bottom: 6px;
	font-size: 17px;
	font-weight: 600;
}
.fl-page .wpforms-container input[type="text"],
.fl-page .wpforms-container input[type="email"],
.fl-page .wpforms-container textarea {
	width: 100%;
	max-width: none;
	min-height: 52px;
	padding: 12px 14px;
	border: 1px solid #CFC6C0;
	border-radius: 8px;
	background: #FFFFFF;
	font-size: 18px;
}
.fl-page .wpforms-container textarea {
	min-height: 180px;
}
.fl-page .wpforms-container input:focus,
.fl-page .wpforms-container textarea:focus {
	border-color: var(--flawio-primary);
	box-shadow: 0 0 0 1px var(--flawio-primary);
	outline: none;
}
.fl-page .wpforms-container .wpforms-submit {
	min-height: 54px;
	padding: 12px 36px;
	border: 0;
	border-radius: 10px;
	background: var(--flawio-primary);
	color: #FFFFFF;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
}
.fl-page .wpforms-container .wpforms-submit:hover {
	background: var(--flawio-primary-hover);
}
.fl-page .wpforms-container .wpforms-confirmation-container-full {
	padding: 20px;
	border: 0;
	border-radius: 12px;
	background: #EAF4EA;
	color: var(--flawio-text);
}

/* Tables on legal pages */
.fl-page__content table {
	width: 100%;
	border-collapse: collapse;
}
.fl-page__content td,
.fl-page__content th {
	padding: 10px 12px;
	border: 1px solid var(--flawio-border);
	vertical-align: top;
}

@media (max-width: 900px) {
	.fl-page-split {
		grid-template-columns: 1fr;
		gap: 28px;
		margin-top: 40px;
	}
}
@media (max-width: 600px) {
	.fl-page__head {
		padding: 0 0 12px;
	}
	.fl-page__lead {
		font-size: 19px;
	}
	.fl-contact-cards,
	.fl-info-cards {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.fl-contact-card,
	.fl-info-card,
	.fl-help-box,
	.fl-form-card,
	.fl-contact-company {
		padding: 20px;
	}
	/* Icon on the left, label and value beside it: four cards fit on one phone screen. */
	.fl-contact-card {
		display: grid;
		grid-template-columns: 48px 1fr;
		column-gap: 14px;
		row-gap: 2px;
		padding: 16px;
	}
	.fl-contact-card__icon {
		grid-row: span 2;
		margin: 0;
	}
	.fl-contact-card__value {
		font-size: 18px;
	}
}

/* Legal texts (terms, complaints, withdrawal, privacy – owner 2026-10-14): calmer headings, numbered clauses, a table
   that scrolls sideways on phones instead of squeezing the columns. */
.fl-legal h2 {
	margin: 40px 0 12px;
	font-size: clamp(22px, 2.4vw, 26px);
}
.fl-legal ol,
.fl-legal ul {
	margin: 0 0 16px;
	padding-left: 22px;
}
.fl-legal li {
	margin: 0 0 8px;
}
.fl-legal li > ul {
	margin-top: 8px;
}
.fl-legal table {
	display: block;
	overflow-x: auto;
	width: 100%;
	margin: 12px 0 16px;
	border-collapse: collapse;
	font-size: 15px;
}
.fl-legal th,
.fl-legal td {
	min-width: 150px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--flawio-border);
	text-align: left;
	vertical-align: top;
	line-height: 1.5;
}
.fl-legal th {
	background: var(--flawio-bg-soft);
	font-weight: 700;
}
