/*
 * The term picker of the consultation order (ConsultOrder:default) and the progress shared with
 * the payment page - the look of the question flow of the poradňa (admin
 * www/assets/publicCounsel/conversation/flow.css): brand blue #112b5d / #18448c, green #18ae41,
 * white rounded cards on a pale background. Loaded after default.css, which still carries the
 * loader and the replay panel; everything here is scoped to .co-*. Also styles the pages after
 * the order: the payment page with its bank transfer modal (payment.latte), the released term
 * (deletedTermConfirm.latte) and the submitted term request (termRequestSubmitted.latte).
 */

.co-picker,
.co-progress,
.co-modal {
	--co-navy: #112b5d;
	--co-blue: #18448c;
	--co-green: #18ae41;
	--co-green-dark: #13923a;
	--co-red: #c0392b;
	--co-text: #2c3a52;
	--co-muted: #6c757d;
	--co-border: #e1e7f0;
	--co-soft: #f5f7fb;
	--co-pale-blue: #eef3fb;
	--co-shadow: 0 8px 22px rgba(17, 43, 93, 0.08), 0 1px 3px rgba(17, 43, 93, 0.06);
}

/* the old .content is one white card - the picker is a column of cards */
.co-picker.content {
	max-width: 980px;
	margin: 0 auto;
	padding: 0;
	background: none;
	border-radius: 0;
	box-shadow: none;
	color: var(--co-text);
}

.co-picker.content .inner {
	padding: 0;
}

.co-picker.content p {
	font-size: 15px;
	margin: 0;
}

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

.co-picker button {
	font-family: inherit;
	touch-action: manipulation;
}

/* ------------------------------------------------------------------------
   Progress of the whole order (@progress.latte)
   ------------------------------------------------------------------------ */

.co-progress {
	position: sticky;
	top: 0;
	z-index: 20;
	margin: 0 0 20px;
	padding: 14px 18px 12px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(6px);
	box-shadow: var(--co-shadow);
}

.co-progress__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--co-muted);
}

.co-progress__step strong {
	color: var(--co-navy);
}

.co-progress__percent {
	font-size: 18px;
	font-weight: 700;
	color: var(--co-blue);
	font-variant-numeric: tabular-nums;
}

.co-progress.is-done .co-progress__percent {
	color: var(--co-green);
}

.co-progress__track {
	height: 8px;
	border-radius: 8px;
	background: #e9eef6;
	overflow: hidden;
}

.co-progress__fill {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 8px;
	background: linear-gradient(90deg, var(--co-blue), var(--co-green));
	transition: width .6s ease;
}

.co-progress__steps {
	display: flex;
	justify-content: space-between;
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	font-size: 12px;
	color: #9aa3b2;
}

.co-progress__steps li {
	position: relative;
	padding-left: 14px;
}

.co-progress__steps li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-radius: 50%;
	background: #d5dce8;
}

.co-progress__steps li.is-done {
	color: var(--co-green);
}

.co-progress__steps li.is-done::before {
	background: var(--co-green);
}

.co-progress__steps li.is-current {
	color: var(--co-navy);
	font-weight: 700;
}

.co-progress__steps li.is-current::before {
	background: var(--co-blue);
	box-shadow: 0 0 0 3px rgba(24, 68, 140, 0.18);
}

@media (max-width: 575px) {
	/* the step names do not fit next to each other, the headline says the step */
	.co-progress__steps {
		display: none;
	}
}

/* ------------------------------------------------------------------------
   Cards of the steps
   ------------------------------------------------------------------------ */

.co-card {
	margin: 0 0 18px;
	padding: 22px 24px 24px;
	background: #fff;
	border: 1px solid var(--co-border);
	border-radius: 14px;
	box-shadow: var(--co-shadow);
}

.co-picker .co-card__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	font-size: 19px;
	font-weight: 700;
	color: var(--co-navy);
}

.co-card__number {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--co-pale-blue);
	color: var(--co-blue);
	font-size: 15px;
	font-weight: 800;
}

/* ------------------------------------------------------------------------
   Tiles - who / type / length
   ------------------------------------------------------------------------ */

.co-tiles {
	display: grid;
	gap: 12px;
}

.co-tiles--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.co-tiles--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.co-tile {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 64px;
	padding: 14px 16px;
	border: 1.5px solid var(--co-border);
	border-radius: 12px;
	background: #fff;
	color: var(--co-text);
	text-align: left;
	white-space: normal;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, background .15s;
}

