/* ISE CDB Store – build-a-box picker. Colours follow the theme pink. */
/* The theme lays out form.cart as a flex row on small screens; the box form stacks its sections instead. */
form.cart.ise-box { --ise-pink: #ec2d68; --ise-navy: #13294b; display: block !important; width: 100%; max-width: 100%; margin-top: 1.5rem; }
.ise-box__slots { display: flex; flex-wrap: nowrap; gap: 10px; margin: 0 0 10px; width: 100%; max-width: 420px; }
.ise-box__slot {
	flex: 1 1 0; min-width: 0; max-width: 58px; aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--ise-pink);
	background: #fff center / cover no-repeat; box-sizing: border-box; transition: border-color .15s;
}
.ise-box__slot.is-filled { border-style: solid; cursor: pointer; }
.ise-box__count { font-weight: 700; color: var(--ise-navy); letter-spacing: .1em; font-size: 13px; margin: 0 0 6px; }
.ise-box__full { color: var(--ise-pink); font-weight: 600; margin: 0 0 6px; }
.ise-box__choose { border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; margin: 14px 0 20px; }
.ise-box__choose > summary {
	list-style: none; cursor: pointer; padding: 16px 0; font-size: 20px; letter-spacing: .12em;
	text-transform: uppercase; color: var(--ise-navy); display: flex; justify-content: space-between; align-items: center;
}
.ise-box__choose > summary::-webkit-details-marker { display: none; }
.ise-box__choose > summary::after { content: '+'; font-size: 26px; font-weight: 300; }
.ise-box__choose[open] > summary::after { content: '\2212'; }
.ise-box__grid {
	list-style: none; margin: 0 0 18px; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px;
}
.ise-box__item { text-align: center; border: 2px solid transparent; border-radius: 8px; padding: 8px 6px 10px; transition: border-color .15s; }
.ise-box__item.is-picked { border-color: var(--ise-pink); }
.ise-box__item img { width: 100%; max-width: 120px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; margin: 0 auto 6px; }
.ise-box__name { display: block; font-size: 14px; line-height: 1.3; min-height: 2.6em; color: var(--ise-navy); }
.ise-box__qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.ise-box__qty button {
	width: 30px; height: 30px; border: 1px solid #ccc; background: #fff; color: var(--ise-navy);
	font-size: 18px; line-height: 1; padding: 0; cursor: pointer; border-radius: 4px;
}
.ise-box__qty button:hover:not(:disabled) { border-color: var(--ise-pink); color: var(--ise-pink); }
.ise-box__qty button:disabled { opacity: .35; cursor: not-allowed; }
.ise-box__qty input { width: 40px; height: 30px; text-align: center; padding: 0; -moz-appearance: textfield; }
.ise-box__qty input::-webkit-outer-spin-button, .ise-box__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ise-box__message label { display: block; font-weight: 600; margin-bottom: 4px; }
.ise-box__message input { width: 100%; }
.ise-box__buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ise-box__buy .ise-box__add { flex: 1 1 200px; }
.ise-box__add:disabled { opacity: .5; cursor: not-allowed; }
.ise-box__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.ise-box__total-amount { font-size: 20px; }
@media (max-width: 480px) {
	.ise-box__slots { gap: 6px; }
	.ise-box__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
/* Cart: flavour lines sit under their box. */
tr.ise-box-child td.product-name { padding-left: 2.5em; font-size: .92em; }
tr.ise-box-child td.product-thumbnail img { max-width: 48px; }
.ise-box__item.is-soldout { opacity: .45; }
.ise-box__item.is-soldout img { filter: grayscale(1); }
.ise-box__soldout { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #777; }
