:root {
	--collectico-bud-grad-start: #7B2FF7;
	--collectico-bud-grad-end: #4E7CFF;
	--collectico-bud-font-heading: 'Oswald', 'Arial Narrow', sans-serif;
	--collectico-bud-font-body: 'Roboto', Arial, sans-serif;
}

/* ---------- Knap på produktside (oprindelig størrelse - IKKE en del af
   højde-fixet nedenfor, som kun gælder knapperne inde i selve pop-up'en) ---------- */
.collectico-bud-wrap {
	margin: 14px 0 6px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	font-family: var(--collectico-bud-font-body);
}

.collectico-bud-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(135deg, var(--collectico-bud-grad-start), var(--collectico-bud-grad-end));
	color: #fff !important;
	border: none;
	border-radius: 999px;
	padding: 13px 28px;
	font-family: var(--collectico-bud-font-heading);
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(90, 60, 220, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
	text-decoration: none;
}

.collectico-bud-btn:hover,
.collectico-bud-btn:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(90, 60, 220, 0.36);
	filter: brightness(1.05);
	color: #fff;
}

.collectico-bud-btn:active {
	transform: translateY(0);
}

.collectico-bud-add-lot {
	font-family: var(--collectico-bud-font-body);
	font-size: 13px;
	font-weight: 500;
	color: #5b3cdc;
	text-decoration: none;
	border-bottom: 1px dashed rgba(91, 60, 220, 0.5);
	padding-bottom: 1px;
}

.collectico-bud-add-lot:hover {
	color: #3f2ba8;
}

/* ---------- Overlay + modal ---------- */
.collectico-bud-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 12, 40, 0.55);
	backdrop-filter: blur(3px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
	padding: 20px;
}

.collectico-bud-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.collectico-bud-modal {
	display: none;
	background: #fff;
	border-radius: 20px;
	max-width: 460px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	padding: 28px 26px 24px;
	position: relative;
	box-shadow: 0 24px 60px rgba(20, 12, 40, 0.35);
	transform: translateY(14px) scale(0.98);
	transition: transform 0.22s ease;
	font-family: var(--collectico-bud-font-body);
}

.collectico-bud-overlay.is-open .collectico-bud-modal.is-active {
	display: block;
	transform: translateY(0) scale(1);
}

.collectico-bud-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: #f2eefc;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	color: #5b3cdc;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.collectico-bud-close:hover {
	background: #e6ddfb;
}

.collectico-bud-modal-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	padding-right: 24px;
}

.collectico-bud-modal-thumb {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 12px;
	flex-shrink: 0;
	background: #f4f4f6;
}

.collectico-bud-modal-title {
	margin: 0 0 4px;
	font-family: var(--collectico-bud-font-heading);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #1b1526;
}

.collectico-bud-modal-price {
	margin: 0;
	font-family: var(--collectico-bud-font-body);
	font-size: 13px;
	color: #6b6579;
}

.collectico-bud-field {
	margin-bottom: 14px;
}

.collectico-bud-field label {
	display: block;
	font-family: var(--collectico-bud-font-body);
	font-size: 13px;
	font-weight: 500;
	color: #33283f;
	margin-bottom: 6px;
}

.collectico-bud-field input[type="email"],
.collectico-bud-field input[type="number"],
.collectico-bud-field textarea {
	width: 100%;
	border: 1.5px solid #e3ddef;
	border-radius: 12px;
	padding: 11px 14px;
	font-family: var(--collectico-bud-font-body);
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.collectico-bud-field input:focus,
.collectico-bud-field textarea:focus {
	outline: none;
	border-color: var(--collectico-bud-grad-start);
	box-shadow: 0 0 0 3px rgba(123, 47, 247, 0.12);
}

.collectico-bud-field textarea {
	resize: vertical;
}

.collectico-bud-input-suffix {
	position: relative;
	display: flex;
	align-items: center;
}

.collectico-bud-input-suffix input {
	padding-right: 40px;
}

.collectico-bud-input-suffix span {
	position: absolute;
	right: 14px;
	font-family: var(--collectico-bud-font-body);
	font-size: 13px;
	color: #8b849a;
	font-weight: 600;
}

.collectico-bud-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* Beskedboks under formularen. Farve styres via .is-success / .is-error,
   med !important for at undgå at temaets egne alert/role-styles vinder. */
.collectico-bud-form-msg {
	font-family: var(--collectico-bud-font-body);
	font-size: 13px;
	margin-bottom: 10px;
	min-height: 0;
}

.collectico-bud-form-msg.is-error {
	color: #c0333f !important;
}

.collectico-bud-form-msg.is-success {
	color: #12805c !important;
	font-weight: 600;
}

.collectico-bud-form-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	align-items: center;
	margin-top: 6px;
}

/* Annullér-knappen skal fremstå tydeligt MINDRE og mere tilbagetrukket end
   "Send dit bud"-knappen (den var tidligere for stor / dominerende).
   Denne regel er bevidst isoleret til .collectico-bud-btn-secondary, så den
   IKKE påvirker den store "GIV ET BUD"-knap på selve produktsiden. */
.collectico-bud-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #f2eefc;
	color: #5b3cdc;
	border: none;
	border-radius: 999px;
	padding: 10px 18px;
	font-family: var(--collectico-bud-font-heading);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	cursor: pointer;
	box-sizing: border-box;
	transition: background 0.15s ease;
}

.collectico-bud-btn-secondary:hover {
	background: #e6ddfb;
}

/* "Send dit bud"-knappen inde i pop-up'en - denne regel gælder KUN knapper
   inde i .collectico-bud-form, så den aldrig rammer produktside-knappen. */
