/*
Theme Name: Bridge Child
Theme URI: http://demo.qodeinteractive.com/bridge/
Description: A child theme of Bridge Theme
Author: Qode Interactive
Author URI: http://www.qodethemes.com/
Version: 1.0.0
Template: bridge
*/
@import url("../bridge/style.css");

/* =====================================================================
   Classic checkout restyle (forced classic via functions.php so the
   Bulgarisation SPEEDY pickers render). Goal: bring the plain classic
   checkout closer to the WooCommerce block-checkout design — two-column
   layout with a sticky order-summary card, styled sections/inputs, and
   a tidied-up SPEEDY delivery picker. Brand colours from qode_options.
   ===================================================================== */
:root {
	--qb-indigo: #4c31af;   /* section headings / banner            */
	--qb-accent: #f038ff;   /* magenta highlights / borders         */
	--qb-dark:   #1f1f1f;   /* text + place-order button            */
	--qb-border: #e4e4ea;   /* field + card borders                 */
	--qb-muted:  #f7f6fb;   /* subtle fills                         */
}

/* ---- Login / coupon info bars: tone down the solid magenta blocks --- */
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	background: var(--qb-muted);
	color: var(--qb-dark);
	border-top: 3px solid var(--qb-accent);
	padding: 16px 20px;
	border-radius: 6px;
	margin-bottom: 18px;
}
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info a,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a {
	color: var(--qb-accent);
	font-weight: 600;
}

/* ---- Two-column layout (markup from form-checkout.php override) ----- */
@media (min-width: 769px) {
	.qb-checkout .qb-checkout__grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 420px;
		column-gap: 48px;
		align-items: start;
	}
	.qb-checkout .qb-checkout__aside {
		position: sticky;
		top: 30px;
	}
}
.qb-checkout #order_review_heading { margin-top: 0; }
.qb-checkout .qb-checkout__payment { margin-top: 30px; }
/* Section headings all sit at the order-summary heading's scale (image-4/7). */
.qb-checkout .qb-checkout__payment-heading,
.qb-checkout .qb-checkout__shipping-heading {
	color: var(--qb-indigo);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.3;
	margin: 0 0 18px;
}

/* Stack billing / shipping vertically inside the left column (Bridge
   floats .col-1 / .col-2 side by side, which pushed the order-notes box
   to the top-right). */
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
	float: none;
	width: 100%;
	margin: 0 0 10px;
}

/* ---- Section headings -> indigo, matching the block checkout --------- */
.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #ship-to-different-address,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout #payment h3 {
	color: var(--qb-indigo);
	font-weight: 700;
	margin: 0 0 18px;
}
.woocommerce-checkout #ship-to-different-address {
	font-size: 15px;
}

/* ---- Inputs / selects / textareas ----------------------------------- */
.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce-checkout .select2-selection {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--qb-border);
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	line-height: 1.4;
}
.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
	border-color: var(--qb-accent);
	outline: none;
}
.woocommerce-checkout .form-row { margin-bottom: 16px; }

/* ---- Order summary card --------------------------------------------- */
.woocommerce-checkout #order_review {
	border: 2px solid var(--qb-accent);
	border-radius: 10px;
	padding: 24px;
	background: #fff;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table {
	border: none;
	margin-bottom: 18px;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
	border-top: 1px solid var(--qb-border);
	padding: 12px 0;
}

/* ---- Shipping methods + SPEEDY picker -------------------------------- */
.woocommerce-checkout ul#shipping_method {
	list-style: none;
	margin: 0;
	padding: 0;
}
.woocommerce-checkout ul#shipping_method li {
	padding: 10px 12px;
	border: 1px solid var(--qb-border);
	border-radius: 6px;
	margin-bottom: 8px;
}
/* selected shipping row -> subtle accent fill */
.woocommerce-checkout ul#shipping_method li:has(input.shipping_method:checked) {
	border-color: var(--qb-accent);
	background: rgba(240, 56, 255, 0.06);
}
.woocommerce-checkout ul#shipping_method label { font-weight: 600; }

/* SPEEDY (and siblings) delivery picker: full width, un-clip placeholder */
.woocommerce-checkout .woo-bg--speedy-delivery,
.woocommerce-checkout .woo-bg-additional-fields,
.woocommerce-checkout .woo-bg-multiselect {
	width: 100%;
	margin-top: 10px;
}
/* Only restyle the multiselect box border/radius to match the other fields —
   leave the plugin's internal layout (single/input/arrow) untouched, otherwise
   the selected value gets pushed below the box. */