.co-tile:hover:not(:disabled) {
	border-color: #b8c6dd;
	box-shadow: 0 4px 12px rgba(17, 43, 93, 0.08);
}

.co-tile:focus-visible {
	outline: 3px solid rgba(24, 68, 140, 0.35);
	outline-offset: 2px;
}

.co-tile.is-selected {
	border-color: var(--co-blue);
	background: var(--co-pale-blue);
	box-shadow: 0 0 0 1px var(--co-blue) inset;
}

.co-tile:disabled {
	opacity: .5;
	cursor: progress;
}

.co-tile__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--co-soft);
	color: var(--co-blue);
	font-size: 18px;
}

.co-tile.is-selected .co-tile__icon {
	background: var(--co-blue);
	color: #fff;
}

.co-tile__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.co-tile__name {
	font-size: 16px;
	font-weight: 700;
	color: var(--co-navy);
}

.co-tile__text {
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--co-muted);
}

/* the type tiles stack icon, name and the count */
.co-tile--kind {
	flex-direction: column;
	justify-content: center;
	text-align: center;
	padding: 18px 12px;
}

/* the length tiles: minutes left, price right, the count below */
.co-tile--length {
	flex-wrap: wrap;
	justify-content: space-between;
}

.co-tile__length {
	font-size: 20px;
	font-weight: 800;
	color: var(--co-navy);
}

.co-tile__length small {
	font-size: 13px;
	font-weight: 600;
	color: var(--co-muted);
}

.co-tile__price {
	font-size: 20px;
	font-weight: 800;
	color: var(--co-blue);
}

.co-tile--length .co-badge {
	flex-basis: 100%;
	align-self: flex-start;
	width: max-content;
}

/* the saving spinner of the picked "who" tile (default.css draws it white for a blue button) */
.co-picker .select-user-type.is-loading:after {
	border-color: rgba(24, 68, 140, 0.2);
	border-top-color: var(--co-blue);
}

/* ------------------------------------------------------------------------
   Availability badges ("5+ termínov", "posledný voľný termín")
   ------------------------------------------------------------------------ */

.co-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: #edf0f5;
	color: var(--co-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.co-badge--success {
	background: #e6f6ea;
	color: #128034;
}

.co-badge--danger {
	background: #fbeaea;
	color: var(--co-red);
}

/* ------------------------------------------------------------------------
   Consultants
   ------------------------------------------------------------------------ */

.co-users {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 14px;
}

.co-user {
	position: relative;
}

.co-user__pick {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 72px;
	padding: 12px 52px 12px 12px;
	border: 1.5px solid var(--co-border);
	border-radius: 12px;
	background: #fff;
	color: var(--co-text);
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}

.co-user__pick:hover {
	border-color: #b8c6dd;
}

.co-user__pick.is-selected {
	border-color: var(--co-blue);
	background: var(--co-pale-blue);
	box-shadow: 0 0 0 1px var(--co-blue) inset;
}

.co-user__check {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 2px solid #c4cedb;
	border-radius: 6px;
	color: transparent;
	font-size: 12px;
}

.co-user__pick.is-selected .co-user__check {
	border-color: var(--co-blue);
	background: var(--co-blue);
	color: #fff;
}

.co-user__photo {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--co-border);
}

.co-user__photo--empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--co-soft);
	color: #9aa3b2;
	font-size: 20px;
}

.co-user__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 0;
}

.co-user__name {
	font-size: 15px;
	color: var(--co-navy);
	overflow-wrap: anywhere;
}

.co-user__role {
	font-size: 12.5px;
	color: var(--co-muted);
}

.co-user__info {
	position: absolute;
	top: 50%;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	border-radius: 50%;
	background: var(--co-soft);
	color: var(--co-blue);
	touch-action: manipulation;
}

.co-user__info:hover,
.co-user__info:focus {
	background: var(--co-blue);
	color: #fff;
	text-decoration: none;
}

/* ------------------------------------------------------------------------
   Date and time - calendar left, hours right (a column on a phone)
   ------------------------------------------------------------------------ */

.co-when {
	display: grid;
	grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.co-cal {
	padding: 16px;
	border: 1px solid var(--co-border);
	border-radius: 14px;
}

.co-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-bottom: 12px;
	margin-bottom: 10px;
	border-bottom: 1px solid var(--co-border);
}