.collectico-bud-form .collectico-bud-btn {
	padding: 13px 26px;
	font-size: 14px;
	line-height: 1;
	box-sizing: border-box;
}

.collectico-bud-form .collectico-bud-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

/* ---------- Lot-liste inde i lot-popup ---------- */
.collectico-bud-lot-list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	max-height: 220px;
	overflow-y: auto;
	border: 1px solid #efebf8;
	border-radius: 14px;
}

.collectico-bud-lot-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-bottom: 1px solid #f3f0fa;
}

.collectico-bud-lot-list li:last-child {
	border-bottom: none;
}

.collectico-bud-lot-list img {
	width: 42px;
	height: 42px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
	background: #f4f4f6;
}

.collectico-bud-lot-item-info {
	flex-grow: 1;
	min-width: 0;
}

.collectico-bud-lot-item-name {
	font-family: var(--collectico-bud-font-body);
	font-size: 13.5px;
	font-weight: 600;
	color: #241c30;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.collectico-bud-lot-item-price {
	font-family: var(--collectico-bud-font-body);
	font-size: 12px;
	color: #8b849a;
}

.collectico-bud-lot-remove {
	background: none;
	border: none;
	color: #b3abc4;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
	padding: 4px;
}

.collectico-bud-lot-remove:hover {
	color: #c0333f;
}

.collectico-bud-lot-total {
	font-family: var(--collectico-bud-font-body);
	font-size: 13px;
	color: #6b6579;
	margin: 0 0 16px;
	text-align: right;
}

.collectico-bud-lot-empty {
	font-family: var(--collectico-bud-font-body);
	text-align: center;
	color: #8b849a;
	font-size: 13px;
	padding: 20px 0;
}

/* ---------- Flydende bud-lot bar ----------
   Placeret i venstre side (i stedet for højre), da der ligger en chat-widget
   nederst til højre på sitet i forvejen. */
.collectico-bud-lot-bar {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99998;
	animation: collectico-bud-pop 0.25s ease;
}

@keyframes collectico-bud-pop {
	from { transform: scale(0.85); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.collectico-bud-lot-bar-btn {
	background: linear-gradient(135deg, var(--collectico-bud-grad-start), var(--collectico-bud-grad-end));
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 14px 22px;
	font-family: var(--collectico-bud-font-heading);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	cursor: pointer;
	box-shadow: 0 10px 26px rgba(90, 60, 220, 0.4);
	display: flex;
	align-items: center;
	gap: 8px;
}

.collectico-bud-lot-bar-btn:hover {
	filter: brightness(1.05);
}

@media (max-width: 600px) {
	.collectico-bud-lot-bar {
		left: 16px;
		right: 16px;
		bottom: 16px;
	}
	.collectico-bud-lot-bar-btn {
		width: 100%;
		justify-content: center;
	}
	.collectico-bud-modal {
		border-radius: 18px 18px 0 0;
		max-height: 92vh;
		align-self: flex-end;
	}
	.collectico-bud-overlay {
		align-items: flex-end;
		padding: 0;
	}
}

/* ---------- Toast ---------- */
.collectico-bud-toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	transform: translate(-50%, 12px);
	background: #241c30;
	color: #fff;
	padding: 12px 20px;
	border-radius: 999px;
	font-family: var(--collectico-bud-font-body);
	font-size: 13px;
	font-weight: 600;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 100001;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.collectico-bud-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

/* ---------- Offentlige bud-sider (modbud-svar / accepteret tilbud / lot-tilbud) ---------- */
.collectico-bud-page {
	font-family: var(--collectico-bud-font-body);
	max-width: 680px;
	margin: 0 auto;
	padding: 48px 20px 80px;
	background: linear-gradient(180deg, rgba(123, 47, 247, 0.06) 0%, rgba(78, 124, 255, 0.02) 45%, rgba(255, 255, 255, 0) 100%);
}

.collectico-bud-page-topbar {
	max-width: 620px;
	margin: 0 auto 20px;
}

.collectico-bud-page-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--collectico-bud-font-body);
	font-size: 13px;
	font-weight: 600;
	color: #5b3cdc;
	text-decoration: none;
}

.collectico-bud-page-back:hover {
	color: #3f2ba8;
	text-decoration: underline;
}

.collectico-bud-page-card {
	max-width: 620px;
	margin: 0 auto;
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 16px 48px rgba(20, 12, 40, 0.14);
	padding: 40px 36px;
}

@media (max-width: 600px) {
	.collectico-bud-page-card {
		padding: 28px 22px;
		border-radius: 18px;
	}
}

.collectico-bud-page h1,
.collectico-bud-page h2 {
	font-family: var(--collectico-bud-font-heading);
	font-weight: 600;
	color: #1b1526;
	margin-top: 0;
}

.collectico-bud-page p {
	line-height: 1.6;
}

.collectico-bud-price-row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 18px 0;
}

.collectico-bud-price-old {
	font-family: var(--collectico-bud-font-body);
	text-decoration: line-through;
	color: #a39cae;
	font-size: 18px;
}

.collectico-bud-price-new {
	font-family: var(--collectico-bud-font-heading);
	color: #12805c;
	font-size: 30px;
	font-weight: 600;
}

.collectico-bud-page-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
	align-items: center;
}

.collectico-bud-page-link {
	font-family: var(--collectico-bud-font-body);
	font-size: 13px;
	font-weight: 600;
	color: #5b3cdc;
	text-decoration: none;
}

.collectico-bud-page-link:hover {
	text-decoration: underline;
}

.collectico-bud-admin-comment-box {
	background: #f7f5fc;
	border: 1px solid #e7e2f2;
	border-radius: 12px;
	padding: 14px 16px;
	margin: 16px 0;
	font-size: 14px;
	color: #33283f;
}