.woocommerce-checkout .woo-bg-multiselect .multiselect__tags {
	border: 1px solid var(--qb-border) !important;
	border-radius: 6px !important;
}
/* The multiselect's internal search input must stay borderless/transparent —
   Bridge's generic input[type=text] styling otherwise renders it as a small
   stray box below the selected value. (Don't touch width/position — that
   pushes the selected value onto its own line.) */
body.woocommerce-checkout .woo-bg-multiselect .multiselect__tags input.multiselect__input,
.qb-checkout .woo-bg-multiselect .multiselect__tags input.multiselect__input {
	border: 0 !important;
	background: transparent !important;
	padding: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	line-height: 20px !important;
}
.woocommerce-checkout .woo-bg-multiselect--additional-field {
	margin-top: 8px;
}

/* ---- Payment box ----------------------------------------------------- */
/* Styled in the "item 11" section near the end of this file. Nothing here:
   the old `.woocommerce-checkout #payment ul.payment_methods { border:none;
   padding:0 }` rule outranked it (an extra element selector), so the methods
   box silently lost its magenta border and inner padding — items 5 and 11. */

/* ---- Place order button --------------------------------------------- */
.woocommerce-checkout #place_order {
	width: 100%;
	background: var(--qb-dark);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 16px 20px;
	font-weight: 700;
	letter-spacing: .02em;
	transition: background .15s ease;
}
.woocommerce-checkout #place_order:hover {
	background: var(--qb-accent);
}

/* ---- Tidy 2-column field grid in the left column (block-style) ------ */
@media (min-width: 769px) {
	.qb-checkout__grid { grid-template-columns: minmax(0, 1fr) 460px !important; }

	.qb-checkout .woocommerce-billing-fields__field-wrapper,
	.qb-checkout .woocommerce-shipping-fields__field-wrapper,
	.qb-checkout .woocommerce-additional-fields__field-wrapper {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 18px;
	}
	/* default: each field spans the full row ... */
	.qb-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
	.qb-checkout .woocommerce-shipping-fields__field-wrapper > .form-row,
	.qb-checkout .woocommerce-additional-fields__field-wrapper > .form-row {
		grid-column: 1 / -1;
		width: auto !important;
		float: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	/* ... except these, which pair up two-per-row */
	.qb-checkout #billing_first_name_field,
	.qb-checkout #billing_last_name_field,
	.qb-checkout #billing_postcode_field,
	.qb-checkout #billing_phone_field,
	.qb-checkout #shipping_first_name_field,
	.qb-checkout #shipping_last_name_field,
	.qb-checkout #shipping_postcode_field,
	.qb-checkout #shipping_phone_field {
		grid-column: span 1;
	}

	/* fields must fill their grid cell (Bridge forces a narrow width) */
	.qb-checkout .form-row .input-text,
	.qb-checkout .form-row select,
	.qb-checkout .form-row .select2-container {
		width: 100% !important;
		box-sizing: border-box;
	}
}

/* ---- Tone the loud magenta info/message bars (Bridge styles these) -- */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message {
	background: var(--qb-muted) !important;
	color: var(--qb-dark) !important;
	border-top: 3px solid var(--qb-accent) !important;
	border-radius: 6px;
	box-shadow: none !important;
}
.woocommerce-checkout .woocommerce-info::before,
.woocommerce-checkout .woocommerce-message::before {
	color: var(--qb-accent) !important;
}
.woocommerce-checkout .woocommerce-info a,
.woocommerce-checkout .woocommerce-message a {
	color: var(--qb-accent) !important;
}

/* ---- Give the SPEEDY picker real room in the summary card ----------- */
.qb-checkout .woo-bg--speedy-delivery,
.qb-checkout .woo-bg-additional-fields,
.qb-checkout .woo-bg-multiselect,
.qb-checkout .woo-bg--speedy-delivery .multiselect,
.qb-checkout .woo-bg-multiselect--additional-field {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

/* ---- Align the two column headings on the same baseline ------------- */
.qb-checkout__main > *:first-child,
.qb-checkout__aside > *:first-child { margin-top: 0; padding-top: 0; }
.qb-checkout #customer_details,
.qb-checkout #customer_details .col-1,
.qb-checkout .woocommerce-billing-fields { margin-top: 0; padding-top: 0; }
.qb-checkout #customer_details .woocommerce-billing-fields > h3,
.qb-checkout #order_review_heading {
	margin: 0 0 18px !important;
	padding-top: 0;
	font-size: 22px;
	line-height: 1.3;
	color: var(--qb-indigo);
	font-weight: 700;
}

