/* Společný vstup voucherů respektuje stávající olivový souhrn checkoutu. */
#order-summary .checkout-vouchers__label
{
	display: block;
	font-weight: 700;
	margin-block-end: .5rem;
}

#order-summary .checkout-vouchers__input-row
{
	display: flex;
	gap: .5rem;
	align-items: stretch;
}

#order-summary .checkout-vouchers__input-row .form-control
{
	flex: 1;
	min-width: 0;
	font-size: 1rem;
}

#order-summary .checkout-vouchers__apply
{
	flex-shrink: 0;
	min-height: 3rem;
	align-items: stretch;
}

/* Text je uprostřed tlačítka, ozdobné rohy zůstávají u jeho okrajů. */
#order-summary .checkout-vouchers__apply > span:nth-child(2)
{
	align-self: center;
}

#order-summary .checkout-vouchers__help
{
	font-size: .875rem;
	line-height: 1.4;
	margin-block: .5rem 0;
}

#order-summary .checkout-vouchers__codes
{
	list-style: none;
	padding: 0;
	margin-block: 1rem 0;
}

#order-summary .checkout-vouchers__code
{
	display: grid;
	grid-template-columns: 1.25rem minmax(0, 1fr) auto;
	gap: .25rem .5rem;
	align-items: center;
	border-block-start: 1px solid rgba(255, 255, 255, .3);
	padding-block: .75rem;
}

#order-summary .checkout-vouchers__code-name
{
	font-weight: 700;
	overflow-wrap: anywhere;
}

#order-summary .checkout-vouchers__code-detail
{
	grid-column: 2;
	font-size: .875rem;
	line-height: 1.4;
}

#order-summary .checkout-vouchers__remove
{
	grid-column: 3;
	grid-row: 1 / span 2;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: .875rem;
	text-decoration: underline;
	min-height: 3rem;
	padding-inline: .5rem;
}

#order-summary .checkout-vouchers__errors,
#order-summary .checkout-vouchers__code-error
{
	background: #fff;
	color: #862d38;
	border-radius: .25rem;
	font-size: .875rem;
	line-height: 1.5;
	margin-block: .75rem 0;
	padding: .5rem .75rem;
}

#order-summary .checkout-vouchers__errors
{
	list-style-position: inside;
}

#order-summary .checkout-vouchers__code-error
{
	grid-column: 2 / -1;
}

#order-summary .checkout-vouchers button:focus-visible
{
	outline: 2px solid #fff;
	outline-offset: 3px;
}

#order-summary .checkout-vouchers input:focus-visible
{
	outline: 2px solid #212529;
	outline-offset: 2px;
}