.co-cal__month {
	font-size: 15px;
	font-weight: 800;
	color: var(--co-navy);
}

.co-cal__nav {
	display: inline-flex;
	gap: 4px;
}

.co-cal__arrow {
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: none;
	color: var(--co-navy);
	cursor: pointer;
}

.co-cal__arrow:hover:not(:disabled) {
	background: var(--co-soft);
}

.co-cal__arrow:disabled {
	color: #c7cfdb;
	cursor: default;
}

.co-cal__weekdays,
.co-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
	text-align: center;
}

.co-cal__weekdays span {
	padding: 4px 0 6px;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--co-muted);
}

.co-cal__day {
	position: relative;
	width: 100%;
	max-width: 42px;
	aspect-ratio: 1;
	margin: 0 auto;
	border: none;
	border-radius: 50%;
	background: none;
	color: #b6bfcc;
	font-size: 14px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.co-cal__day:disabled {
	cursor: default;
}

.co-cal__day.is-out {
	color: #dde2ea;
}

/* a day with a free term: dark, with a green dot */
.co-cal__day.is-free {
	color: var(--co-navy);
	font-weight: 800;
	cursor: pointer;
}

.co-cal__day.is-free::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 4px;
	width: 5px;
	height: 5px;
	margin-left: -2.5px;
	border-radius: 50%;
	background: var(--co-green);
}

.co-cal__day.is-free:hover {
	background: var(--co-pale-blue);
}

.co-cal__day.is-selected,
.co-cal__day.is-selected:hover {
	background: var(--co-blue);
	color: #fff;
}

.co-cal__day.is-selected::after {
	background: #fff;
}

.co-cal__loading {
	display: none;
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--co-blue);
}

.co-picker .co-cal__note {
	margin: 12px 0 0;
	font-size: 12.5px;
	color: var(--co-muted);
	text-align: center;
}

.co-hours__day {
	margin-bottom: 4px;
	font-size: 15px;
	font-weight: 800;
	color: var(--co-navy);
}

.co-hours__day:first-letter {
	text-transform: uppercase;
}

.co-picker .co-hours__empty,
.co-picker .co-hours__none {
	padding: 18px;
	border-radius: 12px;
	background: var(--co-soft);
	color: var(--co-muted);
	font-size: 14px;
}

.co-picker .co-hours__part {
	margin: 16px 0 10px;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--co-navy);
}

.co-hours__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.co-slot {
	min-width: 76px;
	min-height: 40px;
	padding: 8px 14px;
	border: 1.5px solid var(--co-border);
	border-radius: 10px;
	background: #fff;
	color: var(--co-navy);
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}

.co-slot:hover {
	border-color: var(--co-blue);
}

.co-slot.is-selected {
	border-color: var(--co-blue);
	background: var(--co-blue);
	color: #fff;
}

/* "Nenašli ste vhodný termín?" - the ways out under the calendar */
.co-noterm {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--co-border);
}

.co-noterm__title {
	font-size: 14px;
	color: var(--co-navy);
}

.co-noterm__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.co-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid var(--co-border);
	border-radius: 999px;
	background: #fff;
	color: var(--co-blue);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	touch-action: manipulation;
}

.co-chip:hover,
.co-chip:focus {
	border-color: var(--co-blue);
	color: var(--co-blue);
	text-decoration: none;
}

/* ------------------------------------------------------------------------
   Summary, consent and the order button
   ------------------------------------------------------------------------ */

.co-summary {
	margin: 0 0 18px;
	border: 1px solid var(--co-border);
	border-radius: 12px;
	overflow: hidden;
}

.co-summary > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 16px;
	border-bottom: 1px solid var(--co-border);
	font-size: 14.5px;
}

.co-summary > div:last-child {
	border-bottom: 0;
}

.co-summary dt {
	font-weight: 600;
	color: var(--co-muted);
}

.co-summary dd {
	margin: 0;
	font-weight: 700;
	color: var(--co-navy);
	text-align: right;
}

.co-summary dd:first-letter {
	text-transform: uppercase;
}

.co-summary .co-summary__total {
	background: var(--co-soft);
	font-size: 17px;
}

.co-summary__total dd {
	color: var(--co-blue);
	font-size: 19px;
}