/* ---- Selects: native + select2 styled to match the inputs ----------- */
.qb-checkout select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	font: inherit;
	color: var(--qb-dark);
	background-color: #fff;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%234c31af' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px;
	padding-right: 38px !important;
}
.qb-checkout .select2-container { width: 100% !important; }
.qb-checkout .select2-container--default .select2-selection--single {
	height: 46px;
	border: 1px solid var(--qb-border);
	border-radius: 6px;
	background: #fff;
}
.qb-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 46px;
	padding-left: 14px;
	color: var(--qb-dark);
	font: inherit;
}
.qb-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 44px;
	right: 8px;
}
/* select2 dropdown is appended to <body>, so style it unscoped */
.select2-dropdown { border-color: var(--qb-border); }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
	background: var(--qb-accent) !important;
	color: #fff !important;
}

/* ---- Order summary table: full width + Image-#4 style rows ---------- */
.qb-checkout .woocommerce-checkout-review-order-table {
	width: 100% !important;
	table-layout: auto;
	border-collapse: collapse;
}
.qb-checkout .woocommerce-checkout-review-order-table thead { display: none; }
.qb-checkout .woocommerce-checkout-review-order-table td.product-name { width: 100%; }
/* Bridge centres shop_table cells — force the summary to read left/right */
.qb-checkout .woocommerce-checkout-review-order-table td.product-name,
.qb-checkout .woocommerce-checkout-review-order-table tfoot th,
.qb-checkout .woocommerce-checkout-review-order-table .woocommerce-shipping-methods,
.qb-checkout .woocommerce-checkout-review-order-table tbody th { text-align: left !important; }
.qb-checkout .woocommerce-checkout-review-order-table td.product-total,
.qb-checkout .woocommerce-checkout-review-order-table tfoot td { text-align: right !important; }
.qb-checkout .qb-line { display: flex; align-items: center; gap: 12px; text-align: left; }
.qb-checkout .qb-line__thumb img {
	width: 54px;
	height: 54px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
	border: 1px solid var(--qb-border);
	background: #f7f6fb;
}
.qb-checkout .qb-line__info { display: flex; flex-direction: column; gap: 2px; }
.qb-checkout .qb-line__name { font-weight: 600; color: var(--qb-dark); line-height: 1.3; }
.qb-checkout .qb-line .product-quantity { color: #767687; font-weight: 400; }
.qb-checkout .woocommerce-checkout-review-order-table td.product-total {
	text-align: right;
	white-space: nowrap;
	font-weight: 600;
	vertical-align: top;
}
.qb-checkout .woocommerce-checkout-review-order-table tfoot th {
	text-align: left;
	font-weight: 500;
	color: var(--qb-dark);
}
.qb-checkout .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
.qb-checkout .woocommerce-checkout-review-order-table .order-total th,
.qb-checkout .woocommerce-checkout-review-order-table .order-total td {
	font-size: 18px;
	font-weight: 700;
	color: var(--qb-indigo);
}

/* ---- Floating labels for the address fields ------------------------ */
/* Bridge hides the <label> and reserves odd top padding for an overlay
   that never appears. Turn the label into a Material-style floating label:
   vertically centred when empty, floats above the border when focused or
   filled. The native placeholder is hidden so only the label shows. */
.qb-checkout #customer_details .form-row {
	position: relative;
	padding-top: 4px;
}
.qb-checkout #customer_details .form-row > label:not(.screen-reader-text) {
	display: block !important;
	position: absolute;
	top: 50%;
	left: 12px;
	transform: translateY(-50%);
	margin: 0;
	padding: 0 5px;
	max-width: calc(100% - 24px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	background: #fff;
	color: #767687;
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	pointer-events: none;
	transition: top .15s ease, font-size .15s ease, color .15s ease;
	z-index: 2;
}
/* normalise the input box (kill Bridge's 25px top padding) */
.qb-checkout #customer_details .form-row .input-text,
.qb-checkout #customer_details .form-row textarea {
	height: auto;
	padding: 16px 15px !important;
	line-height: 1.3 !important;
}
.qb-checkout #customer_details .form-row textarea { min-height: 90px; }
/* hide the native placeholder — the floating label replaces it (but keep
   it for fields whose only label is screen-reader-text, e.g. address_2) */
