/**
 * MultiCart — add-on section on the native Sejoli product checkout.
 * Styled with the native page tokens (Nunito Sans, white card, #00aa5b green)
 * so it blends into the Sejoli form.
 */
.smc-addons {
	background: #fff;
	border: 1px solid #e9eaf0;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
	padding: 16px 18px;
	margin: 14px 0;
	font-family: "Nunito Sans", Lato, "Helvetica Neue", Arial, sans-serif;
	color: #2e2e31;
	box-sizing: border-box;
}

.smc-addons *,
.smc-addons *::before,
.smc-addons *::after { box-sizing: border-box; }

.smc-addons__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
}

.smc-addons__head strong { font-size: 15px; font-weight: 800; }

.smc-addons__badge {
	background: #e7f7ee;
	border: 1px solid #b7e4cb;
	border-radius: 999px;
	color: #00aa5b;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .03em;
	padding: 3px 10px;
	text-transform: uppercase;
}

.smc-addons__sub {
	color: #6b7280;
	flex: 1 1 100%;
	font-size: 12.5px;
	line-height: 1.5;
}

.smc-addons__list { display: grid; gap: 8px; }

.smc-addon {
	align-items: center;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	cursor: pointer;
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 10px 12px;
	transition: border-color .15s, background .15s;
}

