/*
 * Business bookings (inc/business.php): the link "Need to pay by invoice?" beside the invoice line, and the request form
 * it opens lower on the basket and the checkout. Colours come from the theme's --k-* tokens, so dark mode follows. The
 * Company name and PO number fields need nothing here: they are WooCommerce's own fields, styled by woo.css. Loaded on
 * the basket and the checkout only (keyostas_biz_assets).
 */

/* "Request it here" in the line "Paying by invoice? Request it here." (the line keeps the invoice line's own look) */
.ko .ko-woo .ko-inv-ask a { display: inline-block; padding: 2px 0; color: var(--k-head); font-weight: 700; text-underline-offset: 3px; }

/* the section it opens: closed until asked for */
.ko .ko-woo details.ko-inv { max-width: 760px; margin: 24px 0 0; padding: 0; box-sizing: border-box; text-align: left; }
.ko .ko-woo details.ko-inv > summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 24px; box-sizing: border-box;
	list-style: none; cursor: pointer; border-radius: 20px; font: 700 16.5px/1.3 'Inter Variable', Inter, sans-serif; color: var(--k-head);
}
.ko .ko-woo details.ko-inv > summary::-webkit-details-marker { display: none; }
.ko .ko-woo details.ko-inv > summary svg { flex: none; transition: transform 0.2s; }
.ko .ko-woo details.ko-inv[open] > summary svg { transform: rotate(180deg); }
.ko .ko-woo details.ko-inv > summary:focus-visible { outline: 3px solid var(--k-orange); outline-offset: -3px; border-radius: 20px; box-shadow: inset 0 0 0 6px #12113a !important; }
@media (prefers-reduced-motion: reduce) { .ko .ko-woo details.ko-inv > summary svg { transition: none; } }
/* the classic basket on wide screens: under the lines, beside the order summary */
@media (min-width: 1001px) { .ko .ko-woo--basket .woocommerce:has(> .woocommerce-cart-form) > details.ko-inv { grid-column: 1; margin-top: 0; } }
/* Update 20 (D199): on the checkout the section stands above the form, as wide as it: the whole width up to 964px, and the form
   column beside the order summary from 965px (the block's sidebar and gap take 408px, as for "Who is attending?"). */
.ko .ko-woo details.ko-inv.ko-inv--top { max-width: none; width: 100%; margin: 0 0 24px; }
@media (min-width: 965px) { .ko .ko-woo details.ko-inv--top:has(+ .ko-woo-block--checkout) { width: calc(100% - 408px); } }
/* Update 26 (audit fix 5): the block basket on wide screens: the section pulled up under the lines (the room the summary column
   below them left), never wider than the lines' column (keyostas_woo_block_layout_script(), inc/woocommerce.php) */
.ko .ko-woo details.ko-inv.ko-inv--up { margin-top: calc(24px - var(--ko-inv-up, 0px)); margin-bottom: var(--ko-inv-below, 0px); max-width: min(760px, var(--ko-main-w, 760px)); }
.ko .ko-woo .ko-inv-in { display: grid; gap: 12px; padding: 4px 24px 24px; }
.ko .ko-woo .ko-inv-in > h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.ko .ko-woo .ko-inv-line { margin: 0; max-width: 62ch; color: var(--k-ink); font-size: 16px; line-height: 1.55; }
.ko .ko-woo .ko-inv-in .ko-form-embed { margin-top: 8px; }
.ko .ko-woo .ko-inv-in .ko-form-fallback { margin: 0; }
@media (max-width: 620px) {
	.ko .ko-woo details.ko-inv > summary { padding: 8px 20px; }
	.ko .ko-woo .ko-inv-in { padding: 4px 20px 20px; }
}