.qb-checkout #customer_details .form-row:not(:has(label.screen-reader-text)) .input-text::placeholder,
.qb-checkout #customer_details .form-row:not(:has(label.screen-reader-text)) textarea::placeholder { color: transparent; }
/* float the label up when the field is focused or filled. Filled state is
   driven by a child-theme script (.qb-filled) rather than :placeholder-shown,
   which is unreliable here because Bridge's JS rewrites placeholders. */
.qb-checkout #customer_details .form-row.qb-filled > label:not(.screen-reader-text),
.qb-checkout #customer_details .form-row:has(select) > label:not(.screen-reader-text),
.qb-checkout #customer_details .form-row:focus-within > label:not(.screen-reader-text) {
	top: 4px;
	font-size: 12px;
	color: var(--qb-indigo);
	transform: translateY(-50%);
}
/* the company checkbox / "ship to different" rows aren't text fields —
   keep their labels in normal flow */
.qb-checkout #customer_details .form-row:has(input[type="checkbox"]) > label {
	position: static;
	transform: none;
	background: none;
	pointer-events: auto;
}

/* ===================================================================
   what-to-fix.md round
   =================================================================== */

/* Item 4 — place-order button: Bridge forces height:32px / line-height:35px
   which clips the label. Restore a real button box. */
.qb-checkout #place_order {
	height: auto !important;
	min-height: 54px;
	line-height: 1.3 !important;
	font-size: 15px !important;
	color: #fff !important;
	background-color: var(--qb-dark) !important;
	background-image: none !important;
	border: none !important;
	opacity: 1 !important;
	text-shadow: none !important;
	overflow: visible !important;
}
.qb-checkout #place_order:hover {
	background-color: var(--qb-accent) !important;
}

/* Item 2 — company / invoice fields: two per row (2 cols x 3 rows) */
.qb-checkout #woo_bg_eu_vat_number_field,
.qb-checkout #billing_company_field,
.qb-checkout #woo-bg-billing-company-mol_field,
.qb-checkout #woo-bg-billing-company-eik_field,
.qb-checkout #woo-bg-billing-company-settlement_field,
.qb-checkout #woo-bg-billing-company-address_field,
.qb-checkout #shipping_company_field {
	grid-column: span 1 !important;
}

/* Item 6 — address field that SPEEDY fills becomes readonly: show it disabled */
.qb-checkout .form-row .input-text[readonly],
.qb-checkout .form-row .input-text:disabled {
	background: #efeff3;
	color: #9a9aa5;
	cursor: not-allowed;
}
.qb-checkout .form-row:has(.input-text[readonly]) > label:not(.screen-reader-text) {
	color: #9a9aa5;
}

/* Item 5 — payment box like image-4: light-pink fill + magenta border */
.qb-checkout #payment {
	background: rgba(240, 56, 255, 0.05);
	border: 2px solid var(--qb-accent);
	border-radius: 10px;
}
.qb-checkout #payment .payment_box {
	background: #fff;
	border-radius: 8px;
}
.qb-checkout #payment .payment_box::before { display: none; }

/* Item 1 — selects rendered natively (state's select2 is destroyed in JS)
   so country + state look identical. Both use the chevron styling above. */
.qb-checkout select.state_select,
.qb-checkout select.country_to_state {
	display: block !important;
}

/* Item 3/5 — Доставка section in the left column, styled like payment.
   (Heading type scale is set alongside the payment heading, further up.) */
.qb-checkout .qb-checkout__shipping { margin-top: 30px; }
.qb-checkout #qb-shipping-target {
	background: rgba(240, 56, 255, 0.05);
	border: 2px solid var(--qb-accent);
	border-radius: 10px;
	padding: 14px 18px;
}
.qb-checkout #qb-shipping-target ul#shipping_method {
	list-style: none;
	margin: 0;
	padding: 0;
}
.qb-checkout #qb-shipping-target ul#shipping_method li {
	padding: 12px 0;
	margin: 0;
	border: none;
	background: none;
}
.qb-checkout #qb-shipping-target ul#shipping_method li + li {
	border-top: 1px solid rgba(240, 56, 255, 0.2);
}
.qb-checkout #qb-shipping-target ul#shipping_method label { font-weight: 600; }
/* SPEEDY picker fills the roomy left column */
.qb-checkout #qb-shipping-target .woo-bg--speedy-delivery,
.qb-checkout #qb-shipping-target .woo-bg-additional-fields,
.qb-checkout #qb-shipping-target .woo-bg-multiselect,
.qb-checkout #qb-shipping-target .woo-bg-multiselect .multiselect,
.qb-checkout #qb-shipping-target .woo-bg-multiselect--additional-field {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}
.qb-checkout #qb-shipping-target .woo-bg--speedy-delivery { margin-top: 10px; }
/* dynamic "selected shipping" summary row left in the table */
.qb-checkout .qb-ship-summary { font-weight: 600; }

