button.btn-delete-addon {
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
    font-size: 11px;
    font-weight: normal;
}
.addon-text {
    margin-left: 2px;
}

.product-addons-wrapper {
	flex: -webkit-fill-available;
}

.product_addons li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.product_addons li input[type="checkbox"] {
	margin-right: 10px;
}

.product_addons {
	padding: 0;
}

.product_addons .addon-card {
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 8px;
	margin-bottom: 12px;
	transition: box-shadow 0.2s;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	padding: 0;
}

.product_addons .addon-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	background: #f5faff;
}

.addon-card-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 12px;
}

.addon-img img {
	max-width: 60px;
	max-height: 60px;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.addon-infos {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.addon-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	min-width: 48px;
}

#product-addons .addon-preview-btn {
	border: none;
	border-radius: 5px;
	padding: 8px 10px;
	cursor: pointer;
	font-size: 1em;
	margin: 0 0 4px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.addon-preview-btn:hover {
	background: #e0eaff;
}

.addon-checkbox {
	position: relative;
	display: inline-block;
	width: 28px;
	height: 28px;
}

.addon-checkbox input[type="checkbox"] {
	opacity: 0;
	width: 28px;
	height: 28px;
	margin: 0;
	cursor: pointer;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
}

.addon-checkbox .custom-checkbox {
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	background: #fff;
	border: 2px solid #2a8c2a;
	border-radius: 6px;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.addon-checkbox input[type="checkbox"]:checked+.custom-checkbox {
	background: #2a8c2a;
	border-color: #2a8c2a;
}

.addon-checkbox .custom-checkbox:after {
	content: "";
	position: absolute;
	display: none;
}

.addon-checkbox input[type="checkbox"]:checked+.custom-checkbox:after {
	display: block;
	left: 8px;
	top: 4px;
	width: 7px;
	height: 14px;
	border: solid #fff;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
	content: "";
	position: absolute;
}

.addon-checkbox input[type="checkbox"]:focus+.custom-checkbox {
	box-shadow: 0 0 0 2px #2a8c2a55;
}

.addon-card-clickable {
	cursor: pointer;
}

.addon-card-clickable:hover {
	background: #eaf6ff;
}

#addon-preview-content {
	max-height: 60vh;
	overflow-y: auto;
}

#addon-preview-content h3 {
	margin: 0 0 18px 0;
	padding-top: 8px;
	text-align: center;
	font-size: 1.25em;
	font-weight: bold;
	word-break: break-word;
	max-width: 75%;
	margin-left: auto;
	margin-right: auto;
}

#addon-preview-modal .modal-inner {
	position: relative;
	padding-top: 32px;
	/* espace pour le bouton de fermeture */
}

#addon-preview-close {
	z-index: 2;
}

#addon-preview-footer {
	position: sticky;
	color: #fff;
	bottom: 0;
	left: 0;
	width: 100%;
	background: #fff;
	padding: 18px 0 0 0;
	display: flex;
	justify-content: center;
	box-shadow: 0 -2px 12px -8px #0002;
	z-index: 1;
}

.addon-preview-link-btn {
	display: inline-block;
	padding: 10px 22px;
	background: #2a8c2a;
	color: #fff !important;
	border-radius: 6px;
	text-decoration: none;
	font-weight: bold;
	font-size: 1em;
	transition: background 0.2s;
}

.addon-preview-link-btn:hover {
	background: #217821;
}