.co-picker .co-consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--co-soft);
	font-size: 13.5px;
	font-weight: normal;
	line-height: 1.6;
	cursor: pointer;
}

.co-consent input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
}

.co-submit {
	margin-top: 18px;
	text-align: center;
}

.co-submit__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 260px;
	min-height: 52px;
	padding: 12px 32px;
	border: none;
	border-radius: 12px;
	background: var(--co-green);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}

.co-submit__button:hover:not(:disabled) {
	background: var(--co-green-dark);
}

.co-submit__button:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.co-picker .co-submit__hint {
	margin-top: 8px;
	font-size: 12.5px;
	color: var(--co-muted);
}

/* ------------------------------------------------------------------------
   Phone
   ------------------------------------------------------------------------ */

@media (max-width: 899px) {
	.co-when {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.co-cal {
		max-width: 420px;
		width: 100%;
		margin: 0 auto;
	}
}

@media (max-width: 767px) {
	.co-card {
		padding: 18px 14px 20px;
		border-radius: 12px;
	}

	.co-picker .co-card__title {
		font-size: 17px;
	}

	.co-tiles--two,
	.co-tiles--three,
	.co-users {
		grid-template-columns: minmax(0, 1fr);
	}

	/* the three types stay compact in one row of icon + name + count */
	.co-tile--kind {
		flex-direction: row;
		justify-content: flex-start;
		flex-wrap: wrap;
		text-align: left;
		padding: 12px 14px;
	}

	.co-progress {
		padding: 12px 14px 10px;
		border-radius: 12px;
	}

	.co-summary > div {
		flex-direction: column;
		gap: 2px;
	}

	.co-summary dd {
		text-align: left;
	}

	.co-submit__button {
		width: 100%;
		min-width: 0;
	}
}

@media (pointer: coarse) {
	.co-picker input,
	.co-picker select,
	.co-picker textarea {
		font-size: 16px;
	}
}

/* ------------------------------------------------------------------------
   A preselected slot taken meanwhile (default.latte, $preselect['gone'])
   ------------------------------------------------------------------------ */

.co-notice {
	margin: 0 0 18px;
	padding: 14px 18px;
	border-radius: 12px;
	background: #fdf8e6;
	border: 1px solid #f1e2a8;
	color: #6b5413;
	font-size: 14.5px;
}

/* ------------------------------------------------------------------------
   Free terms of the next days (freeTerms.latte)
   ------------------------------------------------------------------------ */

.co-picker .co-free__intro {
	color: var(--co-muted);
}

.co-picker .co-free__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.co-free__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.co-free__slot {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 6px 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--co-border);
}

.co-free__slot:last-child {
	border-bottom: 0;
}

.co-free__time {
	font-weight: 800;
	color: var(--co-navy);
	font-variant-numeric: tabular-nums;
}