/* Kill the flicker: never show the methods list inside the table — between an
   AJAX refresh and the JS move it would briefly flash there. (The JS still
   reads it to build the summary; display:none doesn't prevent that.) */
.qb-checkout #order_review ul#shipping_method { display: none !important; }

/* Smooth open animation for the SPEEDY picker fields */
@keyframes qbPickerIn {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}
.qb-checkout #qb-shipping-target .woo-bg--speedy-delivery,
.qb-checkout #qb-shipping-target .woo-bg-additional-fields {
	animation: qbPickerIn .22s ease;
}

/* ===================================================================
   what-to-fix.md round 2 (items 7-14)
   =================================================================== */

/* Items 7 & 8 — right-angle design: remove rounded corners everywhere */
.qb-checkout .input-text,
.qb-checkout select,
.qb-checkout textarea,
.qb-checkout .select2-container--default .select2-selection--single,
.qb-checkout #order_review,
.qb-checkout #payment,
.qb-checkout #payment .payment_box,
.qb-checkout #qb-shipping-target,
.qb-checkout .woo-bg-multiselect .multiselect__tags,
.qb-checkout #place_order,
.qb-checkout .qb-line__thumb img,
.woocommerce-checkout .woocommerce-form-login,
.woocommerce-checkout .checkout_coupon,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message {
	border-radius: 0 !important;
}

/* Item 12 — the single 'Доставка | price' row */
.qb-checkout .woocommerce-checkout-review-order-table td.qb-ship-price {
	text-align: right !important;
	white-space: nowrap;
	font-weight: 600;
}

/* Item 13 — order-summary prices on one line; un-bold the 'incl. VAT' note */
.qb-checkout .woocommerce-checkout-review-order-table td.product-total,
.qb-checkout .woocommerce-checkout-review-order-table tfoot td {
	white-space: nowrap;
}
.qb-checkout .woocommerce-checkout-review-order-table small.includes_tax,
.qb-checkout .woocommerce-checkout-review-order-table .includes_tax {
	display: block;
	font-weight: 400 !important;
	font-size: 12px;
	white-space: nowrap;
}

/* Item 9 — login / coupon bars (image-5): neutral fill, magenta accent on the
   top edge only, no side or bottom border, right angles. */
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	border: 0 !important;
	border-top: 2px solid var(--qb-accent) !important;
	border-radius: 0 !important;
	background: var(--qb-muted) !important;
	align-items: center;
	gap: 16px;
}

/* Item 11 — payment + buy-now area redesign (image-7) */
/* The pink box wraps ONLY the payment methods; the rest sits outside it. */
.qb-checkout #payment {
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	/* Bridge ships margin: 50px 0 70px on #payment, which left a gulf between the
	   "Заплащане" heading and the methods box. The section spacing is owned by
	   .qb-checkout__payment instead. */
	margin: 0 !important;
}
.qb-checkout #payment .wc_payment_methods {
	list-style: none;
	margin: 0 0 6px;
	padding: 18px 22px;
	background: rgba( 240, 56, 255, 0.05 );
	border: 2px solid var( --qb-accent );
}
/* The magenta box is the only frame in the design — drop Bridge's grey outline
   around each gateway row, which read as a second nested box. */
.qb-checkout #payment .wc_payment_methods > li {
	border: 0 !important;
	background: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
.qb-checkout #payment .wc_payment_methods .payment_box {
	background: transparent;
	/* align the gateway description with its title (image-7) */
	padding-left: 0 !important;
}
.qb-checkout #payment .wc_payment_methods .payment_box::before { display: none; }

/* implicit-consent terms text + divider; hide the validation checkbox */
.qb-checkout .qb-hidden-terms { position: absolute !important; left: -9999px !important; opacity: 0; }
.qb-checkout .qb-terms-text {
	margin: 0;
	padding: 20px 0;
	border-top: 1px solid var( --qb-border );
	font-size: 14px;
	color: var( --qb-dark );
}
.qb-checkout .qb-terms-text a { color: var( --qb-accent ); text-decoration: underline; }

