/* Conseo Offertlista – anpassat för Flatsome men tema-neutralt */

.cql-add-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 1em;
}
.cql-add-wrap .quantity { margin: 0 !important; }
.cql-add-wrap .button { margin: 0 !important; }
.cql-add.cql-added { opacity: .75; }
.cql-add.cql-added::after { content: " ✓"; }

.cql-sheet-link { font-size: .9em; margin: 0 0 1em; }
.cql-sheet-link a::before { content: "↓ "; }

/* Toast */
.cql-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100000;
	max-width: calc(100% - 32px);
	padding: 12px 18px;
	border-radius: 6px;
	background: #1f2328;
	color: #fff;
	font-size: .95em;
	box-shadow: 0 6px 24px rgba(0,0,0,.2);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 16px);
	transition: opacity .2s, transform .2s;
}
.cql-toast.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.cql-toast a { color: #fff; text-decoration: underline; margin-left: 12px; font-weight: 600; }

/* Räknare / länkar */
.cql-link { display: inline-flex; align-items: center; gap: 6px; }
.cql-badge {
	display: inline-block;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	font-size: 12px;
	line-height: 20px;
	text-align: center;
}
.cql-badge { background: var(--primary-color, #446084); color: #fff; }
/* [offertlista_knapp] i headern – ser ut som Flatsomes kundvagn */
.cql-header-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none !important; }
.cql-header-icon { position: relative; display: inline-flex; line-height: 1; }
.cql-header-icon .cql-icon { width: 22px; height: 22px; }
.cql-header-link .cql-badge {
	display: none;
	position: absolute;
	top: -7px;
	right: -9px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	font-size: 11px;
	font-weight: bold;
	line-height: 17px;
}
.cql-header-link.has-items .cql-badge,
.cql-header-link.cql-show-zero .cql-badge { display: inline-block; }
.cql-header-link.cql-icon-only { gap: 0; }
.header .cql-header-link { padding-right: 6px; }

/* Dölj sökfunktionen i headern för utloggade (Flatsome + vanliga teman) */
body.cql-hide-search .header .header-search,
body.cql-hide-search .header .header-search-form,
body.cql-hide-search .header .search-form-wrapper,
body.cql-hide-search .header .searchform-wrapper,
body.cql-hide-search .header .header-search-dropdown,
body.cql-hide-search .header .header-search-lightbox,
body.cql-hide-search #search-lightbox,
body.cql-hide-search .mobile-sidebar .header-search-form,
body.cql-hide-search .mobile-sidebar .searchform-wrapper,
body.cql-hide-search .off-canvas .header-search-form,
body.cql-hide-search .off-canvas .searchform-wrapper,
body.cql-hide-search .site-header .site-search,
body.cql-hide-search .site-header .widget_product_search,
body.cql-hide-search .site-header .woocommerce-product-search { display: none !important; }

.cql-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9990;
	display: none;
	padding: 10px 16px;
	border-radius: 99px;
	background: var(--primary-color, #446084);
	color: #fff !important;
	font-weight: 600;
	box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.cql-float.has-items { display: inline-flex; }
.cql-float .cql-badge { background: #fff; color: var(--primary-color, #446084); }
.cql-float:hover { color: #fff; opacity: .92; }

/* Dölj varukorg i Flatsome-headern */
body.cql-hide-cart .header li.cart-item,
body.cql-hide-cart .header .header-cart-link,
body.cql-hide-cart #cart-popup,
body.cql-hide-cart .off-canvas-cart,
body.cql-hide-cart .sticky-add-to-cart-wrapper .sticky-add-to-cart { display: none !important; }

/* Offertlistesidan */
.cql-table { width: 100%; }
.cql-table td { vertical-align: middle; }
.cql-col-img { width: 90px; }
.cql-col-img img { width: 72px; height: auto; display: block; }
.cql-col-qty { width: 140px; }
.cql-col-qty .quantity { margin: 0; }
.cql-col-remove { width: 44px; text-align: right; }
.cql-sku { font-size: .85em; opacity: .7; margin-top: 2px; }
.cql-remove {
	margin: 0;
	padding: 0;
	width: 32px;
	height: 32px;
	min-height: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: none;
	font-size: 20px;
	line-height: 28px;
	opacity: .5;
	cursor: pointer;
}
.cql-remove:hover { opacity: 1; }

.cql-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.5em 0 2.5em; }
.cql-actions .button { margin: 0; }

.cql-send { border-top: 1px solid rgba(0,0,0,.1); padding-top: 1.5em; max-width: 760px; }
.cql-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.cql-field label { display: block; font-weight: 600; font-size: .9em; }
.cql-field input[type=text], .cql-field input[type=email], .cql-field input[type=tel], .cql-field select, .cql-field textarea { width: 100%; }
.cql-check label { font-weight: normal; }
.cql-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.cql-send-result { margin-top: 1em; }
.cql-send-result.is-error { color: #b20000; }
.cql-send-result.is-success { color: #1a7f37; }
.cql-empty, .cql-success { padding: 2em 0; }
.cql-success p { font-size: 1.15em; }

@media (max-width: 640px) {
	.cql-grid { grid-template-columns: 1fr; }
	.cql-table thead { display: none; }
	.cql-table tr { display: grid; grid-template-columns: 72px 1fr 36px; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
	.cql-table td { display: block; border: 0; padding: 0; width: auto; }
	.cql-col-img { grid-row: 1 / span 2; }
	.cql-col-name { grid-column: 2; }
	.cql-col-qty { grid-column: 2; }
	.cql-col-remove { grid-column: 3; grid-row: 1; }
	.cql-float .cql-float-label { display: none; }
}

/* Ansökan om kundkonto */
.cql-register-form h3 { margin-top: 1.2em; }
.cql-register-form h3:first-of-type { margin-top: 0; }
.cql-reg-field input[aria-invalid="true"] { border-color: #b20000; }
.cql-field-error { display: block; color: #b20000; font-size: .85em; margin-top: 4px; }
.cql-reg-hint { display: block; opacity: .7; margin-top: 4px; }
.cql-reg-help { font-size: .9em; opacity: .8; }
.cql-register .cql-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.cql-register-link { margin-top: 1em; }
.cql-login-required .button { margin: 0; }

/* [offertlista_inloggning] */
.cql-login-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cql-login-box .button { margin: 0; }
.cql-login-box form.login { flex: 1 1 100%; }