.co-free__what {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.co-free__what strong {
	color: var(--co-text);
}

.co-free__who {
	font-size: 12.5px;
	color: var(--co-muted);
}

.co-free__price {
	font-weight: 800;
	color: var(--co-blue);
}

.co-free__order {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 16px;
	border-radius: 10px;
	background: var(--co-green);
	color: #fff;
	font-weight: 700;
	touch-action: manipulation;
}

.co-free__order:hover,
.co-free__order:focus {
	background: var(--co-green-dark);
	color: #fff;
	text-decoration: none;
}

.co-picker .co-free__note {
	margin: 0 0 24px;
	font-size: 12.5px;
	color: var(--co-muted);
	text-align: center;
}

@media (max-width: 575px) {
	.co-free__slot {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.co-free__what {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.co-free__order {
		grid-column: 1 / -1;
		justify-content: center;
	}
}

/* ------------------------------------------------------------------------
   Payment page (payment.latte): the summary + the payment card
   ------------------------------------------------------------------------ */

.co-pay__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 18px;
	align-items: start;
}

.co-pay__grid > .co-card {
	margin: 0;
}

.co-pay .co-summary dd {
	overflow-wrap: anywhere;
}

/* the date and time, "zmeniť" under it when it does not fit */
.co-pay .co-pay__term {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 6px 10px;
}

.co-pay__time {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.co-chip--small {
	min-height: 30px;
	padding: 3px 11px;
	font-size: 12.5px;
}

.co-pay__countdown {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--co-pale-blue);
	color: var(--co-navy);
	font-size: 15px;
	line-height: 1.45;
}

.co-pay__countdown .fa {
	margin-top: 1px;
	font-size: 19px;
	color: var(--co-blue);
}

.co-pay__countdown .countdown {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.co-pay__amount {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 18px;
	padding: 14px 18px;
	border-radius: 12px;
	background: var(--co-soft);
	color: var(--co-muted);
	font-size: 15px;
	font-weight: 600;
}

.co-pay__amount strong {
	color: var(--co-navy);
	font-size: 26px;
	font-weight: 800;
	white-space: nowrap;
}

.co-pay__label {
	margin: 0 0 10px;
	color: var(--co-navy);
	font-size: 15px;
	font-weight: 700;
}

/* the payment methods - tiles like the type / length tiles of the picker */
.co-pay__methods {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.co-pay .co-pay__method {
	position: relative;
	display: block;
	width: 100%;
	min-height: 60px;
	margin: 0;
	padding: 10px 14px;
	border: 1.5px solid var(--co-border);
	border-radius: 12px;
	background: #fff;
	color: var(--co-navy);
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, background .15s;
}

.co-pay .co-pay__method:hover:not(:disabled) {
	border-color: var(--co-blue);
	box-shadow: 0 4px 12px rgba(17, 43, 93, 0.10);
}

.co-pay .co-pay__method:focus-visible {
	outline: 3px solid rgba(24, 68, 140, 0.35);
	outline-offset: 2px;
}

.co-pay .co-pay__method[data-loading] {
	border-color: var(--co-blue);
	background: var(--co-pale-blue);
	cursor: progress;
}

.co-pay__method-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.co-pay__method-logo {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 38px;
	border-radius: 8px;
	background: var(--co-soft);
	color: var(--co-blue);
	font-size: 19px;
}

.co-pay__method-logo img {
	max-width: 40px;
	max-height: 20px;
}

.co-pay__method-name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.co-pay__method-arrow {
	flex: 0 0 auto;
	color: #9aa3b2;
	font-size: 20px;
	transition: transform .15s, color .15s;
}

.co-pay__method:hover .co-pay__method-arrow {
	color: var(--co-blue);
	transform: translateX(2px);
}

/* the info icon sits in the right edge of the fast payment tile */
.co-pay__fast {
	position: relative;
}

.co-pay .co-pay__fast .co-pay__method {
	padding-right: 50px;
}

.co-pay .co-pay__info {
	position: absolute;
	top: 50%;
	right: 6px;
	z-index: 4;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--co-blue);
	font-size: 19px;
	cursor: pointer;
	touch-action: manipulation;
}

.co-pay .co-pay__info:hover {
	background: var(--co-pale-blue);
}

.co-pay__banks {
	margin-top: 12px;
	padding: 14px 16px;
	border: 1px solid var(--co-border);
	border-radius: 12px;
	background: var(--co-soft);
}

.co-pay__banks-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	color: var(--co-navy);
	font-size: 14px;
	font-weight: 700;
}

.co-pay .co-pay__banks-close {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--co-muted);
	font-size: 22px;
	line-height: 32px;
	cursor: pointer;
}

.co-pay .co-pay__banks-close:hover {
	background: #fff;
	color: var(--co-navy);
}

.co-pay__banks img {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 6px;
	border-radius: 8px;
	background: #fff;
}

/* paid - or the confirmation still waits for a human */
.co-pay__done {
	padding: 6px 0 4px;
	text-align: center;
}

.co-pay__done .success-checkmark {
	margin: 0 auto 6px;
}

.co-pay__done-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: 4px 0 14px;
	border-radius: 50%;
	background: var(--co-pale-blue);
	color: var(--co-blue);
	font-size: 30px;
}

.co-pay .co-pay__done-title {
	margin: 0 0 10px;
	color: var(--co-navy);
	font-size: 21px;
	font-weight: 700;
}

.co-pay .co-pay__done-title--paid {
	color: var(--co-green);
}

.co-pay.content .co-pay__done p {
	max-width: 440px;
	margin: 0 auto;
	color: var(--co-muted);
	line-height: 1.55;
}

.co-pay__done-button {
	margin-top: 22px;
	text-decoration: none;
}

.co-pay__done-button:hover,
.co-pay__done-button:focus {
	color: #fff;
	text-decoration: none;
}