.smc-addon:hover { border-color: #00aa5b; }

.smc-addon.is-picked,
.smc-addon:has(input:checked) {
	background: #f2fcf6;
	border-color: #00aa5b;
}

.smc-addon input[type="checkbox"] {
	accent-color: #00aa5b;
	flex: 0 0 auto;
	height: 18px;
	margin: 0;
	width: 18px;
}

.smc-addon__thumb {
	align-items: center;
	background: #f3f4f6;
	border-radius: 8px;
	display: flex;
	flex: 0 0 auto;
	font-size: 20px;
	height: 46px;
	justify-content: center;
	object-fit: cover;
	width: 46px;
}

.smc-addon__info { flex: 1 1 auto; min-width: 0; }

.smc-addon__title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.smc-addon__meta {
	color: #6b7280;
	display: block;
	font-size: 12px;
	margin-top: 2px;
}

.smc-addon__price {
	color: #111827;
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

.smc-addon__tick {
	color: #00aa5b;
	font-weight: 900;
	opacity: 0;
	transition: opacity .15s;
}

.smc-addon.is-picked .smc-addon__tick,
.smc-addon:has(input:checked) .smc-addon__tick { opacity: 1; }

.smc-addons__note {
	background: #f2fcf6;
	border: 1px solid #b7e4cb;
	border-radius: 8px;
	color: #0b7a43;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.5;
	margin: 10px 0 0;
	padding: 8px 12px;
}

.smc-addons__note--coupon {
	background: #fff8e5;
	border-color: #f0d9a3;
	color: #8a5a00;
}

/* Running total inside the section */
.smc-addons__sum {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin: 10px 0 0;
	padding: 8px 12px;
}

.smc-addons__sum-row {
	align-items: baseline;
	color: #6b7280;
	display: flex;
	font-size: 12.5px;
	justify-content: space-between;
	padding: 2px 0;
}

.smc-addons__sum-row strong { color: #111827; font-size: 13px; font-weight: 800; }

.smc-addons__sum-row--grand {
	border-top: 1px dashed #d1d5db;
	margin-top: 6px;
	padding-top: 6px;
}

.smc-addons__sum-row--disc { color: #b45309; }
.smc-addons__sum-row--disc strong { color: #b45309; }

/* ---------------------------------------------------------------------------
   Promo coupon banner — bright yellow, dashed border (owner's spec).
   Reads as an offer, not a warning: light fill, dashed outline, ticket icon.
   --------------------------------------------------------------------------- */
.smc-addons__promo { display: grid; gap: 8px; margin: 0 0 12px; }

/* Optional owner-supplied HTML block (image / table / CTA) */
.smc-addons__custom {
	margin: 0 0 12px;
}

.smc-addons__custom img {
	border-radius: 8px;
	display: block;
	height: auto;
	max-width: 100%;
}

.smc-addons__custom table {
	border-collapse: collapse;
	font-size: 13px;
	width: 100%;
}

.smc-addons__custom table td,
.smc-addons__custom table th {
	border: 1px solid #e5e7eb;
	padding: 6px 8px;
	text-align: left;
}

.smc-addons__custom ul,
.smc-addons__custom ol {
	margin: 0 0 8px 18px;
	padding: 0;
}

.smc-addons__custom p { margin: 0 0 8px; }
.smc-addons__custom p:last-child { margin-bottom: 0; }

.smc-addons__promo--bottom {
	margin: 12px 0 0;
}

.smc-promo {
	align-items: center;
	background: #fffbeb;
	border: 2px dashed #f59e0b;
	border-radius: 10px;
	display: flex;
	gap: 10px;
	padding: 10px 12px;
}

.smc-promo.is-applied {
	background: #ecfdf5;
	border-color: #10b981;
}

.smc-promo.is-disabled {
	background: #f9fafb;
	border-color: #d1d5db;
	opacity: .75;
}

.smc-promo__ic {
	font-size: 20px;
	line-height: 1;
}

.smc-promo__body { flex: 1 1 auto; min-width: 0; }

.smc-promo__label {
	color: #92400e;
	display: block;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: .02em;
	line-height: 1.3;
}

.smc-promo.is-applied .smc-promo__label { color: #065f46; }

.smc-promo__code {
	background: #fde68a;
	border-radius: 4px;
	color: #78350f;
	display: inline-block;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .06em;
	margin-top: 3px;
	padding: 1px 6px;
}

.smc-promo.is-applied .smc-promo__code {
	background: #a7f3d0;
	color: #065f46;
}

.smc-promo__hint {
	color: #6b7280;
	display: block;
	font-size: 11.5px;
	line-height: 1.45;
	margin-top: 4px;
}

.smc-promo__btn {
	background: #f59e0b;
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	flex: 0 0 auto;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 800;
	padding: 9px 16px;
	white-space: nowrap;
}

.smc-promo__btn:hover:not( :disabled ) { background: #d97706; }

.smc-promo__btn:disabled {
	background: #d1d5db;
	cursor: not-allowed;
}

.smc-promo__btn--remove {
	background: #fff;
	border: 1.5px solid #10b981;
	color: #047857;
}

.smc-promo__btn--remove:hover { background: #ecfdf5; }

.smc-addons__sum-row--grand strong {
	color: #00aa5b;
	font-size: 15px;
}

/* Delta appended under the native "Total" line */
.smc-addons__final {
	color: #00aa5b;
	display: block;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
}

.smc-addons__delta {
	border-top: 1px dashed #e5e7eb;
	color: #6b7280;
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	margin-top: 4px;
	padding-top: 4px;
	white-space: normal;
}

.smc-addons__delta-row {
	display: block;
	margin-top: 1px;
}

.smc-addons__delta-total {
	color: #00aa5b;
	display: block;
	font-size: 14px;
	font-weight: 800;
	margin-top: 2px;
}

.smc-addons__delta-disc {
	color: #d97706;
	display: block;
	font-weight: 800;
	margin-top: 2px;
}

@media (max-width: 600px) {
	.smc-addons { padding: 14px; }
	.smc-addon { gap: 10px; padding: 10px; }
	.smc-addon__thumb { height: 40px; width: 40px; }
	.smc-addon__price { display: none; }
}

.smc-addons__delta-bump {
	color: #64748b;
	display: block;
	font-size: 11.5px;
	font-style: italic;
	margin-top: 2px;
}

/* ---------------------------------------------------------------------------
   Featured image on the Sejoli product/checkout page
   The core checkout template prints the featured image bare (<img> with no
   class) inside a Semantic-UI "four wide column", which the theme shrinks to
   ~62px. Give it a real size so an uploaded image is actually visible.
   Scoped to the order table so no other image on the page is affected.
   --------------------------------------------------------------------------- */
.produk-dibeli .ui.stackable.grid > .four.wide.column > img,
.pesanan-anda .ui.stackable.grid > .four.wide.column > img {
	width: 100%;
	max-width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
	margin: 0 auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

@media (max-width: 640px) {
	.produk-dibeli .ui.stackable.grid > .four.wide.column > img,
	.pesanan-anda .ui.stackable.grid > .four.wide.column > img {
		max-width: 72px;
		height: 72px;
	}
}

/* Per-add-on HTML block — only visible while that add-on is ticked. */
.smc-addon__html {
	margin: 10px 0 4px;
	padding: 0;
	animation: smcAddonHtmlIn .22s ease-out;
}

.smc-addon__html.is-open {
	display: block;
}

@keyframes smcAddonHtmlIn {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Owner HTML must not be boxed in by our own padding/typography. */
.smc-addon__html img { max-width: 100%; height: auto; }
.smc-addon__html table { width: 100%; border-collapse: collapse; }
.smc-addon__html a { text-decoration: underline; }

/* ---------------------------------------------------------------------------
   Baris produk tambahan: judul & harga rata ATAS.
   Default-nya `align-items:center`, jadi begitu ada teks kecil / subteks di
   bawah judul, harga ikut turun ke tengah dan tidak sejajar dengan judul.
   --------------------------------------------------------------------------- */
.smc-addon {
	align-items: flex-start;
}

.smc-addon__thumb,
.smc-addon input[type="checkbox"] {
	margin-top: 1px;
}

.smc-addon__info {
	align-self: flex-start;
}

.smc-addon__price {
	align-self: flex-start;
	line-height: 1.35;
}

.smc-addon__tick {
	align-self: flex-start;
	line-height: 1.35;
}

/* HTML milik produk ini (di bawah daftar produk) */
.smc-addons__custom {
	margin: 14px 0 4px;
}