/* footer actions row: back-to-cart link + place-order button */
.qb-checkout #payment .place-order { margin: 0; padding: 0; }
.qb-checkout .qb-checkout__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 6px;
}
.qb-checkout .qb-back-to-cart {
	color: var( --qb-dark );
	text-decoration: none;
	font-weight: 500;
}
.qb-checkout .qb-back-to-cart:hover { color: var( --qb-accent ); }
.qb-checkout .qb-checkout__actions #place_order {
	width: auto !important;
	min-width: 240px;
	margin: 0 !important;
}

/* notes toggle moved into the payment area (image-7) */
.qb-checkout #qb-notes-slot .woocommerce-additional-fields h3 { display: none; }
.qb-checkout #qb-notes-slot .woocommerce-additional-fields { margin: 0; }
.qb-checkout #qb-notes-slot .qb-notes-toggle {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 18px 0 0;
	cursor: pointer;
	font-weight: 400;
	font-size: 16px;
}
/* square, right-angle box like the reference — Bridge ships no checkbox style */
.qb-checkout #qb-notes-slot .qb-notes-toggle input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 26px;
	height: 26px;
	margin: 0;
	flex: 0 0 26px;
	border: 1px solid var( --qb-border );
	border-radius: 0;
	background: #fff;
	cursor: pointer;
	position: relative;
	transition: border-color .15s ease;
}
.qb-checkout #qb-notes-slot .qb-notes-toggle input[type="checkbox"]:hover { border-color: var( --qb-accent ); }
.qb-checkout #qb-notes-slot .qb-notes-toggle input[type="checkbox"]:checked {
	border-color: var( --qb-accent );
	background: var( --qb-accent );
}
.qb-checkout #qb-notes-slot .qb-notes-toggle input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 3px;
	width: 7px;
	height: 13px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate( 45deg );
}
.qb-checkout #qb-notes-slot .woocommerce-additional-fields__field-wrapper { margin-top: 14px; }
.qb-checkout #qb-notes-slot .woocommerce-additional-fields__field-wrapper .form-row { margin-bottom: 0; }

/* Item 10 — button hover: stacked offset outlines (image-6).
   Geometry copied from the site's own rule so checkout buttons animate exactly
   like every other button on the site. That rule lives in the Qode theme
   options custom CSS (Bridge → Theme Options), not in any stylesheet file:
       .qode-btn.qode-btn-solid:before/:after { top:2px; left:0; width:100%;
         height:100%; border:1px solid #000; opacity:0;
         transition:.3s cubic-bezier(.17,.54,0,1.01) }
       :hover:before { transform: translate3d(6px,4px,0) }
       :hover:after  { transform: translate3d(11px,9px,0); transition-delay:.05s }
   Keep the two in sync if the theme options are ever edited. */
.qb-checkout #place_order,
.qb-checkout .checkout_coupon .button,
.qb-checkout .woocommerce-form-login .button,
.woocommerce-checkout .checkout_coupon .button,
.woocommerce-checkout .woocommerce-form-login .button {
	position: relative;
	z-index: 0;
	overflow: visible !important;
	transition: color .15s ease-out, background-color .15s ease-out, border-color .15s ease-out;
}
.qb-checkout #place_order::before,
.qb-checkout #place_order::after,
.woocommerce-checkout .checkout_coupon .button::before,
.woocommerce-checkout .checkout_coupon .button::after,
.woocommerce-checkout .woocommerce-form-login .button::before,
.woocommerce-checkout .woocommerce-form-login .button::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 100%;
	height: 100%;
	border: 1px solid var( --qb-dark );
	background: transparent;
	opacity: 0;
	z-index: -1;
	pointer-events: none;
	transition: .3s cubic-bezier( .17, .54, 0, 1.01 );
}
.qb-checkout #place_order:hover::before,
.qb-checkout #place_order:hover::after,
.woocommerce-checkout .checkout_coupon .button:hover::before,
.woocommerce-checkout .checkout_coupon .button:hover::after,
.woocommerce-checkout .woocommerce-form-login .button:hover::before,
.woocommerce-checkout .woocommerce-form-login .button:hover::after {
	opacity: 1;
	transition: .3s cubic-bezier( 0, 1.42, .11, 1.18 );
}
.qb-checkout #place_order:hover::before,
.woocommerce-checkout .checkout_coupon .button:hover::before,
.woocommerce-checkout .woocommerce-form-login .button:hover::before {
	transform: translate3d( 6px, 4px, 0 );
}
.qb-checkout #place_order:hover::after,
.woocommerce-checkout .checkout_coupon .button:hover::after,
.woocommerce-checkout .woocommerce-form-login .button:hover::after {
	transform: translate3d( 11px, 9px, 0 );
	transition-delay: .05s;
}
.qb-checkout #place_order:hover { background-color: var( --qb-accent ) !important; }
/* don't let the actions row clip the offset outlines */
.qb-checkout .qb-checkout__actions { overflow: visible; }

