#tile-addons-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 9998;
}

#tile-addons-popup-box {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
	background: #fff;
	border-radius: 8px;
	padding: 28px 28px 24px;
	width: 92%;
	max-width: 680px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

#tile-addons-popup-box h3 {
	margin: 0 0 4px;
	font-size: 1.25em;
}

#tile-addons-popup-box > p {
	margin: 0 0 20px;
	color: #666;
	font-size: 0.9em;
}

/* Cards grid */
.ta-popup-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 14px;
	margin-bottom: 22px;
}

.ta-popup-card {
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	overflow: hidden;
	text-align: center;
	font-size: 0.85em;
}

.ta-popup-card-img {
	background: #f7f7f7;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.ta-popup-include {
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 1;
	width: 18px;
	height: 18px;
	margin: 0;
	cursor: pointer;
	accent-color: #000;
}

/* Dim the contents only — the checkbox stays legible so it can be re-ticked. */
.ta-popup-card--excluded .ta-popup-card-img img,
.ta-popup-card--excluded .ta-popup-card-body {
	opacity: 0.4;
}

.ta-popup-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ta-popup-card-body {
	padding: 10px 8px;
}

.ta-popup-card-label {
	font-weight: 600;
	margin-bottom: 5px;
	font-size: 0.9em;
	color: #333;
}

.ta-popup-product-name {
	display: block;
	color: #555;
	margin-bottom: 5px;
	font-size: 0.85em;
}

.ta-popup-card select {
	width: 100%;
	margin-bottom: 5px;
	font-size: 0.82em;
}

.ta-popup-card-qty {
	color: #888;
	font-size: 0.82em;
}

/* Actions */
.ta-popup-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	border-top: 1px solid #eee;
	padding-top: 18px;
}

#ta-popup-confirm {
	flex: 1;
	background-color: #000 !important;
	color: #fff !important;
	border-color: #000 !important;
}

#ta-popup-confirm:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

#ta-popup-skip {
	font-size: 0.85em;
	color: #999;
	text-decoration: underline;
	white-space: nowrap;
}

/* Product page info section */
.tile-addons-product-section {
	margin: 1em 0;
	padding: 1em;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.tile-addons-product-section h4 {
	margin: 0 0 0.5em;
	font-size: 1em;
}

.tile-addons-product-section ul {
	margin: 0;
	padding-left: 1.2em;
}

.tile-addons-product-section li {
	margin-bottom: 0.25em;
}