@media (max-width: 899px) {
	.co-pay__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 575px) {
	.co-pay__methods {
		grid-template-columns: minmax(0, 1fr);
	}

	.co-pay__amount {
		padding: 12px 14px;
	}

	.co-pay__amount strong {
		font-size: 23px;
	}
}

/* the summary rows stack under 768 px (label above the value) - the term with them */
@media (max-width: 767px) {
	.co-pay .co-pay__term {
		justify-content: flex-start;
	}
}

/* ------------------------------------------------------------------------
   Modals of the order (the bank transfer of payment.latte, all terms of the picker)
   ------------------------------------------------------------------------ */

.co-modal .co-modal__dialog {
	width: auto;
	max-width: 680px;
	margin: 30px auto;
	padding: 0 10px;
}

.co-modal .modal-content {
	border: 0;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(17, 43, 93, 0.25);
	color: var(--co-text);
	overflow: hidden;
}

.co-modal .modal-header {
	padding: 18px 24px;
	border-bottom: 1px solid var(--co-border);
}

.co-modal .modal-header .close {
	margin-top: 4px;
	font-size: 28px;
	opacity: .45;
}

.co-modal .modal-title {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--co-navy);
	font-size: 19px;
	font-weight: 700;
}

.co-modal__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--co-pale-blue);
	color: var(--co-blue);
	font-size: 16px;
}

.co-modal .modal-body {
	padding: 22px 24px 24px;
}

.co-modal .modal-footer {
	padding: 12px 24px;
	border-top: 1px solid var(--co-border);
	background: var(--co-soft);
}

.co-modal .co-modal__subtitle {
	margin: 0 0 6px;
	color: var(--co-navy);
	font-size: 16px;
	font-weight: 700;
}

.co-modal .co-modal__lead {
	margin: 0 0 18px;
	color: var(--co-muted);
	font-size: 14.5px;
	line-height: 1.55;
}

.co-modal .co-modal__warning-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	color: #a5650a;
	font-size: 16px;
	font-weight: 700;
}

.co-modal__note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--co-soft);
	color: var(--co-muted);
	font-size: 13.5px;
	line-height: 1.5;
}

.co-modal__note .fa {
	margin-top: 2px;
	color: var(--co-blue);
	font-size: 16px;
}

.co-modal .co-pay__countdown {
	font-size: 14.5px;
}

/* the bank transfer: the steps, the details with the QR code next to them */
.bank-step {
	display: none;
}

.bank-step--active {
	display: block;
}

.co-modal .bank-transfer {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin: 0 0 18px;
}

.co-modal .bank-transfer__details {
	flex: 1 1 auto;
	min-width: 0;
}

.co-paydetails {
	margin: 0;
	border: 1px solid var(--co-border);
	border-radius: 12px;
	overflow: hidden;
}

.co-paydetails__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 14px;
	padding: 8px 14px;
	border-top: 1px solid var(--co-border);
	font-size: 13.5px;
}

.co-paydetails__row:first-child {
	border-top: 0;
}

.co-paydetails__row dt {
	flex: 0 0 auto;
	font-weight: 600;
	color: var(--co-muted);
}

.co-paydetails__row dd {
	margin: 0;
	color: var(--co-text);
	text-align: right;
	overflow-wrap: anywhere;
}

/* amount, IBAN, variable symbol - the label above, the value big with a copy button */
.co-paydetails__row--main {
	display: block;
	padding: 10px 14px;
	background: var(--co-soft);
}

.co-paydetails__row--main dt {
	margin-bottom: 2px;
	font-size: 12.5px;
}

.co-paydetails__row--main dd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	text-align: left;
}

.co-paydetails__value {
	min-width: 0;
	color: var(--co-navy);
	font-size: 18px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: .01em;
}

/* the IBAN always on one line - smaller on narrow phones rather than broken in two */
.co-paydetails__iban {
	white-space: nowrap;
	font-size: clamp(13px, 3.9vw, 18px);
	letter-spacing: 0;
}

.co-copy {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--co-border);
	border-radius: 8px;
	background: #fff;
	color: var(--co-blue);
	font-size: 14px;
	cursor: pointer;
	touch-action: manipulation;
	transition: border-color .15s, background .15s, color .15s;
}

.co-copy:hover {
	border-color: var(--co-blue);
}