/* Item 14 — validation errors must not break the layout */
/* Top error list -> a proper right-angle notice box */
.woocommerce-checkout .woocommerce-NoticeGroup .woocommerce-error {
	list-style: none;
	margin: 0 0 28px;
	padding: 16px 20px;
	background: #fdecef;
	border: 1px solid #e0143c;
	color: #8a1030;
}
.woocommerce-checkout .woocommerce-NoticeGroup .woocommerce-error li { margin: 4px 0; }
.woocommerce-checkout .woocommerce-NoticeGroup .woocommerce-error a { color: #8a1030; }

/* WooCommerce appends an inline <p class="checkout-inline-error-message"> which,
   being an invalid <p>-in-<p>, the browser hoists to a sibling — i.e. a stray
   item in the field grid. Make it span the full row and style it. */
.qb-checkout .woocommerce-billing-fields__field-wrapper > .checkout-inline-error-message,
.qb-checkout .woocommerce-shipping-fields__field-wrapper > .checkout-inline-error-message,
.qb-checkout .checkout-inline-error-message {
	grid-column: 1 / -1;
	position: static !important;
	margin: 6px 0 4px !important;
	padding: 0 !important;
	background: none !important;
	color: #c0143c;
	font-size: 12px;
	line-height: 1.3;
}
/* Float the label on invalid (empty) fields so it clears the input + message,
   and tint the field border red. */
.qb-checkout #customer_details .form-row.woocommerce-invalid > label:not(.screen-reader-text) {
	top: 4px;
	font-size: 12px;
	transform: translateY(-50%);
	color: #c0143c;
}
.qb-checkout #customer_details .form-row.woocommerce-invalid .input-text,
.qb-checkout #customer_details .form-row.woocommerce-invalid select {
	border-color: #e0143c;
}

/* ===================================================================
   what-to-fix.md round 3 (verification pass, 2026-09-14)
   =================================================================== */

/* Item 5/11 — Bridge sets `ul.payment_methods { border-bottom: 1px solid #ddd }`
   which replaced the magenta bottom edge of the methods box. */
.qb-checkout #payment ul.wc_payment_methods {
	border: 2px solid var( --qb-accent ) !important;
	padding: 22px 26px !important;
}

/* Item 11 — gateway row laid out like image-7: title top-left, description
   directly under it, card logos on the right spanning both lines. The logos
   <img> lives inside the <label>, so the label is flattened (display:contents)
   and the li becomes the grid; the label's text node is then the first grid
   item, the image the second, and .payment_box the third. */
.qb-checkout #payment ul.wc_payment_methods > li.wc_payment_method {
	display: grid !important;
	grid-template-columns: minmax( 0, 1fr ) auto;
	grid-template-rows: auto auto;
	column-gap: 24px;
	row-gap: 14px;
	align-items: start;
}
.qb-checkout #payment ul.wc_payment_methods > li.wc_payment_method > label {
	display: contents;
	font-size: 16px;
	line-height: 1.5;
	color: var( --qb-dark );
	font-weight: 400;
}
.qb-checkout #payment ul.wc_payment_methods > li.wc_payment_method > label img {
	grid-column: 2;
	grid-row: 1 / span 2;
	justify-self: end;
	width: auto;
	max-width: 380px !important;
	height: auto;
	margin: 0 !important;
}
.qb-checkout #payment ul.wc_payment_methods > li.wc_payment_method > .payment_box {
	grid-column: 1;
	grid-row: 2;
	padding: 0 !important;
	margin: 0 !important;
}
/* (beats Bridge's inline `.woocommerce #payment ul.payment_methods li .payment_box p
   { font-size: 13px !important }` on specificity) */
.qb-checkout #payment ul.wc_payment_methods li.wc_payment_method .payment_box p {
	margin: 0;
	font-size: 16px !important;
	line-height: 1.5 !important;
	color: var( --qb-dark );
}
/* single gateway: the radio is hidden; keep it hidden for several too, the
   design has no radio buttons in the payment box */
