.ezb-bundle-builder {
	margin: 24px 0;
	max-width: 640px;
}

.ezb-admin-warning {
	margin: 16px 0;
	padding: 10px 14px;
	background: #fff3cd;
	border: 1px solid #ffe69c;
	border-radius: 4px;
	color: #664d03;
}

/* Cards grid */
.ezb-cards-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 20px;
}

.ezb-card {
	position: relative;
	width: 130px;
	min-height: 150px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	background: #f7f7f5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 10px;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ezb-card:hover {
	border-color: #8a9a8a;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ezb-card-plus {
	font-size: 32px;
	line-height: 1;
	color: #aaa;
	margin-bottom: 8px;
}

.ezb-card-label {
	font-size: 12px;
	color: #555;
}

.ezb-card-selected {
	background: #fff;
	border-color: #3c6e47;
}

.ezb-card-thumb {
	width: 64px;
	height: 64px;
	margin-bottom: 8px;
	overflow: hidden;
	border-radius: 4px;
}

.ezb-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ezb-card-selected .ezb-card-label {
	color: #222;
	font-weight: 500;
}

.ezb-card-change {
	margin-top: 4px;
	font-size: 11px;
	color: #3c6e47;
	text-decoration: underline;
}

.ezb-card-remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 20px;
	height: 20px;
	line-height: 18px;
	border: none;
	border-radius: 50%;
	background: #eee;
	color: #666;
	font-size: 14px;
	cursor: pointer;
	padding: 0;
}

.ezb-card-remove:hover {
	background: #e2b4b4;
	color: #7a1f1f;
}

/* Summary list */
.ezb-summary-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	border-top: 1px solid #e5e5e5;
}

.ezb-summary-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #e5e5e5;
	font-size: 14px;
}

.ezb-summary-name {
	flex: 1;
}

.ezb-summary-qty {
	color: #888;
	width: 20px;
	text-align: center;
}

.ezb-summary-price {
	white-space: nowrap;
	text-align: right;
}

.ezb-summary-price del {
	color: #999;
	margin-right: 6px;
}

.ezb-summary-price ins {
	text-decoration: none;
	font-weight: 600;
}

/* Total box */
.ezb-total-box {
	background: #f4f4f2;
	border-radius: 6px;
	padding: 14px 16px;
	margin-bottom: 16px;
	position: relative;
}

.ezb-total-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.ezb-total-label {
	font-weight: 600;
}

.ezb-total-original {
	color: #999;
}

.ezb-total-final {
	font-size: 20px;
	font-weight: 700;
	color: #1f3d24;
}

.ezb-ribbon {
	background: #c0392b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 3px;
	letter-spacing: 0.02em;
}

.ezb-savings {
	margin-top: 6px;
	display: inline-block;
	background: #dcf0e0;
	color: #1f5d2c;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 3px;
}

/* Validation message */
.ezb-validation-msg {
	font-size: 13px;
	margin: 0 0 12px;
}

.ezb-validation-msg.ezb-invalid {
	color: #a15c00;
}

.ezb-validation-msg.ezb-valid {
	color: #1f5d2c;
}

/* "Dodaj proizvod" kartica (način: iz kategorije) */
.ezb-card-add {
	border-style: dashed;
}

/* Redak s količinom u sažetku (oba načina - ručni i iz kategorije) */
.ezb-summary-list-qty li {
	position: relative;
	padding-right: 30px;
}

.ezb-summary-qty-control {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ezb-qty-btn {
	width: 22px;
	height: 22px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	cursor: pointer;
	line-height: 1;
	font-size: 14px;
	color: #444;
}

.ezb-qty-btn:hover {
	border-color: #3c6e47;
	color: #3c6e47;
}

.ezb-qty-value {
	min-width: 16px;
	text-align: center;
	font-size: 13px;
}

.ezb-summary-remove {
	position: absolute;
	right: 0;
	top: 10px;
}

/* Pretraga unutar popupa (način: iz kategorije) */
.ezb-modal-search {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.ezb-modal-card-added {
	margin-top: 4px;
	font-size: 11px;
	font-weight: 600;
	color: #1f5d2c;
}

.ezb-modal-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: #888;
	padding: 20px 0;
}

/* Purchase row */
.ezb-purchase-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ezb-purchase-row .quantity input {
	width: 60px;
	height: 42px;
	text-align: center;
}

.ezb-add-to-cart:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Modal */
.ezb-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.ezb-modal.ezb-modal-open {
	display: block;
}

.ezb-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.ezb-modal-dialog {
	position: relative;
	max-width: 720px;
	margin: 5vh auto;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 6px;
	padding: 20px 24px 24px;
}

.ezb-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.ezb-modal-header h3 {
	margin: 0;
	font-size: 18px;
	text-transform: uppercase;
}

.ezb-modal-close {
	border: none;
	background: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.ezb-modal-filters {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.ezb-modal-filter {
	padding: 6px 10px;
	border-radius: 4px;
	border: 1px solid #ccc;
}

.ezb-modal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 16px;
}

.ezb-modal-card {
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 10px;
	text-align: center;
	cursor: pointer;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.ezb-modal-card:hover {
	border-color: #3c6e47;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ezb-modal-card-thumb img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 8px;
}

.ezb-modal-card-label {
	font-size: 13px;
	margin-bottom: 4px;
}

.ezb-modal-card-price {
	font-size: 13px;
	font-weight: 600;
}

.ezb-modal-card-price del {
	color: #999;
	font-weight: 400;
	margin-right: 4px;
}

.ezb-modal-card-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.ezb-modal-card-oos {
	margin-top: 4px;
	font-size: 11px;
	color: #a00;
	text-transform: uppercase;
}

@media (max-width: 480px) {
	.ezb-card {
		width: 100px;
		min-height: 120px;
	}
}
