/* Tinna Bundle Sizes. Scoped to .tbs / .tbs-managed / .tbs-acc only. */
.bundle_form .bundled_product.tbs-managed { display: none !important; }

/* Optional extras (needles): keep the "Bæta við (1.299 kr. stk.)" label as one line of body text. */
.bundle_form .bundled_product_optional_checkbox { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-size: 15px; }
.bundle_form .bundled_product_optional_checkbox .price,
.bundle_form .bundled_product_optional_checkbox .price * { display: inline; font-size: inherit !important; font-weight: 600; line-height: inherit; }

/* Item titles inside the bundle: body-size, not page-heading size. */
.bundle_form .bundled_product .bundled_product_title { font-size: 18px; line-height: 1.3; margin: 0 0 4px; }
.bundle_form .bundled_product .bundled_product_images { max-width: 96px; }

.tbs { margin: 0 0 20px; }
.tbs-row { margin: 0 0 16px; }
.tbs-label { font-weight: 600; margin: 0 0 8px; }
.tbs-color-name { font-weight: 400; color: #555; }

.tbs-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.tbs-size { position: relative; margin: 0; cursor: pointer; }
.tbs-size input,
.tbs-color input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tbs-size span {
	display: inline-block; min-width: 48px; padding: 8px 12px; text-align: center;
	border: 1px solid #ccc; border-radius: 4px; background: #fff; line-height: 1.2;
}
.tbs-size input:checked + span { border-color: #000; background: #000; color: #fff; }
.tbs-size input:focus-visible + span { outline: 2px solid #000; outline-offset: 2px; }

.tbs-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.tbs-color {
	position: relative; display: block; width: 56px; margin: 0; cursor: pointer;
	border: 2px solid transparent; border-radius: 4px; padding: 2px;
}
.tbs-color img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; }
.tbs-color:has(input:checked) { border-color: #000; }
.tbs-color:has(input:focus-visible) { outline: 2px solid #000; outline-offset: 2px; }
.tbs-color.is-out { opacity: .35; cursor: not-allowed; }
.tbs-color-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tbs-summary { margin: 4px 0 0; color: #333; }
.tbs.tbs-error .tbs-summary { color: #b32d2e; font-weight: 600; }
.tbs.tbs-error .tbs-size span { border-color: #b32d2e; }

.tbs-acc { margin: 20px 0 0; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; }
.tbs-acc summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.tbs-acc-body { padding: 0 0 12px; overflow-x: auto; }
.tbs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbs-table th, .tbs-table td { padding: 6px 8px; border: 1px solid #e5e5e5; text-align: center; white-space: nowrap; }
.tbs-table tbody th { text-align: left; }
.tbs-note { margin: 8px 0 0; font-size: 13px; color: #555; }