.qb-checkout #payment ul.wc_payment_methods input.input-radio { display: none; }

/* Item 3/5 — shipping rows: the plugin's
   `ul#shipping_method li:not(.elementor-widget-woocommerce-cart #shipping_method li)
   { padding: 0 !important }` outranks the earlier rule, so the rows collapsed onto
   each other. Three ids beat it. */
#qb-shipping #qb-shipping-target ul#shipping_method li {
	padding: 12px 0 !important;
}
.qb-checkout #qb-shipping-target ul#shipping_method li label {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 0 8px;
}

/* Item 6 — the SPEEDY-locked street field is disabled by the plugin and drawn
   grey; the floating label must not sit on a white chip inside it. Keep the
   label transparent while it is inside the field, and when floated let it cut
   the border with a white top half and a field-coloured bottom half. */
.qb-checkout #customer_details .form-row > label:not(.screen-reader-text) {
	background: transparent;
}
.qb-checkout #customer_details .form-row.qb-filled > label:not(.screen-reader-text),
.qb-checkout #customer_details .form-row:has(select) > label:not(.screen-reader-text),
.qb-checkout #customer_details .form-row:focus-within > label:not(.screen-reader-text),
.qb-checkout #customer_details .form-row.woocommerce-invalid > label:not(.screen-reader-text) {
	background: linear-gradient( to bottom, #fff 50%, #fff 50% );
}
.qb-checkout #customer_details .form-row:has(.input-text:disabled) > label:not(.screen-reader-text),
.qb-checkout #customer_details .form-row:has(.input-text[readonly]) > label:not(.screen-reader-text) {
	color: #9a9aa5;
}
.qb-checkout #customer_details .form-row.qb-filled:has(.input-text:disabled) > label:not(.screen-reader-text),
.qb-checkout #customer_details .form-row.qb-filled:has(.input-text[readonly]) > label:not(.screen-reader-text),
.qb-checkout #customer_details .form-row.woocommerce-invalid:has(.input-text:disabled) > label:not(.screen-reader-text) {
	background: linear-gradient( to bottom, #fff 50%, #efeff3 50% );
}
.qb-checkout .form-row .input-text:disabled { opacity: 1; }

/* "Изпращане до друг адрес?" inherits Bridge's h3 tracking (-2px) and reads as
   a squashed bold line next to the plain company checkbox. Match the two. */
.qb-checkout #ship-to-different-address,
.qb-checkout #ship-to-different-address label {
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0;
	color: var( --qb-dark );
}

/* ---- Mobile: single column, summary below form --------------------- */
@media (max-width: 768px) {
	.woocommerce-checkout #order_review { margin-top: 24px; }

	/* Bridge floats the first/last-name rows at 47% and nothing clears them,
	   so the country row slid up beside them and its floating label landed
	   above the name fields. One-column grid, every row full width. */
	.qb-checkout .woocommerce-billing-fields__field-wrapper,
	.qb-checkout .woocommerce-shipping-fields__field-wrapper,
	.qb-checkout .woocommerce-additional-fields__field-wrapper {
		display: grid;
		grid-template-columns: 1fr;
	}
	.qb-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
	.qb-checkout .woocommerce-shipping-fields__field-wrapper > .form-row,
	.qb-checkout .woocommerce-additional-fields__field-wrapper > .form-row {
		grid-column: 1 / -1 !important;
		width: auto !important;
		float: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.qb-checkout .form-row .input-text,
	.qb-checkout .form-row select {
		width: 100% !important;
		box-sizing: border-box;
	}

	/* payment box: title + description, logos on their own line below */
	.qb-checkout #payment ul.wc_payment_methods > li.wc_payment_method {
		grid-template-columns: minmax( 0, 1fr );
		row-gap: 10px;
	}
	.qb-checkout #payment ul.wc_payment_methods > li.wc_payment_method > label img {
		grid-column: 1;
		grid-row: 3;
		justify-self: start;
		max-width: 100% !important;
	}
	.qb-checkout #payment ul.wc_payment_methods { padding: 18px !important; }

	/* footer actions: full-width button, back link beneath it */
	.qb-checkout .qb-checkout__actions {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 16px;
	}
	.qb-checkout .qb-checkout__actions #place_order { width: 100% !important; min-width: 0; text-align: center !important; }
	.qb-checkout .qb-back-to-cart { text-align: center; }
	.qb-checkout .qb-checkout__aside { margin-top: 40px; }
}