.co-copy.is-copied {
	border-color: var(--co-green);
	background: #e6f6ea;
	color: var(--co-green);
}

.co-modal .bank-transfer__qr {
	flex: 0 0 172px;
	padding: 10px;
	border: 1px solid var(--co-border);
	border-radius: 12px;
	text-align: center;
}

.co-modal .bank-transfer__qr img {
	display: block;
	width: 150px;
	height: 150px;
	margin: 0 auto 8px;
}

.co-modal .bank-transfer__qr small {
	display: block;
	color: var(--co-muted);
	font-size: 12px;
	line-height: 1.35;
}

.co-modal .bank-transfer__done {
	width: 100%;
	min-width: 0;
}

.co-modal .bank-transfer__done .ladda-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.co-modal .bank-transfer__verify {
	padding: 18px 8px 10px;
	text-align: center;
}

.co-modal .bank-transfer__verify .fa-spin {
	margin-bottom: 14px;
	color: var(--co-blue);
	font-size: 42px;
}

.co-modal .bank-transfer__verify h4 {
	margin: 0 0 6px;
	color: var(--co-navy);
	font-size: 18px;
	font-weight: 700;
}

.co-modal .bank-transfer__verify p {
	margin: 0 0 12px;
	color: var(--co-muted);
}

.co-modal .bank-transfer__seconds {
	display: block;
	color: var(--co-navy);
	font-size: 30px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.co-modal .bank-transfer__verdict {
	margin: 0 0 16px;
	padding: 12px 16px;
	border: 1px solid #f1e2a8;
	border-radius: 12px;
	background: #fdf8e6;
	color: #6b5413;
	font-size: 14px;
	line-height: 1.5;
}

.co-modal .bank-transfer__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	margin-top: 12px;
	padding: 8px 0;
	color: var(--co-blue);
	font-size: 14px;
	font-weight: 600;
	touch-action: manipulation;
}

@media (max-width: 575px) {
	.co-modal .co-modal__dialog {
		margin: 10px auto;
		padding: 0 8px;
	}

	.co-modal .modal-header,
	.co-modal .modal-body {
		padding-left: 16px;
		padding-right: 16px;
	}

	.co-paydetails__row--main,
	.co-paydetails__row {
		padding-left: 12px;
		padding-right: 12px;
	}
}

/* the QR code next to the details only where the IBAN still fits on one line beside it; paying
   on the phone itself - the details first, the QR code (for another phone) under them */
@media (max-width: 699px) {
	.co-modal .bank-transfer {
		flex-direction: column;
		align-items: stretch;
	}

	.co-modal .bank-transfer__qr {
		flex-basis: auto;
	}
}

/* all terms of the picker (@modalAlternativeTerms.latte) */
.co-alt__user {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	color: var(--co-navy);
	font-size: 17px;
	font-weight: 700;
}

.co-alt__user img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.co-alt__type {
	margin: 0 0 8px;
	color: var(--co-muted);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.co-alt__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
}

.co-alt__term,
.co-alt__term.term-select {
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.co-alt__block + .co-alt__block {
	padding-top: 18px;
	border-top: 1px solid var(--co-border);
}

/* ------------------------------------------------------------------------
   One message card - the released term, the submitted term request
   ------------------------------------------------------------------------ */

.co-message {
	text-align: center;
}

.co-message__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: 4px 0 14px;
	border-radius: 50%;
	background: #fdf3e1;
	color: #c47f17;
	font-size: 30px;
}

.co-picker .co-message__title {
	margin: 0 0 10px;
	color: var(--co-navy);
	font-size: 21px;
	font-weight: 700;
}

.co-picker.content .co-message__text {
	max-width: 480px;
	margin: 0 auto 14px;
	color: var(--co-muted);
	line-height: 1.6;
}

.co-message__term {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--co-soft);
	color: var(--co-navy);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.co-message__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
	margin-top: 6px;
}

.co-message__actions .co-submit__button,
.co-message__actions .co-submit__button:hover,
.co-message__actions .co-submit__button:focus {
	color: #fff;
	text-decoration: none;
}

.co-message .success-checkmark {
	margin: 0 auto 8px;
}

.co-message--narrow {
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 575px) {
	.co-message__actions .co-submit__button,
	.co-message__actions .co-chip {
		width: 100%;
		justify-content: center;
	}
}
